/* ============================================================
   雷火电竞 · 共享站点样式  /assets/site.css
   炭黑基座 + 暗夜紫层次 + 熔岩橙/电弧蓝强对比 + 荧光青数据点
   ============================================================ */

:root {
  --ink: #0B0A12;
  --violet: #1B1430;
  --ember: #FF5A1F;
  --arc: #2E8BFF;
  --flux: #4CF3E0;
  --paper: #F4EDE2;
  --brown: #241A14;
  --clay: #D8452B;
  --mist: #9A93A8;

  --line-1: rgba(244, 237, 226, .10);
  --line-2: rgba(244, 237, 226, .20);
  --line-3: rgba(244, 237, 226, .34);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;

  --shell: 1360px;
  --gutter: clamp(18px, 4.2vw, 64px);
  --skew: 6deg;
  --dur: .24s;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

html.is-nav-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 84% -8%, rgba(46, 139, 255, .16), transparent 62%),
    radial-gradient(880px 520px at -8% 14%, rgba(255, 90, 31, .13), transparent 64%),
    var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(15px, .42vw + 13.6px, 17px);
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }

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

::selection { background: var(--ember); color: var(--ink); }

/* ---------- 版心 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

/* ---------- 跳至主要内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  padding: 13px 24px;
  background: var(--flux);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;
  transform: translate(-50%, -220%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ============================================================
   页头 · 左右分置 + 斜切缝 + 顶部刻度尺
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-1);
}

.masthead__ruler {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 7px var(--gutter) 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
  overflow: hidden;
  max-height: 44px;
  transition: max-height .3s var(--ease), opacity .2s var(--ease);
}

.masthead__ruler::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-image: repeating-linear-gradient(to right, rgba(244, 237, 226, .34) 0 1px, transparent 1px 48px);
  opacity: .7;
  pointer-events: none;
}

.masthead__ruler-a { white-space: nowrap; }
.masthead__ruler-b { white-space: nowrap; color: rgba(244, 237, 226, .6); }
.masthead__ruler-vol { color: var(--flux); font-weight: 700; }

[data-header][data-compact] .masthead__ruler {
  max-height: 0;
  opacity: 0;
  padding-block: 0;
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding-block: clamp(12px, 1.6vw, 20px);
  transition: padding .3s var(--ease);
}
[data-header][data-compact] .masthead__inner { padding-block: 9px; }

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand__glyph {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 26px;
  height: 30px;
}
.brand__glyph::before,
.brand__glyph::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  transform: skewX(-20deg);
}
.brand__glyph::before {
  left: 2px;
  background: var(--ember);
  box-shadow: 0 0 14px rgba(255, 90, 31, .55);
}
.brand__glyph::after {
  left: 13px;
  background: var(--arc);
  box-shadow: 0 0 14px rgba(46, 139, 255, .5);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand__tag {
  display: block;
  max-height: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--mist);
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: max-height .3s var(--ease), opacity .2s var(--ease);
}
[data-header][data-compact] .brand__tag {
  max-height: 0;
  opacity: 0;
}

.brand--foot .brand__name { font-size: clamp(26px, 3vw, 36px); }
.brand--foot .brand__glyph { width: 34px; height: 38px; }
.brand--foot .brand__glyph::before { width: 9px; left: 3px; }
.brand--foot .brand__glyph::after { width: 9px; left: 17px; }
.brand--foot .brand__tag { max-height: none; }

/* ---------- 斜切接缝 ---------- */
.masthead__seam {
  flex: 0 0 auto;
  width: 2px;
  height: 34px;
  background: linear-gradient(180deg, var(--ember), var(--arc));
  transform: skewX(-12deg);
  opacity: .9;
}

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 24px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 10px);
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--clay);
  transition: color var(--dur) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--flux); }
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] { color: var(--flux); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--flux); }

.site-nav__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(10px, 1.6vw, 22px);
  margin-left: clamp(2px, .8vw, 10px);
  border-left: 1px solid var(--line-1);
}

