.chat-container {
    width: 80%;
    margin: auto;
    border-radius: 12px;
    background-color: #fafafa;
    /* 修改阴影以适应拟态风格 */
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1), 0 -10px 20px -10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    height: 300px;
    overflow-y: scroll;
}
.text {
    white-space: normal;
    word-break: break-word;
}
.avatar {
    width: 30px;
    height: 30px;
    background-size: cover;
    border-radius: 50%;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.1), 0 -5px 10px -5px rgba(0, 0, 0, 0.1);
}
.text-container {
    margin-left: 48px;
    flex-grow: 1;
}

.text-container::before {
    content: "";
    width: 30px;
    flex-shrink: 0;
    /* 可选：增加轻微拟态效果 */
    box-shadow: inset 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.typing-indicator {
    text-align: center;
    margin-bottom: 10px;
    display: none;
    animation: blink 1s infinite;
}

@media (max-width: 767px) {
    .message {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .avatar {
        width: 25px;
        height: 25px;
        margin-right: 5px;
    }

    .text {
        flex-grow: 1;
        margin-left: 0;
    }
}

.aiv_touxiang {
    max-width: 50px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.shadow-blur {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.7;
}

.love-icon img {
    width: 30px;
    height: auto;
}
.chat-header {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    padding: 10px 0; 
}
.chat-header .img-container {
    display: flex;
    align-items: center;
}


.message {
    display: flex;
}

.tempBox {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: inset 0 4px 4px rgba(0, 0, 0, 0.05), inset 0 -4px 4px rgba(0, 0, 0, 0.05);
    padding: 8px;
}

.central {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ltps {
    background-color: #ffd7e6;
    border-radius: 20px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #ff69b4;
    /* 增加拟态阴影 */
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1), 0 -10px 20px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ltps:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.shadow-blur {
    backdrop-filter: blur(5px);
    font-weight: bold;
    -webkit-backdrop-filter: blur(5px);
}

.hen::before {
    content: "";
    margin-right: 5px;
    font-size: 22px;
    position: relative;
    top: -2px;
}

.ios_page {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    justify-content: center; 
    flex-direction: column; 
    align-items: center; 
}
.time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 24px;
    color: #ff69b4;
    font-weight: bold;
}

.time b {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    background-color: #fff;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.1), 0 -2px 4px -2px rgba(0, 0, 0, 0.1);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.time b {
    animation: heartbeat 1s infinite alternate;
}
@keyframes colorShift {
    0% { color: #FF69B4; }
    10% { color: #FFD700; }
    20% { color: #00FF00; }
    30% { color: #0000FF; }
    40% { color: #EE82EE; }
    50% { color: #FF4500; }
    60% { color: #ADFF2F; }
    70% { color: #8A2BE2; }
    80% { color: #A52A2A; }
    90% { color: #FFDAB9; }
    100% { color: #FF69B4; }
}
.adorable-text {
    font-family: 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: #663399;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-text-stroke: 1px #333;
}

