/* 可爱洋气的智能导员样 ?v3.0 */

/* 移除Google字体引用，使用系统兼容字 ?*/

/* CSS变量定义 */
:root {
    /* 可爱的渐变色 ?*/
    --primary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ff69b4 100%);
    --primary-gradient-webkit: -webkit-linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ff69b4 100%);
    --cute-pink: #ff9a9e;
    --cute-hotpink: #ff69b4;
    --cute-purple: #d946ef;
    --cute-blue: #60a5fa;
    --cute-skyblue: #87ceeb;
    --cute-green: #34d399;
    --cute-mint: #98fb98;
    --cute-orange: #fb923c;
    --cute-peach: #ffcba4;
    --cute-yellow: #fde047;
    --cute-lavender: #e6e6fa;

    /* 背景设置 */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);

    /* 文字颜色 */
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;

    /* 圆角和阴 ?*/
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-xxl: 3rem;
    --shadow-sm: 0 4px 12px rgba(255, 105, 180, 0.15);
    --shadow-md: 0 8px 25px rgba(255, 105, 180, 0.2);
    --shadow-lg: 0 12px 35px rgba(255, 105, 180, 0.25);
    --shadow-glow: 0 0 30px rgba(255, 105, 180, 0.4);
    --shadow-magic: 0 0 50px rgba(216, 70, 239, 0.3);
}

