/* ==========================================================
 * 玻璃拟态增强层（追加在原有样式之后覆盖视觉，不破坏功能）
 * 亮化柔和 Soft Glassmorphism + 高科技光效
 * ========================================================== */

/* ---- 背景基底 & 全局 ---- */
body {
    background: #ffffff !important;
    color: #1c2b45 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

::selection { background: rgba(0, 194, 255, 0.3); }

/* ---- 背景系统层（fixed 最底层） ---- */
#glass-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}
#glass-bg .gb-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(120,150,255,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,150,255,0.14) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
#glass-bg .gb-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.68;
    animation: gb-float 16s ease-in-out infinite;
}
#glass-bg .gb-orb-tl { width: 620px; height: 620px; background: #6ea8ff; top: -140px; left: -140px; }
#glass-bg .gb-orb-tr { width: 540px; height: 540px; background: #a47cff; top: -100px; right: -120px; animation-delay: -4s; }
#glass-bg .gb-orb-bl { width: 480px; height: 480px; background: linear-gradient(45deg, #5fd8ff, #ff7fbf); bottom: -140px; left: -100px; animation-delay: -8s; }
#glass-bg .gb-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.7), transparent 70%);
}
#glass-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@keyframes gb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 25px) scale(0.97); }
    75% { transform: translate(15px, -10px) scale(1.03); }
}

/* ---- 玻璃卡片通用 ---- */
.glass {
    background: rgba(255, 255, 255, 0.52) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-radius: 20px !important;
    box-shadow: 0 8px 24px -10px rgba(80, 110, 220, 0.35) !important;
}

/* ---- 顶部导航 ---- */
.navbar {
    top: 12px !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 32px) !important;
    max-width: 1240px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.34) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 18px 50px -18px rgba(80, 110, 220, 0.45) !important;
}
.navbar.scrolled { box-shadow: 0 18px 50px -18px rgba(80, 110, 220, 0.5) !important; }
.nav-container { padding: 0.85rem 20px !important; }

/* logo 渐变 */
.logo { color: #1c2b45 !important; }
.logo span {
    /* "止"字：深色渐变背景块 + 白色文字，与浅色玻璃背景形成强对比 */
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6) !important;
    padding: 0.06em 0.22em;
    border-radius: 0.4em;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(61, 123, 255, 0.5);
    display: inline-block;
}

