/* ==========================================================================
   CSS Token Variables
   ========================================================================== */
   :root {
    --bg-color: #0b0f19; /* 深邃暗黑背景 */
    --surface-color: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* 科技感强烈的霓虹配色系 */
    --accent-color: #0ea5e9; /* 赛博青 / 科技蓝 */
    --accent-glow: rgba(14, 165, 233, 0.3);
    --secondary-accent: #8b5cf6; /* 深邃紫 */
    --success-accent: #10b981; /* 荧光绿 */
    
    /* 毛玻璃属性参数 */
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Base Styles & Decorators
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 背景全局光晕 */
.bg-glow {
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -2;
    filter: blur(80px);
}

.bg-glow::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    right: -10vw;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* 背景暗黑网格纹理 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-glow {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, border-color 0.4s ease;
}

.hover-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--accent-glow);
    border-color: rgba(14, 165, 233, 0.25);
}

.text-center { text-align: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.version {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.15);
    padding: 3px 8px;
    border-radius: 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px transparent;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.large {
    padding: 14px 40px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section-container {
    padding: 110px 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 20px 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--secondary-accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Media/Image Containers */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
    z-index: 1;
}

.image-placeholder code, .image-container code {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.image-container img, .hero-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    z-index: 10;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 2100 / 1350;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-container {
    width: 100%;
    aspect-ratio: 2100 / 1350;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* ==========================================================================
   The Three Core Pillars (三大核心)
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(255,255,255,0.05); /* Highlight top edge */
}

/* 内置微弱斜向反光特效 */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.pillar-card:hover::before { left: 150%; }

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.pillar-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pillar-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success-accent);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.pillar-stat {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom right, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1; /* 内容推到底部对齐 */
}

.test-condition {
    font-size: 0.78rem !important;
    color: rgba(148, 163, 184, 0.6) !important;
    font-style: italic;
    margin-top: 12px;
    flex-grow: 0 !important;
}

/* ==========================================================================
   Deep Dive Features (图文交错模块)
   ========================================================================== */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 左图右文 / 左文右图 排序控制 */
.layout-right .feature-media { grid-column: 2; grid-row: 1; }
.layout-right .feature-text { grid-column: 1; grid-row: 1; }

.feature-overline {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.feature-text .section-title {
    font-size: 2.2rem;
    text-align: left;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.list-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-list p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Image Carousel (轮播图)
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2100 / 1350;
    overflow: hidden;
    display: block !important; /* 覆盖原来的 flex 布局 */
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
}

.placeholder-text {
    z-index: 1;
    color: var(--text-secondary);
}
.placeholder-text.code-tag {
    margin-top: 15px;
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .dot:hover,
.carousel-indicators .dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.cta-section {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 60px auto;
    border-radius: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary-outline {
    border-color: var(--secondary-accent) !important;
    color: var(--secondary-accent) !important;
    background: rgba(139, 92, 246, 0.08) !important;
}

.btn-secondary-outline:hover {
    background: var(--secondary-accent) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4) !important;
}

.footer {
    text-align: center;
    padding: 60px 20px;
}

/* ==========================================================================
   Animations & Interaction states
   ========================================================================== */
/* 被 JS 控制的滚动透明渐变类 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .layout-right .feature-media, .layout-right .feature-text {
        grid-column: 1;
    }
    
    /* 移动端保证图文按正常垂直流排列 */
    .feature-media { order: 2; }
    .feature-text { order: 1; }
    
    .hero h1 { font-size: 3.8rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .pillars-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .navbar { width: 95%; padding: 12px 20px; }
    .stat-num { font-size: 3rem; }
    .section-title { font-size: 2rem; }
}