/* Reset和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 微信浏览器兼容性修 ?*/
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 微信浏览器backdrop-filter兼容 ?*/
@supports not (backdrop-filter: blur(20px)) {
    .card, .header, .chat-window {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/* 允许文本选择 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 微信浏览器CSS兼容性前缀 */
.card, .header, .chat-window, .message-avatar {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* 修复微信浏览器中可能出现的动画问 ?*/
@keyframes avatarBounce {
    0%, 100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);
    }
}

/* Background Video */
.background-video-container {
    position: fixed;
    top: 0.5;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(-10%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

/* 激活相关样式已删除 */

/* Header样式 */
.header {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(255, 105, 180, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    color: var(--cute-purple);
    font-size: 2rem;
    animation: pulse 2s infinite;
    background: var(--primary-gradient);
    background: var(--primary-gradient-webkit);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--cute-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header-right:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(168, 85, 247, 0.3);
    /* 禁用可能导致刷新的动画 */
    /* animation: headerButtonGlow 1.5s ease-in-out infinite; */
}

@keyframes headerButtonGlow {
    0%, 100% { box-shadow: var(--shadow-sm), 0 0 15px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: var(--shadow-sm), 0 0 20px rgba(168, 85, 247, 0.5); }
}

.clear-icon {
    color: var(--cute-purple);
    font-size: 1.2rem;
}

.clear-text {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* 主要内容布局 */
.main-content {
    display: flex;
    justify-content: flex-end;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 120px);
    position: relative;
}

/* 怀抱背 ?*/
.hugging-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hugging-character {
    width: 400px;
    height: 500px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500"><defs><radialGradient id="skin" cx="50%" cy="30%" r="60%"><stop offset="0%" stop-color="%23fdbcb4"/><stop offset="100%" stop-color="%23f4a59c"/></radialGradient><linearGradient id="hair" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23654321"/><stop offset="100%" stop-color="%234a3728"/></linearGradient><linearGradient id="shirt" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ff6b9d"/><stop offset="100%" stop-color="%23c44569"/></linearGradient></defs><circle cx="200" cy="120" r="60" fill="url(%23skin)"/><ellipse cx="200" cy="80" rx="70" ry="50" fill="url(%23hair)"/><rect x="150" y="180" width="100" height="120" rx="20" fill="url(%23shirt)"/><circle cx="170" cy="140" r="8" fill="%23000"/><circle cx="230" cy="140" r="8" fill="%23000"/><path d="M 180 160 Q 200 170 220 160" stroke="%23000" stroke-width="2" fill="none"/><ellipse cx="160" cy="200" rx="25" ry="40" fill="%23ff6b9d" opacity="0.7"/><ellipse cx="240" cy="200" rx="25" ry="40" fill="%23ff6b9d" opacity="0.7"/><text x="200" y="450" text-anchor="middle" font-family="Arial" font-size="24" fill="%23ff6b9d">🤗 抱着 ?/text></svg>') center/contain no-repeat;
    opacity: 0.3;
    animation: characterBreathe 4s ease-in-out infinite;
}

@keyframes characterBreathe {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.4; }
}

/* 左侧内容区域 */
.left-content {
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

/* 右侧对话窗口 */
.right-content {
    width: 900px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cute-pink), var(--cute-purple), var(--cute-blue));
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    /* 禁用可能导致刷新的动画 */
    /* animation: cardFloat 2s ease-in-out infinite; */
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(-5px) scale(1.02); }
    50% { transform: translateY(-8px) scale(1.03); }
}

/* 卡片边框发光效果 */
.card:hover::before {
    background: linear-gradient(90deg, var(--cute-pink), var(--cute-purple), var(--cute-blue), var(--cute-green));
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title::before {
    content: '✨';
    font-size: 1.1rem;
}

/* 快速提问列 ?*/
.question-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-item:hover {
    background: rgba(168, 85, 247, 0.1);
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow-sm), 0 0 15px rgba(168, 85, 247, 0.3);
    border-color: var(--cute-purple);
    animation: questionItemGlow 1.5s ease-in-out infinite;
}

.question-item:hover .question-icon {
    animation: iconBounce 0.8s ease-in-out;
}

@keyframes questionItemGlow {
    0%, 100% { box-shadow: var(--shadow-sm), 0 0 15px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: var(--shadow-sm), 0 0 25px rgba(168, 85, 247, 0.5); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.question-icon {
    color: var(--cute-purple);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.question-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* 系统状态卡片样 ?*/
.system-status-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 600;
    color: var(--cute-green);
}

.status-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* 聊天窗口样式 */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 2px solid rgba(255, 105, 180, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.chat-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cute-pink), var(--cute-hotpink), var(--cute-purple), var(--cute-blue), var(--cute-skyblue));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.chat-icon {
    color: var(--cute-purple);
    font-size: 1.5rem;
}

.chat-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

/* 聊天背景的可爱装 ?*/
.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 107, 157, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(168, 85, 247, 0.02) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: chatBgFloat 12s ease-in-out infinite;
}

@keyframes chatBgFloat {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

/* 隐藏滚动 ?*/
.chat-messages::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.chat-messages::-webkit-scrollbar-track {
    display: none;
}

.chat-messages::-webkit-scrollbar-thumb {
    display: none;
}

/* 消息样式 */
.message {
    display: flex;
    gap: 1rem;
    animation: messageSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 600px;
    min-width: 200px;
    position: relative;
}

.message::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    border-radius: var(--radius-lg);
    opacity: 0;
    /* 禁用可能导致刷新的动画 */
    /* animation: messageGlow 2s ease-in-out infinite; */
    /* animation-delay: 1s; */
    z-index: -1;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.advisor-message {
    align-self: flex-start;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.message-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    animation: avatarGlow 3s ease-in-out infinite;
}

.message-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.5);
}

.message-avatar:hover::before {
    animation: avatarGlow 1s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.user-message .message-avatar {
    background: linear-gradient(135deg, var(--cute-blue), var(--cute-purple));
    background: -webkit-linear-gradient(135deg, var(--cute-blue), var(--cute-purple));
    position: relative;
}

.user-message .message-avatar::after {
    content: '👤';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.8rem;
    opacity: 0.8;
    animation: userIconBounce 2s ease-in-out infinite;
}

@keyframes userIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.advisor-message .message-avatar {
    background: linear-gradient(135deg, var(--cute-pink), var(--cute-orange));
    background: -webkit-linear-gradient(135deg, var(--cute-pink), var(--cute-orange));
    /* 禁用可能导致刷新的动画 */
    /* animation: avatarBounce 2s infinite; */
    position: relative;
}

.advisor-message .message-avatar::after {
    content: '🤖';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.8rem;
    opacity: 0.8;
    /* 禁用可能导致刷新的动画 */
    /* animation: advisorIconRotate 3s linear infinite; */
}

@keyframes advisorIconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes avatarBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.message-bubble {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--cute-blue), var(--cute-purple));
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0.3rem var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.user-message .message-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(-45deg);
    animation: bubbleShine 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes bubbleShine {
    0% { transform: translateX(-100%) rotate(-45deg); }
    100% { transform: translateX(100%) rotate(-45deg); }
}

