/* * CCATI Home Styles (V20.5 Glassmorphism Update) 
 * 重点增强：导航栏的模糊玻璃半透明效果
 * 版本: 2.0.5
 */

/* ==================== 1. 导航栏玻璃拟态效果 (核心修改) ==================== */
.glass-nav {
    /* 初始状态 (页面顶部)：透明度较高，磨砂感较强 */
    /* 调整：增加一点背景白色的不透明度 (0.1 -> 0.15)，同时保持高模糊度 */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(20px); /* 调整：增强模糊程度 (16px -> 20px) */
    -webkit-backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 调整：边框更明显一点 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* 滚动后状态：背景变实，但保留通透感 */
.glass-nav.scrolled {
    /* 调整：滚动后透明度微调，保持通透 (0.85 -> 0.8) */
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(24px) saturate(180%); /* 调整：增强滚动时的模糊 */
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
}

/* 滚动后状态：背景变实，但保留通透感 */
.glass-nav.scrolled {
    /* 使用 85% 不透明度的白色，确保内容可读同时透出背景色 */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px) saturate(180%); /* 增加饱和度，让透出的颜色更鲜艳（类似 iOS 效果） */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* 柔和的大阴影 */
}

/* 滚动时文字颜色适配 (深色) */
.glass-nav.scrolled .nav-text { color: #1e293b !important; } 
.glass-nav.scrolled .logo-text { color: #0f172a !important; }
.glass-nav.scrolled button { border-color: #1e293b; color: #1e293b; }

/* 移动端菜单背景适配 */
#mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* ==================== 2. 全局背景 ==================== */
body { 
    background-color: #f8fafc; 
}

/* ==================== 3. 通用动画定义 ==================== */

/* 淡入动画 */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.animate-fade-in { 
    animation: fadeIn 0.6s ease-out forwards; 
}

/* 呼吸灯动画 */
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}
.live-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ==================== 4. 红参页面专用动画 ==================== */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ==================== 5. 交互特效 ==================== */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==================== 6. 装饰元素 ==================== */
.section-title-line::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #b45309; /* Silk Gold */
    margin-top: 0.5rem;
}