/* Base Settings & CSS Variables */
:root {
    /* 同时支持浅色/深色模式：浏览器夜间模式下不再强制反色，
       而是触发下方 @media (prefers-color-scheme: dark) 适配深色配色 */
    color-scheme: light dark;
    --primary-blue: #007bff;
    --primary-blue-hover: #0066FF;
    --secondary-blue: #E5F0FF;
    --text-main: #1A1A1A;
    --text-light: #666666;
    --bg-main: #FFFFFF;
    --bg-secondary: #F7F9FC;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 51, 153, 0.05);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Sub-page variable aliases */
    --primary-color: var(--primary-blue);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-light);
    --bg-surface: var(--bg-secondary);
    --bg-background: var(--bg-main);
    --border-color: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.icon {
    width: 24px;
    height: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: var(--glass-shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
    margin-left: auto; /* Aligns nav to the far right */
    margin-right: 32px; /* Spacing from the download button */
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: currentColor;
    transition: width 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.nav a:hover {
    color: var(--primary-blue);
}

.nav a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.justify-center {
    justify-content: center;
}

.hero-trust {
    display: flex;
    gap: 20px;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-mockup {
    position: relative;
    perspective: 1000px;
}

/* Glass Mockup for PC */
.glass-mockup {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.15), inset 0 0 0 1px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
    z-index: 2;
}
.glass-mockup:hover { transform: rotateY(0) rotateX(0); }

.glass-mockup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.mockup-logo {
    width: 80px; height: 80px; border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2); margin-bottom: 24px;
}
.mockup-title { font-size: 1.375rem; font-weight: 700; margin-bottom: 6px; }
.mockup-subtitle { font-size: 0.8125rem; color: var(--text-light); }

/* Glowing Button */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: buttonGlow 3s infinite;
}
@keyframes buttonGlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.mockup-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    left: -40px;
}

.floating-card-2 {
    bottom: 30%;
    right: -40px;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 10%;
    left: -30px;
    animation-delay: 4s;
}

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

/* Features */
.features {
    padding: 50px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary-blue);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 2.5rem 0;
    background-color: var(--bg-secondary);
}

/* Carousel */
.carousel {
    position: relative;
    width: 100%;
    padding: 10px 0 50px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 560px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
    will-change: transform, opacity;
}

.carousel-slide .screenshot-img {
    height: 550px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
    transform: scale(0.82);
    opacity: 0.5;
}

/* Active: full size centered */
.carousel-slide.active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

.carousel-slide.active .screenshot-img {
    transform: scale(1);
    opacity: 1;
}

/* Previous: peeking from left */
.carousel-slide.prev {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    transform: translateX(-50%);
}

.carousel-slide.prev .screenshot-img {
    transform: scale(0.82);
    opacity: 0.55;
}

/* Next: peeking from right */
.carousel-slide.next {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    transform: translateX(50%);
}

.carousel-slide.next .screenshot-img {
    transform: scale(0.82);
    opacity: 0.55;
}

/* Carousel Nav Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-prev { left: max(8px, calc(50% - 330px)); }
.carousel-next { right: max(8px, calc(50% - 330px)); }

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #B0BEC5;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
    z-index: 5;
}

.carousel-dot:hover {
    background: #90A4AE;
}

.carousel-dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

/* Compatibility */
.compatibility {
    padding: 60px 0;
    background: #FFFFFF;
}

.compatibility-inner {
    text-align: center;
}

.compat-content h2 {
    font-size: 2.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.compat-content p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}



/* CTA Section */
.cta {
    padding: 40px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-blue), #007bff);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.cta-box h2 {
    font-size: 2.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 36px;
}

