:root {
    --bg-dark: #07111d;
    --bg-card: rgba(21, 34, 45, 0.66);
    --bg-card-hover: rgba(30, 47, 60, 0.86);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #14b8a6;
    --accent-secondary: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #38bdf8 54%, #f59e0b 100%);
    --glow-color: rgba(20, 184, 166, 0.35);
    --nav-height: 80px;
    --border-glass: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent 28%),
        linear-gradient(225deg, rgba(245, 158, 11, 0.08), transparent 30%),
        var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: auto 0 0 0;
    height: 45vh;
    background: linear-gradient(to top, rgba(20, 184, 166, 0.08), transparent);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    gap: 8px;
}

.primary-btn {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--glow-color);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-cta {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-glass);
}

.nav-cta:hover {
    background: white;
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(20, 184, 166, 0.16);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 20px;
    color: #5eead4;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-content p {
    margin-bottom: 32px;
    font-size: 1.25rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    z-index: 2;
    transform: translateY(0);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

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

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, transparent 60%);
    z-index: 1;
    filter: blur(40px);
}

/* Features Section */
.features {
    padding: 100px 0;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon.bg-blue { background: rgba(20, 184, 166, 0.2); color: #5eead4; }
.feature-icon.bg-purple { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.feature-icon.bg-orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    position: relative;
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    font-family: monospace;
    font-size: 0.9rem;
}

.code-line { margin-bottom: 8px; }
.keyword { color: #c678dd; }
.string { color: #98c379; }
.comment { color: #5c6370; font-style: italic; }

.progress-bar-container {
    margin-top: 24px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--glow-color);
}

.tech-list {
    list-style: none;
    margin-top: 24px;
}

.tech-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0 120px;
    text-align: center;
}

.cta-container {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(56, 189, 248, 0.08) 44%, rgba(245, 158, 11, 0.13)),
        rgba(255, 255, 255, 0.035);
    padding: 64px 36px;
    border-radius: 28px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    animation: sheen 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sheen {
    0%, 52% { transform: translateX(-100%); }
    70%, 100% { transform: translateX(100%); }
}

.download-copy,
.download-buttons,
.download-stats,
.download-panel {
    position: relative;
    z-index: 1;
}

.download-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 999px;
    color: #99f6e4;
    background: rgba(7, 17, 29, 0.34);
    font-size: 0.85rem;
    font-weight: 600;
}

.download-copy p {
    max-width: 680px;
    margin: 0 auto;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 32px auto 0;
}

.download-stat {
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(7, 17, 29, 0.38);
    backdrop-filter: blur(16px);
}

.download-stat strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
}

.download-stat span {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    background: rgba(0, 0, 0, 0.86);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.store-btn:hover {
    background: #111;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
}

.store-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.56;
    filter: grayscale(0.35);
}

.store-btn.is-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.store-btn .small {
    display: block;
    font-size: 0.65rem;
    text-align: left;
}

.store-btn .large {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.download-panel {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
    max-width: 820px;
    margin: 30px auto 0;
    text-align: left;
}

.release-card,
.download-tips {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(7, 17, 29, 0.36);
    backdrop-filter: blur(16px);
    padding: 22px;
}

.release-label {
    display: block;
    margin-bottom: 10px;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
}

.release-card p {
    font-size: 1rem;
}

.download-tips {
    list-style: none;
}

.download-tips li {
    position: relative;
    padding-left: 24px;
    color: #cbd5e1;
    font-size: 0.96rem;
}

.download-tips li + li {
    margin-top: 10px;
}

.download-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.7);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 64px 0 24px;
    background: rgba(0,0,0,0.2);
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

/* 与 docs 页面共用的 footer 链接行 */
.docs-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    line-height: 1;
}

.docs-footer-links a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.footer-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.beian-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    line-height: 1;
}

.beian-links a,
.beian-links span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.beian-links a:hover {
    color: var(--accent-primary);
}

.beian-divider {
    color: rgba(255, 255, 255, 0.2) !important;
}

.beian-police {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.beian-icon {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
    filter: brightness(0.7);
    transition: filter 0.2s ease;
}

.beian-police:hover .beian-icon {
    filter: brightness(1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .tech-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .download-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 18px;
    }

    .cta-container {
        padding: 44px 18px;
        border-radius: 22px;
    }

    .download-stats {
        grid-template-columns: 1fr;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }
}
