/* ==========================================================================
   GXT 官网 · 公共站点样式
   品牌主色 #1f4e79（与 GXT 客户端 LOGO 一致）
   纯离线、无 CDN：不引用任何外部字体 / 图片 / 脚本
   结构：设计变量 → 基础 → 按钮 → 页头页脚 → 首页 → 内页 → 组件 → 响应式
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --brand: #1f4e79;
  --brand-700: #16395a;
  --brand-600: #2a5f92;
  --brand-100: #dbe8f5;
  --brand-50: #eef4fa;
  --link: #1a73e8;

  --ink: #16191d;
  --ink-2: #3f4650;
  --muted: #6b7280;
  --muted-2: #9aa1ab;

  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e5e7eb;
  --line-2: #f0f1f3;

  --ok: #1a7f4b;
  --warn: #b45309;
  --danger: #c0392b;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-2: 0 4px 18px rgba(16, 24, 40, .08);
  --shadow-3: 0 18px 48px rgba(4, 20, 36, .18);
  --maxw: 1160px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
          "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;

  --grad-brand: linear-gradient(155deg, #1b4569 0%, #1f4e79 55%, #16395a 100%);
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > .site-main { flex: 1 0 auto; }

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); font-weight: 700; }
h1 { font-size: 34px; letter-spacing: -.5px; }
h2 { font-size: 26px; }
h3 { font-size: 17.5px; }

p { color: var(--ink-2); }

code, kbd, .mono {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--brand-700);
}
kbd { font-size: .86em; box-shadow: 0 1px 0 var(--brand-100); }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

::selection { background: rgba(31, 78, 121, .18); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* 辅助类 */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-size: 14px; transition: top .18s;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit; line-height: 1.4; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .12s, box-shadow .16s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(31, 78, 121, .22); }
.btn--primary:hover { background: var(--brand-600); box-shadow: 0 4px 12px rgba(31, 78, 121, .28); }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); color: var(--ink); background: #fbfcfd; }
.btn--white { background: #fff; color: var(--brand); box-shadow: 0 4px 14px rgba(4, 20, 36, .18); }
.btn--white:hover { background: #f1f6fb; }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn--light:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn--xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn--lg { padding: 13px 26px; font-size: 15.5px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }
.btn.is-copied { background: #e8f6ee; border-color: #c9e9d8; color: var(--ok); }

/* ---------- 徽标 / 标签 ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; background: var(--brand-50); color: var(--brand);
  border: 1px solid var(--brand-100); vertical-align: middle; line-height: 1.7;
  white-space: nowrap;
}
.pill--green { background: #e8f6ee; color: var(--ok); border-color: #c9e9d8; }
.pill--gray { background: #f3f4f6; color: var(--muted); border-color: var(--line); }
.pill--amber { background: #fdf3e3; color: var(--warn); border-color: #f3e0bf; }

.tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 6px;
  border: 1px solid transparent; white-space: nowrap; line-height: 1.7;
  flex: none;
}
.tag--add { background: #e8f6ee; color: var(--ok); border-color: #c9e9d8; }
.tag--fix { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.tag--perf { background: #f3eeff; color: #5b34c9; border-color: #ded2f7; }
.tag--other { background: #f3f4f6; color: var(--muted); border-color: var(--line); }

.ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  flex: none;
}
.ico .icon-svg { width: 21px; height: 21px; }
.ico--lg { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 0; }
.ico--lg .icon-svg { width: 25px; height: 25px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--brand-700);
  color: #cfe0f0;
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; text-align: center;
}
.topbar-text { color: #cfe0f0; }
.topbar-sep { opacity: .45; }
.topbar-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topbar-link:hover { color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(16, 24, 40, .08); }

.header-inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand-600), var(--brand-700));
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(31, 78, 121, .28);
  white-space: nowrap; overflow: hidden;
}
.brand-text { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-name {
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .1px;
  white-space: nowrap;
}
.brand-ver {
  font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle:hover { border-color: var(--muted-2); }
.nav-toggle-bar {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink-2); transition: transform .18s, opacity .18s;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  padding: 8px 12px; border-radius: 9px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.nav-link.is-active { color: var(--brand); font-weight: 700; background: var(--brand-50); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 8px; }
.header-cta-ver { font-size: 11px; font-weight: 500; opacity: .78; margin-left: 2px; }

/* ---------- Flash 提示 ---------- */
.flash-wrap .container { max-width: var(--maxw); }
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--brand-100); background: #fff;
  border-radius: 12px; padding: 12px 16px; margin: 18px 0 0;
  font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-1);
  transition: opacity .2s, transform .2s;
}
.flash-icon {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; background: var(--brand-600);
  margin-top: 1px;
}
.flash-text { flex: 1; min-width: 0; }
.flash-close {
  flex: none; background: none; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px;
}
.flash-close:hover { color: var(--ink); }
.flash-success { border-color: #c9e9d8; background: #f4fbf7; }
.flash-success .flash-icon { background: var(--ok); }
.flash-error { border-color: #f0cdc7; background: #fdf4f2; }
.flash-error .flash-icon { background: var(--danger); }
.flash-info { border-color: var(--brand-100); background: var(--brand-50); }
.flash-info .flash-icon { background: var(--brand-600); }
.flash-hide { opacity: 0; transform: translateY(-6px); }

/* ---------- 通用区块 ---------- */
.section { padding: 66px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 46px 0; }
.section-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.section-head { margin-bottom: 34px; max-width: 840px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; max-width: none; flex-wrap: wrap;
}
.section-head h2 { font-size: 27px; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; }
.section-head--row > div { max-width: 720px; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 9px;
}

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: 8px; }
.card > p { font-size: 14.5px; color: var(--muted); }
.card--hover { transition: box-shadow .18s, transform .18s, border-color .18s; }
.card--hover:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--brand-100); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.split--aside { grid-template-columns: 1.35fr 1fr; align-items: center; }
/* 网格子项允许收缩：避免长代码块 / 表格把卡片撑出移动端屏幕 */
.split > *, .grid > * { min-width: 0; }

