/* ==========================================================================
   tndesk 官网样式表 · 设计系统 v1.0
   1) :root 定义所有可换肤的 token，[data-theme] 覆盖即可换风格
   2) 组件全部只使用 token，不写死颜色，保证 6 套主题一致可用
   ========================================================================== */

/* ---------- 主题：极光白（默认） ---------- */
:root,
[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-2: #eef2fa;
  --bg-soft: #e9eefb;
  --card: #ffffff;
  --card-2: #f8fafd;
  --card-line: rgba(15, 23, 42, .08);
  --text: #0e1729;
  --text-2: #4a5a75;
  --text-3: #7b8aa3;
  --line: rgba(15, 23, 42, .10);
  --line-strong: rgba(15, 23, 42, .16);
  --brand: #2f6bff;
  --brand-2: #7c3aed;
  --brand-soft: rgba(47, 107, 255, .10);
  --accent: #06b6d4;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, .14);
  --hero-glow: radial-gradient(900px 460px at 18% 8%, rgba(47, 107, 255, .20), transparent 62%),
               radial-gradient(760px 420px at 88% 6%, rgba(124, 58, 237, .18), transparent 60%);
  --grid-line: rgba(15, 23, 42, .045);
  --header-bg: rgba(255, 255, 255, .78);
  --code-bg: #0f172a;
  --code-text: #d7e3ff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  color-scheme: light;
}

/* ---------- 主题：深空黑 ---------- */
[data-theme="dark"] {
  --bg: #0a0e17;
  --bg-2: #0d121e;
  --bg-soft: #111827;
  --card: #121a2a;
  --card-2: #162034;
  --card-line: rgba(148, 178, 255, .12);
  --text: #e9eefb;
  --text-2: #a3b2cc;
  --text-3: #7c8aa5;
  --line: rgba(148, 178, 255, .14);
  --line-strong: rgba(148, 178, 255, .24);
  --brand: #5b8cff;
  --brand-2: #a855f7;
  --brand-soft: rgba(91, 140, 255, .16);
  --accent: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --on-brand: #0a0e17;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .65);
  --hero-glow: radial-gradient(900px 480px at 16% 4%, rgba(91, 140, 255, .28), transparent 62%),
               radial-gradient(780px 440px at 86% 2%, rgba(168, 85, 247, .24), transparent 60%);
  --grid-line: rgba(148, 178, 255, .06);
  --header-bg: rgba(10, 14, 23, .74);
  --code-bg: #060a12;
  --code-text: #cfe0ff;
  color-scheme: dark;
}

/* ---------- 主题：赛博青 ---------- */
[data-theme="tech"] {
  --bg: #051417;
  --bg-2: #061a1e;
  --bg-soft: #082026;
  --card: #0a2329;
  --card-2: #0d2a31;
  --card-line: rgba(34, 211, 238, .16);
  --text: #dbfaff;
  --text-2: #8fc9d4;
  --text-3: #6ba4b0;
  --line: rgba(34, 211, 238, .18);
  --line-strong: rgba(34, 211, 238, .3);
  --brand: #22d3ee;
  --brand-2: #34d399;
  --brand-soft: rgba(34, 211, 238, .14);
  --accent: #a3e635;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --on-brand: #04191c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 14px 40px rgba(0, 20, 24, .6);
  --shadow-lg: 0 30px 80px rgba(0, 20, 24, .7);
  --hero-glow: radial-gradient(820px 440px at 14% 6%, rgba(34, 211, 238, .26), transparent 60%),
               radial-gradient(720px 420px at 82% 4%, rgba(52, 211, 153, .2), transparent 58%);
  --grid-line: rgba(34, 211, 238, .07);
  --header-bg: rgba(5, 20, 23, .76);
  --code-bg: #04161a;
  --code-text: #b6f7ff;
  color-scheme: dark;
}

