/* =========================================================
   IMTOKEN钱包 · 全站共享样式 /assets/site.css
   仅负责 reset、令牌、排版、头部、页脚、按钮与基础组件
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid #8FB4FF;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink-950: #060B16;
  --ink-900: #0A1120;
  --ink-850: #0D1728;
  --grid-700: #1C2C49;
  --blue-600: #2F6BFF;
  --blue-300: #8FB4FF;
  --purple-500: #6C4BFF;
  --cyan-400: #22C8A3;
  --amber-400: #F0B429;
  --alert-500: #FF6B3D;
  --paper-100: #F4F0E6;
  --text-100: #E9EEF7;
  --text-400: #93A2BC;

  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --fs-display: clamp(34px, 4.6vw, 56px);
  --fs-h1: clamp(30px, 3.4vw, 40px);
  --fs-h2: clamp(24px, 2.6vw, 32px);
  --fs-h3: clamp(20px, 2vw, 24px);
  --fs-h4: 20px;
  --fs-note: 13.5px;

  --lh-body: 1.75;
  --lh-note: 1.6;

  --shell: 1220px;
  --gutter: clamp(16px, 3.6vw, 40px);
  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-cn);
  font-size: 15.5px;
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--text-100);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(to right, rgba(28, 44, 73, .42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 44, 73, .42) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 640px) { body { font-size: 17px; } }
@media (min-width: 1024px) { body { background-attachment: fixed; } }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text-100);
}
h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; }
h5, h6 { font-size: 15.5px; font-weight: 700; letter-spacing: 0; }

main { display: block; }
#main-content:focus { outline: none; }

.mono {
  font-family: var(--font-mono);
  font-size: .94em;
  letter-spacing: -.01em;
}
.addr {
  font-family: var(--font-mono);
  font-size: .92em;
  letter-spacing: -.01em;
  color: var(--blue-300);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- 4. 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid { display: grid; gap: clamp(18px, 3vw, 40px); }
.grid--a { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.grid--b { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--c { grid-template-columns: minmax(0, 1fr); }
.grid--ledger { grid-template-columns: 238px minmax(0, 1fr); align-items: start; }

.stack { display: grid; gap: var(--gap, clamp(16px, 2.4vw, 28px)); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--grid-700);
}
.section-head__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--text-400);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue-300);
}

.side-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11.5px;
  letter-spacing: .16em;
  line-height: 1;
  color: var(--text-400);
  max-height: 14em;
}

/* ---------- 5. 按钮 ---------- */
.bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  color: var(--text-100);
  background: transparent;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease),
              box-shadow 160ms var(--ease);
}
.bt:hover { transform: translateY(-1px); }
.bt:active { transform: translateY(0); }

.bt--prime {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: #FFFFFF;
}
.bt--prime:hover {
  background: #5B3AEE;
  border-color: #5B3AEE;
  box-shadow: 0 8px 22px -10px rgba(108, 75, 255, .95);
}
.bt--ghost {
  background: rgba(13, 23, 40, .65);
  border-color: var(--grid-700);
  color: var(--blue-300);
}
.bt--ghost:hover {
  border-color: var(--blue-300);
  color: var(--text-100);
  background: rgba(47, 107, 255, .12);
}
.bt--line { border-color: var(--blue-600); color: var(--blue-300); }
.bt--line:hover { background: rgba(47, 107, 255, .14); color: var(--text-100); }
.bt--quiet { padding-inline: 6px; color: var(--text-400); }
.bt--quiet:hover { color: var(--blue-300); }

