/* ============================================================
   幻影 Phantom · 游戏辅助站 设计系统
   暗夜霓虹 / 终端矩阵风格。零依赖、单文件、无 webfont。
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
    /* 霓虹色 */
    --brand: #00ff66;            /* 霓虹绿：主 CTA */
    --brand-deep: #00cc52;
    --brand-soft: rgba(0, 255, 102, .10);
    --accent: #00e5ff;           /* 霓虹青：次级强调 */
    --accent-soft: rgba(0, 229, 255, .10);
    --warn: #ffcc00;
    --danger: #ff3860;
    --purple: #a855f7;

    /* 暗夜底色 */
    --bg: #030607;
    --bg-soft: #060b0d;
    --bg-mute: #0b1316;
    --surface: #0a1013;
    --surface-2: #0e171b;
    --border: #143128;
    --border-strong: #1f473a;

    --text: #d9ffe9;
    --text-soft: #8fb39f;
    --text-mute: #55796a;
    --inverse: #04130b;

    /* 阴影与圆角 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 255, 102, .04);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 255, 102, .06);
    --glow: 0 0 18px rgba(0, 255, 102, .45);
    --glow-cyan: 0 0 18px rgba(0, 229, 255, .4);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* 排版尺度 */
    --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
    --step-0: clamp(.94rem, .92rem + .12vw, 1rem);
    --step-1: clamp(1.1rem, 1.04rem + .3vw, 1.28rem);
    --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.7rem);
    --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
    --step-4: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);

    /* 终端字体 */
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Courier New", monospace;

    /* 布局 */
    --container: 1180px;
    --gutter: clamp(18px, 4vw, 40px);
    --section-y: clamp(56px, 8vw, 108px);

    /* 动效 */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --fast: .18s var(--ease);
    --base: .32s var(--ease);

    --header-h: 60px;
    color-scheme: dark;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: var(--step-0)/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

/* CRT 扫描线 + 暗角（全局氛围） */
body::after {
    content: "";
    position: fixed; inset: 0; z-index: 999;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px),
        radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(0, 0, 0, .42) 100%);
    mix-blend-mode: multiply;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; font-weight: 800; }

::selection { background: var(--brand); color: #02120a; }

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

/* 终端光标闪烁（点缀） */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 3. 布局原子 ---------- */
.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.stack > * + * { margin-top: var(--stack, 16px); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; }
.flex--between { justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. 排版组件（终端风） ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    padding: 6px 14px; border-radius: var(--radius-full);
}
.eyebrow::before { content: "▮ "; color: var(--brand); animation: blink 1.1s steps(1) infinite; }

.title-xl { font-size: var(--step-4); }
.title-lg { font-size: var(--step-3); }
.title-md { font-size: var(--step-2); }
.title-sm { font-size: var(--step-1); }
.lead { font-size: var(--step-1); color: var(--text-soft); line-height: 1.7; }
.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }

/* 霓虹渐变文字 */
.text-gradient {
    background: linear-gradient(115deg, var(--brand), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 12px rgba(0, 255, 102, .35));
}

/* 故障 (Glitch) 标题 */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    opacity: .8; pointer-events: none;
}
.glitch::before {
    color: var(--accent);
    transform: translate(2px, -1px);
    clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
    animation: glitch-a 3.2s infinite steps(2, end);
}
.glitch::after {
    color: var(--danger);
    transform: translate(-2px, 1px);
    clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
    animation: glitch-b 2.7s infinite steps(2, end);
}
@keyframes glitch-a {
    0%, 88%, 100% { opacity: 0; }
    90% { opacity: .75; }
    94% { opacity: 0; }
}
@keyframes glitch-b {
    0%, 82%, 100% { opacity: 0; }
    84% { opacity: .75; }
    88% { opacity: 0; }
}

/* 终端代码行 */
.term {
    font-family: var(--font-mono); font-size: var(--step--1);
    color: var(--brand);
}
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .title-lg { margin-block: 14px 12px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- 5. 按钮（霓虹发光） ---------- */
.btn {
    --btn-bg: var(--brand);
    --btn-fg: #02120a;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 26px;
    background: var(--btn-bg); color: var(--btn-fg);
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
    letter-spacing: .06em; cursor: pointer; text-transform: uppercase;
    box-shadow: var(--glow);
    transition: transform var(--fast), box-shadow var(--fast), background-color var(--fast), border-color var(--fast);
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 255, 102, .65); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--ghost {
    --btn-bg: transparent; --btn-fg: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: none;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-cyan); }

.btn--soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand); box-shadow: none; }
.btn--soft:hover { box-shadow: var(--glow); }

