/* ==========================================================================
   HMCL 官网 · 主样式表
   设计语言：参考站 hmcl.tech 深空紫蓝风
             深色底 #07080f + 品牌紫蓝 #9E9EFF + 浅灰白标题
             背景 渐变 #0a1628 → #05060a，青/绿光晕点缀
   全站响应式：1920 / 1440 / 1200 / 992 / 768 / 480 / 360
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    /* 底层：深空黑蓝（取自参考站 --hmcl-bg-*） */
    --bg: #07080f;
    --bg-soft: #0a0d16;
    --bg-card: #0d1019;
    --bg-elev: #111523;
    /* 卡片悬浮/表头用的紫蓝 tint */
    --bg-tint: rgba(158, 158, 255, 0.08);

    /* 描边：深色主题下用白色低透明度（参考站 --hmcl-border-subtle） */
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* 主色：取自参考站 #9E9EFF（紫蓝） */
    --brand: #9E9EFF;
    --brand-2: #7f7fff;
    --brand-light: #bcbcff;
    --brand-dim: #0a1628;
    --brand-soft: rgba(158, 158, 255, 0.12);
    --brand-glow: rgba(158, 158, 255, 0.35);
    /*
     * 交互色深一档：深色主题里按钮底色用主色本身，
     * 上面压深墨文字（对比 ≈ 8:1，WCAG AAA）。
     */
    --brand-hover: #b3b3ff;
    --brand-btn: #9E9EFF;
    /* 品牌底上的文字色（深空墨） */
    --brand-on: #0a0c16;

    /* 文本：浅灰白阶梯（参考站 --hmcl-text-*） */
    --text: #e2e8f0;
    --text-2: #b6c2d4;
    --text-3: #94a3b8;
    --heading: #f8fafc;

    --warn: #fbbf24;
    --danger: #f87171;
    --success: #34d399;
    --blue: #9E9EFF;
    /* 光晕点缀（参考站 --hmcl-cyan / --hmcl-glow / --hmcl-violet） */
    --glow-cyan: rgba(34, 211, 238, 0.25);
    --glow-green: rgba(52, 211, 153, 0.35);
    --glow-violet: rgba(167, 139, 250, 0.12);

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.65);
    --shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
    --shadow-brand: 0 14px 34px -14px rgba(158, 158, 255, 0.45);

    --container: 1200px;
    --nav-h: 68px;

    --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-btn);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

a:hover {
    color: var(--brand-hover);
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--heading);
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(158, 158, 255, 0.32);
    color: #f8fafc;
}

/* 跳转到主内容（无障碍） */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 999;
    padding: 10px 16px;
    background: var(--brand);
    color: var(--brand-on);
    font-weight: 700;
    border-radius: var(--r-sm);
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 12px;
    color: var(--brand-on);
}

/* ---------- 3. 布局工具 ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--tight {
    padding: 64px 0;
}

.section--alt {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
}

.section__head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.section__title {
    font-size: clamp(24px, 3.4vw, 38px);
    margin-bottom: 14px;
}

.section__desc {
    color: var(--text-2);
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: block;
}

.icon--sm {
    width: 18px;
    height: 18px;
}

/* ---------- 4. 按钮 ---------- */
.btn {
    --btn-h: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
        background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, #b3b3ff 0%, var(--brand) 100%);
    color: var(--brand-on);
    box-shadow: 0 10px 30px -12px var(--brand-glow);
}

.btn--primary:hover {
    color: var(--brand-on);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px var(--brand-glow);
}

