/* =========================================================
   IMTOKEN 钱包官网 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 基础组件
   ========================================================= */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background-color: #0B1430;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption,
blockquote, dl, dt, dd, fieldset, legend { margin: 0; }

ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
hr { border: 0; }
[hidden] { display: none !important; }

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink-900: #0B1430;
  --ink-800: #101B3C;
  --ink-700: #16264D;
  --ink-600: #1E3160;
  --violet-500: #6C4CF1;
  --violet-300: #A99BFF;
  --green: #2FBF8F;
  --orange: #F2884B;
  --slate: #3A3F46;
  --cream: #F4F0E8;
  --cream-2: #EAE3D7;
  --clay: #B9714F;
  --moss: #5E7A5A;
  --moss-lift: #8FAE8A;
  --mist: #C9CDD6;
  --on-dark: #E8EAF0;

  --on-dark-soft: rgba(232, 234, 240, .74);
  --on-dark-mute: rgba(232, 234, 240, .52);
  --on-light-soft: rgba(58, 63, 70, .76);
  --on-light-mute: rgba(58, 63, 70, .58);

  --line-ink: rgba(169, 155, 255, .18);
  --line-ink-strong: rgba(169, 155, 255, .36);
  --line-paper: rgba(58, 63, 70, .18);

  --cut: 18px;
  --cut-sm: 10px;
  --radius: 2px;

  --font-display: "Space Grotesk", "Sora", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shell: min(1280px, calc(100% - 2.5rem));
  --shell-mid: min(1040px, calc(100% - 2.5rem));
  --shell-narrow: min(760px, calc(100% - 2.5rem));
}

/* ---------- 2. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--on-dark);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(58% 42% at 10% 2%, rgba(108, 76, 241, .20), transparent 66%),
    radial-gradient(46% 38% at 94% 16%, rgba(47, 191, 143, .10), transparent 70%),
    radial-gradient(72% 46% at 50% 104%, rgba(185, 113, 79, .10), transparent 74%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

p { overflow-wrap: anywhere; }

code, kbd, samp, pre, .mono { font-family: var(--font-mono); }

::selection { background: rgba(108, 76, 241, .5); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet-300);
  outline-offset: 3px;
  border-radius: 2px;
}
.surface-light :focus-visible { outline-color: var(--violet-500); }

/* ---------- 3. 布局工具 ---------- */
.wrap { width: var(--shell); margin-inline: auto; }
.wrap--mid { width: var(--shell-mid); margin-inline: auto; }
.wrap--narrow { width: var(--shell-narrow); margin-inline: auto; }

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 34px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

.flow > * + * { margin-top: clamp(14px, 1.8vw, 22px); }
.section-pad { padding-block: clamp(56px, 8vw, 110px); }
.gap-lg { min-height: clamp(64px, 10vw, 148px); }

/* ---------- 4. 背景分区 ---------- */
.surface-ink { background: var(--ink-900); color: var(--on-dark); }
.surface-deep {
  background: var(--ink-700);
  color: var(--on-dark);
  background-image: radial-gradient(80% 60% at 88% 0%, rgba(108, 76, 241, .18), transparent 68%);
}
.surface-light { background: var(--cream); color: var(--slate); }

.surface-light .lead { color: var(--on-light-soft); }
.surface-light .note { color: var(--on-light-mute); }
.surface-light .figcaption { color: var(--on-light-mute); }
.surface-light .crumbs { color: var(--on-light-mute); }
.surface-light .crumbs a { color: var(--on-light-soft); }
.surface-light .chapter__num { color: var(--moss); }
.surface-light .panel { background: #FBF8F2; }

/* ---------- 5. 标题与正文 ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.35;
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--on-dark-soft);
  max-width: 44ch;
}

.body-copy { max-width: 40ch; line-height: 1.85; }

.chapter { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.chapter__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  letter-spacing: .04em;
  color: var(--violet-300);
  flex: none;
}

/* ---------- 6. 注释 / 标签 ---------- */
.note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .08em;
  color: var(--moss-lift);
}
.note--violet { color: var(--violet-300); }
.note--warn { color: var(--orange); }
.note--light { color: var(--on-light-mute); }