.btn--sm { min-height: 36px; padding: 0 16px; font-size: .75rem; }

.btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: none; }
.btn--danger:hover { --btn-bg: var(--danger); --btn-fg: #1a0008; box-shadow: 0 0 22px rgba(255, 56, 96, .5); }

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

/* 大下载按钮：呼吸脉冲 */
.btn--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(0, 255, 102, .45), 0 0 0 0 rgba(0, 255, 102, .25); }
    50% { box-shadow: 0 0 34px rgba(0, 255, 102, .8), 0 0 0 10px rgba(0, 255, 102, 0); }
}

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand); font-weight: 600; font-family: var(--font-mono); font-size: var(--step--1);
}
.link-arrow svg { transition: transform var(--fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. 顶部状态条 + 导航 ---------- */
.ticker {
    position: relative; z-index: 61;
    background: linear-gradient(90deg, #00140a, #00331a, #00140a);
    border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
    font-family: var(--font-mono); font-size: .72rem; color: var(--brand);
    overflow: hidden; white-space: nowrap;
}
.ticker__track {
    display: inline-flex; gap: 44px; padding: 5px var(--gutter);
    animation: ticker-scroll 28s linear infinite;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 8px; }
.ticker__track span::before { content: "◆"; color: var(--brand); font-size: .6rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--base), background-color var(--base), box-shadow var(--base);
}
.header.is-stuck {
    border-bottom-color: color-mix(in srgb, var(--brand) 30%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; font-family: var(--font-mono); letter-spacing: .02em; }
.brand__mark {
    width: 32px; height: 32px; border-radius: 8px; flex: none;
    background: var(--brand); color: #02120a;
    display: grid; place-items: center; font-size: 16px; font-weight: 900;
    box-shadow: var(--glow);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: var(--surface); }
.brand .brand__sub { color: var(--text-mute); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
    position: relative; padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-weight: 600; font-size: var(--step--1);
    transition: color var(--fast), background-color var(--fast), text-shadow var(--fast);
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); text-shadow: 0 0 10px rgba(0, 255, 102, .6); }
.nav__link.is-active {
    color: var(--brand); background: var(--brand-soft);
    text-shadow: 0 0 12px rgba(0, 255, 102, .7);
}
.nav__link.is-active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px;
    height: 2px; background: var(--brand); box-shadow: var(--glow);
}

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

/* 在线状态徽章 */
.ping {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    background: var(--brand-soft); color: var(--brand);
    font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .05em;
}
.ping__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 10px var(--brand);
    animation: ping-blink 1.6s ease-in-out infinite;
}
@keyframes ping-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.icon-btn {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-soft); cursor: pointer;
    transition: transform var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--glow); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-btn { display: none; }

/* 移动端抽屉 */
.drawer {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 55;
    background: var(--bg); border-bottom: 1px solid var(--border-strong);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--fast), transform var(--fast);
    box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.drawer .nav__link {
    display: block; padding: 14px 16px; border-radius: var(--radius);
    font-size: var(--step-1); font-weight: 700;
}

@media (max-width: 860px) {
    .nav--desktop { display: none; }
    .menu-btn { display: grid; }
    .header__inner { justify-content: space-between; }
    .ping { display: none; }
}

