:root {
    --bg: #f6f8ff;
    --card: rgba(255, 255, 255, 0.86);
    --text: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #7c3aed;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 18%, rgba(124, 58, 237, 0.14), transparent 30rem),
        var(--bg);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-stats,
.btn {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
}

.brand-mark {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 58px;
    align-items: center;
    max-width: 1180px;
    min-height: 680px;
    margin: 0 auto;
    padding: 86px 24px 96px;
}

.hero-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-bg-one {
    width: 280px;
    height: 280px;
    right: 80px;
    top: 94px;
    background: rgba(37, 99, 235, 0.16);
}

.hero-bg-two {
    width: 190px;
    height: 190px;
    left: 42%;
    bottom: 120px;
    background: rgba(124, 58, 237, 0.16);
}

.hero-content,
.hero-card,
.section,
.contact {
    position: relative;
}

.badge,
.section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.badge {
    padding: 8px 14px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(42px, 6.2vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
}

h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 620px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.btn-ghost,
.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--soft);
}

.btn-secondary {
    width: 100%;
}

.btn-download.disabled {
    opacity: 0.52;
    pointer-events: none;
    box-shadow: none;
    cursor: not-allowed;
}

.hero-stats {
    gap: 14px;
    margin-top: 44px;
}

.hero-stats div {
    min-width: 118px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-stats strong {
    display: block;
    font-size: 20px;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.hero-card {
    min-height: 420px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82));
    box-shadow: var(--shadow);
}

.window-bar {
    display: flex;
    gap: 8px;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.window-bar span:nth-child(1) { background: #fb7185; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #34d399; }

.preview-lines {
    margin-top: 36px;
}

.line {
    height: 15px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #bfdbfe, #e0e7ff);
}

.line.wide { width: 78%; }
.line:not(.wide):not(.short) { width: 58%; }
.line.short { width: 42%; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.preview-grid div,
.preview-table {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.preview-grid div {
    min-height: 92px;
}

.preview-table {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 18px;
}

.preview-table span {
    height: 13px;
    border-radius: 999px;
    background: #dbeafe;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 82px 24px;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-tag {
    padding: 6px 12px;
    margin-bottom: 14px;
}

h2 {
    font-size: clamp(30px, 4.2vw, 46px);
    letter-spacing: -1px;
}

.section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.feature-grid,
.download-layout,
.steps {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.download-card,
.step,
.contact {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.feature-card,
.download-card,
.step {
    padding: 28px;
}

.icon,
.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.feature-card h3,
.download-card h3,
.step h3 {
    font-size: 19px;
}

.feature-card p,
.download-desc,
.step p,
.contact p,
.file-meta,
.state-message {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.download-section {
    padding-top: 72px;
}

.download-layout {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: stretch;
}

.main-download {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
}

.download-icon {
    font-size: 22px;
}

.download-icon.secondary {
    background: #0f172a;
}

.version-text {
    margin-top: 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}

.btn-download {
    width: 100%;
    margin-top: 22px;
}

.file-meta {
    min-height: 24px;
}

.release-notes {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.07);
    color: #334155;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.state-message {
    min-height: 20px;
}

.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 20px;
    border-radius: 14px;
    color: #fff;
    background: var(--primary);
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1132px;
    margin: 24px auto 90px;
    padding: 34px;
}

.contact h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 34px);
}

footer {
    padding: 30px 24px 46px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 52px;
    }

    .hero-card {
        min-height: 320px;
    }

    .feature-grid,
    .download-layout,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-download {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .nav {
        align-items: flex-start;
        gap: 14px;
        padding: 14px 18px;
    }

    .nav-links {
        display: none;
    }

    .hero,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-stats,
    .contact {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats div {
        width: 100%;
    }

    .feature-grid,
    .download-layout,
    .steps {
        grid-template-columns: 1fr;
    }

    .contact {
        margin-left: 18px;
        margin-right: 18px;
    }
}
