* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

:root {
    /* 主色调 */
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    
    /* 辅助色 */
    --secondary-color: #06b6d4;
    --secondary-light: #22d3ee;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* 文本颜色 */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --text-primary: #4f46e5;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-color: #f8fafc;
    --bg-dark: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-input: rgba(255, 255, 255, 0.5);
    
    /* 消息气泡 */
    --bot-msg-bg: rgba(241, 245, 249, 0.7);
    --user-msg-bg: rgba(239, 246, 255, 0.8);
    --user-msg-color: #3b82f6;
    
    /* 玻璃拟态效果 */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-blur: blur(16px);
    
    /* 元素样式 */
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --box-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --box-shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(145deg, #f1f5f9 0%, #e0f2fe 50%, #ede9fe 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
    position: relative;
}

/* 科技感背景 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: particlesDrift 120s linear infinite;
}

.particles::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform-origin: center center;
    animation: rotateGradient 60s linear infinite;
}

@keyframes particlesDrift {
    0% {
        background-position: 0 0, 25px 25px;
    }
    100% {
        background-position: 1000px 500px, 1025px 525px;
    }
}

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

/* 主容器 */
.chat-container {
    width: 1200px;
    max-width: 95%;
    height: 90vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius-lg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    overflow: hidden;
    position: relative;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(67, 56, 202, 0.85) 0%, rgba(79, 70, 229, 0.85) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: white;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    opacity: 0.5;
}

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

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 200px;
    height: 100px;
    margin-right: 14px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.menu-btn {
    width: 100%;
    padding: 14px 18px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.menu-btn i {
    margin-right: 12px;
    font-size: 1.1rem;
}

.menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-btn:active {
    transform: translateY(0);
}

.history-list {
    margin-top: 20px;
    display: none;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-list.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-item {
    padding: 12px 14px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    margin-bottom: 6px;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.history-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}

.version {
    font-size: 0.8rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

/* 主聊天区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-header {
    padding: 18px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.chat-info {
    display: flex;
    align-items: center;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 14px;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.ai-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(79, 70, 229, 0.5));
    border-radius: 50%;
    z-index: -1;
    filter: blur(4px);
}

.header-text h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.status {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.status.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    margin-right: 6px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: 1px solid rgba(203, 213, 225, 0.6);
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.action-btn:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
}

.action-btn:active {
    transform: translateY(0);
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    scroll-behavior: smooth;
    position: relative;
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.chat-messages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.message {
    display: flex;
    gap: 14px;
    max-width: 80%;
    animation: fadeInUp 0.4s ease;
    position: relative;
    z-index: 0;
}

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 0 6px;
}

.sender {
    font-weight: 600;
    color: var(--text-light);
}

.time {
    color: var(--text-lighter);
}

.message-text {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

.message.bot .message-text {
    background-color: var(--bot-msg-bg);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--box-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.message.user .message-text {
    background-color: var(--user-msg-bg);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(219, 234, 254, 0.7);
    box-shadow: var(--box-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 快速提示区域 */
.quick-suggestions {
    padding: 14px 16px;
    background-color: rgba(249, 250, 251, 0.7);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    width: fit-content;
    align-self: center;
    animation: fadeInUp 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--box-shadow-sm);
}

.suggestion-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    background-color: white;
    border: 1px solid rgba(219, 234, 254, 0.7);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow-sm);
    position: relative;
    overflow: hidden;
}

.chip:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.chip:active {
    transform: translateY(0);
}

.chip i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.chip:hover::after {
    opacity: 1;
}

/* 输入区域 */
.chat-input-container {
    padding: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    position: relative;
}

.input-action {
    background: white;
    border: 1px solid rgba(203, 213, 225, 0.5);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow-sm);
}

.input-action:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.input-action:active {
    transform: translateY(0);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border-radius: var(--border-radius-lg);
    padding: 4px 4px 4px 18px;
    border: 1px solid rgba(203, 213, 225, 0.5);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: white;
}

#user-input {
    flex: 1;
    border: none;
    background: none;
    padding: 12px 0;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-color);
}

#user-input::placeholder {
    color: var(--text-lighter);
}

#send-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

#send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

#send-button:hover::before {
    transform: translateX(100%);
}

#send-button:active {
    transform: translateY(0);
}