/* ---------- 7. Hero（矩阵终端） ---------- */
.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(56px, 9vw, 116px) clamp(48px, 7vw, 92px);
    background:
        linear-gradient(180deg, rgba(0, 255, 102, .05), transparent 40%),
        var(--bg);
}
/* 矩阵网格地面 */
.hero::before {
    content: ""; position: absolute; inset: auto -10% -2%; height: 46%;
    background:
        linear-gradient(color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(420px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(transparent, #000 55%);
    -webkit-mask-image: linear-gradient(transparent, #000 55%);
    animation: grid-move 7s linear infinite;
    z-index: 0;
}
@keyframes grid-move { from { background-position: 0 0, 0 0; } to { background-position: 0 42px, 0 0; } }

/* 氛围光晕 */
.hero::after {
    content: ""; position: absolute; inset: -30% -10% auto; height: 640px; z-index: 0;
    background:
        radial-gradient(46% 50% at 24% 26%, rgba(0, 255, 102, .14), transparent 70%),
        radial-gradient(40% 44% at 80% 16%, rgba(0, 229, 255, .12), transparent 70%);
    filter: blur(10px);
    animation: drift 22s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes drift {
    from { transform: translate3d(-2%, 0, 0) scale(1); }
    to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
.hero__grid {
    position: relative; z-index: 1;
    display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.hero__title { font-size: var(--step-4); margin-block: 18px 20px; font-family: var(--font-mono); line-height: 1.15; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 560px) {
    .hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .hero__actions .btn { width: 100%; min-height: 60px; }
}
.hero__note { margin-top: 18px; font-size: var(--step--1); color: var(--text-mute); font-family: var(--font-mono); }

/* 免检测徽章堆 */
.hack-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hack-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; padding: 6px 12px; border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    background: rgba(0, 255, 102, .07); color: var(--brand);
}
.hack-badge--cyan { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: rgba(0, 229, 255, .07); color: var(--accent); }
.hack-badge--purple { border-color: color-mix(in srgb, var(--purple) 45%, transparent); background: rgba(168, 85, 247, .08); color: var(--purple); }

.hero__visual { position: relative; z-index: 1; }
/* 终端窗口卡片 */
.terminal {
    background: #04080a;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 255, 102, .08);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform .5s var(--ease);
}
.terminal:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px); }
.terminal__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    background: #060c0e;
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }
.terminal__title { margin-left: 8px; font-family: var(--font-mono); font-size: .7rem; color: var(--text-mute); letter-spacing: .06em; }
.terminal__body {
    padding: 20px 22px 22px;
    font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.9;
    color: var(--text-soft);
}
.terminal__body .ln { color: var(--text-mute); user-select: none; }
.terminal__body .ok { color: var(--brand); }
.terminal__body .cy { color: var(--accent); }
.terminal__body .wr { color: var(--warn); }
.terminal__cursor::after {
    content: "▊"; color: var(--brand);
    animation: blink 1.05s steps(1) infinite;
}
.hero__badge {
    position: absolute; left: -14px; bottom: 26px; z-index: 2;
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow-md), var(--glow);
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700; color: var(--brand);
    animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none;
       box-shadow: 0 0 0 4px rgba(0, 255, 102, .18), 0 0 12px var(--brand); }

@media (max-width: 860px) {
    .hero__grid { grid-template-columns: 1fr; }
    .terminal { transform: none; }
    .hero__badge { left: 12px; }
}

/* ---------- 8. 数据条（终端统计） ---------- */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.stats__item {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: clamp(20px, 3vw, 28px) 18px; text-align: center;
    transition: border-color var(--fast), box-shadow var(--fast);
}
.stats__item::before {
    content: attr(data-tag);
    position: absolute; top: 8px; right: 12px;
    font-family: var(--font-mono); font-size: .6rem; color: var(--text-mute); letter-spacing: .1em;
}
.stats__item:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--glow); }
.stats__value { font-size: var(--step-2); font-weight: 800; letter-spacing: -.01em; font-family: var(--font-mono); color: var(--brand); text-shadow: 0 0 14px rgba(0, 255, 102, .4); }
.stats__label { font-size: var(--step--1); color: var(--text-mute); margin-top: 4px; }

/* ---------- 9. 卡片（作弊器卡） ---------- */
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform var(--base), box-shadow var(--base), border-color var(--base);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 102, .12); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.card__media { position: relative; overflow: hidden; background: var(--bg-mute); }
.card__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55));
}
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; position: relative; }
.card__meta {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px;
}
.card__title { font-size: var(--step-1); font-family: var(--font-mono); }
.card__text { color: var(--text-soft); font-size: var(--step--1); line-height: 1.7; }
.card__foot {
    margin-top: auto; padding-top: 14px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; font-size: var(--step--1);
    border-top: 1px dashed var(--border);
}
.card__link::after { content: ""; position: absolute; inset: 0; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: var(--radius-full);
    font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    background: var(--brand-soft); color: var(--brand);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.badge--accent { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.badge--float { position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(4, 12, 8, .9); box-shadow: var(--glow); }
.badge--tr { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(4, 12, 8, .9); box-shadow: var(--glow); }
/* 多角标容器：图片角落横排，自动换行 */
.badges--float { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 28px); }
.badges--tr { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 28px); }
.badge--muted { background: var(--bg-mute); color: var(--text-mute); border-color: var(--border); }
.badge--free { background: rgba(0, 255, 102, .14); color: var(--brand); }
.badge--hot { background: rgba(255, 56, 96, .14); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* 辅助状态徽章（安全标注） */
.badge--status {
    border: 1px solid; font-weight: 700;
    box-shadow: none;
}
.badge--status svg { filter: none; }
.badge--status-safe {
    background: rgba(0, 255, 102, .12); color: var(--brand);
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    text-shadow: 0 0 8px rgba(0, 255, 102, .5);
}
.badge--status-update {
    background: rgba(255, 204, 0, .12); color: var(--warn);
    border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
.badge--status-detected {
    background: rgba(255, 56, 96, .14); color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 45%, transparent);
    animation: status-blink 1.4s ease-in-out infinite;
}
.badge--status-maintain {
    background: rgba(0, 229, 255, .12); color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
@keyframes status-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* 价格：与 hack-badge 同款样式 */
.price,
.price-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; padding: 6px 12px; border-radius: var(--radius-full);
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    background: rgba(0, 255, 102, .07); color: var(--brand);
    white-space: nowrap;
    text-shadow: none;
}
.card__prices { display: flex; flex-wrap: wrap; gap: 6px; }
.card__prices .price-tag b { color: var(--brand); }

/* 详情页套餐选择 */
.tiers { display: grid; gap: 10px; }
.tier {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface-2);
    transition: border-color var(--fast), box-shadow var(--fast);
}
.tier:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: var(--glow); }
.tier__type {
    font-family: var(--font-mono); font-weight: 700; font-size: var(--step--1);
    color: var(--text);
}