.btn--ghost {
    background: rgba(158, 158, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
    color: var(--text);
    background: rgba(158, 158, 255, 0.08);
    border-color: rgba(158, 158, 255, 0.4);
    transform: translateY(-2px);
}

.btn--sm {
    --btn-h: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

.btn__arrow {
    transition: transform 0.2s var(--ease);
}

/* 主按钮上的版本号小胶囊。
   之前复用 .dl-item__ver（品牌蓝字 + 浅蓝底），放到蓝色主按钮上
   实测对比度只有 1.00:1（渐变起点）～1.31:1（终点），等于看不见。
   这里改为半透明白底 + 白字，alpha 取 0.10 是 A/B 核算后的折中：
   品牌底 #9E9EFF 上压 --brand-on 深墨字，对比约 8:1
   WCAG AA 大字号（≥3:1），且胶囊轮廓仍能被白边勾出来。 */
.btn__ver {
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: var(--brand-on);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    white-space: nowrap;
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ---------- 5. 顶栏 ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(7, 8, 15, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 8, 15, 0.9);
    box-shadow: 0 6px 20px -18px rgba(0, 0, 0, 0.8);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* logo 右侧的站名：主标题 + 英文副标题（副标题来自后台 site_subtitle） */
.logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
}

.logo__name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo__sub {
    margin-top: 2px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo:hover .logo__name { color: var(--brand-hover); }

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav__link:hover {
    color: var(--text);
    background: rgba(158, 158, 255, 0.08);
}

.nav__link.is-active {
    color: var(--brand);
    background: rgba(158, 158, 255, 0.1);
}

.header__cta {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    color: var(--text);
}

.nav-toggle:hover {
    background: rgba(158, 158, 255, 0.08);
}

.nav-toggle__bars {
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 99;
    display: none;
    flex-direction: column;
    padding: 12px 20px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
}

.mobile-nav.is-open {
    display: flex;
    animation: slideDown 0.24s var(--ease);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav__link {
    padding: 14px 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    border-bottom: 1px solid var(--line);
}

.mobile-nav__link.is-active {
    color: var(--brand);
}

.mobile-nav .btn {
    margin-top: 18px;
}

/* ---------- 6. 首页 Hero ---------- */
.hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, rgba(10, 22, 40, 0) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 620px;
    background:
        radial-gradient(50% 60% at 22% 18%, rgba(158, 158, 255, 0.16), transparent 70%),
        radial-gradient(45% 55% at 82% 8%, rgba(125, 211, 255, 0.2), transparent 72%);
    pointer-events: none;
    filter: blur(10px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(158, 158, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(158, 158, 255, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading);
    background: rgba(158, 158, 255, 0.1);
    border: 1px solid rgba(158, 158, 255, 0.26);
    border-radius: 999px;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand-glow);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(158, 158, 255, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(158, 158, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(158, 158, 255, 0);
    }
}

.hero__title {
    font-size: clamp(30px, 4.4vw, 54px);
    line-height: 1.18;
    letter-spacing: -0.022em;
    margin-bottom: 20px;
}

.hero__title em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(100deg, #bcbcff 0%, #9E9EFF 45%, #1b2b57 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero__desc {
    max-width: 560px;
    font-size: 17px;
    color: var(--text-2);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
}

.hero__meta-num {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.hero__meta-label {
    font-size: 13px;
    color: var(--text-3);
}

.hero__visual {
    position: relative;
}

.hero__visual img {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: var(--bg-elev);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
}

/* 首页 hero 截图占位比例（防 CLS）；其他页面的截图按自身比例显示 */
.hero .hero__visual img {
    aspect-ratio: 984 / 601;
}

.hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(17, 21, 35, 0.92);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
}

.hero__float--tl {
    top: -16px;
    left: -18px;
}

.hero__float--br {
    right: -14px;
    bottom: -18px;
}

.hero__float .icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

/* ---------- 7. 信任条 ---------- */
.trustbar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 18px 0;
}

.trustbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 34px;
    font-size: 13.5px;
    color: var(--text-3);
}

.trustbar__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trustbar__item .icon {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

/* ---------- 8. 功能卡 ---------- */
.card {
    position: relative;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s var(--ease), border-color 0.24s var(--ease),
        box-shadow 0.28s var(--ease), background 0.24s var(--ease);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 158, 255, 0.35);
    box-shadow: 0 22px 44px -26px rgba(158, 158, 255, 0.45);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.1);
    border: 1px solid rgba(158, 158, 255, 0.2);
}

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

.card__title {
    font-size: 17px;
    margin-bottom: 8px;
}

.card__text {
    font-size: 14.5px;
    color: var(--text-2);
}

.card__tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.12);
    border-radius: 999px;
}

/* ---------- 9. 下载区 ---------- */
.download-box {
    padding: 40px;
    background: linear-gradient(145deg, rgba(158, 158, 255, 0.1) 0%, #0a0d17 42%, var(--bg-card) 100%);
    border: 1px solid rgba(158, 158, 255, 0.26);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
}

.download-box__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.download-box__title {
    font-size: clamp(20px, 2.4vw, 28px);
    margin-bottom: 8px;
}

.download-box__sub {
    font-size: 14px;
    color: var(--text-2);
}

.version-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.12);
    border: 1px solid rgba(158, 158, 255, 0.3);
    border-radius: 999px;
    white-space: nowrap;
}

.dl-list {
    display: grid;
    gap: 12px;
}

.dl-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dl-item:hover {
    border-color: rgba(158, 158, 255, 0.3);
    background: var(--brand-soft);
}

