/* Lite 官网首页 · 落地页增量样式（在 ui.css 之后加载） */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

.landing {
    position: relative;
}

/* ── 顶部导航 ── */
.landing-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.landing-nav .brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
}

.landing-nav .links a {
    transition: color 0.16s ease;
}

.landing-nav.is-scrolled {
    background: rgba(6, 9, 19, 0.82);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    align-items: center;
    justify-content: center;
    transition: 0.16s ease;
}

.nav-toggle:hover {
    background: var(--surface-2);
}

.nav-sheet {
    display: none;
}

/* ── Hero ── */
.hero {
    padding-top: clamp(44px, 7vw, 88px);
}

.hero-copy {
    animation: rise 0.6s ease both;
}

.hero-kicker {
    border-color: rgba(124, 92, 255, 0.32);
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.08));
}

.hero-kicker .flag {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.hero h1 {
    margin-top: 20px;
}

.hero-actions .btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 460px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hero-stats li {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.hero-stats b {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #c9bcff, #7ee7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stats span {
    font-size: 12px;
    color: var(--muted);
}

/* ── Hero 右侧玻璃面板 ── */
.hero-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    animation: rise 0.7s 0.08s ease both;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
}

.panel-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.panel-title b {
    font-size: 14px;
    letter-spacing: 0.02em;
}

.panel-title span {
    font-size: 12px;
    color: var(--muted);
}

.panel-cell {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 8, 18, 0.38);
}

.panel-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.panel-value {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.panel-sub {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    word-break: break-all;
}

.panel-hash {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    color: #c9d4ea;
    word-break: break-all;
}

.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.panel-modules {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-module {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 2px;
    font-size: 12px;
    color: var(--muted);
}

.panel-module::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
    flex: 0 0 6px;
}

.panel-module b {
    margin-left: auto;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

/* ── 区块 ── */
.section {
    padding-top: clamp(44px, 6vw, 76px);
    padding-bottom: clamp(44px, 6vw, 76px);
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(110deg, #b9a7ff, #6ee7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head {
    margin-bottom: 28px;
}

.section-head p {
    max-width: 62ch;
    font-size: 14px;
    line-height: 1.8;
}

/* ── 功能卡片 ── */
.feature-grid {
    gap: 18px;
}

.feature {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.feature-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

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

.feature-icon.cyan {
    background: rgba(34, 211, 238, 0.14);
    color: #9beaf7;
}

.feature-icon.amber {
    background: rgba(251, 191, 36, 0.14);
    color: #ffe2a3;
}

.feature-no {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--faint);
}

.feature h3 {
    margin: 18px 0 8px;
    font-size: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
}

.feature-tag {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

/* ── 下载区 ── */
.download-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    border-radius: 26px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(150deg, rgba(124, 92, 255, 0.2), rgba(255, 255, 255, 0.035) 48%, rgba(34, 211, 238, 0.12));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    overflow: hidden;
}

.download-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(22px, 3.4vw, 34px);
}

.dl-version {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-version b {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(110deg, #d3c7ff, #8be9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dl-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.dl-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dl-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(4, 8, 18, 0.4);
    font-size: 13px;
    min-width: 0;
}

.dl-cell-wide {
    grid-column: span 2;
}

.dl-cell code {
    font-family: var(--mono);
    font-size: 12px;
    color: #c9d4ea;
    word-break: break-all;
}

.dl-cell .state {
    margin-top: 2px;
}

.dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-actions .btn {
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
}

.dl-note {
    margin: 0;
    font-size: 12px;
    color: var(--faint);
    line-height: 1.7;
}

.dl-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 3.4vw, 34px);
    border-left: 1px solid var(--line);
    background: rgba(4, 8, 18, 0.3);
}

.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dl-steps li {
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}

.dl-steps span {
    flex: 0 0 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid rgba(124, 92, 255, 0.32);
    background: rgba(124, 92, 255, 0.18);
    color: #cbbcff;
    font-family: var(--mono);
    font-size: 11px;
}

/* ── 页脚 ── */
.landing-foot {
    align-items: center;
}

.landing-foot p {
    margin: 0;
    max-width: 66ch;
    line-height: 1.7;
}

.landing-foot a {
    transition: color 0.16s ease;
}

.landing-foot a:hover {
    color: var(--text);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.foot-build {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--faint);
}

/* ── 动效 ── */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-copy,
    .hero-panel {
        animation: none;
    }
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
    .hero {
        gap: 32px;
    }

    .hero-stats {
        max-width: 100%;
    }

    .download-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .dl-side {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 86px;
    }

    .landing-nav {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .landing-nav .links {
        display: none;
    }

    .landing-nav .nav-actions {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-sheet {
        display: none;
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        z-index: 29;
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        border-radius: 16px;
        border: 1px solid var(--line-strong);
        background: rgba(10, 14, 28, 0.96);
        box-shadow: var(--shadow);
        backdrop-filter: blur(20px);
    }

    .nav-sheet.is-open {
        display: flex;
    }

    .nav-sheet a {
        padding: 12px 14px;
        border-radius: 11px;
        color: var(--muted);
        font-size: 14px;
    }

    .nav-sheet a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-sheet .btn {
        margin: 6px 4px 4px;
        color: #fff;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-panel {
        min-height: 0;
    }

    .foot-links {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .landing-nav {
        gap: 10px;
    }

    .landing-nav .brand-text span {
        display: none;
    }

    .landing-nav .nav-actions .btn {
        display: none;
    }

    .hero h1 {
        font-size: clamp(30px, 8.4vw, 40px);
    }

    .hero-stats {
        gap: 8px;
    }

    .hero-stats li {
        padding: 12px;
    }

    .hero-stats b {
        font-size: 22px;
    }

    .dl-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .dl-cell-wide {
        grid-column: auto;
    }

    .dl-actions .btn {
        flex: 1 1 auto;
    }

    .landing-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}
