/* 全局样式 - 数字人科技主题 */
:root {
    /* 白天主题 (现在设为默认) */
    --primary-color: #0066ff;
    --secondary-color: #001f4d;
    --accent-color: #00ccff;
    --neon-blue: #0066ff;
    --neon-purple: #8000ff;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #0a0e1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.2);
    
    /* 当前主题变量 - 默认为白天主题 */
    --current-bg: #ffffff;
    --current-text: #333333;
    --current-card-bg: rgba(255, 255, 255, 0.8);
    --current-border: rgba(0, 102, 255, 0.3);
    --current-nav-bg: rgba(255, 255, 255, 0.95);
    --current-particle-bg: linear-gradient(45deg, #f0f8ff, #e6f3ff);
}

/* 夜晚主题 */
:root[data-theme="dark"] {
    --current-bg: var(--dark-bg);
    --current-text: #ffffff;
    --current-card-bg: var(--glass-bg);
    --current-border: rgba(0, 229, 255, 0.3);
    --current-nav-bg: rgba(10, 14, 26, 0.85);
    --current-particle-bg: linear-gradient(45deg, var(--dark-bg), #1a1f3a);
    
    /* 夜晚主题的霓虹色调整 */
    --neon-blue: #00e5ff;
    --neon-purple: #bf00ff;
    --accent-color: #00ccff;
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--current-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--current-bg);
    transition: all 0.3s ease;
}

/* 粒子背景动画 */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--current-particle-bg);
    transition: all 0.3s ease;
}