/* ---------- 6. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--purple-500);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform 160ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 11, 22, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grid-700);
}
.site-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-600), rgba(47, 107, 255, 0) 42%, rgba(108, 75, 255, 0) 68%, var(--purple-500));
  opacity: .65;
  pointer-events: none;
}

.head-top__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(10px, 1.8vw, 28px);
  min-height: 56px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--blue-600), var(--purple-500));
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(143, 180, 255, .3);
}
.brand__body { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--text-100);
}
.brand__desc {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--text-400);
}

.head-note {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 13px;
  border: 1px solid var(--grid-700);
  border-radius: 100px;
  background: rgba(13, 23, 40, .6);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--text-400);
  white-space: nowrap;
  overflow: hidden;
}
.head-note__dot {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 200, 163, .16);
}
.head-note .mono { color: var(--blue-300); }

.head-acts { display: flex; align-items: center; gap: 8px; justify-self: end; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--grid-700);
  border-radius: var(--radius);
  color: var(--text-100);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-toggle:hover { border-color: var(--blue-300); background: rgba(47, 107, 255, .1); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 15px; height: 9px;
  flex: 0 0 auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px; height: 1.5px;
  background: currentColor;
  transition: transform 200ms var(--ease), top 200ms var(--ease), bottom 200ms var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.site-head[data-open] .nav-toggle {
  border-color: var(--blue-300);
  background: rgba(47, 107, 255, .14);
}
.site-head[data-open] .nav-toggle__bars::before { top: 3.75px; transform: rotate(45deg); }
.site-head[data-open] .nav-toggle__bars::after { bottom: 3.75px; transform: rotate(-45deg); }

.head-nav { border-top: 1px solid rgba(28, 44, 73, .8); }
.head-nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-400);
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav-list a::before {
  content: attr(data-coord);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blue-600);
  transition: color 160ms var(--ease);
}
.nav-list a:hover {
  color: var(--text-100);
  background: rgba(47, 107, 255, .08);
  border-color: var(--grid-700);
}
.nav-list a[aria-current="page"] {
  color: var(--text-100);
  background: linear-gradient(180deg, rgba(47, 107, 255, .2), rgba(47, 107, 255, .07));
  border-color: rgba(47, 107, 255, .58);
}
.nav-list a[aria-current="page"]::before { color: var(--cyan-400); }

.head-nav__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-400);
  white-space: nowrap;
}
.head-nav__meta i {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 8px rgba(34, 200, 163, .85);
}

/* ---------- 7. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding-block: clamp(40px, 5vw, 68px) 26px;
  border-top: 1px solid var(--grid-700);
  background: linear-gradient(180deg, rgba(13, 23, 40, .72), var(--ink-950) 62%);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: min(240px, 40vw);
  height: 1px;
  background: var(--blue-600);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.3fr));
  gap: clamp(26px, 3.4vw, 48px);
}
.foot-brand__head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.foot-brand__head .brand__name { font-size: 15px; }
.foot-brand__desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-400);
  max-width: 34ch;
}
.foot-brand__note {
  margin-top: 16px;
  padding: 12px 14px;
  max-width: 40ch;
  border: 1px solid var(--grid-700);
  border-left: 2px solid var(--blue-600);
  border-radius: var(--radius);
  background: rgba(13, 23, 40, .55);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--blue-300);
}

.foot-col__h {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grid-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-100);
}
.foot-col__list { display: grid; gap: 11px; }
.foot-col__list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--text-400);
  transition: color 160ms var(--ease), padding-left 200ms var(--ease);
}
.foot-col__list a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: .78em;
  width: 8px; height: 1px;
  background: var(--blue-600);
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
.foot-col__list a:hover { color: var(--blue-300); padding-left: 6px; }
.foot-col__list a:hover::before { opacity: 1; }

.foot-contact {
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 26px;
  border-top: 1px solid var(--grid-700);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.foot-contact__item { display: grid; gap: 7px; align-content: start; }
.foot-contact__item--wide { grid-column: 1 / -1; }
.foot-contact__k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue-300);
}
.foot-contact__v {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-100);
  word-break: break-word;
}

.foot-legal {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--grid-700);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-400);
}
.foot-legal__sep {
  display: inline-block;
  width: 1px; height: 11px;
  background: var(--grid-700);
}
.foot-legal [data-year] { font-family: var(--font-mono); }

/* ---------- 8. 面包屑与链式索引 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-block: clamp(16px, 2.4vw, 26px);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-400);
}
.crumb a { color: var(--text-400); transition: color 160ms var(--ease); }
.crumb a:hover { color: var(--blue-300); }
.crumb__sep { color: var(--grid-700); }
.crumb [aria-current="page"] { color: var(--text-100); }

.chain-index {
  position: sticky;
  top: 112px;
  align-self: start;
  padding-top: 16px;
  border-top: 1px solid var(--grid-700);
}
.chain-index__h {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-400);
}
.chain-index__list { display: grid; gap: 2px; }
.chain-index__list a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  color: var(--text-400);
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.chain-index__list a::before {
  content: attr(data-coord);
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue-600);
}
.chain-index__list a:hover { color: var(--text-100); background: rgba(47, 107, 255, .07); }
.chain-index__list a[aria-current="true"] {
  color: var(--text-100);
  border-left-color: var(--blue-600);
  background: rgba(47, 107, 255, .09);
}

/* ---------- 9. 基础组件 ---------- */
.card {
  display: block;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--grid-700);
  border-radius: var(--radius);
  background: var(--ink-850);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 200ms var(--ease);
}
a.card:hover {
  border-color: var(--blue-600);
  background: var(--ink-900);
  transform: translateY(-2px);
}