/* 下载数 / 版本 */
.mono-stat { font-family: var(--font-mono); font-size: .74rem; color: var(--text-mute); }
.mono-stat b { color: var(--brand); font-weight: 700; }

/* 特点卡（功能图标型） */
.feature {
    position: relative;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
    transition: transform var(--base), box-shadow var(--base), border-color var(--base);
    overflow: hidden;
}
.feature::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: .6; transition: opacity var(--base);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.feature:hover::before { opacity: 1; }
.feature__icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0, 255, 102, .14), rgba(0, 229, 255, .12));
    color: var(--brand); font-size: 20px; margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent);
}
.feature__img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
    border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 16px; background: var(--bg-mute);
    transition: transform var(--base), border-color var(--base);
}
.feature:hover .feature__img { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: scale(1.015); }
.feature__title { font-size: var(--step-1); margin-bottom: 8px; font-family: var(--font-mono); }
.feature__text { color: var(--text-soft); font-size: var(--step--1); }

/* 图文交错块 */
.split {
    display: grid; gap: clamp(28px, 5vw, 62px); align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split--reverse .split__media { order: 2; }
.split__media {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-strong); box-shadow: var(--shadow-md);
    background: var(--bg-mute); position: relative;
}
.split__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .5));
}
.split__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .7s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__metrics { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.split__metric-value { font-size: var(--step-2); font-weight: 800; color: var(--brand); line-height: 1.1; font-family: var(--font-mono); text-shadow: 0 0 14px rgba(0, 255, 102, .4); }
.split__metric-label { font-size: var(--step--1); color: var(--text-mute); }
@media (max-width: 720px) { .split--reverse .split__media { order: 0; } }

/* ---------- 10. 筛选与分页 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-soft); font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600;
    transition: all var(--fast); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--glow); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #02120a; font-weight: 700; box-shadow: var(--glow); }
.chip__count { font-size: .7rem; opacity: .75; }

.searchbar { display: flex; gap: 8px; align-items: center; }
.searchbar input {
    min-height: 42px; padding: 0 16px; min-width: 200px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--step--1);
    color: var(--text); transition: border-color var(--fast), box-shadow var(--fast);
}
.searchbar input::placeholder { color: var(--text-mute); }
.searchbar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 255, 102, .14), var(--glow); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(34px, 5vw, 54px); }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-soft);
    font-family: var(--font-mono); font-size: var(--step--1);
    transition: all var(--fast);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--glow); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #02120a; font-weight: 700; box-shadow: var(--glow); }
.pagination .is-disabled { opacity: .35; }

/* ---------- 11. 详情页 ---------- */
.detail { display: grid; gap: clamp(30px, 4vw, 56px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.gallery__main {
    position: relative;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-strong); background: var(--bg-mute);
    box-shadow: var(--shadow-md), 0 0 30px rgba(0, 255, 102, .07);
}
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
    width: 78px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: var(--bg-mute);
    transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast); padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--brand); box-shadow: var(--glow); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-family: var(--font-mono); }
.spec-table tr { border-bottom: 1px dashed var(--border); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
    text-align: left; font-weight: 500; color: var(--text-mute);
    padding: 12px 16px 12px 0; width: 38%; vertical-align: top;
}
.spec-table td { padding: 12px 0; color: var(--text); }