.particle-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--neon-blue), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-color), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--neon-purple), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--neon-blue), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--accent-color), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes sparkle {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* 导航栏样式 - 玻璃拟态效果 */
.navbar {
    padding: 1rem 0;
    background: var(--current-nav-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--current-border);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 600;
    color: #0066ff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: none;
    transition: all 0.3s ease;
}

/* 夜晚主题下的导航品牌 */
:root[data-theme="dark"] .navbar-brand {
    color: #00e5ff !important;
    text-shadow: 0 0 10px #00e5ff;
}

.navbar-brand:hover {
    text-shadow: none;
    transform: scale(1.05);
}

/* 夜晚主题下的导航品牌悬停 */
:root[data-theme="dark"] .navbar-brand:hover {
    text-shadow: 0 0 20px #00e5ff;
}

.navbar-brand img {
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.nav-link {
    font-weight: 500;
    color: #333333 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

/* 夜晚主题下的导航链接 */
:root[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #0066ff !important;
    text-shadow: none;
}

/* 夜晚主题下的导航链接悬停 */
:root[data-theme="dark"] .nav-link:hover {
    color: #00e5ff !important;
    text-shadow: 0 0 10px #00e5ff;
}

.nav-link:hover::before {
    width: 80%;
}

/* 主横幅区域 - 数字人展示 */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff, #e6f3ff);
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--dark-bg), #1a1f3a, #0a0e1a);
    color: #ffffff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%2300ccff;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%2300ccff;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="200" r="3" fill="url(%23grad)"/><circle cx="800" cy="300" r="2" fill="url(%23grad)"/><circle cx="400" cy="600" r="4" fill="url(%23grad)"/><circle cx="600" cy="100" r="2" fill="url(%23grad)"/><circle cx="100" cy="800" r="3" fill="url(%23grad)"/></svg>');
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #0066ff, #8000ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

/* 夜晚主题下的标题文字 */
:root[data-theme="dark"] .hero-section h1 {
    background: linear-gradient(45deg, #00e5ff, #bf00ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
    text-shadow: none;
    font-weight: 500;
}

/* 夜晚主题下的副标题文字 */
:root[data-theme="dark"] .hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    text-align: center;
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: 2px solid var(--neon-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.6);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
    color: white;
}

/* 3D数字人动画容器 */
.animation-container {
    height: 500px;
    background: var(--glass-bg);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.animation-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    opacity: 0.3;
}

.animation-container::after {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: robot-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--neon-blue));
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

@keyframes robot-bounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

/* 技术架构部分 */
.section-padding {
    padding: 100px 0;
    background: var(--current-bg);
    color: var(--current-text);
    position: relative;
    transition: all 0.3s ease;
}

.section-padding h2 {
    color: #0066ff;
    text-shadow: none;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* 夜晚主题下的章节标题 */
:root[data-theme="dark"] .section-padding h2 {
    color: #00e5ff;
    text-shadow: 0 0 20px #00e5ff;
    font-weight: 600;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: var(--current-card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--current-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

:root[data-theme="dark"] .tech-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
    border-color: var(--neon-blue);
}

.tech-card h3 {
    color: #0066ff;
    margin-bottom: 1rem;
}

/* 夜晚主题下的卡片文字 */
:root[data-theme="dark"] .tech-card h3 {
    color: #00e5ff;
}

.tech-card p {
    color: #4a4a4a;
    font-weight: 400;
}

/* 夜晚主题下的卡片文字 */
:root[data-theme="dark"] .tech-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* 技术图标样式 */
.tech-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.tech-icon i {
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon i {
    transform: scale(1.2) rotateY(20deg);
    filter: drop-shadow(0 0 20px currentColor);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 技术特性标签 */
.tech-features {
    margin-top: 1rem;
}

.tech-features .badge {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)) !important;
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tech-features .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

/* 视频展示部分 */
.video-showcase {
    max-width: 1000px;
    margin: 3rem auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-blue);
}

.tech-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* 产品卡片 */
.product-card {
    background: var(--current-card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--current-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

:root[data-theme="dark"] .product-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.3);
    border-color: var(--neon-blue);
}

.product-card h3 {
    color: #0066ff;
    margin-bottom: 15px;
    text-shadow: none;
    font-weight: 600;
}

/* 夜晚主题下的产品卡片文字 */
:root[data-theme="dark"] .product-card h3 {
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
    font-weight: 600;
}

.product-card p {
    color: #4a4a4a;
    font-weight: 400;
}

/* 夜晚主题下的产品卡片文字 */
:root[data-theme="dark"] .product-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* 产品图标样式 */
.product-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-icon i {
    animation: productIconPulse 2s ease-in-out infinite;
}

.product-card:hover .product-icon i {
    animation: productIconSpin 1s ease-in-out;
    filter: drop-shadow(0 0 25px currentColor);
}

@keyframes productIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes productIconSpin {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* 产品特性列表 */
.product-features {
    text-align: left;
}

.product-features ul {
    margin: 0;
    padding: 0;
}

.product-features li {
    padding: 0.3rem 0;
    color: #555555;
    transition: all 0.3s ease;
}

/* 夜晚主题下的特性列表 */
:root[data-theme="dark"] .product-features li {
    color: rgba(255, 255, 255, 0.8);
}

.product-features li:hover {
    color: #0066ff;
    padding-left: 10px;
}

/* 夜晚主题下的特性列表 */
:root[data-theme="dark"] .product-features li:hover {
    color: #00e5ff;
}

.product-features .fas {
    margin-right: 0.5rem;
    color: #28a745;
    text-shadow: none;
}

/* 夜晚主题下的图标 */
:root[data-theme="dark"] .product-features .fas {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

/* 底部样式 */
.footer {
    padding: 60px 0;
    background: var(--current-particle-bg);
    border-top: 1px solid var(--current-border);
    transition: all 0.3s ease;
}

.footer h4 {
    color: #0066ff;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: 600;
}

/* 夜晚主题下的底部文字 */
:root[data-theme="dark"] .footer h4 {
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
    font-weight: 600;
}

.footer p {
    color: #555555;
}

/* 夜晚主题下的底部文字 */
:root[data-theme="dark"] .footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* 验证对话框样式 - 科技风格 */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--current-border);
    box-shadow: var(--shadow-glow);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .modal-content {
    background: var(--glass-bg);
}

.modal-header {
    border-bottom: 1px solid var(--current-border);
    background: rgba(0, 102, 255, 0.1);
}

:root[data-theme="dark"] .modal-header {
    background: rgba(0, 229, 255, 0.1);
}

.modal-title {
    color: #0066ff;
    text-shadow: none;
    font-weight: 600;
}

/* 夜晚主题下的模态框标题 */
:root[data-theme="dark"] .modal-title {
    color: #00e5ff;
    text-shadow: 0 0 10px #00e5ff;
    font-weight: 600;
}

.modal-body {
    color: var(--current-text);
}

.auth-icon i {
    animation: scan 2s ease-in-out infinite;
    color: #0066ff;
    filter: drop-shadow(0 0 5px #0066ff);
}

@keyframes scan {
    0%, 100% { color: var(--neon-blue); filter: drop-shadow(0 0 10px var(--neon-blue)); }
    50% { color: var(--neon-purple); filter: drop-shadow(0 0 15px var(--neon-purple)); }
}

/* 夜晚主题下的图标颜色调整 */
:root[data-theme="dark"] .auth-icon i {
    color: #00e5ff;
    filter: drop-shadow(0 0 10px #00e5ff);
}

.form-label {
    color: #333333;
    text-shadow: none;
    font-weight: 500;
}

/* 夜晚主题下的表单标签 */
:root[data-theme="dark"] .form-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--current-border);
    color: #333;
    backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .form-control {
    background: var(--glass-bg);
    color: white;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-glow);
    color: #333;
}

:root[data-theme="dark"] .form-control:focus {
    background: var(--glass-bg);
    color: white;
}

.form-control::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

:root[data-theme="dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .animation-container {
        height: 300px;
        margin-top: 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        background: rgba(10, 14, 26, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-blue);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 关于我们部分样式 */
.about-features .feature-item {
    display: flex;
    align-items: center;
    color: #4a4a4a;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.about-features .feature-item:hover {
    color: #0066ff;
    transform: translateX(10px);
}

/* 夜晚主题下的关于我们部分 */
:root[data-theme="dark"] .about-features .feature-item {
    color: rgba(255, 255, 255, 0.9);
}

.about-features .feature-item i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    animation: featureIconBounce 2s ease-in-out infinite;
}

@keyframes featureIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 统计数据卡片 */
.about-stats {
    padding: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 30px var(--neon-blue);
}

.stat-card p {
    color: #555555;
    margin: 0;
    font-weight: 500;
}

/* 夜晚主题下的统计卡片 */
:root[data-theme="dark"] .stat-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* 社交媒体链接 */
.social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: all 0.3s ease;
    color: #666666;
}

.social-links a:hover {
    color: #0066ff;
    transform: translateY(-3px);
    text-shadow: none;
}

/* 夜晚主题下的社交链接 */
:root[data-theme="dark"] .social-links a {
    color: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .social-links a:hover {
    color: #00e5ff;
    text-shadow: 0 0 15px #00e5ff;
}

.social-links .fab {
    transition: all 0.3s ease;
}

.social-links a:hover .fab {
    animation: socialIconWiggle 0.6s ease-in-out;
}

@keyframes socialIconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* 底部分隔线发光效果 */
.footer hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    animation: hrGlow 3s ease-in-out infinite alternate;
}

@keyframes hrGlow {
    0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.8); }
}

/* 响应式优化 */
@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .about-stats {
        margin-top: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .tech-card,
    .product-card {
        margin-bottom: 1rem;
    }
    
    .tech-icon i,
    .product-icon i {
        font-size: 2.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-features .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
    
    .about-features .feature-item i {
        margin-bottom: 0.5rem;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--current-card-bg);
    border: 2px solid var(--current-border);
    border-radius: 50px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px var(--neon-blue);
}

.theme-toggle i {
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    text-shadow: 0 0 15px var(--neon-blue);
    animation: themeIconSpin 0.6s ease-in-out;
}

@keyframes themeIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px var(--neon-blue));
    }
    to {
        filter: drop-shadow(0 0 30px var(--neon-purple));
    }
} 