.panel {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--grid-700);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
}

.paper {
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid #D8D2C4;
  border-radius: var(--radius);
  background: var(--paper-100);
  color: var(--ink-950);
}
.paper h2, .paper h3, .paper h4, .paper h5 { color: var(--ink-950); }
.paper a { color: #1B4FD6; border-bottom: 1px solid rgba(27, 79, 214, .4); }
.paper a:hover { border-bottom-color: #1B4FD6; }
.paper .addr { color: #12408F; }
.paper .figure__cap { color: #5A6577; }
.paper .panel {
  background: #FFFFFF;
  border-color: #D8D2C4;
}

.prose { line-height: var(--lh-body); color: inherit; }
.prose > * + * { margin-top: 1em; }
.prose p { max-width: 66ch; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose a { color: var(--blue-300); border-bottom: 1px solid rgba(143, 180, 255, .4); }
.prose a:hover { border-bottom-color: var(--blue-300); }
.paper .prose a { color: #1B4FD6; border-bottom-color: rgba(27, 79, 214, .4); }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose ul { list-style: none; padding-left: 1.1em; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .78em;
  width: 7px; height: 1px;
  background: var(--blue-600);
}
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--blue-600);
  color: var(--text-400);
}

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--grid-700);
  border-radius: var(--radius);
  background: var(--ink-850);
}
.tbl { width: 100%; min-width: 560px; font-size: 13.5px; }
.tbl th, .tbl td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--grid-700);
}
.tbl th {
  position: sticky;
  top: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-400);
  background: rgba(13, 23, 40, .92);
  white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(47, 107, 255, .055); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--ok { color: var(--cyan-400); }
.tag--wait { color: var(--amber-400); }
.tag--warn { color: var(--alert-500); }
.tag--info { color: var(--blue-300); }
.tag--mute { color: var(--text-400); }

/* ---------- 10. 图形容器（供页面阶段放置图片/SVG） ---------- */
.figure { margin: 0; }
.figure__frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--grid-700);
  border-radius: var(--radius);
  background: var(--ink-850);
}
.figure__frame > img,
.figure__frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide .figure__frame { aspect-ratio: 16 / 9; }
.figure--square .figure__frame { aspect-ratio: 1 / 1; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }
.figure--band .figure__frame { aspect-ratio: 21 / 9; }
.figure__cap {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: var(--lh-note);
  color: var(--text-400);
}
.figure__coord {
  margin-right: 8px;
  font-family: var(--font-mono);
  color: var(--blue-300);
}

/* ---------- 11. 显现动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 12. 复制反馈 ---------- */
[data-copy] {
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
[data-copy][data-state="copied"],
[data-copy][data-state="copied"]:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1023px) {
  .head-top__in {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 52px;
  }
  .head-note { display: none; }
  .brand__desc { display: none; }
  .head-acts .bt--ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .head-nav { display: none; border-top: 1px solid var(--grid-700); }
  .site-head[data-open] .head-nav { display: block; }
  .head-nav__in {
    display: block;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .nav-list a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    border-color: var(--grid-700);
    background: rgba(13, 23, 40, .7);
    font-size: 14px;
  }
  .head-nav__meta { display: none; }

  .grid--a, .grid--b { grid-template-columns: minmax(0, 1fr); }
  .grid--ledger { grid-template-columns: minmax(0, 1fr); }

  .chain-index {
    position: static;
    padding: 0;
    margin-bottom: 8px;
    border-top: 0;
    border-bottom: 1px solid var(--grid-700);
  }
  .chain-index__h { margin-bottom: 10px; }
  .chain-index__list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .chain-index__list::-webkit-scrollbar { display: none; }
  .chain-index__list a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .chain-index__list a[aria-current="true"] {
    border-left-color: transparent;
    border-bottom-color: var(--blue-600);
  }

  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-col__h { margin-bottom: 12px; }
  .foot-contact { grid-template-columns: minmax(0, 1fr); }
  .foot-legal { gap: 6px 12px; }
  .foot-legal__sep { display: none; }
}

@media (max-width: 480px) {
  .nav-list { grid-template-columns: minmax(0, 1fr); }
  .bt { padding: 8px 12px; font-size: 12.5px; letter-spacing: .02em; }
  .brand__name { font-size: 15px; }
  .brand__mark { width: 28px; height: 28px; font-size: 11px; }
}

/* ---------- 14. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