.vnote {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(169, 155, 255, .72);
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .26rem .55rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  line-height: 1.4;
  border: 1px solid var(--line-ink-strong);
  border-radius: var(--radius);
  color: var(--violet-300);
}
.tag--green { border-color: rgba(47, 191, 143, .42); color: var(--green); }
.tag--orange { border-color: rgba(242, 136, 75, .46); color: var(--orange); }
.tag--moss { border-color: rgba(94, 122, 90, .62); color: var(--moss-lift); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.05rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease);
}
.btn--solid { background: var(--violet-500); border-color: var(--violet-500); color: #fff; }
.btn--solid:hover { background: #7D61F4; border-color: #7D61F4; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(232, 234, 240, .3); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--violet-300); color: var(--violet-300); }
.btn--warn { background: transparent; border-color: rgba(242, 136, 75, .5); color: var(--orange); }
.btn--warn:hover { background: rgba(242, 136, 75, .14); }
.btn--block { width: 100%; }

.surface-light .btn--ghost { border-color: rgba(58, 63, 70, .3); color: var(--slate); }
.surface-light .btn--ghost:hover { border-color: var(--violet-500); color: var(--violet-500); }

/* ---------- 8. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 130;
  padding: .7rem 1rem;
  background: var(--violet-500);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .08em;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 9. 站点头部 ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
}

.site-head__inner {
  position: relative;
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  padding: 16px 8px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), padding .2s var(--ease),
              margin-top .2s var(--ease), width .2s var(--ease),
              border-radius .2s var(--ease);
}

.site-head[data-scrolled] .site-head__inner {
  width: min(1180px, calc(100% - 2rem));
  margin-top: 10px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(11, 20, 48, .94);
  border-color: rgba(169, 155, 255, .22);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(169, 155, 255, .12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* 品牌 */
.brand { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(169, 155, 255, .5);
  background:
    linear-gradient(135deg, rgba(108, 76, 241, .22), transparent 62%);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.brand__mark::before,
.brand__mark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.brand__mark::before { top: 8px; left: 8px; background: var(--violet-300); }
.brand__mark::after { bottom: 8px; right: 8px; background: var(--green); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--on-dark);
  white-space: nowrap;
}
.brand__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  line-height: 1.5;
  color: rgba(169, 155, 255, .86);
  white-space: nowrap;
}

/* 主导航 */
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: .84rem;
  letter-spacing: .06em;
  color: rgba(232, 234, 240, .78);
  transition: color .16s var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--violet-300);
  transition: right .2s var(--ease);
}
.site-nav__link:hover { color: var(--on-dark); }
.site-nav__link:hover::after { right: 0; }
.site-nav__link[aria-current="page"] { color: var(--violet-300); }
.site-nav__link[aria-current="page"]::after { right: 0; background: var(--violet-500); }

.site-head__actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 滚动进度 */
.progress-rail {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(169, 155, 255, .14);
  opacity: 0;
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.site-head[data-scrolled] .progress-rail { opacity: 1; }
.progress-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-500), var(--green));
}