/* ===========================================
   AI智能客服系统样式
   =========================================== */

/* 客服容器 */
.ai-assistant-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 客服悬浮按钮 */
.ai-assistant-toggle {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-assistant-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.5);
}

.ai-assistant-toggle.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* 客服头像 */
.assistant-avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.assistant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.ai-assistant-toggle:hover .assistant-avatar {
    transform: scale(1.1);
}

/* 在线指示器 */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* 脉冲动画 */
.assistant-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    transform: translate(-50%, -50%);
    animation: assistantPulse 3s infinite;
    opacity: 0.6;
}

@keyframes assistantPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

/* 提示工具 */
.assistant-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--current-card-bg);
    color: var(--current-text);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--current-border);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ai-assistant-toggle:hover .assistant-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.tooltip-arrow {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--current-border);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 聊天对话框 */
.ai-chat-container {
    position: absolute;
    right: 0;
    bottom: 90px;
    width: 400px;
    height: min(600px, calc(100vh - 180px));
    max-height: 75vh;
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* 关键修复: 设置为flex容器 */
    flex-direction: column;
}

.ai-chat-container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
}

/* 夜晚主题下的聊天框 */
:root[data-theme="dark"] .ai-chat-container {
    background: rgba(10, 14, 26, 0.95);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* 聊天头部 */
.chat-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    position: relative;
    overflow: hidden;
    /* 确保头部固定高度，不被挤压 */
    flex-shrink: 0;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: headerShimmer 3s infinite;
}