/* 常见问题手风琴 */
.faq { display: grid; gap: 12px; max-width: 780px; }
.faq__item {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; transition: border-color var(--fast), box-shadow var(--fast);
}
.faq__item[open] { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: var(--glow); }
.faq__item summary {
    list-style: none; cursor: pointer; user-select: none; position: relative;
    padding: 15px 18px 15px 52px;
    font-weight: 600; font-size: var(--step-0); color: var(--text);
    transition: color var(--fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
/* 左侧圆形图标：绝对定位在 summary 内（不随内容流） */
.faq__item summary::before {
    content: ""; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(0, 255, 102, .1);
    border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
    transition: background var(--fast);
}
/* + 号：居中于圆形内（圆心 29px，字符宽约 8px → left 25px） */
.faq__item summary::after {
    content: "+"; position: absolute; left: 25px; top: 50%; transform: translateY(-50%);
    color: var(--brand); font-family: var(--font-mono); font-size: 1rem; line-height: 1;
    transition: transform var(--fast);
}
.faq__item summary:hover { color: var(--brand); }
.faq__item summary:hover::before { background: rgba(0, 255, 102, .18); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 18px 16px 52px; color: var(--text-soft); font-size: var(--step--1); line-height: 1.8; }
.faq__body > * + * { margin-top: .7em; }


.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px);
}
.panel + .panel { margin-top: 20px; }
.panel__title { font-size: var(--step-1); margin-bottom: 16px; font-family: var(--font-mono); display: flex; align-items: center; gap: 10px; }
.panel__title::before { content: "❯"; color: var(--brand); }

/* 文件夹式标签（功能说明 / 版本参数 切换） */
.tabs {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tabs__nav {
    display: flex; gap: 4px; padding: 12px 16px 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.tabs__tab {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700;
    letter-spacing: .06em;
    padding: 10px 20px 12px; border: 1px solid transparent; border-bottom: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: transparent; color: var(--text-mute); cursor: pointer;
    transition: color var(--fast), background-color var(--fast), text-shadow var(--fast);
}
.tabs__tab:hover { color: var(--text); background: color-mix(in srgb, var(--brand) 4%, transparent); }
.tabs__tab.is-active {
    position: relative;
    color: var(--brand); background: var(--surface);
    border-color: var(--border);
    text-shadow: 0 0 10px rgba(0, 255, 102, .5);
}
.tabs__tab.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--surface);
}
.tabs__panel { padding: clamp(22px, 3vw, 34px); display: none; }
.tabs__panel.is-active { display: block; animation: tab-in .25s var(--ease); }
@keyframes tab-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
    .tabs__nav { padding-inline: 10px; }
    .tabs__tab { padding-inline: 14px; font-size: .72rem; }
}

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: var(--step--1); }
.checklist svg { flex: none; margin-top: 4px; color: var(--brand); width: 16px; height: 16px; filter: drop-shadow(0 0 4px rgba(0, 255, 102, .6)); }

/* 正文富文本 */
.prose { font-size: 1.02rem; line-height: 1.9; color: var(--text-soft); max-width: 74ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); color: var(--text); margin-top: 1.9em; font-family: var(--font-mono); }
.prose h3 { font-size: var(--step-1); color: var(--text); margin-top: 1.6em; font-family: var(--font-mono); }
.prose strong { color: var(--brand); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { list-style: none; position: relative; padding-left: 18px; margin-top: .5em; }
.prose ul li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); }
.prose ol li { list-style: none; counter-increment: step; position: relative; padding-left: 26px; margin-top: .5em; }
.prose ol { counter-reset: step; }
.prose ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; color: var(--brand); font-family: var(--font-mono); font-size: .8em; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; box-shadow: var(--shadow-md); }
.prose iframe, .prose .rich-video iframe {
    width: 100%; max-width: 100%; aspect-ratio: 16 / 9; display: block;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #000; margin-block: 1.6em; box-shadow: var(--shadow-md);
}
.prose .rich-video { margin: 0; }
.prose figure { margin: 0; }
.prose blockquote {
    border-left: 3px solid var(--brand); background: var(--bg-mute);
    padding: 14px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-soft);
}
.prose code {
    background: var(--bg-mute); padding: 2px 7px; border-radius: 6px;
    font-family: var(--font-mono); font-size: .9em; color: var(--brand);
    border: 1px solid var(--border);
}
.prose pre {
    background: #04080a; padding: 18px; border-radius: var(--radius);
    overflow-x: auto; border: 1px solid var(--border-strong);
    box-shadow: inset 0 0 40px rgba(0, 255, 102, .04);
}
.prose pre code { background: none; padding: 0; color: var(--brand); border: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--brand); font-family: var(--font-mono); }