/* 菜单按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  padding: .5rem .72rem;
  border: 1px solid rgba(232, 234, 240, .22);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: .76rem;
  letter-spacing: .1em;
  flex: none;
}
.nav-toggle:hover { border-color: var(--violet-300); color: var(--violet-300); }
.nav-toggle__bars { position: relative; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .18s var(--ease), top .18s var(--ease), bottom .18s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }

/* ---------- 10. 移动抽屉 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.drawer[data-open] { opacity: 1; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 28, .78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(404px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  background: var(--ink-900);
  border-left: 1px solid rgba(169, 155, 255, .22);
  background-image: radial-gradient(90% 40% at 100% 0%, rgba(108, 76, 241, .22), transparent 70%);
  transform: translateX(101%);
  transition: transform .24s var(--ease);
}
.drawer[data-open] .drawer__panel { transform: none; }

.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer__title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: rgba(169, 155, 255, .82);
}
.drawer__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 234, 240, .22);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: 1.05rem;
  line-height: 1;
}
.drawer__close:hover { border-color: var(--violet-300); color: var(--violet-300); }

.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(232, 234, 240, .86);
  transition: color .16s var(--ease);
}
.drawer__link:hover { color: var(--violet-300); }
.idx {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--moss-lift);
}
.drawer__link[aria-current="page"] { color: var(--violet-300); }
.drawer__link[aria-current="page"] .idx { color: var(--violet-500); }

.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.drawer__totop {
  margin-top: 4px;
  padding: .65rem 0 0;
  border-top: 1px dashed var(--line-ink);
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: rgba(232, 234, 240, .6);
}
.drawer__totop:hover { color: var(--violet-300); }

/* ---------- 11. 站点页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: var(--ink-900);
  border-top: 1px solid var(--line-ink);
  color: var(--on-dark);
  font-size: .9rem;
}
.site-foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(72% 100% at 18% 0%, rgba(108, 76, 241, .18), transparent 72%);
}

.site-foot__inner {
  position: relative;
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 74px) 0 30px;
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(0, 2.2fr) minmax(228px, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
}

.site-foot__brand { min-width: 0; }
.foot-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.foot-brand__note {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--on-dark-soft);
}
.foot-icp {
  display: inline-flex;
  margin-top: 16px;
  padding: .34rem .6rem;
  border: 1px solid rgba(94, 122, 90, .62);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--moss-lift);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.foot-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(169, 155, 255, .84);
}
.foot-col__list { display: flex; flex-direction: column; gap: 10px; }
.foot-col__list a {
  font-size: .86rem;
  color: rgba(232, 234, 240, .68);
  transition: color .16s var(--ease);
}
.foot-col__list a:hover { color: var(--violet-300); }

.foot-contact { min-width: 0; }
.foot-contact__list { display: grid; }
.foot-contact__list dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: rgba(169, 155, 255, .7);
}
.foot-contact__list dd {
  margin-bottom: 12px;
  font-size: .84rem;
  line-height: 1.65;
  color: rgba(232, 234, 240, .8);
}
.foot-contact__list dd:last-of-type { margin-bottom: 0; }
.foot-contact__note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .06em;
  color: var(--on-dark-mute);
}

.site-foot__rule {
  height: 1px;
  margin: clamp(28px, 4vw, 46px) 0 22px;
  background: repeating-linear-gradient(90deg, rgba(169, 155, 255, .32) 0 6px, transparent 6px 13px);
}

.foot-disclaimer {
  max-width: 78ch;
  padding-left: 14px;
  border-left: 2px solid rgba(242, 136, 75, .55);
  font-size: .78rem;
  line-height: 1.75;
  color: var(--on-dark-mute);
}

.site-foot__base {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: .76rem;
  color: var(--on-dark-mute);
}
.foot-copy { font-family: var(--font-mono); letter-spacing: .06em; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a { color: rgba(232, 234, 240, .62); transition: color .16s var(--ease); }
.foot-legal a:hover { color: var(--violet-300); }

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .58rem .88rem;
  border: 1px solid var(--line-ink-strong);
  border-radius: var(--radius);
  background: rgba(11, 20, 48, .92);
  color: var(--violet-300);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .16s var(--ease);
}
.to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--violet-300); }

/* ---------- 13. 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--ink-700);
  color: var(--on-dark);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}
.panel--outline {
  background: rgba(22, 38, 77, .42);
  box-shadow: inset 0 0 0 1px var(--line-ink);
}
.panel--tight { padding: clamp(14px, 1.6vw, 20px); }
.panel--double {
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

/* ---------- 14. 媒体容器 ---------- */
.figure { display: grid; gap: 10px; }
.figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.65;
  color: var(--on-dark-mute);
}

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(70% 62% at 22% 16%, rgba(108, 76, 241, .34), transparent 68%),
    radial-gradient(52% 56% at 88% 84%, rgba(47, 191, 143, .16), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.media > img,
.media > svg,
.media > video,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(169, 155, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 155, 255, .12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--plain::after { display: none; }

/* ---------- 15. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--on-dark-mute);
}
.crumbs a { color: rgba(232, 234, 240, .74); transition: color .16s var(--ease); }
.crumbs a:hover { color: var(--violet-300); }
.crumbs__sep { color: rgba(169, 155, 255, .45); }
.crumbs [aria-current="page"] { color: var(--violet-300); }

/* ---------- 16. 时间轴 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(180deg, rgba(185, 113, 79, .6) 0 5px, transparent 5px 12px);
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 7px;
  width: 11px;
  height: 11px;
  background: var(--ink-900);
  border: 2px solid var(--clay);
  transform: rotate(45deg);
}
.surface-light .timeline__item::before { background: var(--cream); }

/* ---------- 17. 步骤卡 / 折叠 ---------- */
.steps { display: grid; gap: 12px; }
.step {
  background: rgba(22, 38, 77, .52);
  border-left: 2px solid rgba(108, 76, 241, .55);
  padding: 14px 18px;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.step__num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--violet-300);
  flex: none;
}
.step__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}
.step__mark {
  flex: none;
  width: 12px;
  height: 12px;
  position: relative;
}
.step__mark::before,
.step__mark::after {
  content: '';
  position: absolute;
  background: var(--violet-300);
}
.step__mark::before { left: 0; right: 0; top: 5px; height: 1px; }
.step__mark::after { top: 0; bottom: 0; left: 5px; width: 1px; transition: transform .18s var(--ease); }
[data-disclose][aria-expanded="true"] .step__mark::after { transform: scaleY(0); }
.step__panel { margin-top: 10px; font-size: .92rem; line-height: 1.8; color: var(--on-dark-soft); }
.surface-light .step { background: rgba(255, 255, 255, .6); }
.surface-light .step__panel { color: var(--on-light-soft); }