@keyframes headerShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-right: 15px;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}

.header-info {
    flex: 1;
}

.header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status-text {
    font-size: 12px;
    opacity: 0.9;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 消息区域 */
.chat-messages {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background: var(--current-bg);
    min-height: 200px;
    /* 移除固定max-height，让flex布局自动处理 */
}

:root[data-theme="dark"] .chat-messages {
    background: rgba(10, 14, 26, 0.7);
}

/* 自定义滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--current-border);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* 欢迎消息 */
.welcome-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

/* 消息项 */
.message-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.message-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* 机器人消息容器 */
.bot-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.bot-avatar i {
    color: white;
    font-size: 16px;
    animation: robotBlink 3s infinite;
}

@keyframes robotBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* 用户消息容器 */
.user-message-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.user-avatar i {
    color: white;
    font-size: 16px;
}

/* 消息气泡 */
.message-bubble {
    max-width: 260px;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bot-message {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    color: var(--current-text);
}

:root[data-theme="dark"] .bot-message {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

.user-message {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
}

.message-bubble p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.message-bubble p:last-of-type {
    margin-bottom: 0;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

/* 快捷回复 */
.quick-replies {
    padding: 15px 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--current-bg);
}

:root[data-theme="dark"] .quick-replies {
    background: rgba(10, 14, 26, 0.7);
}

.quick-reply-btn {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    color: var(--current-text);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-reply-btn:hover {
    background: var(--neon-blue);
    color: white;
    border-color: var(--neon-blue);
    transform: translateY(-1px);
}

.quick-reply-btn i {
    font-size: 10px;
}

/* 输入区域 */
.chat-input-area {
    padding: 20px;
    background: var(--current-card-bg);
    border-top: 1px solid var(--current-border);
    border-radius: 0 0 20px 20px;
    /* 确保输入区域固定在底部 */
    flex-shrink: 0;
}

:root[data-theme="dark"] .chat-input-area {
    background: rgba(10, 14, 26, 0.8);
}

.input-container {
    display: flex;
    align-items: center;
    background: var(--current-bg);
    border: 1px solid var(--current-border);
    border-radius: 25px;
    padding: 4px;
    transition: all 0.3s ease;
}

:root[data-theme="dark"] .input-container {
    background: rgba(255, 255, 255, 0.05);
}

.input-container:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

#chatbot-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    color: var(--current-text);
    font-size: 14px;
    border-radius: 20px;
}

#chatbot-input::placeholder {
    color: rgba(128, 128, 128, 0.6);
}

.send-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--current-border);
    color: var(--current-text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.send-btn.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    opacity: 1;
    transform: scale(1.05);
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn i {
    font-size: 14px;
}

/* 打字指示器 */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--current-text);
    opacity: 0.7;
    font-size: 12px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-assistant-container {
        right: 20px;
        bottom: 20px;
    }
    
    .ai-assistant-toggle {
        width: 60px;
        height: 60px;
    }
    
    .assistant-avatar {
        width: 40px;
        height: 40px;
    }
    
    .ai-chat-container {
        width: 320px;
        height: min(500px, calc(100vh - 140px));
        right: -10px;
        bottom: 80px;
    }
    
    .assistant-tooltip {
        display: none;
    }
    
    .message-bubble {
        max-width: 220px;
    }
    
    .quick-replies {
        padding: 10px 15px 0;
    }
    
    .chat-input-area {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ai-chat-container {
        width: 300px;
        height: min(450px, calc(100vh - 120px));
        right: -5px;
        bottom: 80px;
    }
    
    .message-bubble {
        max-width: 180px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-messages {
        min-height: 150px;
        /* 在移动端移除固定高度，让flex处理 */
    }
    
    .header-info h4 {
        font-size: 14px;
    }
    
    .status-text {
        font-size: 11px;
    }
    
    .chat-input-area {
        padding: 15px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .ai-chat-container {
        width: 280px;
        height: 420px;
        right: 0;
    }
    
    .message-bubble {
        max-width: 160px;
        font-size: 13px;
    }
    
    .quick-replies {
        padding: 10px 10px 0;
    }
    
    .quick-reply-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
} 

/* ===========================================
   欢迎界面和功能展示样式
   =========================================== */

/* 欢迎区域 */
.welcome-section {
    padding: 20px;
    background: var(--current-bg);
    overflow-y: auto;
    flex: 1;
}

:root[data-theme="dark"] .welcome-section {
    background: rgba(10, 14, 26, 0.7);
}

/* 欢迎头部 */
.welcome-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--current-border);
}

.bot-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.bot-avatar-large i {
    color: white;
    font-size: 28px;
}

.welcome-header h3 {
    margin: 0 0 5px 0;
    color: var(--current-text);
    font-size: 20px;
    font-weight: 600;
}

.welcome-subtitle {
    margin: 0;
    color: var(--neon-blue);
    font-size: 14px;
    opacity: 0.8;
}

/* 功能卡片 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.feature-card {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 70px;
    justify-content: center;
}

:root[data-theme="dark"] .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
}

.feature-card:hover {
    background: var(--neon-blue);
    color: white;
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.feature-card i {
    font-size: 18px;
    color: var(--neon-blue);
    transition: all 0.3s ease;
}

.feature-card:hover i {
    color: white;
    transform: scale(1.1);
}

.feature-card span {
    font-size: 12px;
    font-weight: 500;
    color: var(--current-text);
    transition: all 0.3s ease;
}

.feature-card:hover span {
    color: white;
}

/* 常见问题区域 */
.faq-section {
    margin-bottom: 25px;
}

.faq-section h4 {
    margin: 0 0 15px 0;
    color: var(--current-text);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-section h4 i {
    color: var(--neon-blue);
    font-size: 14px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

:root[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.15);
}

.faq-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.faq-item i {
    color: var(--neon-blue);
    font-size: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover i {
    transform: translateX(3px);
}

.faq-item span {
    color: var(--current-text);
    font-size: 13px;
    line-height: 1.3;
}

/* 联系信息卡片 */
.contact-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(128, 0, 255, 0.1));
    border: 1px solid var(--current-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

:root[data-theme="dark"] .contact-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(191, 0, 255, 0.1));
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--current-text);
    font-size: 13px;
}

