/* ==========================================================================
   DataBridge — site.css
   单文件样式系统。改色/改间距只动 :root 变量。
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg-elev: #0c0e13;
  --panel: #101319;
  --panel-2: #151920;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #e9ebf1;
  --text-dim: #a3aab9;
  --text-faint: #6e7687;

  --accent: #5be3b0;
  --accent-soft: rgba(91, 227, 176, 0.12);
  --accent-line: rgba(91, 227, 176, 0.32);
  --accent-ink: #04231a;
  --warn: #f0c274;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --gutter: 24px;
  --header-h: 66px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景网格 + 顶部辉光，纯 CSS 无图片 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 58% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 58% at 50% 0%, #000 35%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  top: -420px;
  left: 50%;
  width: 900px;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 227, 176, 0.09), transparent 62%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0;
}

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

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

::selection {
  background: rgba(91, 227, 176, 0.25);
}

/* ------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.page {
  position: relative;
  z-index: 1;
}

section.block {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

section.block:first-of-type {
  border-top: 0;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent-line);
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.65rem, 3.3vw, 2.45rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.lead {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--text-dim);
  max-width: 620px;
}

.sec-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 9, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  color: var(--accent);
  flex: none;
}

.brand small {
  font: 500 11px/1 var(--mono);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
}

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

.nav a {
  color: var(--text-dim);
  font-size: 0.93rem;
  padding: 7px 12px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* 仅移动端菜单内出现的登录入口 */
.nav .nav-login {
  display: none;
}