/* 文章头部与元信息 */
.article-hero { max-width: 780px; margin-inline: auto; text-align: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: var(--step--1); color: var(--text-mute); font-family: var(--font-mono); }
.meta--center { justify-content: center; }
.article-cover {
    max-width: 940px; margin: clamp(28px, 4vw, 44px) auto 0; border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 102, .06);
}
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-body { max-width: 780px; margin-inline: auto; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    padding: 5px 13px; border-radius: var(--radius-full); font-size: var(--step--1);
    background: var(--bg-mute); color: var(--text-soft); font-family: var(--font-mono);
    border: 1px solid var(--border); transition: all var(--fast);
}
.tag:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.tag.is-active { background: var(--brand); color: #02120a; border-color: var(--brand); font-weight: 700; }

.neighbours { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.neighbour {
    display: block; padding: 18px 22px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); transition: all var(--fast);
}
.neighbour:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--glow); }
.neighbour span { font-size: var(--step--1); color: var(--text-mute); font-family: var(--font-mono); }
.neighbour strong { display: block; margin-top: 4px; font-weight: 600; }
.neighbour--next { text-align: right; }

/* 文章列表条目 */
.post {
    display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(16px, 3vw, 30px);
    padding: clamp(16px, 2.4vw, 22px); border: 1px solid var(--border);
    border-radius: var(--radius-lg); background: var(--surface);
    transition: transform var(--base), box-shadow var(--base), border-color var(--base);
    position: relative;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), var(--glow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.post__media { border-radius: var(--radius); overflow: hidden; background: var(--bg-mute); }
.post__media img { width: 100%; height: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; gap: 10px; }
.post__title { font-size: var(--step-1); font-family: var(--font-mono); }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } }

/* ---------- 12. CTA / 页脚 ---------- */
.cta {
    position: relative; overflow: hidden; text-align: center;
    border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 72px) var(--gutter);
    background:
        linear-gradient(180deg, rgba(0, 255, 102, .12), transparent 60%),
        var(--surface);
    border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
    color: var(--text); box-shadow: var(--shadow-lg), var(--glow);
}
.cta::before {
    content: ""; position: absolute; inset: auto -20% -70%; height: 320px;
    background:
        linear-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(transparent, #000);
    -webkit-mask-image: linear-gradient(transparent, #000);
    pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta .title-lg { margin-bottom: 12px; }
.cta p { opacity: .85; max-width: 560px; margin-inline: auto; }
.cta .btn { margin-top: 26px; }

.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: clamp(40px, 6vw, 64px) 28px; margin-top: var(--section-y); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); }
.footer__title { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; color: var(--brand); margin-bottom: 14px; text-transform: uppercase; font-family: var(--font-mono); }
.footer__links {
    display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
    margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border);
}
.footer__links a { color: var(--text-mute); font-size: var(--step--1); transition: color var(--fast); }
.footer__links a:hover { color: var(--brand); }
.footer__list { display: grid; gap: 10px; font-size: var(--step--1); }
.footer__list a { color: var(--text-soft); transition: color var(--fast); }
.footer__list a:hover { color: var(--brand); text-shadow: 0 0 8px rgba(0, 255, 102, .5); }
.footer__bottom {
    margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--border);
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    font-size: var(--step--1); color: var(--text-mute); font-family: var(--font-mono);
}

/* ---------- 13. 空态 / 提示 ---------- */
.empty { text-align: center; padding: clamp(48px, 8vw, 88px) 20px; }
.empty__icon { font-size: 44px; margin-bottom: 14px; opacity: .55; color: var(--brand); }
.empty p { color: var(--text-mute); margin-bottom: 22px; }

.flash-wrap { position: fixed; top: calc(var(--header-h) + 14px); right: var(--gutter); z-index: 90; display: grid; gap: 10px; }

/* 返回顶部按钮：始终可见（不依赖 JS），点击平滑回顶，JS 失效时原生锚点兜底 */
.back-top {
    position: fixed; right: 18px; bottom: 24px; z-index: 80;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--text-soft);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    transition: color var(--fast), border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.back-top:hover { color: var(--brand); border-color: var(--brand); box-shadow: var(--glow); transform: translateY(-2px); }