/* 导航链接 */
.nav-links a { color: #1c2b45 !important; font-weight: 600 !important; }
.nav-links a:hover { color: #3d7bff !important; }

/* 下拉菜单 */
.nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 40px rgba(61, 123, 255, 0.18) !important;
}
.nav-dropdown-menu a:hover { background: linear-gradient(135deg, #00c2ff, #8b5cf6) !important; }

/* 时间胶囊 */
.nav-welcome { color: #1c2b45 !important; }
.nav-welcome .welcome-text { color: #1c2b45 !important; font-weight: 600 !important; }
.nav-welcome .nav-time {
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6) !important;
    box-shadow: 0 4px 14px rgba(61, 123, 255, 0.4) !important;
}
.nav-welcome .welcome-text #visitorCount { color: #3d7bff !important; }

/* ---- Hero（保持视频，光效增强） ---- */
.hero { background: transparent !important; }
.hero-overlay { background: linear-gradient(180deg, rgba(10,20,50,0.55), rgba(20,30,60,0.65)) !important; }
.hero-title { color: #fff !important; text-shadow: 0 4px 30px rgba(0,0,0,0.3); position: relative; z-index: 2; }
.hero-content, .hero-container { position: relative; z-index: 2; }
/* hero 内文字统一为纯白实色（不用渐变透明技巧，避免 filter 导致文字透明看不见） */
.hero .gradient-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.gradient-text {
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- 主按钮（渐变滑动，白字高对比） ---- */
.btn-primary {
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6) !important;
    background-size: 160% 160% !important;
    box-shadow: 0 10px 22px -10px rgba(61, 123, 255, 0.7) !important;
    border-radius: 12px !important;
    transition: all 0.4s ease !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
    background-position: 100% 50% !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px -10px rgba(61, 123, 255, 0.8) !important;
    color: #ffffff !important;
}

/* ---- 区块（透明玻璃背景） ---- */
.features, .products, .contact {
    background: transparent !important;
    position: relative;
    z-index: 1;
}
.section-title { color: #1c2b45 !important; }
.section-subtitle { color: #5a6b8c !important; }

/* 功能卡（玻璃） */
.feature-card {
    background: rgba(255, 255, 255, 0.52) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px -10px rgba(80, 110, 220, 0.35) !important;
    transition: all 0.3s ease !important;
}
.feature-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(61, 123, 255, 0.6) !important;
    box-shadow: 0 18px 40px -12px rgba(61, 123, 255, 0.4) !important;
}
.feature-icon {
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 20px -6px rgba(61, 123, 255, 0.6) !important;
}
.feature-card h3 { color: #1c2b45 !important; }
.feature-card p { color: #5a6b8c !important; }

/* 产品卡（玻璃） */
.product-card {
    background: rgba(255, 255, 255, 0.52) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px -10px rgba(80, 110, 220, 0.35) !important;
}
.product-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(61, 123, 255, 0.6) !important;
    box-shadow: 0 18px 40px -12px rgba(61, 123, 255, 0.4) !important;
}
.product-card h3 { color: #1c2b45 !important; }
.product-features li { color: #5a6b8c !important; }
/* 产品卡副标题（tagline） */
.product-tagline {
    font-weight: 700;
    background: linear-gradient(135deg, #00c2ff, #3d7bff 50%, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3d7bff;
    margin: 2px 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}
/* 产品卡内的命令行代码 */
.product-features code {
    display: inline-block;
    font-family: 'SF Mono', Consolas, 'Courier New', monospace;
    font-size: 0.82em;
    background: rgba(61, 123, 255, 0.10);
    color: #3d7bff;
    border: 1px solid rgba(61, 123, 255, 0.25);
    border-radius: 6px;
    padding: 1px 6px;
    margin: 0 2px;
    white-space: nowrap;
}
.product-features li::before { color: #3d7bff !important; }
.product-badge {
    background: linear-gradient(135deg, #00c2ff, #8b5cf6) !important;
    box-shadow: 0 6px 16px -4px rgba(61, 123, 255, 0.6) !important;
}
.btn-outline {
    color: #3d7bff !important;
    border: 2px solid #3d7bff !important;
    border-radius: 12px !important;
}
.btn-outline:hover { background: linear-gradient(135deg, #00c2ff, #8b5cf6) !important; color: #fff !important; }

/* ---- 联系区 ---- */
.contact-item h4 { color: #1c2b45 !important; }
.contact-item p { color: #5a6b8c !important; }
.contact-form input, .contact-form textarea {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 12px !important;
    color: #1c2b45 !important;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #00c2ff !important;
    box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.18) !important;
}

/* ---- 页脚（深玻璃） ---- */
.footer {
    background: linear-gradient(135deg, #16223c, #101a30) !important;
    position: relative;
    z-index: 1;
}
.footer-section h4 { color: #e7edff !important; }
.footer-section a { color: #9fb4d8 !important; }
.footer-section a:hover { color: #fff !important; }
.footer-bottom { color: #9fb4d8 !important; }

/* ---- Toast ---- */
#toast {
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    color: #1c2b45 !important;
    box-shadow: 0 20px 50px rgba(30, 45, 90, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px !important;
}

/* ---- 滚动条 ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00c2ff, #8b5cf6);
    border-radius: 8px;
}

/* ---- 入场动画 ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.feature-card, .product-card {
    animation: fadeInUp 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.feature-card:nth-child(2), .product-card:nth-child(2) { animation-delay: 0.06s; }
.feature-card:nth-child(3), .product-card:nth-child(3) { animation-delay: 0.12s; }
.feature-card:nth-child(4) { animation-delay: 0.18s; }
.feature-card:nth-child(5) { animation-delay: 0.24s; }
.feature-card:nth-child(6) { animation-delay: 0.30s; }
.feature-card:nth-child(7) { animation-delay: 0.36s; }
.feature-card:nth-child(8) { animation-delay: 0.42s; }

/* 保证内容在背景之上 */
main, .container, .hero-container, section { position: relative; z-index: 1; }