.advisor-message .message-bubble {
    background: #ffffff;
    color: var(--text-primary);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0.3rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.advisor-message .message-bubble:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 107, 157, 0.2);
}

/* 为消息添加可爱的贴纸装饰 */
.message-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff6b9d, transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: bubbleSticker 4s ease-in-out infinite;
    animation-delay: 3s;
}

.user-message .message-bubble::after {
    background: radial-gradient(circle, #3b82f6, transparent);
}

@keyframes bubbleSticker {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* 消息表情符号装饰 */
.message-emoji {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0;
    animation: emojiFloat 3s ease-in-out;
}

@keyframes emojiFloat {
    0% {
        transform: translateY(10px) scale(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    70% {
        opacity: 1;
        transform: translateY(-15px) scale(1.1);
    }
    100% {
        transform: translateY(-25px) scale(0);
        opacity: 0;
    }
}

/* 消息跳跳动画 */
.message-bounce {
    animation: messageBounce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes messageBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 流式消息效果 */
.streaming-message .message-bubble {
    position: relative;
}

.streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--cute-purple);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 输入区域 */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.1);
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.chat-input:focus {
    outline: none;
    border-color: var(--cute-purple);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
    animation: inputFocus 0.5s ease-in-out;
}

@keyframes inputFocus {
    0% { box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1); }
    50% { box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.15), 0 0 25px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1), 0 0 20px rgba(168, 85, 247, 0.2); }
}

.chat-input::placeholder {
    color: var(--text-light);
}

.send-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cute-pink), var(--cute-hotpink), var(--cute-purple));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    /* 移动端触摸优化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    /* 确保按钮始终可见且可触摸 */
    z-index: 10;
}

.send-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    /* 禁用可能导致刷新的动画 */
    /* animation: buttonPulse 1.5s ease-in-out infinite; */
    background: linear-gradient(135deg, var(--cute-pink), var(--cute-hotpink), var(--cute-purple), var(--cute-blue));
}

.send-button:active {
    transform: translateY(-1px) scale(1.02);
    animation: buttonClick 0.2s ease-out;
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: var(--shadow-lg), var(--shadow-glow); }
    50% { box-shadow: var(--shadow-lg), var(--shadow-glow), 0 0 30px rgba(255, 107, 157, 0.4); }
}

@keyframes buttonClick {
    0% { transform: translateY(-1px) scale(1.02); }
    50% { transform: translateY(1px) scale(0.98); }
    100% { transform: translateY(-1px) scale(1.02); }
}

.input-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Footer样式 */
.footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

/* 团队卡片样式 */
.team-card {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 105, 180, 0.15);
    position: relative;
    overflow: hidden;
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 105, 180, 0.15);
    position: relative;
    z-index: 3;
}