.dl-item--primary {
    border-color: rgba(158, 158, 255, 0.34);
    background: rgba(158, 158, 255, 0.06);
}

.dl-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(158, 158, 255, 0.12);
    color: var(--brand);
}

.dl-item__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.dl-item__ver {
    padding: 1px 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.14);
    border-radius: 6px;
}

.dl-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--text-3);
}

.dl-item__code {
    font-family: var(--mono);
    color: var(--warn);
}

/*
 * SHA-256 校验值：给用户下载后核对文件用。
 * 哈希串 64 位很长，在窄屏必须能断行，否则会把卡片撑破。
 */
.dl-item__hash {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.dl-item__hash code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
    /* 长哈希串在窄屏内换行，而不是撑宽卡片 */
    word-break: break-all;
    -webkit-user-select: all;
    user-select: all;
}

.dl-item__hash-tag {
    flex: none;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-glow);
    border-radius: 5px;
}

.download-box__foot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-3);
    background: rgba(245, 185, 66, 0.07);
    border: 1px solid rgba(245, 185, 66, 0.18);
    border-radius: var(--r);
}

.download-box__foot .icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--warn);
}

/* ---------- 10. 步骤 ---------- */
.steps {
    counter-reset: step;
    display: grid;
    gap: 18px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.step__num {
    counter-increment: step;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 18px;
    font-weight: 800;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.09);
    border: 1px solid rgba(158, 158, 255, 0.22);
    border-radius: 14px;
    font-variant-numeric: tabular-nums;
}

.step__num::before {
    content: counter(step, decimal-leading-zero);
}

.step__title {
    font-size: 16.5px;
    margin-bottom: 6px;
}

.step__text {
    font-size: 14.5px;
    color: var(--text-2);
}

/* ---------- 11. 场景 ---------- */
.scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.scene__item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.2s var(--ease), transform 0.22s var(--ease);
}

.scene__item:hover {
    transform: translateY(-3px);
    border-color: rgba(158, 158, 255, 0.25);
}

.scene__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.1);
}

.scene__title {
    font-size: 16px;
    margin-bottom: 5px;
}

.scene__text {
    font-size: 14px;
    color: var(--text-2);
}

/* ---------- 12. 文章卡 ---------- */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
        box-shadow 0.26s var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(158, 158, 255, 0.3);
    box-shadow: 0 22px 44px -30px #0F172A;
}

.post-card__tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 10px;
    margin-bottom: 12px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--brand);
    background: rgba(158, 158, 255, 0.1);
    border-radius: 6px;
}

.post-card__title {
    font-size: 16.5px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.post-card__title a {
    color: var(--text);
}

.post-card__title a:hover {
    color: var(--brand);
}

.post-card__desc {
    flex: 1;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-3);
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* ---------- 13. 友情链接 ---------- */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.links__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.084);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all 0.2s var(--ease);
}

.links__item:hover {
    color: var(--brand);
    border-color: rgba(158, 158, 255, 0.4);
    background: rgba(158, 158, 255, 0.08);
    transform: translateY(-2px);
}

.links__item .icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.links__scope {
    display: inline-block;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-3);
    background: rgba(158, 158, 255, 0.08);
    border-radius: 4px;
}

/* ---------- 14. FAQ ---------- */
.faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}

.faq__item[open] {
    border-color: rgba(158, 158, 255, 0.25);
    background: rgba(158, 158, 255, 0.04);
}

.faq__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 8px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.faq__item[open] .faq__q::after {
    transform: rotate(-135deg);
    border-color: var(--brand);
}

.faq__a {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--text-2);
}

/* ---------- 15. 内页通用 ---------- */
.page-head {
    position: relative;
    padding: 56px 0 44px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(47, 174, 99, 0.07), transparent);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-3);
}