.contact-info i {
    color: var(--neon-blue);
    width: 16px;
    text-align: center;
}

/* 对话消息区域 */
.conversation-messages {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* 快捷操作区域 */
.quick-actions {
    padding: 15px 20px;
    background: var(--current-card-bg);
    border-top: 1px solid var(--current-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 确保快捷操作区域不被挤压 */
    flex-shrink: 0;
}

:root[data-theme="dark"] .quick-actions {
    background: rgba(10, 14, 26, 0.8);
}

.action-group {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    min-height: 60px;
    justify-content: center;
}

.action-btn i {
    font-size: 16px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.action-btn.secondary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.action-btn.secondary:hover {
    background: var(--neon-blue);
    color: white;
    transform: translateY(-2px);
}

.action-btn.outline {
    background: transparent;
    color: var(--current-text);
    border: 1px solid var(--current-border);
}

.action-btn.outline:hover {
    background: var(--current-card-bg);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .feature-card {
        padding: 12px 8px;
        min-height: 60px;
    }
    
    .feature-card i {
        font-size: 16px;
    }
    
    .feature-card span {
        font-size: 11px;
    }
    
    .faq-item {
        padding: 10px 12px;
    }
    
    .faq-item span {
        font-size: 12px;
    }
    
    .action-btn {
        padding: 10px 6px;
        min-height: 50px;
        font-size: 10px;
    }
    
    .action-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 15px;
    }
    
    .feature-cards {
        gap: 6px;
    }
    
    .feature-card {
        padding: 10px 6px;
        min-height: 55px;
    }
    
    .faq-section h4 {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 12px;
    }
    
    .quick-actions {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .action-group {
        gap: 8px;
    }
} 

/* ===========================================
   Markdown格式支持样式
   =========================================== */

/* 行内代码 */
.message-bubble .inline-code {
    background: rgba(0, 102, 255, 0.1);
    color: var(--neon-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

:root[data-theme="dark"] .message-bubble .inline-code {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.3);
}

/* 代码块 */
.message-bubble .code-block {
    background: var(--current-card-bg);
    border: 1px solid var(--current-border);
    border-radius: 8px;
    margin: 10px 0;
    overflow-x: auto;
}

:root[data-theme="dark"] .message-bubble .code-block {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.2);
}

.message-bubble .code-block code {
    display: block;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: var(--current-text);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Markdown列表 */
.message-bubble .markdown-list {
    margin: 8px 0;
    padding-left: 20px;
}

.message-bubble .markdown-list li {
    margin: 4px 0;
    line-height: 1.5;
}

.message-bubble .list-item::marker {
    color: var(--neon-blue);
}

.message-bubble .numbered-item::marker {
    color: var(--neon-blue);
    font-weight: 600;
}

/* Markdown标题 */
.message-bubble .markdown-h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-blue);
    margin: 15px 0 10px 0;
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 5px;
}

.message-bubble .markdown-h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neon-blue);
    margin: 12px 0 8px 0;
}

