/* ==========================================================================
   IM电竞 · 赛季数据与荣誉记录
   共享样式表 /assets/site.css
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 变量 ---------- */
:root {
  --ink: #070A11;
  --ink-deep: #05080D;
  --panel: #0E1622;
  --silver: #9FAABD;
  --white: #EEF3FB;
  --cyan: #14E0D8;
  --cyan-deep: #0B7E88;
  --gold: #FF8A2B;
  --gold-soft: #FFC489;
  --wire: #1C2836;
  --archive: #6C78FF;

  --rail-w: 268px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-cut: 20px;
  --progress: 0;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --t-fast: 180ms ease;
  --t-base: 320ms ease;
}

/* ---------- 中文排版与页面基底 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}
body {
  position: relative;
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(28, 40, 54, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 40, 54, 0.55) 1px, transparent 1px);
  background-size: 64px 64px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(120% 70% at 80% -10%, rgba(20, 224, 216, 0.10), transparent 62%),
    radial-gradient(90% 60% at 0% 100%, rgba(108, 120, 255, 0.08), transparent 65%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.24;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 4.4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { max-width: 68ch; }
strong { color: var(--white); font-weight: 600; }

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.btn--line:focus-visible { outline-color: var(--gold-soft); }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04181A;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t-fast);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 82% 100%, 0 100%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部：侧边轨道 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 22px 0 0;
  background: linear-gradient(180deg, #0B111B 0%, #070A11 55%, #060910 100%);
  border-right: 1px solid var(--wire);
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 4%, var(--cyan-deep) 42%, transparent 96%);
  opacity: 0.65;
  pointer-events: none;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: var(--cyan);
  color: #04181A;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.brand__text { display: block; min-width: 0; }
.brand__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
}
.brand__line {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--silver);
  opacity: 0.8;
  white-space: nowrap;
}
.brand--footer .brand__mark { width: 36px; height: 36px; font-size: 15px; }

/* 移动抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav-toggle:hover { border-color: var(--cyan-deep); background: rgba(20, 224, 216, 0.06); }
.nav-toggle__text { font-family: var(--font-mono); }
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cyan);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* 抽屉内容 */
.rail__drawer {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  padding: 4px 20px 26px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.rail__readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.rail__readout-key { color: var(--cyan-deep); }
.rail__readout-value {
  font-size: 22px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.rail__season { padding-top: 16px; border-top: 1px solid var(--wire); }
.rail__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan-deep);
}
.season-track { display: flex; flex-wrap: wrap; gap: 6px; }
.season-chip {
  padding: 5px 9px;
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.season-chip:hover { color: var(--white); border-color: var(--cyan-deep); }
.season-chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04181A;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(20, 224, 216, 0.35), 0 0 18px rgba(20, 224, 216, 0.22);
}

/* 导航 */
.rail__nav { border-top: 1px solid var(--wire); padding-top: 14px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: block; }
.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  color: var(--silver);
  font-size: 15px;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan-deep);
  transition: color var(--t-fast);
}
.nav-label { flex: 1 1 auto; }
.nav-link:hover { color: var(--white); background: rgba(20, 224, 216, 0.06); }
.nav-link[aria-current="page"] {
  color: var(--white);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(20, 224, 216, 0.16), rgba(20, 224, 216, 0));
}
.nav-link[aria-current="page"] .nav-num { color: var(--cyan); }

/* 服务出口 */
.rail__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--wire);
}

/* 进度 */
.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(28, 40, 54, 0.55);
  pointer-events: none;
}
.rail__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--gold) 100%);
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
}

/* 遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 7, 12, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  display: none;
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* ---------- 主体留白 ---------- */
#main-content {
  position: relative;
  z-index: 2;
  margin-left: var(--rail-w);
  padding: clamp(26px, 4vw, 54px) var(--gutter) 0;
  min-height: 60vh;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cyan); border-color: var(--cyan); color: #04181A; font-weight: 700; }
.btn--primary:hover { background: #56F1EA; }
.btn--ghost { background: var(--panel); border-color: var(--cyan-deep); color: var(--cyan); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(20, 224, 216, 0.12); }
.btn--line { border-color: rgba(255, 138, 43, 0.45); color: var(--gold); }
.btn--line:hover { background: rgba(255, 138, 43, 0.12); border-color: var(--gold); }

/* ---------- 容器与页首 ---------- */
.container { width: 100%; max-width: 1180px; }
.page-head { margin-bottom: clamp(28px, 4vw, 52px); }
.page-head__title { margin-bottom: 12px; }
.page-head__lede { font-size: 16px; color: var(--silver); opacity: 0.95; max-width: 62ch; }

/* ---------- 章节体系 ---------- */
.section { position: relative; margin-bottom: clamp(44px, 7vw, 92px); }
.section__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 22px);
  padding-bottom: 16px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--wire);
}
.section-num {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: rgba(238, 243, 251, 0.12);
  transition: color var(--t-base), text-shadow var(--t-base);
}
.section.is-active .section-num {
  color: var(--white);
  text-shadow: 0 0 26px rgba(20, 224, 216, 0.32);
}
.section__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  min-width: 0;
}
.section__title { margin: 0; }

/* 竖排展签注释 */
.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--cyan-deep);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}
.rule-slant {
  height: 1px;
  margin: clamp(20px, 3vw, 34px) 0;
  background: linear-gradient(90deg, transparent, var(--wire) 18%, var(--cyan-deep) 50%, var(--wire) 82%, transparent);
}