.breadcrumb a {
    color: var(--text-3);
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb__sep {
    opacity: 0.5;
}

.page-head__title {
    font-size: clamp(26px, 3.6vw, 40px);
    margin-bottom: 12px;
}

.page-head__desc {
    max-width: 760px;
    font-size: 16px;
    color: var(--text-2);
}

/* ---------- 16. 文章正文 ---------- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}

.prose {
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--text-2);
}

.prose > * + * {
    margin-top: 18px;
}

.prose h2 {
    font-size: 23px;
    margin-top: 44px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.prose h3 {
    font-size: 19px;
    margin-top: 34px;
    color: var(--text);
}

.prose h4 {
    font-size: 17px;
    margin-top: 26px;
    color: var(--text);
}

.prose p {
    color: var(--text-2);
}

.prose strong {
    color: var(--text);
    font-weight: 700;
}

.prose a {
    text-decoration: underline;
    text-decoration-color: rgba(158, 158, 255, 0.4);
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    padding-left: 4px;
}

.prose ul li {
    position: relative;
    padding-left: 22px;
    margin-top: 9px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--brand);
    opacity: 0.75;
}

.prose ol {
    counter-reset: ol;
}

.prose ol li {
    position: relative;
    padding-left: 28px;
    counter-increment: ol;
    margin-top: 9px;
}

.prose ol li::before {
    content: counter(ol) ".";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

.prose blockquote {
    margin: 26px 0;
    padding: 16px 22px;
    color: #b6c2d4;
    background: rgba(158, 158, 255, 0.07);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--r) var(--r) 0;
}

.prose blockquote p {
    color: inherit;
    margin: 0;
}

.prose code {
    padding: 2px 6px;
    font-family: var(--mono);
    font-size: 0.9em;
    color: #b6c2d4;
    background: rgba(158, 158, 255, 0.1);
    border-radius: 5px;
    word-break: break-word;
}

.prose pre {
    padding: 18px 20px;
    overflow-x: auto;
    background: #E2E8F0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 14px;
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}

.prose pre code {
    padding: 0;
    background: none;
    color: #f8fafc;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-bottom: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
}

.article__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article__meta .icon {
    width: 15px;
    height: 15px;
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.side-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 14px;
}

.side-card__title .icon {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.side-list li + li {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.side-list a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
}

.side-list a:hover {
    color: var(--brand);
}

.side-list small {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

/* ---------- 17. 更新日志 ---------- */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(158, 158, 255, 0.6), rgba(158, 158, 255, 0.05));
}

.timeline__item {
    position: relative;
    padding-bottom: 34px;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--brand-dim);
}

.timeline__item--latest::before {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 5px rgba(158, 158, 255, 0.16);
}

.timeline__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.timeline__ver {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.timeline__date {
    font-size: 13px;
    color: var(--text-3);
}

.tag-new {
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-on);
    background: var(--brand);
    border-radius: 999px;
}

.timeline__body {
    padding: 16px 20px;
    font-size: 14.5px;
    color: var(--text-2);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.timeline__body p + p {
    margin-top: 8px;
}

/* ---------- 18. 列表页 ---------- */
.list {
    display: grid;
    gap: 16px;
}

.list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px 28px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: border-color 0.2s var(--ease), transform 0.22s var(--ease),
        background 0.2s var(--ease);
}

.list__item:hover {
    transform: translateY(-2px);
    border-color: rgba(158, 158, 255, 0.3);
    background: var(--brand-soft);
}

.list__title {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.list__title a {
    color: var(--text);
}

.list__title a:hover {
    color: var(--brand);
}

.list__desc {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 12px;
}

.list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12.5px;
    color: var(--text-3);
}

.list__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-3);
    background: rgba(158, 158, 255, 0.08);
    transition: all 0.22s var(--ease);
}

.list__item:hover .list__arrow {
    color: var(--brand);
    background: rgba(158, 158, 255, 0.14);
    transform: translateX(3px);
}

/* 分页 */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.096);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: all 0.18s var(--ease);
}

.pager__item:hover {
    color: var(--brand);
    border-color: rgba(158, 158, 255, 0.35);
}

.pager__item.is-current {
    color: var(--brand-on);
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- 19. 页脚 ---------- */
.footer {
    position: relative;
    padding: 64px 0 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 48px;
}

.footer__brand img {
    /* 后台可换任意比例的 logo：固定成正方形盒子 + contain 等比缩放，
       避免横版图被拉成扁条（历史上 width/height 写成 220x56 会变形） */
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 16px;
}

.footer__desc {
    max-width: 340px;
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.8;
}

.footer__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
}

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

.footer__links a {
    font-size: 13.5px;
    color: var(--text-3);
}

.footer__links a:hover {
    color: var(--brand);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-3);
}

.footer__bottom a {
    color: var(--text-3);
}

.footer__bottom a:hover {
    color: var(--brand);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

/* ---------- 20. 空状态 ---------- */
.empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-3);
    background: rgba(255, 255, 255, 0.048);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
}

.empty .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    opacity: 0.4;
}

/* ---------- 21. 404 ---------- */
.err-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 60px 24px;
    text-align: center;
}