@media (max-width: 860px) {
  .nav .nav-login {
    display: block;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    padding-top: 13px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: #74f0c1;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding: 76px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero .lead {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font: 400 12.5px/1.6 var(--mono);
  color: var(--text-faint);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* 终端卡 */
.term {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1218, #090b0f);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.term-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #262c36;
}

.term-bar em {
  margin-left: 10px;
  font: 400 11.5px/1 var(--mono);
  font-style: normal;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.term pre {
  margin: 0;
  padding: 16px 18px 18px;
  font: 400 12.8px/1.78 var(--mono);
  color: #c9d1e0;
  overflow-x: auto;
  tab-size: 2;
}

.term pre + pre {
  padding-top: 0;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.tok-cmd {
  color: var(--accent);
}

.tok-key {
  color: #a9bdf5;
}

.tok-str {
  color: #d8c48a;
}

.tok-num {
  color: #e39a8a;
}

.tok-cmt {
  color: var(--text-faint);
}

.tok-flag {
  color: #9fb0c9;
}

/* ---------------------------------------------------------- pain cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 网格/弹性子项默认 min-width:auto，只要内部有 pre 或表格，
   轨道就会被 min-content 撑宽（360px 下首页曾被撑到 648px）。
   统一放开收缩，让 pre 自己横向滚动。 */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-grid > *,
.tiers > *,
.doc-grid > *,
.channel,
.term,
.code-block,
.table-wrap,
pre {
  min-width: 0;
}


.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.18s, transform 0.18s;
}

.card:hover {
  border-color: var(--line-strong);
}

.card h3 {
  margin-bottom: 9px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.card .num {
  font: 500 12px/1 var(--mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

/* --------------------------------------------------------- channel card */
.channel {
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.channel header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.channel .badge {
  margin-bottom: 0;
}

.channel .term {
  box-shadow: none;
  margin-top: 20px;
  background: #090b0f;
}

.channel .term pre {
  font-size: 12.2px;
  padding: 14px 15px;
}

.channel ul {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.channel ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.channel ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-line);
}

.badge {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 9px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.badge.muted {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

/* -------------------------------------------------------- source cards */
.src-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.src-card .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.src-card h3 {
  font-size: 1rem;
}

.src-card .count {
  font: 500 12.5px/1 var(--mono);
  color: var(--accent);
}

.src-card p {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  font: 400 11.5px/1 var(--mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 8px;
}

/* --------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.stats div {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stats span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* -------------------------------------------------------------- pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.tier {
  background: linear-gradient(180deg, var(--panel), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(91, 227, 176, 0.07), var(--bg-elev) 55%);
  box-shadow: 0 0 0 1px rgba(91, 227, 176, 0.1);
}

.tier-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
}

.tier-desc {
  margin-top: 6px;
  font-size: 0.87rem;
  color: var(--text-faint);
  /* 固定两行高度，保证三档的价格与按钮在同一水平线 */
  min-height: 3.44em;
}

.price {
  margin: 18px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price b {
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  font-size: 0.86rem;
  color: var(--text-faint);
}

.tier .btn {
  margin-top: 22px;
}

.tier ul {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
}

.tier ul li {
  position: relative;
  padding-left: 23px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.tier ul li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.tier ul li.off {
  color: var(--text-faint);
}

.tier ul li.off::before {
  border-color: var(--text-faint);
  opacity: 0.45;
  transform: rotate(0);
  width: 9px;
  height: 1.5px;
  top: 12px;
  border-left: 0;
  border-radius: 1px;
  background: var(--text-faint);
}

/* --------------------------------------------------------------- table */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font: 500 11.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.022);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--text);
}

td.dim {
  color: var(--text-dim);
}

td.yes {
  color: var(--accent);
}

td.no {
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- code */
.code-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #090b0f;
  overflow: hidden;
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  font: 400 12.6px/1.75 var(--mono);
  color: #c9d1e0;
  overflow-x: auto;
}

.copy {
  position: absolute;
  top: 9px;
  right: 9px;
  height: 26px;
  padding: 0 9px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.code-block:hover .copy,
.copy:focus-visible {
  opacity: 1;
}

.copy:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab {
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 9px 14px;
  margin-bottom: -1px;
  font: 500 12.5px/1 var(--mono);
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.tabpanel[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- docs */
.doc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
}

.doc-nav a {
  color: var(--text-faint);
  padding: 7px 11px;
  border-left: 1.5px solid var(--line);
  border-radius: 0 5px 5px 0;
}

.doc-nav a:hover {
  color: var(--text);
  border-left-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.doc-section {
  padding-bottom: 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.doc-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.doc-section h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.doc-section h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

.doc-section p {
  color: var(--text-dim);
  margin-bottom: 14px;
  max-width: 680px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  font: 500 11.5px/1 var(--mono);
  color: var(--accent);
}

.steps li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.steps li p {
  font-size: 0.91rem;
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------- faq */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-weight: 500;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--text-dim);
  font-size: 0.94rem;
  max-width: 720px;
}

/* ----------------------------------------------------------------- cta */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 52px 44px;
  text-align: center;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(91, 227, 176, 0.1), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-elev));
}

.cta-band h2 {
  max-width: 620px;
  margin: 0 auto;
}

.cta-band p {
  color: var(--text-dim);
  margin: 14px auto 0;
  max-width: 520px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ------------------------------------------------------------- notice */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: rgba(91, 227, 176, 0.035);
  font-size: 0.92rem;
  color: var(--text-dim);
}

.notice strong {
  color: var(--text);
  font-weight: 600;
}

.notice.warn {
  border-left-color: rgba(240, 194, 116, 0.5);
  background: rgba(240, 194, 116, 0.04);
}

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.foot-brand p {
  color: var(--text-faint);
  font-size: 0.89rem;
  margin-top: 12px;
  max-width: 260px;
}

.foot-col h4 {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 5px 0;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.foot-bottom .mono {
  font-size: 0.78rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* --------------------------------------------------------- page-header */
.page-head {
  padding: 64px 0 44px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.page-head .lead {
  font-size: 1.02rem;
}

/* ------------------------------------------------------------ filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.87rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

.src-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.src-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.src-item .name {
  font-size: 0.94rem;
  font-weight: 500;
}

.src-item .meta {
  font: 400 11.5px/1 var(--mono);
  color: var(--text-faint);
  margin-top: 5px;
}

.src-item[hidden] {
  display: none;
}

.empty {
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 20px 0;
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    padding: 56px 0 68px;
  }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .doc-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .doc-nav a {
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 860px) {
  section.block {
    padding: 62px 0;
  }

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

  .tiers {
    grid-template-columns: 1fr;
  }

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

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  /* 移动端导航 */
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: rgba(9, 10, 14, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    padding: 11px 12px;
  }

  .site-header[data-open="true"] .nav {
    display: flex;
  }

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

  .header-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .src-list {
    grid-template-columns: 1fr;
  }

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

  .stats div {
    padding: 18px 16px;
  }

  .stats strong {
    font-size: 1.45rem;
  }

  .stats div:nth-child(2n) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-band {
    padding: 38px 22px;
  }

  .card,
  .channel,
  .tier {
    padding: 22px 20px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 6px 16px;
  }

  /* 表格转卡片 */
  .table-wrap.responsive thead {
    display: none;
  }

  .table-wrap.responsive table,
  .table-wrap.responsive tbody,
  .table-wrap.responsive tr,
  .table-wrap.responsive td {
    display: block;
    width: 100%;
  }

  .table-wrap.responsive tr {
    border-bottom: 1px solid var(--line);
  }

  .table-wrap.responsive tr:last-child {
    border-bottom: 0;
  }

  .table-wrap.responsive td {
    border-bottom: 0;
    padding: 9px 18px;
    display: flex;
    gap: 14px;
  }

  .table-wrap.responsive td:first-child {
    padding-top: 18px;
    font-weight: 600;
  }

  .table-wrap.responsive td:last-child {
    padding-bottom: 18px;
  }

  .table-wrap.responsive td::before {
    content: attr(data-label);
    flex: none;
    width: 96px;
    font: 500 11px/1.7 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  .table-wrap.responsive td:first-child::before {
    display: none;
  }
}

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