.back-top:active { transform: translateY(0) scale(.94); }
@media (max-width: 640px) { .back-top { right: 14px; bottom: 16px; width: 40px; height: 40px; } }
.flash {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 20px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg); font-size: var(--step--1); font-weight: 500;
    animation: flash-in .3s var(--ease);
}
.flash--ok { border-left: 3px solid var(--brand); }
.flash--warn { border-left: 3px solid var(--warn); }
@keyframes flash-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* 滚动入场：JS 加 .in-view */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 14. 后台（暗夜霓虹） ---------- */
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.admin__side {
    background: var(--surface); border-right: 1px solid var(--border-strong);
    padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin__nav { display: grid; gap: 4px; margin-top: 26px; }
.admin__nav-group {
    margin: 14px 14px 4px; padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: .68rem; letter-spacing: .12em; color: var(--text-mute);
    font-family: var(--font-mono); text-transform: uppercase;
}
.admin__nav-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.admin__nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    border-radius: var(--radius-sm); color: var(--text-soft); font-size: var(--step--1); font-weight: 500;
    transition: all var(--fast);
}
.admin__nav a:hover { background: var(--brand-soft); color: var(--brand); }
.admin__nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 2px 0 0 var(--brand); }
.admin__main { padding: clamp(20px, 3vw, 34px); min-width: 0; }
.admin__head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.admin__head .eyebrow { display: block; margin-bottom: 4px; }
.admin__head .title-md { line-height: 1.25; }
.admin__head .muted { margin-top: 6px; }
.admin__head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 820px) {
    .admin { grid-template-columns: 1fr; }
    .admin__side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .admin__nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .admin__main { padding: 16px; }
}

/* 列表筛选条 */
.admin-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    margin: -6px 0 16px;
}
.admin-toolbar .filters { margin: 0; }
.admin-toolbar .searchbar { width: min(100%, 260px); }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 620px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--surface-2); font-weight: 600; color: var(--brand); white-space: nowrap; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.table__thumb { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-mute); border: 1px solid var(--border); }
.table__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* 表格空态 */
.table-empty { padding: clamp(40px, 7vw, 72px) 20px; text-align: center; }
.table-empty__icon {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
    display: grid; place-items: center; color: var(--text-mute);
    background: var(--bg-mute); border: 1px dashed var(--border);
}
.table-empty p { color: var(--text-mute); font-size: var(--step--1); margin-bottom: 18px; }

.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 7px; }
.field > label { font-size: var(--step--1); font-weight: 600; color: var(--text-soft); }
.field__hint { font-size: .78rem; color: var(--text-mute); }
.input, .textarea, .select {
    width: 100%; padding: 11px 14px; background: var(--bg-mute);
    border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
    transition: border-color var(--fast), box-shadow var(--fast);
}
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 255, 102, .14), var(--glow);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; font-family: inherit; }
.textarea--code { font-family: var(--font-mono); font-size: .86rem; }
.textarea--tall { min-height: 300px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: var(--step--1); }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 26px); }
.form-card + .form-card { margin-top: 18px; }
.form-card__title {
    font-size: var(--step-1); margin-bottom: 18px; font-family: var(--font-mono);
    display: flex; align-items: center; gap: 10px;
}
.form-card__title::before {
    content: ""; flex: none; width: 3px; height: 1.05em; border-radius: 2px;
    background: linear-gradient(180deg, var(--brand), var(--accent));
    box-shadow: var(--glow);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* 吸底保存栏：长表单保存无需滚动回顶部 */
.form-actions--sticky {
    position: sticky; bottom: 12px; z-index: 20;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-md);
}
@media (max-width: 640px) { .form-actions--sticky { bottom: 8px; } }
/* 角标/信任徽章 动态行（后台表单） */
.badge-rows { display: grid; gap: 10px; }
.badge-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 10px; align-items: center;
}
.badge-row--hack { grid-template-columns: minmax(0, 1fr) 90px 150px auto; }
@media (max-width: 700px) { .badge-row, .badge-row--hack { grid-template-columns: 1fr; } }