/* 功能提示弹窗 */
.feature-tooltip {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 100;
    overflow: hidden;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.feature-tooltip.active {
    display: block;
}

.tooltip-header {
    padding: 14px 18px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tooltip-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tooltip-header:hover::before {
    transform: translateX(100%);
}

.tooltip-header span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tooltip-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.tooltip-header button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tooltip-content {
    padding: 18px;
}

.tooltip-content p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

.tooltip-content i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
    background: rgba(243, 244, 246, 0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 输入指示器动画 */
#typing-indicator .message-text {
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
    opacity: 0.6;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1.0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .chat-container {
        width: 100%;
        height: 90vh;
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .chat-container {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
    
    .sidebar {
        position: absolute;
        left: -280px;
        height: 100%;
        z-index: 20;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: var(--box-shadow-lg);
    }
    
    .main-content {
        width: 100%;
    }
    
    .chat-header, .chat-input-container {
        padding: 16px;
    }
    
    .chat-messages {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }
    
    .quick-suggestions {
        width: 100%;
    }
    
    .suggestion-chips {
        flex-direction: column;
        gap: 8px;
    }
    
    .chip {
        text-align: center;
        justify-content: center;
    }
    
    .ai-avatar, .message-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .header-text h1 {
        font-size: 1rem;
    }
    
    .action-btn, .input-action {
        width: 36px;
        height: 36px;
    }
    
    #send-button {
        width: 40px;
        height: 40px;
    }
    
    .tooltip-content p {
        font-size: 0.85rem;
    }
}

/* 添加新增元素的样式 - 系统消息 */
.system-message {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6px 0;
    margin-bottom: 20px;
}

.system-content {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: fadeInDown 0.5s ease;
    max-width: 90%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.system-icon {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.8);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.system-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

/* 消息操作按钮 */
.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-left: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.message:hover .message-actions {
    opacity: 1;
}

.message-action-btn {
    background: none;
    border: none;
    color: var(--text-lighter);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.message-action-btn:hover {
    background-color: rgba(226, 232, 240, 0.5);
    color: var(--primary-color);
}

/* 侧边栏功能导航样式 */
.menu-section {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.feature-btn {
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.feature-btn:last-child {
    margin-bottom: 0;
}

/* 底部装饰元素 */
.sidebar-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-light), var(--accent-color));
}

.decoration-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    bottom: -80px;
    left: -50px;
}

.decoration-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: -20px;
}

/* 底部按钮组 */
.footer-buttons {
    display: flex;
    gap: 10px;
}

/* 浮动AI助手 */
.floating-ai {
    position: absolute;
    right: 20px;
    bottom: 90px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.floating-ai.active {
    opacity: 1;
    animation: float 3s ease-in-out infinite;
    pointer-events: auto;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    position: relative;
    z-index: 2;
}

.floating-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: 1;
    opacity: 0.3;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* 背景渐变球体 */
.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    animation: orb-move1 15s ease infinite alternate;
}

.orb-2 {
    width: 350px;
    height: 350px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    animation: orb-move2 20s ease infinite alternate;
}

@keyframes orb-move1 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50px, 50px);
    }
}

@keyframes orb-move2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, -30px);
    }
}

/* 添加闪烁光标效果 */
.cursor-blink {
    display: inline-block;
    width: 2px;
    height: 16px;
    background-color: var(--primary-color);
    vertical-align: middle;
    margin-left: 1px;
    animation: cursor-blink 1s infinite;
    border-radius: 1px;
    position: relative;
    top: -1px;
}

@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
} 

/* 卡号查询结果样式 */
.card-query-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-query-result h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.card-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.card-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.card-info strong {
    color: #ffd700;
    font-weight: 600;
}

