/* ==========================================================================
   微赢棋牌 CN 中文官方站 — 共享样式表 /assets/site.css
   母题：技术蓝图网格 × 赛博棋牌夜场
   层级：0 Reset / 1 Tokens / 2 基底 / 3 页头 / 4 页脚 / 5 通用组件 / 6 响应式与动效
   ========================================================================== */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }

/* ---------- 1. Tokens ---------- */
:root {
  /* 色彩 */
  --ink: #0B1026;
  --panel: #141B3A;
  --panel-2: #0F1530;
  --cyan: #22E0D6;
  --violet: #7C5CFF;
  --magenta: #FF3FA4;
  --gold: #F2B544;
  --felt: #1F7A5C;
  --text: #C7CFDD;
  --white: #F5F8FF;
  --line: #2A3560;
  --coral: #FF6B57;
  --muted: #8A94B0;

  --line-soft: rgba(42, 53, 96, 0.72);
  --cyan-line: rgba(34, 224, 214, 0.46);
  --cyan-wash: rgba(34, 224, 214, 0.10);
  --violet-wash: rgba(124, 92, 255, 0.12);

  /* 字体 */
  --font-display: "Oswald", "Archivo Narrow", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 字号阶跃 */
  --fs-display: clamp(2.2rem, 5vw, 4.4rem);
  --fs-section: clamp(1.5rem, 2.6vw, 2.2rem);
  --fs-body: 1rem;
  --fs-note: 0.78rem;

  /* 度量 */
  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --header-h: 66px;
  --radius: 3px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) { :root { --header-h: 76px; } }
@media (min-width: 1100px) { :root { --header-h: 86px; } }

/* ---------- 2. 基底 ---------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(42, 53, 96, 0.40) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 53, 96, 0.28) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% -6%, rgba(124, 92, 255, 0.17), transparent 70%),
    radial-gradient(760px 380px at 6% 2%, rgba(34, 224, 214, 0.10), transparent 70%),
    radial-gradient(620px 320px at 96% 68%, rgba(255, 63, 164, 0.07), transparent 72%);
}

main { position: relative; z-index: 1; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  line-height: 1.14;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-section); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: 0; }
h4 { font-size: 1rem; letter-spacing: 0; }

.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

::selection { background: var(--cyan); color: #04121A; }

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: #04121A;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* 容器 */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--wide { max-width: 1560px; }
.page-offset { padding-top: calc(var(--header-h) + clamp(1.2rem, 4vw, 2.6rem)); }

/* ---------- 3. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-solid {
  background: rgba(11, 16, 38, 0.95);
  border-bottom-color: var(--cyan-line);
  box-shadow: 0 24px 46px -36px rgba(0, 0, 0, 0.95);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header.is-solid {
    background: rgba(11, 16, 38, 0.84);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    backdrop-filter: blur(10px) saturate(150%);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-height: var(--header-h);
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; color: var(--white); }
.brand-mark {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--cyan-line);
  border-radius: 2px;
  background: rgba(34, 224, 214, 0.05);
}
.brand-mark i { position: absolute; left: 4px; height: 2px; border-radius: 1px; }
.brand-mark i:nth-child(1) { top: 4px; width: 8px; background: var(--cyan); }
.brand-mark i:nth-child(2) { top: 10px; width: 15px; background: var(--gold); }
.brand-mark i:nth-child(3) { top: 16px; width: 5px; background: var(--magenta); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 27, 58, 0.6);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan-line); background: var(--cyan-wash); }
.nav-toggle-bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle-bars i { display: block; height: 1.5px; background: var(--cyan); transition: transform 0.18s var(--ease), opacity 0.18s var(--ease); }
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan-line); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.nav-toggle-label { white-space: nowrap; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(0.5rem, 1.6vw, 1.4rem);
}
.nav-groups { display: flex; align-items: stretch; order: 1; }
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-inline: clamp(0.6rem, 1.3vw, 1.1rem);
  border-left: 1px solid var(--line-soft);
}
.nav-group:first-child { border-left: 0; padding-left: 0; }
.nav-group-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  line-height: 1;
}
.nav-list { display: flex; align-items: center; gap: clamp(0.35rem, 0.9vw, 0.75rem); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--magenta); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
  flex: 0 0 auto;
  padding-left: clamp(0.6rem, 1.3vw, 1.1rem);
  border-left: 1px solid var(--line-soft);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--magenta));
}

/* ---------- 4. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(180deg, rgba(20, 27, 58, 0.55), rgba(11, 16, 38, 0.98) 44%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(340px, 44%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 224, 214, 0));
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.42rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer-brand-line { margin-top: 0.55rem; font-size: 0.86rem; line-height: 1.75; color: var(--muted); max-width: 34ch; }
.footer-note {
  margin-top: 0.9rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--cyan-line);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 1.5rem; }
.footer-col-title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.footer-list li + li { margin-top: 0.5rem; }
.footer-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-link:hover { color: var(--magenta); transform: translateX(3px); }
.footer-contact { min-width: 0; }
.footer-contact-list { display: grid; gap: 0.7rem; }
.footer-contact-item { display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.84rem; }
.footer-contact-label {
  flex: 0 0 3.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.footer-contact-value { color: var(--white); word-break: break-word; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.footer-legal, .footer-copy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- 5. 通用组件 ---------- */