/* ---------- 18. 横向溢出表 ---------- */
.scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 155, 255, .5) transparent;
  border: 1px solid var(--line-ink);
}
.scroller:focus-visible { outline-offset: 2px; }
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-track { background: rgba(11, 20, 48, .6); }
.scroller::-webkit-scrollbar-thumb { background: rgba(169, 155, 255, .45); border-radius: 4px; }
.scroller > table { min-width: 720px; width: 100%; }
.scroller th,
.scroller td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-ink);
  font-size: .84rem;
}
.scroller th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  font-weight: 500;
  color: rgba(169, 155, 255, .88);
  white-space: nowrap;
}
.scroller td.num { font-family: var(--font-mono); }

.scroller__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--on-dark-mute);
}
.scroller__hint::before {
  content: '';
  flex: none;
  width: 42px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(169, 155, 255, .75) 0 4px, transparent 4px 8px);
  animation: trace-x 13s linear infinite;
}
@keyframes trace-x { to { background-position: 24px 0; } }

/* ---------- 19. 显现动画 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.js [data-reveal].is-inview { opacity: 1; transform: none; }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1320px) {
  .brand__note { display: none; }
}

@media (max-width: 1180px) {
  .site-head__actions .btn--ghost { display: none; }
  .site-foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .foot-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-head__actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .col-3 { grid-column: span 6; }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10 { grid-column: span 12; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 88px; }
  body { font-size: 16px; }
  .site-head__inner { padding: 12px 6px; }
  .site-head[data-scrolled] .site-head__inner { padding: 8px 16px; margin-top: 8px; }
  .progress-rail { left: 18px; right: 18px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 2rem);
    --shell-mid: calc(100% - 2rem);
    --shell-narrow: calc(100% - 2rem);
  }
  .site-foot__inner { width: calc(100% - 2rem); }
  .site-foot__top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .col-3 { grid-column: span 12; }
  .site-foot__base { flex-direction: column; align-items: flex-start; }
  .scroller > table { min-width: 620px; }
}

/* ---------- 21. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .drawer__panel { transform: none; }
}