.card-message {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

.exchange-section {
    text-align: center;
    margin-top: 15px;
}

.exchange-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

.exchange-btn:active {
    transform: translateY(0);
}

/* 产品列表样式 */
.product-list {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-list h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.product-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.product-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
}

.product-item.available {
    border-left-color: #4caf50;
}

.product-item.unavailable {
    border-left-color: #f44336;
    opacity: 0.7;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.product-details {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.product-status.available {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.product-status.unavailable {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
} 

/* 商品操作按钮样式 */
.product-actions {
    margin-top: 10px;
    text-align: center;
}

.exchange-product-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.exchange-product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, #45a049, #4caf50);
}

.exchange-product-btn:active {
    transform: translateY(0);
}

/* 兑换提示样式 */
.exchange-tip {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.exchange-tip p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.exchange-tip strong {
    color: #fff3e0;
    font-weight: 600;
} 

/* 手动跳转链接样式 */
.manual-exchange-link {
    display: inline-block;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.manual-exchange-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    background: linear-gradient(45deg, #1976D2, #2196F3);
    color: white;
    text-decoration: none;
}

.manual-exchange-link:active {
    transform: translateY(0);
} 

/* 手机号验证结果样式 */
.phone-verify-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.phone-verify-result.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.phone-verify-result.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.phone-verify-result h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.verify-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.verify-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.verify-info strong {
    color: #ffd700;
    font-weight: 600;
}

.verify-message {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

.next-steps {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.next-steps p {
    margin: 8px 0;
    font-weight: 600;
}

.next-steps ul {
    margin: 10px 0;
    padding-left: 20px;
}

.next-steps li {
    margin: 5px 0;
    font-size: 13px;
}

.register-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.register-btn {
    display: inline-block;
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    background: linear-gradient(45deg, #1976D2, #2196F3);
    color: white;
    text-decoration: none;
}

.register-btn:active {
    transform: translateY(0);
}

.register-tip {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
} 

/* 短信验证相关样式 */
.sms-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.send-sms-btn {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.send-sms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.send-sms-btn:active {
    transform: translateY(0);
}

.sms-tip {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
}

/* 短信结果样式 */
.sms-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sms-result.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.sms-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.sms-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.sms-info strong {
    color: #ffd700;
    font-weight: 600;
}

.sms-message {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-style: italic;
    text-align: center;
}

.verify-code-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.code-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
}

.code-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    text-align: center;
    width: 150px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-input:focus {
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.verify-code-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.verify-code-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.verify-code-btn:active {
    transform: translateY(0);
}

.code-tip {
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.8;
}

/* 订单结果样式 */
.order-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-result.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.order-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-summary p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.order-summary strong {
    color: #ffd700;
    font-weight: 600;
}

.order-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.order-list h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}

.order-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ffd700;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-number {
    font-weight: 600;
    font-size: 14px;
    color: #ffd700;
}

.order-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.completed {
    background: rgba(76, 175, 80, 0.8);
    color: white;
}

.order-status.pending {
    background: rgba(255, 152, 0, 0.8);
    color: white;
}

.order-details p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.order-details strong {
    color: #ffd700;
    font-weight: 600;
}

.no-orders {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
}

.no-orders p {
    margin: 10px 0;
    font-size: 14px;
}

.no-order-tip {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 15px;
} 

/* 物流状态样式 */
.shipping-status {
    color: #2e7d32;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.15);
    font-size: 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.shipping-status.pending {
    color: #e65100;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.tracking-number {
    color: #1565c0;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: rgba(33, 150, 243, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(33, 150, 243, 0.3);
} 

/* 微信浏览器特殊修复 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* 检测微信浏览器 */
    .sidebar {
        /* 减少过渡时间，避免闪烁 */
        transition: left 0.2s ease-out;
        /* 禁用复杂的背景动画 */
        animation: none;
    }
    
    .sidebar::before {
        /* 禁用渐变动画 */
        animation: none;
    }
    
    /* 减少其他动画效果 */
    .particles {
        animation: none;
    }
    
    .gradient-orbs .orb {
        animation: none;
    }
    
    /* 简化浮动AI动画 */
    .floating-ai.active {
        animation: none;
    }
    
    .floating-pulse {
        animation: none;
    }
}

/* 针对移动端微信的特殊优化 */
@media (max-width: 992px) {
    .sidebar {
        /* 更简单的过渡效果 */
        transition: left 0.15s ease-out;
        /* 禁用所有复杂动画 */
        animation: none;
    }
    
    .sidebar::before {
        animation: none;
    }
    
    .sidebar.active {
        left: 0;
        /* 移除阴影，减少渲染负担 */
        box-shadow: none;
    }
} 

/* 微信安卓浏览器特殊修复 */
.wechat-android .sidebar {
    /* 完全禁用过渡效果 */
    transition: none !important;
    /* 禁用所有动画 */
    animation: none !important;
}

.wechat-android .sidebar::before {
    /* 禁用背景动画 */
    animation: none !important;
}

.wechat-android .sidebar.active {
    left: 0 !important;
    /* 移除所有阴影和复杂效果 */
    box-shadow: none !important;
}

/* 微信安卓浏览器禁用所有复杂动画 */
.wechat-android .particles {
    animation: none !important;
}

.wechat-android .gradient-orbs .orb {
    animation: none !important;
}

.wechat-android .floating-ai.active {
    animation: none !important;
}

.wechat-android .floating-pulse {
    animation: none !important;
}

.wechat-android .decoration-circle {
    animation: none !important;
} 

/* --- UI 优化：卡片标题与信息对齐 --- */
.phone-verify-result h3,
.sms-result h3,
.order-result h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

/* 给不同卡片标题添加直观的小图标 */
.phone-verify-result h3::before {
    content: '';
    display: inline-block;
}
.sms-result h3::before {
    content: '✉️';
    display: inline-block;
}
.order-result h3::before {
    content: '';
    display: inline-block;
}

/* 信息区：标签-值 对齐，更易读 */
.verify-info p,
.sms-info p,
.order-summary p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 固定标签宽度，保证对齐整洁 */
.verify-info strong,
.sms-info strong,
.order-summary strong {
    min-width: 6em;
    text-align: left;
}

/* 卡片容器的层次与边框优化 */
.verify-info,
.sms-info,
.order-summary,
.order-list,
.order-item,
.verify-code-section,
.sms-section {
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 输入框观感优化：数字等宽、更聚焦 */
.code-input {
    font-family: SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 2px;
    caret-color: #1976D2;
    -webkit-appearance: none;
}

/* 按钮可访问性：键盘焦点清晰 */
.send-sms-btn:focus-visible,
.verify-code-btn:focus-visible {
    outline: 3px solid rgba(33, 150, 243, 0.5);
    outline-offset: 2px;
}

/* 按钮悬停/按下手感一致性增强 */
.send-sms-btn,
.verify-code-btn {
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* 小屏适配：更紧凑的输入与排版 */
@media (max-width: 420px) {
    .code-input {
        width: 120px;
        padding: 10px 14px;
        font-size: 15px;
    }
    .verify-info p,
    .sms-info p,
    .order-summary p {
        gap: 6px;
    }
    .verify-info strong,
    .sms-info strong,
    .order-summary strong {
        min-width: 5.5em;
    }
}

/* 视觉风格微调：卡片阴影更柔和 */
.phone-verify-result,
.sms-result,
.order-result {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
} 

/* === 主题配色统一覆盖（放在文件末尾以提升优先级） === */
:root {
    /* 统一主题色（提高对比度） */
    --primary-color: #2563eb;          /* 蓝 600 */
    --primary-light: #3b82f6;          /* 蓝 500 */
    --primary-dark: #1e40af;           /* 蓝 800 */

    --success-color: #2e7d32;          /* 绿 700（已与物流状态一致） */
    --warning-color: #e65100;          /* 橙 900 */
    --error-color: #c62828;            /* 红 800 */

    --text-color: #0f172a;             /* 深灰蓝，提高在浅底对比度 */
    --text-light: #475569;             /* 次级文本 */

    /* 统一卡片底色（半透明，便于阅读） */
    --surface-base: rgba(255, 255, 255, 0.85);
    --surface-border: rgba(15, 23, 42, 0.08);

    /* 状态底色（轻度着色） */
    --surface-info: rgba(37, 99, 235, 0.10);
    --surface-success: rgba(46, 125, 50, 0.12);
    --surface-warning: rgba(230, 81, 0, 0.10);
    --surface-error: rgba(198, 40, 40, 0.10);
}

/* === 卡片通用：取消强烈渐变，统一为柔和浅底 + 边框 === */
.phone-verify-result,
.sms-result,
.order-result {
    background: var(--surface-base) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--surface-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* 成功态卡片用淡绿底提升语义识别 */
.phone-verify-result.success,
.sms-result.success,
.order-result.success {
    background: var(--surface-success) !important;
    border-color: rgba(46, 125, 50, 0.28);
}

/* 信息块统一视觉（减少层次混乱） */
.verify-info,
.sms-info,
.order-summary,
.order-list,
.order-item,
.verify-code-section,
.sms-section {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--surface-border);
    color: var(--text-color);
}

/* 标签高亮从金色改为主题强调色，保证可读性 */
.verify-info strong,
.sms-info strong,
.order-summary strong {
    color: var(--primary-dark);
}

/* 标题色统一（保留emoji图标） */
.phone-verify-result h3,
.sms-result h3,
.order-result h3 {
    color: var(--primary-dark) !important;
}

/* === 按钮统一配色 === */
.send-sms-btn {
    background: linear-gradient(45deg, var(--success-color), #1b5e20) !important;
    color: #fff !important;
    border: 1px solid rgba(46, 125, 50, 0.4);
}
.send-sms-btn:hover {
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.35) !important;
}

.verify-code-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    border: 1px solid rgba(37, 99, 235, 0.35);
}
.verify-code-btn:hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35) !important;
}

/* 输入观感与兼容性（补充标准appearance属性） */
.code-input {
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-color);
    border: 1px solid var(--surface-border);
    background: #fff;
}
.code-input:focus {
    border-color: rgba(37, 99, 235, 0.45);
}

/* 轻度优化提示文字颜色 */
.verify-message,
.sms-message,
.code-tip,
.sms-tip,
.register-tip {
    color: var(--text-light);
} 

/* 余额高亮与去商城按钮 */
.balance-section {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}

.balance-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px dashed rgba(37, 99, 235, 0.35);
}

.balance-highlight span {
    color: var(--primary-dark);
    font-weight: 600;
}

.balance-highlight strong {
    color: #0b5ed7;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.go-mall-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 24px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.go-mall-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}

.go-mall-btn:active {
    transform: translateY(0);
} 