.team-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--cute-pink), var(--cute-purple));
    background: -webkit-linear-gradient(135deg, var(--cute-pink), var(--cute-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.team-members {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.member-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 105, 180, 0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.member-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
    border-color: var(--cute-pink);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}



.member-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 60px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.member-name,
.member-names {
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    font-size: 0.9rem;
}

.team-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 105, 180, 0.15);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    position: relative;
    z-index: 3;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 1.2rem 1.5rem;
    }

    .team-card {
        padding: 1.2rem;
    }

    .team-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .team-title {
        font-size: 1rem;
    }

    .team-members {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .member-item {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .member-label {
        min-width: 60px;
        font-size: 0.85rem;
    }

    .member-name,
    .member-names {
        font-size: 0.85rem;
    }

    /* 移动端发送按钮优化 */
    .send-button {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        min-height: 60px !important;
        font-size: 1.4rem !important;
        /* 增加触摸区域 */
        padding: 0 !important;
        margin: 0 0.5rem !important;
    }

    /* 移动端输入区域优化 */
    .chat-input-container {
        padding: 1rem !important;
        gap: 1rem !important;
        align-items: flex-end !important;
    }

    .chat-input {
        min-height: 50px !important;
        max-height: 100px !important;
        padding: 0.75rem 1rem !important;
        font-size: 16px !important; /* 防止移动端字体自动调整 */
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem;
    }

    .team-card {
        padding: 1rem;
    }

    .team-header {
        margin-bottom: 0.8rem;
    }

    .team-title {
        font-size: 0.95rem;
    }

    .team-members {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .member-item {
        padding: 0.5rem;
        gap: 0.3rem;
    }


    .member-label {
        min-width: 50px;
        font-size: 0.8rem;
    }

    .member-name,
    .member-names {
        font-size: 0.8rem;
    }

    .team-footer {
        font-size: 0.8rem;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, var(--cute-green), #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.info {
    background: linear-gradient(135deg, var(--cute-blue), #2563eb);
}

/* 响应式设 ?*/
@media (max-width: 1200px) {
    .main-content {
        gap: 1rem;
        padding: 1rem;
    }

    .left-content {
        width: 350px;
    }

    .hugging-character {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .left-content {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .right-content {
        width: 100%;
    }

    .hugging-background {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    
    .left-content {
        grid-template-columns: 1fr;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
    
    .message {
        max-width: 500px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {

    .main-content {
        padding: 0.5rem;
    }

    .header {
        padding: 0.75rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    /* 极小屏幕上的发送按钮优化 */
    .send-button {
        width: 65px !important;
        height: 65px !important;
        min-width: 65px !important;
        min-height: 65px !important;
        font-size: 1.5rem !important;
        margin: 0 0.25rem !important;
    }

    .chat-input-container {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }

    .chat-input {
        min-height: 48px !important;
        padding: 0.75rem !important;
        font-size: 16px !important;
    }
}

/* 特殊效果 */
.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1rem;
    animation: sparkleRotate 3s linear infinite;
}

@keyframes sparkleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功检查标记动 ?*/
.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    margin-right: 10px;
}

.checkmark::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 10px;
    background: var(--cute-green);
    left: 8px;
    top: 3px;
    animation: checkmark-stem 0.3s ease-in-out 0.1s both;
}

.checkmark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 3px;
    background: var(--cute-green);
    left: 3px;
    top: 8px;
    animation: checkmark-kick 0.2s ease-in-out both;
}

@keyframes checkmark-stem {
    0% { height: 0; }
    100% { height: 10px; }
}

@keyframes checkmark-kick {
    0% { width: 0; }
    100% { width: 6px; }
}

/* 装饰元素样式 */
.decorations-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.decoration {
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    animation: decorationFloat 8s ease-in-out infinite;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px currentColor;
    will-change: transform;
}

.decoration:nth-child(odd) {
    animation-direction: reverse;
}

.decoration:nth-child(3n) {
    animation-duration: 12s;
}

.decoration:nth-child(5n) {
    animation-duration: 6s;
}

/* 装饰元素的浮动动画 - 优化版，减少旋转避免刷新问题 */
@keyframes decorationFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-8px) translateX(3px);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-4px) translateX(-2px);
        opacity: 0.25;
    }
    75% {
        transform: translateY(-12px) translateX(5px);
        opacity: 0.32;
    }
}

/* 为不同类型的装饰元素添加特殊效果 */
.decoration:nth-child(7n) {
    animation-name: decorationTwinkle;
}

@keyframes decorationTwinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

.decoration:nth-child(11n) {
    animation-name: decorationPulse;
}

@keyframes decorationPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.55;
    }
}

/* 鼠标悬停时的发光效果 */
.decoration:hover {
    filter: drop-shadow(0 0 8px currentColor);
    animation-play-state: paused;
}

/* 响应式设计 - 在小屏幕上减少装饰数量 */
@media (max-width: 768px) {
    .decoration {
        font-size: 16px;
    }

    .decoration:nth-child(n+20) {
        display: none;
    }
}

@media (max-width: 480px) {
    .decoration:nth-child(n+15) {
        display: none;
    }
}

/* 所有装饰元素样式已被删除以优化性能 */

/* 云彩装饰样式 */
.cloud-decoration {
    position: absolute;
    font-size: 60px;
    opacity: 0.2;
    animation: cloudFloat 40s linear infinite;
    pointer-events: none;
    z-index: -5;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    will-change: transform;
}

/* 云彩飘浮动画 - 优化版，避免复杂的变换导致刷新 */
@keyframes cloudFloat {
    0% {
        transform: translateX(-10vw) translateY(0px);
    }
    25% {
        transform: translateX(25vw) translateY(-3px);
    }
    50% {
        transform: translateX(50vw) translateY(-6px);
    }
    75% {
        transform: translateX(75vw) translateY(-3px);
    }
    100% {
        transform: translateX(110vw) translateY(0px);
    }
}

/* 云彩悬停效果 */
.cloud-decoration:hover {
    opacity: 0.4;
    transform: scale(1.1);
    animation-play-state: paused;
}

/* 为不同类型的云彩添加微妙变化 */
.cloud-decoration:nth-child(3n) {
    animation-duration: 35s;
    animation-delay: -10s;
}

.cloud-decoration:nth-child(5n) {
    animation-duration: 45s;
    animation-delay: -20s;
}

/* 响应式设计 - 小屏幕上减少云彩数量 */
@media (max-width: 768px) {
    .cloud-decoration {
        font-size: 45px;
    }

    .cloud-decoration:nth-child(n+6) {
        display: none;
    }
}

@media (max-width: 480px) {
    .cloud-decoration:nth-child(n+4) {
        display: none;
    }
}

/* 移动端兼容性优化 - 彻底禁用动画防止刷新问题 */
@media (max-width: 768px) {
    /* 背景图片移动端优化 */
    body {
        background-attachment: scroll; /* 移动端使用scroll而不是fixed，避免性能问题 */
        background-size: cover;
        background-position: center;
    }

    /* 彻底禁用所有装饰动画防止刷新 */
    .decoration,
    .cloud-decoration {
        animation: none !important;
        opacity: 0.15 !important; /* 降低透明度减少视觉负担 */
    }

    /* 禁用聊天背景动画 */
    .chat-messages::before {
        animation: none !important;
        opacity: 0.3 !important;
    }

    /* 禁用可能导致刷新的滤镜效果 */
    .decoration:hover,
    .cloud-decoration:hover {
        filter: none !important;
        text-shadow: none !important;
        transform: none !important;
    }

    /* 进一步降低backdrop-filter模糊强度 */
    .card, .header, .chat-window {
        backdrop-filter: blur(2px) !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    /* 禁用所有装饰元素的过渡效果 */
    .decoration,
    .cloud-decoration {
        transition: none !important;
    }

    /* 保留必要的过渡效果 */
    .card, .header, .chat-window, .chat-input, .send-button {
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    /* 禁用可能导致刷新的CSS属性 */
    .decoration, .cloud-decoration {
        -webkit-transform-style: flat !important;
        transform-style: flat !important;
        will-change: auto !important;
    }
}

/* 微信浏览器特殊优化 */
@media screen and (max-width: 768px) {
    /* 进一步禁用可能导致刷新的CSS属性 */
    * {
        -webkit-transform-style: flat !important;
        transform-style: flat !important;
    }

    /* 额外禁用装饰元素动画 */
    .decoration:nth-child(3n),
    .decoration:nth-child(4n),
    .cloud-decoration:nth-child(2n) {
        animation: none !important;
        opacity: 0.1 !important;
    }

    /* 禁用所有可能导致刷新的属性 */
    .decoration, .cloud-decoration {
        -webkit-backface-visibility: visible !important;
        backface-visibility: visible !important;
        -webkit-perspective: none !important;
        perspective: none !important;
    }
}

/* iOS Safari特殊优化 */
@supports (-webkit-touch-callout: none) {
    .decoration, .cloud-decoration {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        /* 禁用iOS Safari中的动画 */
        animation: none !important;
        transition: none !important;
        opacity: 0.1 !important;
    }

    /* iOS设备上降低视觉复杂度 */
    .decoration:nth-child(n+20),
    .cloud-decoration:nth-child(n+5) {
        display: none !important;
    }
}

/* 贴纸样式 - 可在此添加 */