/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(20, 27, 58, 0.55);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { border-color: var(--cyan-line); background: var(--cyan-wash); color: var(--white); transform: translateY(-1px); }
.btn--solid { background: var(--cyan); border-color: var(--cyan); color: #04121A; }
.btn--solid:hover { background: var(--magenta); border-color: var(--magenta); color: #16020E; }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }

/* 面包屑 */
.breadcrumb { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.breadcrumb-item { display: inline-flex; align-items: center; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 0.55rem; color: var(--line); }
.breadcrumb-link { color: var(--muted); transition: color 0.16s var(--ease); }
.breadcrumb-link:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--white); }

/* 章节 */
.section { padding-block: clamp(2.2rem, 5.5vw, 4.2rem); }
.section--tight { padding-block: clamp(1.4rem, 3vw, 2.2rem); }
.section--bleed { background: linear-gradient(180deg, rgba(20, 27, 58, 0.5), rgba(11, 16, 38, 0)); }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 0.85rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(1.2rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.section-title { font-size: var(--fs-section); }
.section-note {
  writing-mode: vertical-rl;
  justify-self: end;
  max-height: 4.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
}
.vert-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.rule { height: 1px; margin-block: clamp(1.6rem, 4vw, 2.8rem); border: 0; background: var(--line); }

/* 正文 */
.prose { max-width: 72ch; font-size: 1.02rem; line-height: 1.85; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.12rem; color: var(--white); }
.prose ul, .prose ol { padding-left: 1.15rem; }
.prose ul li { position: relative; list-style: none; padding-left: 1rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 1px; background: var(--cyan); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { padding-left: 1.1rem; border-left: 1px solid var(--cyan-line); color: var(--muted); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 2px;
  background: var(--cyan-wash);
  color: var(--cyan);
}
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(34, 224, 214, 0.35); transition: color 0.16s var(--ease), border-color 0.16s var(--ease); }
.prose a:hover { color: var(--magenta); border-bottom-color: var(--magenta); }

.link {
  color: var(--cyan);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.16s var(--ease), color 0.16s var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--magenta); }

/* 面板 */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 27, 58, 0.92), rgba(15, 21, 48, 0.92));
  box-shadow: var(--shadow-panel);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.panel:hover {
  border-color: var(--cyan-line);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 26px 50px -34px rgba(0, 0, 0, 0.95);
}
.panel--raised { transform: translateY(-2px); }
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 1.1rem; }

/* 指标 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.stat { padding: 1rem 1.1rem; background: var(--ink); }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.stat-unit { margin-left: 0.15em; font-size: 0.6em; color: var(--muted); }
.stat-label { display: block; margin-top: 0.4rem; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); }

/* 索引 */
.index-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.index-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  transition: background-color 0.16s var(--ease);
}
.index-item:hover { background: rgba(34, 224, 214, 0.07); }
.index-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--cyan); }