/* ---------- 主题：暖阳橙 ---------- */
[data-theme="warm"] {
  --bg: #fdf8f2;
  --bg-2: #fbf1e6;
  --bg-soft: #f8e8d8;
  --card: #fffdf9;
  --card-2: #fff8ef;
  --card-line: rgba(120, 72, 30, .12);
  --text: #2a1b10;
  --text-2: #6d5340;
  --text-3: #94765f;
  --line: rgba(120, 72, 30, .14);
  --line-strong: rgba(120, 72, 30, .22);
  --brand: #ea6a12;
  --brand-2: #d92d5b;
  --brand-soft: rgba(234, 106, 18, .12);
  --accent: #0d9488;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #dc2626;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(120, 72, 30, .07);
  --shadow: 0 12px 34px rgba(120, 72, 30, .12);
  --shadow-lg: 0 26px 70px rgba(120, 72, 30, .18);
  --hero-glow: radial-gradient(900px 460px at 16% 6%, rgba(234, 106, 18, .18), transparent 62%),
               radial-gradient(760px 420px at 86% 4%, rgba(217, 45, 91, .14), transparent 60%);
  --grid-line: rgba(120, 72, 30, .05);
  --header-bg: rgba(255, 251, 245, .82);
  --code-bg: #2a1b10;
  --code-text: #ffe6cf;
  color-scheme: light;
}

/* ---------- 主题：星河紫 ---------- */
[data-theme="violet"] {
  --bg: #0b0819;
  --bg-2: #100c22;
  --bg-soft: #150f2c;
  --card: #171129;
  --card-2: #1d1636;
  --card-line: rgba(196, 181, 253, .16);
  --text: #f0ebff;
  --text-2: #b8a9dd;
  --text-3: #9083b8;
  --line: rgba(196, 181, 253, .16);
  --line-strong: rgba(196, 181, 253, .28);
  --brand: #8b5cf6;
  --brand-2: #ec4899;
  --brand-soft: rgba(139, 92, 246, .18);
  --accent: #38bdf8;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #fb7185;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 16px 44px rgba(10, 4, 30, .6);
  --shadow-lg: 0 30px 84px rgba(10, 4, 30, .7);
  --hero-glow: radial-gradient(880px 460px at 18% 4%, rgba(139, 92, 246, .30), transparent 60%),
               radial-gradient(760px 420px at 82% 2%, rgba(236, 72, 153, .22), transparent 58%);
  --grid-line: rgba(196, 181, 253, .07);
  --header-bg: rgba(11, 8, 25, .76);
  --code-bg: #0a0618;
  --code-text: #e2d9ff;
  color-scheme: dark;
}

/* ---------- 主题：极简灰 ---------- */
[data-theme="mono"] {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --bg-soft: #e6e8ee;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --card-line: rgba(17, 24, 39, .1);
  --text: #0f1115;
  --text-2: #525a68;
  --text-3: #7c8494;
  --line: rgba(17, 24, 39, .12);
  --line-strong: rgba(17, 24, 39, .2);
  --brand: #1f2937;
  --brand-2: #4b5563;
  --brand-soft: rgba(31, 41, 55, .08);
  --accent: #0f766e;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #b91c1c;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow: 0 8px 26px rgba(17, 24, 39, .08);
  --shadow-lg: 0 20px 60px rgba(17, 24, 39, .12);
  --hero-glow: radial-gradient(700px 380px at 20% 8%, rgba(17, 24, 39, .06), transparent 60%);
  --grid-line: rgba(17, 24, 39, .04);
  --header-bg: rgba(255, 255, 255, .82);
  --code-bg: #111827;
  --code-text: #e5e7eb;
  color-scheme: light;
}

/* ==========================================================================
   基础
   ========================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .9), transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .9), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 2.6vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; color: var(--text-2); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { color: var(--text-2); }
code, pre, .mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  font-size: .92em;
}
code {
  background: var(--brand-soft);
  color: var(--brand);
  padding: .12em .42em;
  border-radius: 6px;
  word-break: break-all;
}
pre.code, pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  overflow: auto;
  border: 1px solid var(--line);
  line-height: 1.65;
}
pre code { background: none; color: inherit; padding: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, calc(100% - 44px)); margin: 0 auto; position: relative; z-index: 1; }
.site-main { min-height: 62vh; position: relative; z-index: 1; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.compact { font-size: .92em; }
.bad { color: var(--danger); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.center { text-align: center; }
.hint { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.nowrap { white-space: nowrap; }
.empty {
  padding: 34px 22px; text-align: center; color: var(--text-3);
  background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* ==========================================================================
   顶部通栏 + 导航
   ========================================================================== */