.message-bubble .markdown-h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--current-text);
    margin: 10px 0 6px 0;
}

:root[data-theme="dark"] .message-bubble .markdown-h1,
:root[data-theme="dark"] .message-bubble .markdown-h2 {
    color: #00e5ff;
}

:root[data-theme="dark"] .message-bubble .markdown-h1 {
    border-bottom-color: #00e5ff;
}

/* Markdown链接 */
.message-bubble .markdown-link {
    color: var(--neon-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
}

.message-bubble .markdown-link:hover {
    color: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

:root[data-theme="dark"] .message-bubble .markdown-link {
    color: #00e5ff;
    border-bottom-color: #00e5ff;
}

:root[data-theme="dark"] .message-bubble .markdown-link:hover {
    color: #bf00ff;
    border-bottom-color: #bf00ff;
    text-shadow: 0 0 5px #bf00ff;
}

/* 粗体和斜体 */
.message-bubble strong {
    font-weight: 700;
    color: var(--neon-blue);
}

.message-bubble em {
    font-style: italic;
    color: var(--neon-purple);
}

:root[data-theme="dark"] .message-bubble strong {
    color: #00e5ff;
}

:root[data-theme="dark"] .message-bubble em {
    color: #bf00ff;
}

/* 返回按钮样式 */
.return-btn {
    background: rgba(255, 255, 255, 0.1) !important;
}

.return-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) translateX(-2px);
}

.return-btn i {
    transition: all 0.3s ease;
}

.return-btn:hover i {
    transform: translateX(-2px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .message-bubble .code-block {
        margin: 8px 0;
    }
    
    .message-bubble .code-block code {
        padding: 10px;
        font-size: 11px;
    }
    
    .message-bubble .markdown-h1 {
        font-size: 16px;
    }
    
    .message-bubble .markdown-h2 {
        font-size: 15px;
    }
    
    .message-bubble .markdown-h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .message-bubble .inline-code {
        font-size: 12px;
        padding: 1px 4px;
    }
    
    .message-bubble .code-block code {
        font-size: 10px;
        padding: 8px;
    }
    
    .message-bubble .markdown-list {
        padding-left: 16px;
    }
} 