/* ---------- 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--wire);
  clip-path: polygon(0 0, calc(100% - var(--radius-cut)) 0, 100% var(--radius-cut), 100% 100%, 0 100%);
}
.panel--flat { clip-path: none; }
.panel--accent { border-color: rgba(20, 224, 216, 0.35); }
.panel--accent::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: linear-gradient(45deg, transparent 46%, var(--cyan) 46%, var(--cyan) 54%, transparent 54%);
  pointer-events: none;
}
.panel--gold { border-color: rgba(255, 138, 43, 0.42); }
.panel--gold::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: linear-gradient(45deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%);
  pointer-events: none;
}

/* ---------- 数据卡 ---------- */
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.stat__value--cyan { color: var(--cyan); }
.stat__value--gold { color: var(--gold); }
.stat__label { font-size: 13px; letter-spacing: 0.12em; color: var(--silver); }
.stat__note { font-size: 12px; line-height: 1.6; color: rgba(159, 170, 189, 0.72); }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--wire);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: rgba(20, 224, 216, 0.42); }
.tag--gold { color: var(--gold); border-color: rgba(255, 138, 43, 0.42); }
.tag--archive { color: var(--archive); border-color: rgba(108, 120, 255, 0.42); }

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li::after { content: "/"; color: var(--wire); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--silver); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--white); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr); }
.grid--stagger > *:nth-child(even) { transform: translateY(clamp(8px, 1.6vw, 22px)); }

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0A101A;
  border: 1px solid var(--wire);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(to right, rgba(20, 224, 216, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 224, 216, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__caption {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(159, 170, 189, 0.8);
}

/* ---------- 显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-left: var(--rail-w);
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(34px, 5vw, 64px) var(--gutter) 26px;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.92) 0%, var(--ink-deep) 100%);
  border-top: 1px solid var(--wire);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: clamp(60px, 12vw, 150px);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1180px;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand-note { font-size: 13px; line-height: 1.75; color: var(--silver); max-width: 34ch; }
.footer__brand-note--dim { color: rgba(159, 170, 189, 0.66); }
.footer__col { min-width: 0; }
.footer__col--meta { min-width: 0; }
.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cyan-deep);
}
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list a {
  font-size: 14px;
  color: var(--silver);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__list a:hover { color: var(--cyan); padding-left: 4px; }
.footer__meta { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.7; }
.footer__meta li { display: flex; gap: 10px; }
.footer__meta-key {
  flex: 0 0 62px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--archive);
  padding-top: 3px;
}
.footer__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px dashed var(--wire);
  max-width: 1180px;
}
.footer__status-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan-deep);
}
.status-chip {
  padding: 4px 10px;
  border: 1px solid var(--wire);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver);
}
.status-chip--gold { color: var(--gold); border-color: rgba(255, 138, 43, 0.42); }
.status-chip--cyan { color: var(--cyan); border-color: rgba(20, 224, 216, 0.42); }
.status-chip--arch { color: var(--archive); border-color: rgba(108, 120, 255, 0.42); }
.footer__status-note { font-size: 12px; color: rgba(159, 170, 189, 0.7); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--wire);
  max-width: 1180px;
}
.footer__copy { font-size: 13px; color: var(--silver); }
.to-top {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), border-color var(--t-fast), color var(--t-fast);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 平板与移动 ---------- */
@media (max-width: 1279px) {
  :root { --rail-w: 240px; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

@media (max-width: 1023px) {
  body::before { background-size: 44px 44px; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--wire);
    background: linear-gradient(180deg, #0B111B 0%, #080C14 100%);
  }
  .site-header::after { display: none; }

  .rail__top {
    flex: 1 1 auto;
    padding: 0;
    gap: 12px;
  }
  .brand__line { display: none; }
  .nav-toggle { display: inline-flex; }

  .rail__drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 58;
    width: min(86vw, 340px);
    padding: 84px 22px 30px;
    background: linear-gradient(180deg, #0B111B 0%, var(--ink) 60%, #060910 100%);
    border-right: 1px solid var(--wire);
    transform: translateX(-104%);
    transition: transform var(--t-base);
    overflow-y: auto;
  }
  .site-header[data-open] .rail__drawer { transform: translateX(0); }

  .nav-scrim { display: block; }

  .rail__progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    background: rgba(28, 40, 54, 0.6);
  }
  .rail__progress-bar {
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
    background: linear-gradient(90deg, var(--cyan), var(--gold));
  }

  #main-content {
    margin-left: 0;
    padding: clamp(20px, 5vw, 34px) var(--gutter) 0;
  }

  body.nav-open { overflow: hidden; }

  .site-footer { margin-left: 0; padding-left: var(--gutter); padding-right: var(--gutter); }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--meta { grid-column: 1 / -1; }
  .grid--split,
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--stagger > *:nth-child(even) { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand__mark { width: 36px; height: 36px; font-size: 15px; }
  .nav-toggle__text { display: none; }
  .section__head { flex-direction: column; gap: 8px; }
  .annotation { writing-mode: horizontal-tb; letter-spacing: 0.2em; }
  .grid--2,
  .grid--3,
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__meta li { flex-direction: column; gap: 2px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .to-top { opacity: 1; pointer-events: auto; }
  .media-frame { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
}

/* ---------- 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .footer__list a:hover { padding-left: 0; }
}