.cta-box .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.cta-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cta-box .btn-primary {
    background: #FFFFFF;
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-desc {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    width: fit-content;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-links a:hover::before {
    transform: scaleX(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    color: var(--primary-blue);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile menu can be added later if needed */
    }
    
    /* Optimize Spacing */
    .hero {
        padding: 120px 0 30px;
    }
    
    .features, .compatibility, .cta {
        padding: 30px 0;
    }
    
    /* Typography Adjustments */
    .hero-title {
        font-size: 1.875rem; /* Smaller title for mobile */
        margin-bottom: 14px;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 28px;
    }
    
    .section-header h2, .compat-content h2, .cta-box h2 {
        font-size: 1.625rem;
    }
    
    .section-header p, .compat-content p {
        font-size: 0.875rem;
    }
    
    .cta-box p {
        font-size: 0.9375rem;
    }
    
    /* Button Adjustments */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 32px;
    }
    
    .btn-large {
        width: 100%; /* Full width buttons on mobile */
        padding: 12px 20px;
        font-size: 0.9375rem;
    }
    
    .floating-card-1 {
        left: -15px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .floating-card-2 {
        right: -15px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .floating-card-3 {
        left: -12px;
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    /* Footer Adjustments */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }

    .footer-desc {
        margin: 0 auto;
    }
    
    .footer-links h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 0.875rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

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

/* Loading Spinner (for download buttons) */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

/* Mobile Sticky Bar (Hidden on PC) */
.mobile-sticky-bar { display: none; }

/* Responsive Overrides */
@media (max-width: 768px) {
    body { padding-bottom: 70px; } /* Space for sticky bar (matches bar height: 12+51+12+1) */
    
    /* Hamburger Menu
       图标横线用 currentColor，颜色绑定到按钮 color 属性，
       与 .logo-text 同源于 --text-main，夜间模式下两者同步切换、颜色始终一致。 */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 0;
        width: 32px;
        height: 24px;
        justify-content: center;
        color: var(--text-main); /* 横线颜色源，与 logo 文字同变量 */
    }
    .hamburger span {
        display: block; width: 24px; height: 2px;
        background: currentColor; transition: var(--transition-smooth); border-radius: 2px;
    }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Mobile Nav Overlay */
    .nav {
        position: fixed;
        top: 80px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        clip-path: circle(0 at top right);
        transition: clip-path 0.5s ease-in-out;
        display: flex !important;
        align-items: center;
        gap: 24px;
    }
    .nav.open { clip-path: circle(150% at top right); }
    
    /* Mobile Sticky Bar */
    .mobile-sticky-bar {
        display: block;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0,0,0,0.05);
        padding: 12px 24px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
        z-index: 999;
    }
    .sticky-inner { display: flex; justify-content: space-between; align-items: center; }
    .sticky-info { display: flex; align-items: center; gap: 12px; }
    .sticky-info img { width: 40px; height: 40px; border-radius: 8px; }
    .sticky-info h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 2px; }
    .sticky-info p { font-size: 0.6875rem; color: var(--text-light); }
    
    /* Hero BG Tech Vibe */
    .hero-bg-glow { 
        background: radial-gradient(circle, rgba(0, 102, 255, 0.2) 0%, rgba(0, 198, 255, 0.1) 40%, rgba(255,255,255,0) 70%); 
        animation: pulseBg 4s infinite alternate; 
    }
    
    /* Horizontal Scrolling Features */
    .features-grid {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 16px;
        padding: 0 16px 24px;
    }
    .feature-card {
        flex: 1 1 100%;
        min-width: unset;
        padding: 28px 24px;
    }
    .feature-card h3 {
        font-size: 1.1875rem;
    }
    .feature-card p {
        font-size: 0.875rem;
    }
    /* Carousel mobile */
    .carousel {
        padding: 10px 0 40px;
    }
    .carousel-viewport {
        max-width: 100%;
        height: 450px;
    }
    .carousel-slide.prev {
        transform: translateX(-38%);
    }
    .carousel-slide.next {
        transform: translateX(38%);
    }
    .carousel-slide .screenshot-img {
        height: 400px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
    
    /* Hide top header action on mobile (use sticky bar instead) */
    .header-action { display: none; }
    
    .glass-mockup { width: 240px; height: 480px; border-radius: 30px; transform: none; }
}

/* ============================================
   Sub-page Common Styles (team/jobs/contact/help/privacy/terms/report)
   ============================================ */
.page-content {
    padding: 120px 0 60px;
    min-height: 70vh;
}
.page-content .container {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}
.section-title {
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}
.doc-section {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}
.doc-section h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 40px 0 20px;
}
.doc-section p {
    margin-bottom: 15px;
}
.doc-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
.doc-section li {
    margin-bottom: 12px;
}
.doc-section strong {
    color: var(--text-primary);
    font-weight: 600;
}
.job-card, .faq-item {
    background: var(--bg-background);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover, .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.job-card h4, .faq-item h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.contact-box {
    background: rgba(43, 116, 255, 0.05);
    padding: 25px 25px 25px 29px;
    border-radius: 12px;
    margin-top: 30px;
    position: relative;
}
.contact-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}
.contact-box p {
    margin-bottom: 10px;
}
.contact-box p:last-child {
    margin-bottom: 0;
}

/* Sub-page mobile responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 100px 0 40px;
    }
    .page-content .container {
        padding: 30px 20px;
        border-radius: 16px;
        margin: 0 15px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .doc-section {
        font-size: 1rem;
    }
    .doc-section h3 {
        font-size: 1.25rem;
        margin: 30px 0 15px;
    }
    .job-card, .faq-item {
        padding: 20px;
    }
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* ============================================
   Tab 组件（用于面板内）
   ============================================ */
.info-tabs {
    max-width: 100%;
}
.tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}
.tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    font-family: inherit;
    display: inline-block;
}
.tab-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: currentColor;
    transition: width 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}
.tab-btn::after {
    display: none;
}
.tab-btn:hover {
    color: var(--text-main);
}
.tab-btn:hover::before {
    width: 100%;
}
.tab-btn.active {
    color: var(--primary-blue);
    font-weight: 600;
}
.tab-btn.active::before {
    width: 100%;
}