.top-strip {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12.5px; letter-spacing: .01em;
}
.top-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; }
.top-strip code { background: rgba(255, 255, 255, .18); color: #fff; }
.ts-left { display: inline-flex; align-items: center; gap: 8px; opacity: .95; }
.ts-right b { font-weight: 600; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #a7f3d0;
  box-shadow: 0 0 0 0 rgba(167, 243, 208, .7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 243, 208, .65); }
  70% { box-shadow: 0 0 0 9px rgba(167, 243, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 243, 208, 0); }
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: 0 0 auto; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow-sm); flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: -.02em; }
.brand-text small { color: var(--text-3); font-size: 11.5px; letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--text); transform: translateY(-1px); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.main-nav .nav-admin { color: var(--brand-2); }
.header-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.hi { font-size: 13.5px; color: var(--text-2); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-burger {
  display: none; width: 38px; height: 34px; padding: 0; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-burger span { display: block; width: 16px; height: 2px; background: var(--text-2); border-radius: 2px; transition: .25s; }

/* ---------- 主题切换器 ---------- */
.theme-picker { position: relative; }
.theme-toggle {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; transition: .2s;
}
.theme-toggle::-webkit-details-marker { display: none; }
.theme-toggle:hover { border-color: var(--brand); color: var(--text); }
.theme-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  box-shadow: inset 0 0 0 2px var(--card);
}
.theme-caret { font-size: 10px; opacity: .7; }
.theme-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 268px; padding: 10px;
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 80;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.theme-picker[open] .theme-menu { opacity: 1; transform: none; pointer-events: auto; }
.theme-menu-title { font-size: 12px; color: var(--text-3); padding: 4px 8px 8px; display: flex; justify-content: space-between; }
.theme-menu-title small { font-size: 11px; opacity: .8; }
.theme-option {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 12px;
  color: var(--text); transition: background .16s;
}
.theme-option:hover { background: var(--brand-soft); color: var(--text); }
.theme-option.is-active { background: var(--brand-soft); }
.theme-opt-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.theme-opt-text b { font-size: 13.5px; font-weight: 600; }
.theme-opt-text small { color: var(--text-3); font-size: 11.5px; }
.theme-check { color: var(--brand); opacity: 0; font-size: 13px; }
.theme-option.is-active .theme-check { opacity: 1; }
.theme-swatch { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto; border: 1px solid var(--line); }
.theme-swatch i { display: block; }
.theme-swatch i:first-child { grid-row: span 2; }
.swatch-light i:nth-child(1) { background: #e8eefc; } .swatch-light i:nth-child(2) { background: #2f6bff; } .swatch-light i:nth-child(3) { background: #7c3aed; }
.swatch-dark i:nth-child(1) { background: #0a0e17; } .swatch-dark i:nth-child(2) { background: #5b8cff; } .swatch-dark i:nth-child(3) { background: #a855f7; }
.swatch-tech i:nth-child(1) { background: #051417; } .swatch-tech i:nth-child(2) { background: #22d3ee; } .swatch-tech i:nth-child(3) { background: #34d399; }
.swatch-warm i:nth-child(1) { background: #fbeee1; } .swatch-warm i:nth-child(2) { background: #ea6a12; } .swatch-warm i:nth-child(3) { background: #d92d5b; }
.swatch-violet i:nth-child(1) { background: #0b0819; } .swatch-violet i:nth-child(2) { background: #8b5cf6; } .swatch-violet i:nth-child(3) { background: #ec4899; }
.swatch-mono i:nth-child(1) { background: #e9ebef; } .swatch-mono i:nth-child(2) { background: #1f2937; } .swatch-mono i:nth-child(3) { background: #6b7280; }

/* ==========================================================================
   按钮 / 徽标 / 标签
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, background .18s, color .18s, border-color .18s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--on-brand); box-shadow: 0 8px 22px -8px var(--brand);
}
.btn-primary:hover { color: var(--on-brand); box-shadow: 0 14px 30px -10px var(--brand); filter: brightness(1.05); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-light { background: #fff; color: #101828; }
.btn-light:hover { color: #101828; }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.link-btn { background: none; border: none; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.link-btn.danger { color: var(--danger); }
button.btn { font-family: inherit; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--card); border: 1px solid var(--card-line); color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.pill-ok { background: rgba(16, 185, 129, .14); color: var(--ok); }
.pill-blue { background: var(--brand-soft); color: var(--brand); }
.pill.danger { background: rgba(239, 68, 68, .14); color: var(--danger); }
.tag, .dl-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--text-3); font-size: 12px;
}
.info-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2);
}

/* ==========================================================================
   区块
   ========================================================================== */
.section { padding: 76px 0; position: relative; }
.section-muted { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; margin: 0; }
.kicker {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.page-head { padding: 54px 0 24px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { max-width: 760px; color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 62px 0 74px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -5% auto; height: 130%;
  background: var(--hero-glow); pointer-events: none; z-index: 0;
  animation: glowShift 18s ease-in-out infinite alternate;
}
@keyframes glowShift { from { transform: translate3d(-1%, 0, 0) scale(1); } to { transform: translate3d(2%, 1.5%, 0) scale(1.05); } }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero-copy h1 { margin: 18px 0 16px; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 62%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 16px; color: var(--text-2); margin-bottom: 26px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.hero-visual { position: relative; display: flex; justify-content: center; }

.mock-window {
  width: 100%; max-width: 400px; border-radius: 20px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.mock-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 8px; font-size: 11.5px; color: var(--text-3); }
.mock-body { padding: 22px 22px 24px; text-align: center; }
.mock-logo { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 16px; font-weight: 700; }
.mock-label { font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.mock-id { font-family: Consolas, monospace; font-size: 30px; letter-spacing: .1em; font-weight: 700; color: var(--text); margin: 4px 0 14px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.mock-pass { font-family: Consolas, monospace; letter-spacing: .06em; color: var(--text); }
.mock-status { font-size: 12px; color: var(--ok); display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 16px; }
.mock-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.mock-connect {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 11px; font-weight: 600; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 13px;
  box-shadow: var(--shadow); font-size: 12px; z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 12.5px; color: var(--text); }
.float-card small { color: var(--text-3); font-size: 11px; }
.float-card span { font-size: 17px; }
.float-a { left: -14px; top: 12%; animation-delay: -1.4s; }
.float-b { right: -18px; bottom: 8%; animation-delay: -3.2s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 统计条 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-row > div {
  padding: 22px 18px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-row > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-row b {
  display: block; font-size: 24px; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-row span { font-size: 12.5px; color: var(--text-3); }

/* ---------- 特性卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.feature-card {
  position: relative; padding: 24px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.fc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; font-size: 21px; margin-bottom: 14px;
  background: var(--brand-soft); border: 1px solid var(--card-line);
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.8px; margin: 0; color: var(--text-2); }
.more-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 13.5px; font-weight: 600; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.step {
  padding: 24px 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); position: relative;
}
.step-no {
  font-family: Consolas, monospace; font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 3px 10px; border-radius: 8px; display: inline-block; margin-bottom: 12px;
}
.step h3 { font-size: 16px; }
.step p { font-size: 13.8px; margin: 0; }

/* ---------- 分栏 / 架构图 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split h2 { margin-top: 10px; }
.tick-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text-2); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.tick-list.small li { font-size: 13px; }
.arch-card {
  padding: 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow);
}
.arch-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.arch-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.arch-row:last-child { margin-bottom: 0; }
.node {
  flex: 1 1 auto; min-width: 96px; text-align: center; padding: 12px 10px; border-radius: 12px;
  font-size: 13px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); color: var(--text);
}
.node small { display: block; font-weight: 400; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.node-s { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.arch-line { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ---------- 版本履历 ---------- */
.mini-log { display: grid; gap: 10px; }
.ml-item {
  display: grid; grid-template-columns: 92px 96px 1fr; gap: 14px; align-items: center;
  padding: 15px 18px; border-radius: var(--radius-sm); background: var(--card);
  border: 1px solid var(--card-line); transition: transform .2s, box-shadow .2s;
}
.ml-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.ml-ver { font-family: Consolas, monospace; font-weight: 700; color: var(--brand); }
.ml-date { font-size: 12.5px; color: var(--text-3); }
.ml-body b { font-size: 14px; color: var(--text); display: block; }
.ml-body small { font-size: 12.5px; color: var(--text-3); }

/* ---------- 时间线（更新日志） ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.tl-card { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); }
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-date { font-size: 12.5px; color: var(--text-3); }
.tl-list { margin: 10px 0 0; padding-left: 18px; }
.tl-list li { font-size: 13.8px; margin-bottom: 5px; }
.tl-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-file { font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); }
.tl-sha { font-family: Consolas, monospace; font-size: 11.5px; color: var(--text-3); }

/* ---------- 卡片 / 面板 / 提示 ---------- */
.panel {
  padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.panel h2, .panel-title { font-size: 17px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.panel > p:last-child { margin-bottom: 0; }
.callout {
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft);
  border: 1px solid var(--line-strong); color: var(--text);
  font-size: 13.5px; margin-bottom: 16px;
}
.callout.warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .38); }
.callout.ok { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .38); }
.callout.danger { background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .34); }
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 11px;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .34);
  color: var(--text); font-size: 13.5px; margin-bottom: 20px;
}
.alert { padding: 12px 16px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .34); color: var(--text); }
.alert-warning, .alert-warn { background: rgba(245, 158, 11, .13); border-color: rgba(245, 158, 11, .34); color: var(--text); }
.alert-error, .alert-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .34); color: var(--text); }
.alert-info { background: var(--brand-soft); border-color: var(--line-strong); color: var(--text); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 13.8px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--card-2); font-weight: 600; font-size: 12.5px; color: var(--text-2); letter-spacing: .02em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--brand-soft); }
.kv-table td:first-child { width: 190px; color: var(--text-3); white-space: nowrap; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  padding: 16px 18px; border-radius: var(--radius-sm); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-sm);
}
.stat-card .sub-title, .stat-card .rh-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.stat-card b { display: block; font-size: 23px; margin-top: 4px; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 15px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form input[type=text], .form input[type=password], .form input[type=email],
.form input[type=number], .form input[type=url], .form input[type=tel],
.form select, .form textarea,
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=url], input[type=tel], select, textarea {
  width: 100%; margin-top: 6px; padding: 10px 13px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 14px; font-family: inherit; transition: border-color .18s, box-shadow .18s, background .18s;
}
.form input:focus, .form select:focus, .form textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.checkbox, .check-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.checkbox input, .check-item input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.toggle input { width: 38px; height: 22px; appearance: none; background: var(--line-strong); border-radius: 999px; position: relative; cursor: pointer; transition: .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(16px); }
.filter-bar, .toolbar, .search-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.search-bar input { max-width: 280px; margin-top: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-box { display: flex; gap: 8px; align-items: center; }
.copy-box input { font-family: Consolas, monospace; }

/* ==========================================================================
   下载中心
   ========================================================================== */
.release-hero {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  padding: 26px; border-radius: var(--radius-lg); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow); margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.release-hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-glow); opacity: .55; pointer-events: none;
}
.rh-left { position: relative; z-index: 1; }
.rh-ver { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.rh-left h1 { margin: 6px 0 8px; font-size: clamp(26px, 3vw, 38px); }
.rh-date { font-size: 13.5px; color: var(--text-3); }
.rh-right { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
.resource-card, .dev-card {
  padding: 22px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-sm); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.resource-card:hover, .dev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.dl-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 13px; background: var(--brand-soft); font-size: 22px; margin-bottom: 12px;
}
.resource-card h3 { font-size: 16.5px; }
.dl-desc { font-size: 13.5px; color: var(--text-2); min-height: 44px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.platform-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-log { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.dl-log table { width: 100%; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ==========================================================================
   帮助文档
   ========================================================================== */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
.doc-nav {
  position: sticky; top: 88px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-sm);
}
.doc-nav h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.doc-nav a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); }
.doc-nav a:hover { background: var(--brand-soft); color: var(--text); }
.doc-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.doc-body { min-width: 0; }
.doc-body section { margin-bottom: 34px; scroll-margin-top: 90px; }
.doc-body h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc-body h3 { font-size: 16.5px; margin-top: 22px; }
.doc-body p, .doc-body li { font-size: 14.5px; }
.doc-ol { padding-left: 20px; }
.doc-ol li { margin-bottom: 10px; }
.faq details {
  padding: 14px 18px; border-radius: var(--radius-sm); background: var(--card);
  border: 1px solid var(--line); margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--text); }
.faq details p { margin: 10px 0 0; font-size: 13.8px; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth-wrap { display: grid; place-items: center; padding: 60px 0 80px; }
.auth-card {
  width: min(440px, 100%); padding: 30px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-note { font-size: 13.5px; color: var(--text-3); margin-bottom: 20px; }
.auth-switch { margin-top: 16px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.install-wrap { padding: 50px 0; display: grid; place-items: center; }
.install-card { width: min(620px, 100%); padding: 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-lg); }
.install-env { display: grid; gap: 8px; margin: 16px 0; font-size: 13.5px; }
.install-banner { padding: 12px 16px; border-radius: 11px; background: var(--brand-soft); color: var(--text); font-size: 13.5px; margin-bottom: 18px; }

/* ==========================================================================
   用户中心 / 控制台
   ========================================================================== */
.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.account-main, .account-side { min-width: 0; }
.avatar {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand);
  font-weight: 700; font-size: 18px;
}
.id { font-family: Consolas, monospace; }
.control { display: flex; flex-wrap: wrap; gap: 8px; }
.device-list { display: grid; gap: 12px; }
.dev-card { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; }
.dev-card .name { font-weight: 600; font-size: 14.5px; }
.dev-card .sub-title { font-size: 12px; color: var(--text-3); }
.meta { font-size: 12.5px; color: var(--text-3); }
.viewer { border-radius: var(--radius); overflow: hidden; background: #000; position: relative; min-height: 260px; display: grid; place-items: center; }
.viewer img { max-width: 100%; display: block; }
.viewer-empty { color: #9ca3af; font-size: 13px; }
.viewer-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #e5e7eb; font-size: 12px; }
.file-panel, .log-panel, .file-bar { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); }
.file-table { width: 100%; font-size: 13px; }
.file-upload { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   管理后台
   ========================================================================== */
.admin-body { background: var(--bg-2); }
.admin-body::before { display: none; }
.admin-shell { display: grid; grid-template-columns: 214px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px;
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { padding: 4px 6px; }
.admin-side .brand-text b { font-size: 15.5px; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a {
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 500;
  transition: background .16s, color .16s;
}
.admin-side nav a:hover { background: var(--brand-soft); color: var(--text); }
.admin-side nav a.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); box-shadow: 0 6px 16px -8px var(--brand); }
.admin-side nav a.active:hover { color: var(--on-brand); }
.side-foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-foot a { font-size: 12.5px; color: var(--text-3); padding: 6px 10px; border-radius: 8px; }
.side-foot a:hover { background: var(--brand-soft); color: var(--text); }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 26px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.admin-top h1 { font-size: 18px; margin: 0; }
.admin-top span { font-size: 12.5px; color: var(--text-3); }
.admin-content { padding: 24px 26px 46px; max-width: 1220px; width: 100%; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-native { display: block; }
.native-wrap { display: block; }
.native-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.native-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.native-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.checklist { display: grid; gap: 8px; }
.artifacts { display: grid; gap: 8px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding: 46px 0 30px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand b { font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }
.footer-ver { font-size: 12px; color: var(--text-3); margin-top: 6px; font-family: Consolas, monospace; }
.footer-col h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--text-2); padding: 4px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: 16px 0 22px; 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); }

/* ---------- CTA ---------- */
.cta-band { padding: 54px 0; background: linear-gradient(120deg, var(--brand), var(--brand-2)); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 82% 10%, rgba(255, 255, 255, .26), transparent 60%);
}
.cta-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, .9); margin: 0; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   动效
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .mock-window { transform: none; max-width: 460px; }
  .float-a { left: 0; } .float-b { right: 0; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 102px 14px auto; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: var(--radius); background: var(--card);
    border: 1px solid var(--card-line); box-shadow: var(--shadow-lg);
    display: none; z-index: 70;
  }
  .main-nav.open { display: flex; animation: dropIn .22s ease; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .main-nav a { padding: 11px 13px; }
  .nav-burger { display: inline-flex; }
  .header-inner { height: 62px; gap: 10px; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 54px 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; overflow-x: auto; align-items: center; }
  .admin-side nav { display: flex; gap: 4px; }
  .admin-side .side-foot { display: none; }
  .admin-top, .admin-content { padding-left: 16px; padding-right: 16px; }
  .form-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top-strip-inner { font-size: 11.5px; }
  .ts-right { display: none; }
  .container { width: calc(100% - 28px); }
  .ml-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .release-hero { padding: 20px; }
  .theme-menu { width: 250px; right: -6px; }
  .hero-points li { font-size: 13px; }
  .btn-lg { width: 100%; }
}