.list-check { list-style: none; }
.list-check li {
  position: relative; padding-left: 27px; margin: 8px 0;
  font-size: 14.5px; color: var(--ink-2);
}
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 700; font-size: 14px;
}

.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  padding: 46px 28px; text-align: center; box-shadow: var(--shadow-1);
}
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.section-actions .btn { margin: 0; }

/* ---------- 提示块 ---------- */
.note {
  border-radius: var(--radius); padding: 15px 18px; font-size: 14px;
  border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-700);
  line-height: 1.75;
}
.note b { color: inherit; }
.note-text { white-space: pre-line; }
.note--warn { border-color: #f3e0bf; background: #fdf8ef; color: #8a5a10; }
.note--danger { border-color: #f0cdc7; background: #fdf1ef; color: #97331f; }
.note--info { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 380px at 12% -12%, rgba(94, 160, 220, .34), transparent 62%),
    radial-gradient(700px 300px at 100% 0%, rgba(126, 186, 238, .18), transparent 60%),
    var(--grad-brand);
  color: #fff;
  padding: 66px 0 74px;
}
.hero-glow {
  position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%);
  width: 1100px; height: 460px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(126, 186, 238, .22), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center;
}
.hero-copy { animation: fade-up .6s ease both; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hero-badge {
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #d9e8f6;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
  padding: 5px 13px; border-radius: 999px;
}
.hero-title {
  color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.18;
  letter-spacing: -1.1px; margin-bottom: 12px;
}
.hero-sub { font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; color: #bcd6ec; letter-spacing: .04em; margin-bottom: 18px; }
.hero-lede {
  color: #d3e2f0; font-size: 16px; max-width: 620px; margin-bottom: 28px;
  white-space: pre-line;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 20px 44px; }
.hero-fact .k { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.3; }
.hero-fact .v { font-size: 12.5px; color: #a9c6e0; }

.hero-visual { position: relative; animation: fade-up .7s .08s ease both; }
.hero-visual::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(50% 55% at 50% 45%, rgba(126, 186, 238, .30), rgba(126, 186, 238, 0) 72%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.window {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(4, 20, 36, .45), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.window-bar {
  height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: linear-gradient(#f8fafc, #eef1f6); border-bottom: 1px solid #e2e6ec;
}
.window-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.window-dot--r { background: #ff5f57; }
.window-dot--y { background: #febc2e; }
.window-dot--g { background: #28c840; }
.window-title {
  font-size: 12.5px; color: #5b6472; margin-left: 8px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window-badge {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 2px 9px;
}
.window-img { width: 100%; height: auto; background: #f4f7fa; }

/* ---------- 关于横幅 ---------- */
.aboutband {
  background: linear-gradient(180deg, #f3f8fd 0%, var(--brand-50) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.aboutband-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.aboutband-copy h2 { font-size: 24px; margin-bottom: 12px; }
.aboutband-text { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; }
.aboutband-list { display: grid; gap: 2px; }

/* ---------- 截图轮播（渐进增强） ---------- */
.shots {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #0f2b43; border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.shots-track { position: relative; aspect-ratio: 1296 / 804; }
.shot-slide { display: none; margin: 0; }
.shot-slide:first-child { display: block; }
.shot-img {
  width: 100%; height: 100%; object-fit: contain; background: #0f2b43;
  display: block;
}
.shots.carousel-ready .shot-slide {
  display: block; position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.shots.carousel-ready .shot-slide.is-active { opacity: 1; pointer-events: auto; }

.shot-nav {
  position: absolute; top: 46%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(12, 32, 51, .55); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: background .15s; z-index: 3;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.shot-nav:hover { background: rgba(31, 78, 121, .9); }
.shots.carousel-ready .shot-nav { display: flex; }
.shots.is-single .shot-nav, .shots.is-single .shot-dots { display: none; }
.shot-nav--prev { left: 16px; }
.shot-nav--next { right: 16px; }

.shot-dots {
  position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%);
  display: none; gap: 8px; z-index: 3;
}
.shots.carousel-ready .shot-dots { display: flex; }
.shot-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .38); cursor: pointer;
  transition: background .16s, width .2s;
}
.shot-dot.is-active { background: #fff; width: 22px; }

.shot-cap {
  padding: 12px 18px; font-size: 13px; color: #c7dcee; background: #12314b;
  border-top: 1px solid rgba(255, 255, 255, .08);
  min-height: 46px; display: flex; align-items: center;
}

/* ---------- 最新版本面板 ---------- */
.version-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; box-shadow: var(--shadow-2);
}
.version-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.version-head-main { min-width: 0; }
.version-no {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.4px;
}
.version-title {
  font-size: 13.5px; font-weight: 600; color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: 999px; padding: 3px 12px; letter-spacing: 0;
}
.version-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13.5px; color: var(--muted); margin-top: 8px;
}
.version-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.version-items {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 28px; margin-top: 24px;
}
.version-item { display: flex; align-items: flex-start; gap: 9px; }
.version-item-text { font-size: 14px; color: var(--ink-2); }
.version-more { margin-top: 14px; }

.version-mini {
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.version-mini--wide { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
.version-mini--wide p { flex: 1; min-width: 240px; margin: 0; }
.version-mini-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.version-mini-no {
  font-size: 20px; font-weight: 800; color: var(--brand-700);
}
.version-mini-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* SHA256 校验条 */
.sha-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding: 12px 16px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 10px;
}
.sha-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); flex: none;
}
.sha-value {
  flex: 1; min-width: 220px;
  font-family: var(--mono); font-size: 12.5px; color: var(--brand-700);
  word-break: break-all; background: none; border: 0; padding: 0;
}
.sha-copy { flex: none; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px 20px 64px;
  box-shadow: var(--shadow-1);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand);
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step p + p { margin-top: 6px; }
.quick-notes { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brand-100); }
.news-card--pinned { border-color: #f3e0bf; }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.news-card-link:hover { text-decoration: none; color: inherit; }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: #dbe8f5; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-cover img { transform: scale(1.03); }
.news-cover--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
}
.news-cover--placeholder span {
  font-size: 34px; font-weight: 800; letter-spacing: .16em;
  color: rgba(255, 255, 255, .82);
}
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.news-title { font-size: 17px; line-height: 1.45; color: var(--ink); }
.news-excerpt {
  font-size: 14px; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 6px;
  font-size: 12.5px; color: var(--muted-2);
}
.news-more { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.news-views { white-space: nowrap; }

/* 新闻工具栏 */
.news-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.news-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-search-input {
  font: inherit; font-size: 14px; padding: 9px 14px; min-width: 260px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.news-search-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, .12);
}
.category-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: rgba(31, 78, 121, .10);
  font-size: 11px; font-weight: 700; color: var(--brand); line-height: 1;
}
.chip.is-active .chip-count { background: rgba(255, 255, 255, .22); color: #fff; }
.news-result { margin-bottom: 22px; }

/* 分页 */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; margin-top: 36px;
}
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.page-link:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); text-decoration: none; }
.page-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.page-link--disabled { opacity: .45; pointer-events: none; }
.page-link--prev, .page-link--next { padding: 0 16px; }
.page-ellipsis { color: var(--muted-2); padding: 0 4px; }

/* ---------- FAQ 手风琴 ---------- */
.faq-groups { display: grid; gap: 34px; }
.faq-group-title {
  font-size: 19px; margin-bottom: 14px; padding-left: 12px;
  border-left: 3px solid var(--brand); line-height: 1.3;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: border-color .18s, box-shadow .18s;
}
.faq-item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-2); }
.faq-q {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background .15s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: #fbfcfd; }
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 300;
  color: var(--muted); line-height: 1; transition: color .15s;
}
.faq-item[open] .faq-q { background: var(--brand-50); color: var(--brand-700); }
.faq-item[open] .faq-q::after { content: "–"; color: var(--brand); }
.faq-a { padding: 16px 20px 20px; border-top: 1px solid var(--line-2); }
.faq-text {
  font-size: 14.5px; color: var(--ink-2); white-space: pre-line;
  margin: 0;
}
.faq-a .faq-text + .faq-text { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(600px 220px at 90% -20%, rgba(126, 186, 238, .28), transparent 60%),
    var(--grad-brand);
  border-radius: 18px; padding: 42px 46px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-3);
}
.cta-copy { max-width: 660px; }
.cta h2 { color: #fff; font-size: 25px; margin-bottom: 8px; }
.cta p { color: #cbdcEC; margin: 0; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 内页 Hero ---------- */
.page-hero {
  background:
    radial-gradient(760px 300px at 8% -30%, rgba(94, 160, 220, .30), transparent 62%),
    var(--grad-brand);
  color: #fff; padding: 34px 0 52px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -70% -10%; height: 280px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: #9fbdd8; margin-bottom: 20px;
}
.breadcrumb a { color: #cfe0f0; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-current] { color: #fff; opacity: .85; }
.page-hero-copy { max-width: 860px; }
.page-hero .eyebrow { color: #9fc6e8; }
.page-hero h1 { color: #fff; font-size: clamp(27px, 3.2vw, 38px); letter-spacing: -.6px; margin-bottom: 12px; }
.page-hero-lede { color: #d3e2f0; font-size: 15.5px; max-width: 780px; margin-bottom: 22px; }
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.page-hero--article { padding-bottom: 40px; }
.page-hero--article .page-hero-copy { max-width: 900px; }
.page-hero--article h1 { font-size: clamp(24px, 2.8vw, 33px); }

.article-meta-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: #b9d2e8; margin-bottom: 14px;
}
.article-meta-top .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); color: #e4f0fa; }

/* ---------- 下载页 ---------- */
.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; margin-top: 30px; }
.hero-stat dt { font-size: 12px; color: #a9c6e0; }
.hero-stat dd { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.35; }

.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; box-shadow: var(--shadow-2);
}
.dl-card--main {
  border-color: var(--brand-100);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.dl-card--updater { border-left: 4px solid var(--brand-600); }
.dl-head { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.dl-title-wrap { min-width: 0; }
.dl-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dl-title { font-size: 22px; letter-spacing: -.3px; }
.dl-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-size: 13.5px; color: var(--muted); margin-top: 8px;
}
.dl-meta b { color: var(--ink-2); }
.dl-desc { font-size: 14.5px; color: var(--ink-2); margin-top: 16px; }
.dl-notes { font-size: 13.5px; color: var(--muted); margin-top: 8px; white-space: pre-line; }
.dl-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.dl-hint { font-size: 12.5px; color: var(--warn); }

.req-card { padding: 26px 30px; }
.req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }

.install-steps { list-style: none; counter-reset: inst; display: grid; gap: 16px; }
.install-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 24px 20px 68px;
  box-shadow: var(--shadow-1);
}
.install-step::before {
  counter-increment: inst; content: counter(inst);
  position: absolute; left: 20px; top: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.install-text { display: block; font-size: 14.5px; color: var(--ink-2); }

.code-block {
  background: #0f2b43; color: #e3eef9; border-radius: 10px;
  padding: 14px 16px; font-family: var(--mono); font-size: 13px;
  overflow-x: auto; margin: 12px 0; border: 1px solid rgba(255, 255, 255, .08);
}
.code-block code { background: none; border: 0; color: inherit; padding: 0; }

/* ---------- 数据表 ---------- */
.table-wrap {
  overflow-x: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th, table.data td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
table.data th {
  background: #fafbfc; font-size: 12.5px; color: var(--muted);
  font-weight: 700; white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
table.data tr.is-current td { background: var(--brand-50); }
table.data .sha-cell { max-width: 430px; }
table.data .col-action { width: 116px; white-space: nowrap; }
table.data .muted { color: var(--muted); }

/* ---------- 更新日志时间轴 ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-100), var(--brand-600) 18%, var(--brand-100));
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute; left: -36px; top: 22px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand-100);
  display: flex; align-items: center; justify-content: center;
}
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.tl-item--current .tl-marker { border-color: #c9e9d8; }
.tl-item--current .tl-dot { background: var(--ok); }
.tl-body {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: var(--shadow-1);
}
.tl-item--current .tl-body { border-color: var(--brand-100); box-shadow: var(--shadow-2); }
.tl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-version { font-size: 22px; letter-spacing: -.3px; }
.tl-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-date { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.tl-title { font-size: 17px; margin: 6px 0 8px; }
.tl-summary { font-size: 14.5px; color: var(--muted); white-space: pre-line; }
.tl-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-items { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.tl-line { display: flex; align-items: flex-start; gap: 10px; }
.tl-line-text { font-size: 14px; color: var(--ink-2); word-break: break-word; }
.tl-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 使用教程 ---------- */
.guide-layout {
  display: grid; grid-template-columns: 282px minmax(0, 1fr);
  gap: 40px; align-items: start;
}
.guide-toc { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 16px; }
.guide-toc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-1);
}
.guide-toc-title { font-size: 15px; margin-bottom: 10px; }
.guide-toc nav { display: flex; flex-direction: column; gap: 2px; }
.guide-toc-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 13.5px;
  color: var(--ink-2); line-height: 1.5;
}
.guide-toc-link:hover { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.guide-toc-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand);
  font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.guide-toc-card--note { font-size: 13.5px; }
.guide-toc-card--note p { margin: 6px 0 10px; }
.guide-toc-card--note a { font-weight: 600; }

.guide-steps { display: flex; flex-direction: column; gap: 20px; }
.guide-step {
  display: flex; align-items: flex-start; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; box-shadow: var(--shadow-1);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.guide-step-no {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(145deg, var(--brand-600), var(--brand-700));
  color: #fff; font-size: 19px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(31, 78, 121, .25);
}
.guide-step-title { font-size: 18px; margin-bottom: 8px; }
.guide-step-desc { font-size: 14.5px; color: var(--ink-2); margin: 0; white-space: pre-line; }

/* ---------- 功能详解页 ---------- */
.feature-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-nav-link {
  font-size: 13.5px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s;
}
.feature-nav-link:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); text-decoration: none; }

.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-detail { padding: 28px 30px; scroll-margin-top: calc(var(--header-h) + 20px); }
.feature-detail-head { display: flex; align-items: flex-start; gap: 18px; }
.feature-detail-title { font-size: 20px; margin-bottom: 8px; }
.feature-detail-summary { font-size: 14.5px; color: var(--muted); margin: 0; }
.feature-detail-bullets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.feature-detail-bullets li { margin: 6px 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-summary { font-size: 14px; color: var(--muted); margin: 0; }
.feature-bullets { list-style: none; margin-top: 12px; display: grid; gap: 4px; }
.feature-bullets li {
  position: relative; padding-left: 16px; font-size: 13px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feature-bullets li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-100);
}

/* ---------- 新闻详情 ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 316px;
  gap: 36px; align-items: start;
}
.article-main { min-width: 0; }
.article-sheet {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 40px; box-shadow: var(--shadow-1);
}
.article-cover { margin: -36px -40px 28px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; }

.article-content { font-size: 15.5px; line-height: 1.9; color: var(--ink-2); overflow-wrap: break-word; }
.article-content > *:first-child { margin-top: 0; }
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--ink); margin: 34px 0 14px; }
.article-content h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.article-content h3 { font-size: 18px; }
.article-content h4 { font-size: 16px; }
.article-content p { margin: 0 0 16px; color: var(--ink-2); }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-content li { margin: 6px 0; }
.article-content a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; border: 1px solid var(--line); }
.article-content blockquote {
  margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--brand);
  background: var(--brand-50); border-radius: 0 10px 10px 0; color: var(--brand-700);
}
.article-content blockquote p { color: inherit; margin: 0; }
.article-content pre {
  background: #0f2b43; color: #e3eef9; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; margin: 20px 0; font-family: var(--mono);
  font-size: 13px; line-height: 1.7; border: 1px solid rgba(255, 255, 255, .06);
}
.article-content pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: #f8fafc; font-size: 13px; color: var(--muted); }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.article-nav-link {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-2);
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
a.article-nav-link:hover { border-color: var(--brand-100); box-shadow: var(--shadow-2); text-decoration: none; }
.article-nav-label { font-size: 12px; color: var(--muted); }
.article-nav-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-nav-link--next { text-align: right; }
.article-nav-link--empty { opacity: .6; }
.article-back { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.article-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-1);
}
.aside-title { font-size: 16px; margin-bottom: 14px; }
.aside-list { list-style: none; display: flex; flex-direction: column; }
.aside-list li { border-bottom: 1px solid var(--line-2); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 0;
  color: var(--ink-2); text-decoration: none;
}
.aside-list a:hover { color: var(--brand); text-decoration: none; }
.aside-item-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.aside-item-date { font-size: 12px; color: var(--muted-2); }
.aside-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--brand); }
.aside-card--cta .btn { margin-top: 12px; }

/* ---------- 联系页 / 联系区块 ---------- */
.contact-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 38px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }

.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; text-align: center; box-shadow: var(--shadow-1);
}
.qr-card img { width: 100%; max-width: 260px; margin: 0 auto; border-radius: 8px; }
.qr-cap { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

.contact-info { min-width: 0; }
.contact-note {
  font-size: 14px; color: var(--ink-2); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: var(--radius);
  padding: 14px 18px; white-space: pre-line;
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.contact-card { padding: 18px 20px; }
.contact-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.contact-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.contact-channels {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-1);
}
.contact-channel { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.contact-channels:empty { display: none; }
.contact-channel-label { flex: none; width: 56px; color: var(--muted); font-size: 13px; }
.contact-channel a, .contact-channel span:last-child { color: var(--ink-2); word-break: break-all; }

.contact-form-card { padding: 30px 32px; }
.contact-form-title { font-size: 22px; margin-bottom: 6px; }
.contact-form-desc { margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form input,
.form textarea {
  font: inherit; font-size: 14.5px; width: 100%;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--muted-2); }
.form input:focus,
.form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, .12);
}
.form textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.form-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.form-hint--row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.char-count { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.char-count.is-near-limit { color: var(--warn); }
.req-mark { color: var(--danger); font-weight: 700; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.form-privacy { margin-top: 14px; }
.license-grid .card h3 { margin-bottom: 10px; }
.license-grid .list-check li { font-size: 14px; }

/* ---------- 错误页 ---------- */
.error-page { padding: 78px 0 90px; }
.error-inner { max-width: 720px; text-align: center; }
.error-code {
  font-size: clamp(76px, 14vw, 124px); font-weight: 800; line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(140deg, var(--brand-600), var(--brand) 45%, var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.error-code--500 { background: linear-gradient(140deg, #8a5a10, #b45309 55%, #97331f); -webkit-background-clip: text; background-clip: text; }
.error-page h1 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.error-desc { font-size: 15.5px; color: var(--muted); margin-bottom: 8px; white-space: pre-line; }
.error-hint { margin-bottom: 8px; }
.error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.error-links {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: var(--muted);
}
.error-links a { color: var(--brand); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #14304a; color: #a9c6e0;
  margin-top: auto; padding: 48px 0 26px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 34px; margin-bottom: 34px;
}
.footer-brand-line { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 14px; }
.footer-brand-line:hover { text-decoration: none; }
.footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.footer-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  background: linear-gradient(140deg, #2a5f92, #1f4e79);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-brand-text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-brand-text strong { color: #fff; font-size: 16px; }
.footer-ver {
  font-size: 10.5px; font-weight: 700; color: #d7e7f7;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 1px 8px;
}
.footer-desc { color: #8fb0cd; font-size: 13.5px; max-width: 330px; margin-bottom: 10px; }
.footer-domain { font-size: 12.5px; color: #6f93b3; letter-spacing: .04em; text-transform: uppercase; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 700; }
.footer-col a {
  display: block; padding: 3px 0; font-size: 13.5px; color: #a9c6e0; text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 700; }
.footer-qr { display: flex; align-items: center; gap: 12px; }
.footer-qr img {
  width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 5px; flex: none;
}
.footer-qr span { font-size: 12px; color: #8fb0cd; line-height: 1.7; }
.footer-contact-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #a9c6e0; }
.footer-contact-link:hover { color: #fff; }
.footer-linkrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
  padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 12.5px;
}
.footer-linkrow a { color: #8fb0cd; text-decoration: none; }
.footer-linkrow a:hover { color: #fff; text-decoration: underline; }
.footer-linkrow a:not(:last-child)::after {
  content: "·"; margin: 0 10px; color: #5d7f9e;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px 28px; flex-wrap: wrap; font-size: 12.5px; color: #86a6c2;
}
.footer-copy { color: #86a6c2; margin: 0; }
.footer-note { color: #6f93b3; margin: 0; max-width: 660px; }
.footer-icp a { color: #86a6c2; }
.footer-icp a:hover { color: #fff; }

/* ---------- Toast / 回到顶部 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 300;
  transform: translate(-50%, 12px);
  background: rgba(20, 32, 45, .96); color: #fff;
  font-size: 13.5px; padding: 11px 20px; border-radius: 10px;
  box-shadow: var(--shadow-2); max-width: 82vw; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-2); color: var(--brand);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .15s;
}
.to-top:hover { background: var(--brand-50); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 动画 ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式：≥1200 大桌面 / 1024–1199 紧凑桌面 / 768–1023 平板 / <768 手机
   ========================================================================== */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner { gap: 14px; }
  .brand-name { font-size: 15.5px; }
  .brand-ver { display: none; }
  .nav-link { padding: 7px 9px; font-size: 13.5px; }
  .header-actions { margin-left: 4px; }
  .header-cta { padding: 7px 12px; font-size: 13px; }
  .header-cta-ver { display: none; }
  .hero-inner { gap: 40px; }
}

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

  /* 平板：压缩页头，隐藏公告条与文字 CTA，导航保持完整但更紧凑 */
  .topbar { display: none; }
  .header-inner { gap: 12px; }
  .brand-logo, .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-name { font-size: 15.5px; }
  .brand-ver { display: none; }
  .site-nav { gap: 0; }
  .nav-link { padding: 6px 8px; font-size: 13.5px; }
  .header-actions { display: none; }

  .hero { padding: 52px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 760px; }
  .hero-lede { max-width: 720px; }
  .hero-facts { gap: 18px 34px; }

  .section { padding: 54px 0; }
  .section--tight { padding: 42px 0; }
  .section-head h2 { font-size: 24px; }

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

  .aboutband-inner { grid-template-columns: 1fr; gap: 26px; }
  .split { grid-template-columns: 1fr; }
  .split--aside { grid-template-columns: 1fr; }

  .version-items { grid-template-columns: 1fr; }
  .req-list { grid-template-columns: 1fr; }

  .guide-layout { grid-template-columns: 1fr; gap: 26px; }
  .guide-toc { position: static; }
  .guide-toc nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .guide-toc-link { background: #fff; border: 1px solid var(--line); padding: 7px 11px; flex: 0 0 auto; }
  .guide-toc-card { padding: 16px; }
  .guide-toc-card--note { display: none; }

  .article-layout { grid-template-columns: 1fr; gap: 26px; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-aside .aside-card { flex: 1 1 300px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 18px; }
  .contact-side .note--warn { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .qr-card { max-width: 320px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-qr img { width: 104px; height: 104px; }

  .cta { padding: 34px 36px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }

  .topbar { display: none; }
  .header-inner { flex-wrap: wrap; min-height: 60px; gap: 10px; padding: 9px 0; }
  .brand { gap: 9px; }
  .brand-logo, .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-name { font-size: 15.5px; }
  .brand-ver { display: none; }

  /* 无 JS：导航直接展开为换行菜单，保证可读可点 */
  .site-nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    display: flex; flex-wrap: wrap; gap: 2px;
    padding-top: 6px; border-top: 1px solid var(--line-2);
  }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .nav-toggle { display: none; }

  /* 有 JS：折叠为抽屉菜单 */
  html.js .header-inner { flex-wrap: nowrap; }
  html.js .nav-toggle { display: inline-flex; margin-left: auto; order: 3; }
  html.js .header-actions { display: none; }
  html.js .site-nav {
    display: none; position: absolute; z-index: 90;
    top: 100%; left: -16px; right: -16px; margin: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(16, 24, 40, .14);
    padding: 8px 8px 14px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  html.js .site-nav.is-open { display: flex; }
  html.js .site-nav .nav-link { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  html.js .site-nav .nav-link.is-active { background: var(--brand-50); }

  .hero { padding: 40px 0 46px; }
  .hero-badges { margin-bottom: 16px; }
  .hero-badge { font-size: 11.5px; padding: 4px 11px; }
  .hero-title { letter-spacing: -.6px; }
  .hero-sub { font-size: 16px; }
  .hero-lede { font-size: 14.5px; }
  .hero-actions { gap: 10px; margin-bottom: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .hero-fact .k { font-size: 19px; }
  .hero-visual { margin-top: 4px; }
  .window-bar { height: 32px; padding: 0 11px; }
  .window-title { font-size: 11px; }
  .window-badge { display: none; }
  .window-dot { width: 9px; height: 9px; }

  .page-hero { padding: 26px 0 38px; }
  .breadcrumb { margin-bottom: 16px; }
  .page-hero-lede { font-size: 14.5px; }
  .page-hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 24px; }
  .hero-stat dd { font-size: 19px; }

  .section { padding: 44px 0; }
  .section--tight { padding: 36px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 14px; }
  .section-head--row { align-items: flex-start; gap: 14px; }
  .section-head--row .btn { margin-top: 2px; }

  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-grid, .news-grid--list { grid-template-columns: 1fr; gap: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .aboutband { padding: 34px 0; }
  .aboutband-copy h2 { font-size: 21px; }

  .version-panel { padding: 22px; border-radius: 14px; }
  .version-panel-head { flex-direction: column; gap: 16px; }
  .version-no { font-size: 21px; }
  .version-actions { width: 100%; }
  .version-actions .btn { flex: 1 1 auto; }
  .version-items { gap: 10px; margin-top: 18px; }
  .version-mini--wide { flex-direction: column; align-items: flex-start; }
  .sha-box { padding: 12px; gap: 8px; }
  .sha-value { min-width: 100%; order: 3; }
  .sha-copy { order: 2; margin-left: auto; }

  .shots { border-radius: 14px; }
  .shot-nav { width: 34px; height: 34px; font-size: 19px; }
  .shot-nav--prev { left: 8px; }
  .shot-nav--next { right: 8px; }
  .shot-dots { bottom: 48px; }
  .shot-cap { font-size: 12px; padding: 10px 14px; min-height: 44px; }

  .dl-card { padding: 22px; border-radius: 14px; }
  .dl-title { font-size: 19px; }
  .dl-meta { font-size: 12.5px; gap: 5px 14px; }
  .dl-actions { gap: 10px; }
  .dl-actions .btn { flex: 1 1 auto; }

  .req-card { padding: 20px 22px; }

  .cta { padding: 28px 24px; border-radius: 14px; flex-direction: column; align-items: flex-start; }
  .cta h2 { font-size: 21px; }
  .cta p { font-size: 14px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }

  .timeline { padding-left: 26px; }
  .timeline::before { left: 7px; }
  .tl-marker { left: -26px; top: 20px; width: 16px; height: 16px; }
  .tl-dot { width: 6px; height: 6px; }
  .tl-body { padding: 18px; border-radius: 14px; }
  .tl-version { font-size: 19px; }
  .tl-title { font-size: 15.5px; }
  .tl-head { gap: 10px; }
  .tl-counts { margin-top: 12px; }
  .tl-items { margin-top: 12px; }

  .guide-steps { gap: 16px; }
  .guide-step { padding: 18px; gap: 14px; border-radius: 14px; }
  .guide-step-no { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
  .guide-step-title { font-size: 16px; }

  .feature-detail { padding: 20px; border-radius: 14px; }
  .feature-detail-head { gap: 14px; }
  .feature-detail-title { font-size: 17.5px; }
  .feature-detail-bullets { margin-top: 14px; padding-top: 14px; }

  .article-sheet { padding: 22px 20px; border-radius: 14px; }
  .article-cover { margin: -22px -20px 20px; }
  .article-content { font-size: 15px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-aside { flex-direction: column; }
  .article-back .btn { flex: 1 1 auto; }

  .contact-side { display: flex; flex-direction: column; }
  .qr-card { max-width: 300px; margin: 0 auto; width: 100%; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-card { padding: 22px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid .footer-about { grid-column: 1 / -1; }
  .footer-grid .footer-contact { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .footer-grid .footer-contact h4 { width: 100%; margin-bottom: 0; }
  .footer-qr { flex: 1; }
  .footer-contact-link { margin-top: 0; }
  .site-footer { padding: 36px 0 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .news-toolbar { flex-direction: column; align-items: stretch; }
  .news-search { width: 100%; }
  .news-search-input { flex: 1; min-width: 0; }
  .category-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chip { flex: none; }

  .pagination { gap: 5px; margin-top: 28px; }
  .page-link { min-width: 34px; height: 34px; font-size: 13px; padding: 0 10px; }
  .page-link--prev, .page-link--next { padding: 0 12px; }

  .error-page { padding: 54px 0 64px; }
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { width: 100%; }
  .error-links { gap: 10px; }

  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .toast { bottom: 20px; font-size: 13px; padding: 10px 16px; }
}

/* 超小屏微调 */
@media (max-width: 420px) {
  .hero-actions .btn, .page-hero-actions .btn, .cta-actions .btn { flex-basis: 100%; }
  .hero-title { font-size: 27px; }
  .brand-name { font-size: 14.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-about { grid-column: auto; }
}

/* ---------- 动效偏好 / 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .topbar, .to-top, .toast, .cta, .site-footer,
  .nav-toggle, .shot-nav, .shot-dots, .skip-link, .flash-wrap { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section, .section--alt { padding: 12pt 0; border: 0; }
  .container { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: underline; }
  .card, .dl-card, .tl-body, .guide-step, .article-sheet { box-shadow: none; border-color: #ccc; }
}

/* ==========================================================================
   会员系统（frontend-member）
   新增：登录/注册、会员中心、页头会员入口、下载页会员提示
   约定：只新增 .member-* / .auth-* / .header-member* 等选择器，不改动上方已有规则
   ========================================================================== */

/* ---------- 页头会员入口 ---------- */
.header-member {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; max-width: 168px; text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.header-member:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); text-decoration: none; }
.header-member-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand); font-size: 12.5px; font-weight: 800;
}
.header-member-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.header-member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-login {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  padding: 6px 8px; border-radius: 8px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.header-login:hover { color: var(--brand); background: var(--brand-50); text-decoration: none; }
.header-logout { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.header-logout:hover { color: var(--ink); text-decoration: underline; }
.header-actions--member { flex-wrap: nowrap; }
.header-member-nav { display: none; }

/* ---------- 登录 / 注册 ---------- */
.member-auth-card { width: 100%; max-width: 560px; margin: 0 auto; padding: 30px 32px; }
.member-auth-alert { margin-bottom: 18px; }
.member-auth-devnote { margin-bottom: 18px; font-size: 13px; }
.member-auth-errors { margin: 6px 0 0; padding-left: 20px; }
.member-auth-errors li + li { margin-top: 4px; }
.member-auth-desc { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.member-auth-mock { margin-top: 12px; text-align: center; }
.member-auth-foot { max-width: 560px; margin: 18px auto 0; text-align: center; }
.member-auth-foot a { color: var(--brand); }

.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1 1 0; min-width: 0; padding: 9px 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-family: inherit;
  font-size: 13.5px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
}
.auth-tab:hover { color: var(--brand); }
.auth-tab.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow-1); }
.auth-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.auth-panel { margin-top: 4px; }
.auth-panel[hidden] { display: none; }
.auth-panel + .auth-panel { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.auth-alt { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--brand); font-weight: 600; }

.sms-code-row { display: flex; align-items: stretch; gap: 8px; }
.sms-code-row input { flex: 1 1 auto; min-width: 0; width: auto; }
.sms-code-row .btn { flex: none; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.sms-feedback:empty { display: none; }
.sms-feedback.is-error { color: var(--danger); }
.sms-feedback.is-ok { color: var(--ok); }
.sms-dev-code {
  border: 1px dashed var(--brand-100); background: var(--brand-50);
  color: var(--brand-700); border-radius: 8px; padding: 6px 10px;
  font-size: 12.5px; font-weight: 600;
}
.sms-dev-code[hidden] { display: none; }
.sms-send.is-counting { opacity: .7; }

.auth-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; font-weight: 400; color: var(--muted);
  line-height: 1.65; cursor: pointer;
}
.auth-check input {
  flex: none; width: 16px; height: 16px; margin: 2px 0 0; padding: 0;
  accent-color: var(--brand); cursor: pointer;
}
.auth-check a { color: var(--brand); }

/* 无 JS 降级：隐藏 Tab 栏，平铺展示所有登录方式 */
html.no-js .auth-tabs { display: none; }
html.no-js .auth-panel[hidden] { display: block; }

/* ---------- 会员中心 ---------- */
.member-profile { display: flex; align-items: flex-start; gap: 22px; }
.member-avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand); font-size: 28px; font-weight: 800;
}
.member-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-profile-main { flex: 1 1 auto; min-width: 0; }
.member-profile-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.member-profile-name { font-size: 22px; letter-spacing: -.2px; word-break: break-word; }
.member-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 24px; margin: 0;
}
.member-meta-item { min-width: 0; }
.member-meta-item dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.member-meta-item dd { font-size: 14.5px; font-weight: 600; color: var(--ink-2); word-break: break-word; margin: 0; }

.member-section { margin-top: 34px; }
.member-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.member-section-head .eyebrow { margin-bottom: 6px; }
.member-section-head h2 { font-size: 22px; margin-bottom: 0; }
.member-section-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.member-file { font-size: 13px; color: var(--ink-2); word-break: break-all; }
.member-empty { padding: 34px 22px; }
.member-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member-setting h3 { font-size: 17px; margin-bottom: 6px; }
.member-setting > p { font-size: 13px; margin-bottom: 4px; }
.member-setting .form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.member-setting .form-actions { margin-top: 2px; }
.member-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid var(--line);
}

/* ---------- 下载页会员提示 ---------- */
.member-gate { padding: 30px 0 0; }
.member-gate-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.member-gate-text { flex: 1 1 260px; min-width: 0; }
.member-gate-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: none; }
.dl-hint.member-dl-hint { color: var(--ok); }

/* ---------- 响应式：1024–1199 紧凑桌面 ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-actions--member { gap: 6px; }
  .header-actions--member .header-member { padding: 3px; }
  .header-actions--member .header-member-name { display: none; }
  .header-actions--member .header-login { padding: 4px 6px; font-size: 13px; }
  .header-actions--member .header-register { padding: 5px 10px; font-size: 12.5px; }
  .header-actions--member .header-cta { padding: 6px 10px; font-size: 12.5px; }
}

/* ---------- 响应式：≤768 手机 ---------- */
@media (max-width: 767px) {
  /* 页头：沿用既有设计（≤1023 隐藏 .header-actions），
     会员入口在手机端以精简形态显示，避免换行溢出 */
  html.js .header-actions--member { display: flex; gap: 6px; margin-left: auto; }
  html.js .header-actions--member .header-cta { display: none; }
  html.js .header-actions--member .header-register { display: none; }
  html.js .header-actions--member .header-member-name { display: none; }
  html.js .header-actions--member .header-member { padding: 3px; }
  html.js .header-actions--member .header-logout { font-size: 12.5px; }

  .header-member-nav {
    display: flex; flex-direction: column; gap: 2px; flex-basis: 100%;
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2);
  }
  .header-member-nav-link { color: var(--brand); font-weight: 600; }

  .member-auth-card { padding: 22px 18px; border-radius: 14px; }
  .auth-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 18px; }
  .auth-tab { flex: 0 0 auto; padding: 9px 14px; }
  .member-auth-foot { text-align: left; }

  .member-profile { flex-direction: column; align-items: flex-start; gap: 16px; }
  .member-profile-name { font-size: 20px; }
  .member-meta { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .member-settings { grid-template-columns: 1fr; }
  .member-section { margin-top: 28px; }
  .member-section-head { align-items: flex-start; }
  .member-section-head h2 { font-size: 20px; }
  .member-actions .btn, .member-gate-actions .btn { flex: 1 1 auto; }
}

/* ---------- 响应式：≤420 超小屏 ---------- */
@media (max-width: 420px) {
  .header-member-name { display: none; }
  .header-member { padding: 3px; }
  .member-avatar { width: 60px; height: 60px; font-size: 24px; }
  .member-meta { grid-template-columns: 1fr; }
}

/* ---------- 响应式：≤360 极窄屏 ---------- */
@media (max-width: 360px) {
  .header-register { display: none; }
  html.js .header-actions--member .header-logout { display: none; }
}

/* ---------- 短信防刷：图形验证码 ---------- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.captcha-row input {
  flex: 1 1 110px;
  min-width: 0;
  text-transform: uppercase;
}
.captcha-img {
  flex: none;
  width: 148px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7fb;
  cursor: pointer;
}
.captcha-row .btn { flex: none; }
@media (max-width: 420px) {
  .captcha-img { width: 128px; height: 42px; }
}