.tab-panels {
    position: relative;
}
.tab-panel {
    display: none;
    padding: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 20px 20px;
    animation: tabFadeIn 0.3s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 信息区段内复用子页样式 */
.tab-panel .doc-section {
    max-width: 100%;
}

/* ============================================
   侧滑面板系统
   ============================================ */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    pointer-events: none;
    transition: background 0.35s ease;
}
.panel-overlay.active {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.panel-slide {
    position: fixed;
    top: 0;
    right: 0;
    width: 580px;
    max-width: 92vw;
    height: 100vh;            /* 基础回退：所有浏览器 */
    background: #fff;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}
.panel-slide.active {
    transform: translateX(0);
}

/* 视口高度兼容：移动端浏览器地址栏/底部工具栏会遮挡 100vh，
   导致侧滑面板底部内容被裁切、显示不全。
   优先使用动态视口单位 dvh（随工具栏伸缩）；不支持 dvh 的浏览器
   改用 JS 实测的 --app-vh（可见视口高度）兜底，彻底避免内容被遮挡。 */
@supports (height: 100dvh) {
    .panel-slide {
        height: 100dvh;
    }
}
@supports not (height: 100dvh) {
    .panel-slide {
        height: var(--app-vh, 100vh);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.panel-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-main);
}
.panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    background: none;
    border: none;
}
.panel-close:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 兼容底部安全区（手势导航条 / Home Indicator），避免末尾内容被遮挡 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 面板内 Tab 样式（复用现有 .tab-bar / .tab-panel，去掉外层圆角） */
.panel-body .tab-bar {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
}
.panel-body .tab-panels {
    border: none;
}
.panel-body .tab-panel {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 28px;
}

/* 面板移动端适配 */
@media (max-width: 768px) {
    .panel-slide {
        width: 100vw;
        max-width: 100vw;
    }
    .panel-header {
        padding: 16px 20px;
    }
    .panel-title {
        font-size: 1.2rem;
    }
    .panel-body .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .panel-body .tab-panel {
        padding: 20px 16px;
    }
    .panel-body .doc-section h3 {
        font-size: 1.15rem;
        margin: 24px 0 12px;
    }
    .panel-body .doc-section p,
    .panel-body .doc-section li {
        font-size: 0.95rem;
    }
}

/* 隐藏 template 元素 */
template {
    display: none !important;
}

/* ============================================
   深色模式适配（浏览器/系统夜间模式自动生效）
   原理：声明 color-scheme: light dark 后，浏览器不再强制反色页面，
   而是触发本媒体查询，由页面自行切换为深色配色。
   汉堡菜单图标横线随 --text-main 自动变浅，在深色头部背景上清晰可见。
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #E6EAF0;
        --text-light: #8B949E;
        --bg-main: #0E1116;
        --bg-secondary: #161A21;

        --glass-bg: rgba(20, 24, 31, 0.75);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

        --secondary-blue: rgba(0, 102, 255, 0.18);
        --border-color: #242932;

        /* 主题色保持品牌蓝，hover 略提亮以保证深色下对比度 */
        --primary-blue: #2B8AFF;
        --primary-blue-hover: #4D9DFF;
    }

    body {
        background-color: var(--bg-main);
        color: var(--text-main);
    }

    /* 头部玻璃层：边框改为浅色半透明，避免在深色背景上消失 */
    .header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* 次级按钮：深色背景 + 浅色边框 */
    .btn-secondary {
        background: var(--bg-main);
        color: var(--text-main);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    .btn-secondary:hover {
        background: var(--bg-secondary);
        border-color: #3A4150;
    }

    /* 特性卡片：硬编码白底改为深色 */
    .feature-card {
        background: #1A1F27;
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    .feature-card:hover {
        box-shadow: 0 12px 40px rgba(0, 102, 255, 0.18);
    }

    /* 兼容性区块硬编码白底 */
    .compatibility {
        background: var(--bg-main);
    }

    /* 轮播导航按钮 */
    .carousel-btn {
        background: rgba(30, 35, 42, 0.92);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    .carousel-btn:hover {
        background: #232934;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    }
    .carousel-dot {
        background: #3A4150;
    }
    .carousel-dot:hover {
        background: #4D5566;
    }

    /* 玻璃手机模型：深色玻璃质感 */
    .glass-mockup {
        background: linear-gradient(135deg, rgba(40, 46, 56, 0.5), rgba(20, 24, 31, 0.3));
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
    .mockup-card {
        background: rgba(30, 35, 42, 0.92);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        color: var(--text-main);
    }

    /* 页脚分隔线 */
    .footer {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* 移动端导航浮层 + 底部悬浮条：深色背景 */
    .nav {
        background: rgba(20, 24, 31, 0.98);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    .mobile-sticky-bar {
        background: rgba(20, 24, 31, 0.9);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }

    /* 侧滑面板：深色 */
    .panel-slide {
        background: var(--bg-main);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    }
    .panel-body .tab-bar {
        background: var(--bg-main);
    }
    .panel-close {
        color: var(--text-light);
    }
    .panel-close:hover {
        background: var(--bg-secondary);
        color: var(--text-main);
    }

    /* 联系信息卡片浅蓝底在深色下过亮，降低透明度 */
    .contact-box {
        background: rgba(43, 138, 255, 0.1);
    }

    /* CTA 区蓝色渐变卡片本身即深色，文字保持白色，无需调整；
       但其内的次级按钮需保持可读 */
    .cta-box .btn-secondary {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    .cta-box .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}