.err-page__code {
    font-size: clamp(72px, 16vw, 140px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    background: linear-gradient(180deg, rgba(158, 158, 255, 0.9), rgba(47, 174, 99, 0.14));
    -webkit-background-clip: text;
    background-clip: text;
}

.err-page__title {
    font-size: 22px;
    margin: 18px 0 10px;
}

.err-page__desc {
    max-width: 460px;
    color: var(--text-2);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ---------- 22. 回到顶部 ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text);
    background: rgba(23, 39, 30, 0.94);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.24s var(--ease);
}

.to-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    color: var(--brand);
    border-color: rgba(158, 158, 255, 0.4);
}

.to-top .icon {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg);
}

/* ---------- 23. 滚动入场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

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

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   24. 响应式
   ========================================================================== */

@media (max-width: 1200px) {
    .hero__inner {
        gap: 40px;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 32px;
    }
}

@media (max-width: 992px) {
    :root {
        --nav-h: 62px;
    }

    .section {
        padding: 72px 0;
    }

    .section__head {
        margin-bottom: 40px;
    }

    .nav {
        display: none;
    }

    .header__cta {
        display: none;
    }

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

    .hero {
        padding: 48px 0 64px;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .hero__desc {
        max-width: none;
    }

    .hero__visual {
        max-width: 640px;
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15.5px;
    }

    /* 小屏隐藏英文副标题，保证「logo + 站名 + 下载按钮 + 汉堡」不换行 */
    .logo__sub {
        display: none;
    }

    /* 小屏隐藏主按钮上的版本号：按钮已撑满整行，版本号会把「立即下载」挤偏，
       且首屏上方版本徽标已经写明「最新正式版 x.x.x」 */
    .hero__actions .btn__ver {
        display: none;
    }

    .logo__name {
        font-size: 16px;
    }

    .container {
        padding: 0 18px;
    }

    .section {
        padding: 56px 0;
    }

    .section--tight {
        padding: 44px 0;
    }

    .hero__meta {
        gap: 20px;
        margin-top: 30px;
        padding-top: 22px;
    }

    .hero__meta-num {
        font-size: 21px;
    }

    .hero__float--tl {
        top: -12px;
        left: 0;
    }

    .hero__float--br {
        right: 0;
        bottom: -14px;
    }

    .download-box {
        padding: 26px 20px;
    }

    .dl-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    .dl-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .step__num {
        width: 44px;
        height: 44px;
        font-size: 16px;
        border-radius: 12px;
    }

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

    .list__item {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px 20px;
    }

    .list__arrow {
        display: none;
    }

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

    .prose {
        font-size: 16px;
    }

    .prose h2 {
        font-size: 20px;
        margin-top: 34px;
    }

    .prose h3 {
        font-size: 18px;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-bottom: 36px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline__item::before {
        left: -24px;
    }

    .timeline::before {
        left: 5px;
    }

    .to-top {
        right: 14px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 46px 0;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__title {
        font-size: 27px;
    }

    .hero__desc {
        font-size: 15.5px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__float {
        font-size: 12px;
        padding: 8px 11px;
    }

    .hero__meta {
        justify-content: space-between;
        gap: 14px;
    }

    .hero__meta-item {
        flex: 1 1 30%;
    }

    .badge {
        font-size: 12px;
    }

    .card {
        padding: 22px;
    }

    .download-box {
        padding: 22px 16px;
        border-radius: var(--r-lg);
    }

    .download-box__head {
        margin-bottom: 20px;
    }

    .dl-item {
        padding: 16px;
    }

    .dl-item__icon {
        width: 38px;
        height: 38px;
    }

    .faq__q {
        padding: 16px 18px;
        font-size: 14.5px;
    }

    .faq__a {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .page-head {
        padding: 36px 0 30px;
    }

    .page-head__title {
        font-size: 24px;
    }

    .page-head__desc {
        font-size: 15px;
    }

    .post-card,
    .side-card {
        padding: 20px;
    }

    .links__item {
        padding: 9px 14px;
        font-size: 13px;
    }

    .btn {
        --btn-h: 46px;
        padding: 0 20px;
        font-size: 14.5px;
    }

    .prose pre {
        padding: 14px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .hero__title {
        font-size: 24px;
    }

    /* 超窄屏：站名过长时允许省略，避免把汉堡按钮挤出屏幕 */
    .logo__name {
        font-size: 15px;
        max-width: 42vw;
    }

    .hero__meta-item {
        flex: 1 1 100%;
    }

    .dl-item__icon {
        display: none;
    }

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

/* ---------- 25. 打印 ---------- */
@media print {
    .header,
    .footer,
    .to-top,
    .hero__visual,
    .download-box,
    .nav-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #0F172A;
    }

    .prose,
    .prose p {
        color: #111;
    }
}