/* ---------- 12. 富媒体编辑器 ---------- */
.rich-editor {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
    transition: border-color var(--fast), box-shadow var(--fast);
}
.rich-editor:focus-within { border-color: var(--brand); box-shadow: var(--glow); }
.rich-editor__bar {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    padding: 8px 10px; border-bottom: 1px solid var(--border);
    background: var(--bg-mute);
}
.rich-btn {
    appearance: none; border: 1px solid transparent; background: transparent;
    color: var(--text-soft); font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
    padding: 6px 9px; border-radius: var(--radius-sm); cursor: pointer;
    line-height: 1; white-space: nowrap;
    transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.rich-btn:hover { color: var(--text); border-color: var(--border); background: var(--surface-2); }
.rich-btn.is-active { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: rgba(0, 255, 102, .08); box-shadow: var(--glow); }
.rich-btn--sep { width: 1px; height: 18px; background: var(--border); margin: 0 3px; display: inline-block; }
.rich-editor__area {
    min-height: 320px; padding: 18px 20px; outline: none;
    line-height: 1.75; font-size: var(--step-0); color: var(--text);
}
.rich-editor__area:empty::before { content: attr(data-placeholder); color: var(--text-mute); opacity: .7; pointer-events: none; }
/* 编辑区排版（与服务端白名单一致） */
.rich-editor__area h2, .rich-editor__area h3 { margin: 1em 0 .5em; font-family: var(--font-mono); }
.rich-editor__area p { margin: .6em 0; }
.rich-editor__area blockquote { border-left: 3px solid var(--brand); padding-left: 14px; margin: .8em 0; color: var(--text-soft); }
.rich-editor__area code { background: rgba(0, 255, 102, .08); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; font-family: var(--font-mono); font-size: .9em; color: var(--accent); }
.rich-editor__area pre { background: var(--bg-mute); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--font-mono); font-size: .85rem; }
.rich-editor__area pre code { background: none; border: 0; padding: 0; color: inherit; }
.rich-editor__area img { max-width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.rich-editor__area table { width: 100%; border-collapse: collapse; margin: .8em 0; font-size: var(--step--1); }
.rich-editor__area th, .rich-editor__area td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.rich-editor__area th { background: var(--bg-mute); font-family: var(--font-mono); font-weight: 600; }
.rich-editor__area a { color: var(--brand); text-decoration: underline; }
.rich-editor__area iframe {
    max-width: 100%; width: 100%; aspect-ratio: 16 / 9;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: #000; display: block;
}
/* 全屏编辑 */
.rich-editor.is-fullscreen {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; border-radius: 0;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6);
}
.rich-editor.is-fullscreen .rich-editor__area { flex: 1; overflow: auto; width: 100%; max-width: 860px; margin: 0 auto; }
/* 上传提示条 */
.rich-toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 2000;
    transform: translate(-50%, 14px);
    background: var(--surface); border: 1px solid var(--brand); color: var(--text);
    padding: 10px 18px; border-radius: var(--radius-full); font-size: var(--step--1);
    box-shadow: var(--shadow-lg), var(--glow); opacity: 0;
    transition: opacity .25s, transform .25s; pointer-events: none;
}
.rich-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.rich-toast.is-error { border-color: var(--danger); color: var(--danger); }


.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; transition: all var(--fast);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .7;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), var(--glow); border-color: var(--brand); }
.stat-card__label { color: var(--text-mute); font-size: var(--step--1); display: flex; align-items: center; gap: 7px; }
.stat-card__label svg { color: var(--text-mute); opacity: .8; }
.stat-card__value { font-size: var(--step-3); font-weight: 800; letter-spacing: -.02em; font-family: var(--font-mono); color: var(--brand); }
.stat-card__sub { color: var(--text-mute); font-size: .75rem; }

.pill { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); font-size: .74rem; font-weight: 700; font-family: var(--font-mono); }
.pill--on { background: var(--brand-soft); color: var(--brand); }
.pill--off { background: var(--bg-mute); color: var(--text-mute); }

/* 登录页 */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); position: relative; overflow: hidden; }
.auth::before {
    content: ""; position: absolute; width: 680px; height: 680px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 102, .1), transparent 65%);
    top: -240px; right: -180px; filter: blur(24px);
}
.auth__card {
    position: relative; width: min(100%, 400px); background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 40px); box-shadow: var(--shadow-lg), var(--glow);
}
.auth__title { font-size: var(--step-2); margin-bottom: 6px; font-family: var(--font-mono); }

/* ============ 公告弹窗 ============ */
.announcement {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center; padding: 24px;
    background: rgba(3, 6, 7, .55); backdrop-filter: blur(2px);
}
@media (max-width: 640px) {
    .announcement { background: rgba(3, 6, 7, .4); padding: 12px; }
    .announcement__panel { padding: 22px 18px 18px; }
}
.announcement[hidden] { display: none; }
.announcement__panel {
    position: relative; width: min(100%, 540px); max-height: 80vh; overflow: auto;
    background: var(--surface-2); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); padding: 30px 26px 26px;
    box-shadow: var(--shadow-lg), var(--glow);
}
.announcement__close {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--bg-mute); color: var(--text-soft); cursor: pointer;
    transition: color .15s, border-color .15s;
}
.announcement__close:hover { color: var(--brand); border-color: var(--brand); }
.announcement__title {
    font-size: var(--step-1); font-family: var(--font-mono);
    color: var(--text); margin-bottom: 12px; padding-right: 36px;
}
.announcement__body { color: var(--text-soft); font-size: var(--step-0); line-height: 1.8; }

/* ============ 详情页移动端：购买栏吸底（单手可达 T5） ============ */
@media (max-width: 900px) {
    .buy-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
        margin: 0 !important; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(3, 6, 7, .94); backdrop-filter: blur(6px);
        border-top: 1px solid var(--border-strong);
    }
    .buy-bar .btn { min-height: 54px; }
    .section--detail { padding-bottom: 110px !important; }
}