.index-rail {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.index-rail-link {
  display: block;
  padding: 0.5rem 0.7rem;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.index-rail-link:hover { color: var(--white); background: rgba(34, 224, 214, 0.08); }
.index-rail-link[aria-current="true"] { color: var(--cyan); background: rgba(34, 224, 214, 0.12); }

/* 折叠面板 */
.accordion { display: grid; gap: 0.6rem; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20, 27, 58, 0.5); }
.accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.accordion-toggle:hover { background: var(--cyan-wash); }
.accordion-toggle[aria-expanded="true"] { color: var(--cyan); }
.accordion-toggle::after { content: "+"; font-family: var(--font-mono); font-size: 1.05rem; line-height: 1; color: var(--cyan); }
.accordion-toggle[aria-expanded="true"]::after { content: "–"; }
.accordion-panel { padding: 0 1.05rem 1rem; font-size: 0.95rem; color: var(--text); }
.accordion-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.accordion-all:hover { border-color: var(--cyan-line); color: var(--cyan); background: var(--cyan-wash); }

/* 标签 */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 27, 58, 0.55);
  font-size: 0.8rem;
  color: var(--text);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.chip:hover { border-color: var(--cyan-line); color: var(--white); background: var(--cyan-wash); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--cyan); border-color: var(--cyan); color: #04121A; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}
.tag--gold { color: var(--gold); }
.tag--violet { color: var(--violet); }
.tag--felt { color: #4FD3A8; background: rgba(31, 122, 92, 0.26); }
.tag--magenta { color: var(--magenta); }

/* 数据表 */
.data-table { border: 1px solid var(--line); font-size: 0.88rem; }
.data-table caption {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: left;
}
.data-table th, .data-table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: rgba(20, 27, 58, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color 0.16s var(--ease); }
.data-table tbody tr:hover { background: rgba(34, 224, 214, 0.07); }
.data-table .is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--gold); text-align: right; }

/* 图片容器 */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(34, 224, 214, 0.10), rgba(124, 92, 255, 0.13) 48%, rgba(255, 63, 164, 0.08)),
    var(--panel-2);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--cyan-line);
  border-bottom: 1px solid var(--cyan-line);
  pointer-events: none;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--top { aspect-ratio: 4 / 3; }
.media-cap { margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.media-grid { display: grid; gap: clamp(0.7rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 网格 */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--asym { grid-template-columns: 1fr; }

/* ---------- 6. 响应式 ---------- */
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .brand-sub { display: none; }
  .footer-bottom { justify-content: flex-start; }
}

/* 移动 / 平板导航 */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 1rem var(--gutter) 1.4rem;
    background: rgba(11, 16, 38, 0.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--cyan-line);
    box-shadow: 0 34px 64px -42px rgba(0, 0, 0, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }
  .site-nav[data-open] { opacity: 1; visibility: visible; transform: none; }

  .nav-actions {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0;
    border-left: 0;
  }
  .nav-actions .btn { width: 100%; padding-block: 0.65rem; }

  .nav-groups {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
  }
  .nav-group { display: contents; }
  .nav-group-label { display: none; }
  .nav-list { display: contents; }

  .nav-list li { display: block; min-width: 0; }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0.6rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(20, 27, 58, 0.62);
    font-size: 0.84rem;
    text-align: center;
  }
  .nav-link::after { display: none; }
  .nav-link::before { display: none; }
  .nav-link:hover { background: var(--cyan-wash); border-color: var(--cyan-line); }
  .nav-link[aria-current="page"] { background: var(--cyan); border-color: var(--cyan); color: #04121A; }

  /* 高频入口前置 */
  [data-nav-key="home"] { order: 1; }
  [data-nav-key="questions"] { order: 2; }
  [data-nav-key="products"] { order: 3; }
  [data-nav-key="topics"] { order: 4; }
  [data-nav-key="contact"] { order: 5; }
  [data-nav-key="profile"] { order: 6; }
}
@media (max-width: 420px) {
  .nav-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-actions { grid-template-columns: 1fr; }
}

/* 动效降级 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .panel:hover, .panel--raised { transform: none; }
  .footer-link:hover { transform: none; }
  .site-nav { transform: none; }
}