/* ---------- 移动开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 620;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--flux); color: var(--flux); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}
.nav-toggle__bars span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 68%; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 滚动进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--line-1);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--arc), var(--flux) 52%, var(--ember));
  transition: width .12s linear;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 20px;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ember {
  background: var(--ember);
  border-color: var(--ember);
  color: #150803;
}
.btn--ember:hover { box-shadow: 0 12px 28px -14px rgba(255, 90, 31, .85); }

.btn--arc {
  background: var(--arc);
  border-color: var(--arc);
  color: #071221;
}
.btn--arc:hover { box-shadow: 0 12px 28px -14px rgba(46, 139, 255, .85); }

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--brown);
  clip-path: none;
}

.btn--line { background: transparent; color: var(--paper); clip-path: none; }
.btn--line:hover { border-color: var(--flux); color: var(--flux); box-shadow: none; }

.btn--sm { min-height: 36px; padding: 8px 14px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ============================================================
   标签 / 面包屑 / 正文 / 栅格 / 分区标题
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(76, 243, 224, .10);
  border: 1px solid rgba(76, 243, 224, .34);
  color: var(--flux);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tag--ember {
  background: rgba(255, 90, 31, .12);
  border-color: rgba(255, 90, 31, .42);
  color: #FFB08A;
}
.tag--clay {
  background: rgba(216, 69, 43, .12);
  border-color: rgba(216, 69, 43, .40);
  color: #E98268;
}

.breadcrumb {
  padding-block: 16px;
  border-bottom: 1px solid var(--line-1);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--clay);
}
.breadcrumb__link { color: var(--mist); text-decoration: none; }
.breadcrumb__link:hover { color: var(--flux); }
.breadcrumb__item[aria-current="page"] { color: var(--paper); }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 1.9em 0 .6em; font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { margin: 1.6em 0 .5em; font-size: clamp(18px, 1.8vw, 22px); }
.prose strong { color: var(--flux); font-weight: 700; }
.prose a { color: var(--arc); text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--clay);
}
.section-head__title { font-size: clamp(24px, 3.4vw, 44px); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.serif { font-family: var(--font-serif); }
.num-xl {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--flux);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   图片容器基础规则（页面阶段放置 img / svg 占位）
   ============================================================ */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, #241B3E 0%, #14101F 56%, #0B0A12 100%);
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  pointer-events: none;
}
.figure > img,
.figure > video,
.figure > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--wide { aspect-ratio: 16 / 9; }
.figure--ultra { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 四角刻线框 */
.frame {
  --c: var(--ember);
  position: relative;
  padding: clamp(16px, 2.6vw, 34px);
  border: 1px solid var(--line-2);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size:
    16px 2px, 2px 16px, 16px 2px, 2px 16px,
    16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position:
    left top, left top, right top, right top,
    left bottom, left bottom, right bottom, right bottom;
}

/* 章节目录高亮（配合 data-toc-link） */
[data-toc-link][aria-current="true"] {
  color: var(--flux);
  border-color: var(--flux);
}

/* 入场显现（配合 data-reveal） */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--brown);
  color: var(--brown);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: opacity .24s var(--ease), transform .24s var(--ease), background-color .2s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ember); }

/* ============================================================
   页脚
   ============================================================ */
.site-foot {
  position: relative;
  margin-top: clamp(64px, 9vw, 140px);
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(46, 139, 255, .12), transparent 62%),
    var(--ink);
  border-top: 1px solid var(--line-2);
  color: var(--paper);
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ember), var(--arc) 46%, var(--flux) 74%, var(--ember));
  opacity: .92;
}

.site-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 90px);
  padding-top: clamp(42px, 6vw, 78px);
}

.site-foot__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 400px;
}

.site-foot__line {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--clay);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(244, 237, 226, .74);
}

.site-foot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.foot-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
}
.foot-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.foot-col__link {
  display: inline-block;
  padding: 6px 0;
  color: rgba(244, 237, 226, .78);
  font-size: 15px;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.foot-col__link:hover { color: var(--flux); transform: translateX(4px); }

.site-foot__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-1);
}

.foot-contact { display: flex; flex-direction: column; gap: 6px; }
.foot-contact__key {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist);
}
.foot-contact__val {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.foot-contact__val--mono {
  font-family: var(--font-mono);
  letter-spacing: .01em;
  color: var(--flux);
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 22px 34px;
  border-top: 1px solid var(--line-1);
  font-size: 12.5px;
  color: var(--mist);
}
.site-foot__copy {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: .06em;
}
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
}
.site-foot__links a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-foot__links a:hover { color: var(--flux); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1240px) {
  .site-nav__foot .btn--line { display: none; }
}

@media (max-width: 1080px) {
  .site-nav__link { font-size: 13px; padding: 8px 7px; }
  .site-nav__num { display: none; }
}

@media (max-width: 960px) {
  html { scroll-padding-top: 84px; }

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 610;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(78px + env(safe-area-inset-top)) var(--gutter) 40px;
    background:
      radial-gradient(640px 420px at 92% 0%, rgba(46, 139, 255, .22), transparent 64%),
      radial-gradient(560px 400px at 0% 100%, rgba(255, 90, 31, .18), transparent 62%),
      var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
  }
  .site-nav__item { border-bottom: 1px solid var(--line-1); }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 16px 2px;
    font-family: var(--font-display);
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 900;
    letter-spacing: -.01em;
  }
  .site-nav__num { display: inline; font-size: 11px; color: var(--clay); }
  .site-nav__link::after { display: none; }

  .site-nav__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-1);
  }
  .site-nav__foot .btn { width: 100%; min-height: 50px; font-size: 15px; }
  .site-nav__foot .btn--line { display: inline-flex; }

  .site-foot__top { grid-template-columns: 1fr; gap: 36px; }
  .site-foot__brand { max-width: none; }
}

@media (max-width: 860px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .num-xl { font-size: clamp(34px, 9vw, 52px); }
}

@media (max-width: 640px) {
  .brand__tag { display: none; }
  .masthead__ruler-a { letter-spacing: .16em; }
  .masthead__ruler-b { letter-spacing: .16em; }
  .site-foot__cols { grid-template-columns: 1fr; gap: 26px; }
  .site-foot__legal { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   降低动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .foot-col__link:hover { transform: none; }
  .btn:hover { transform: none; }
  .to-top { transform: none; }
}
