/* ==========================================================================
   RAY ARENA — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --c-void: #050709;
  --c-ink: #0A0F14;
  --c-steel: #121A21;
  --c-line: #1C262E;
  --c-wire: #2E3C46;
  --c-mist: #7C909B;
  --c-white: #E6EFF3;
  --c-cyan: #22E0D0;
  --c-cyan-dim: rgba(34, 224, 208, .16);
  --c-hot: #FF5A36;
  --c-hot-dim: rgba(255, 90, 54, .18);

  --f-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, -apple-system, "Microsoft YaHei", sans-serif;

  --shell: 1320px;
  --rail: 72px;
  --hdr-h: 68px;
  --gutter: clamp(18px, 4vw, 44px);
  --gap: clamp(16px, 2.4vw, 32px);
}

/* ---------- 页面底板 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-void);
  background-image:
    radial-gradient(920px 620px at 80% -10%, rgba(34, 224, 208, .11), transparent 62%),
    radial-gradient(760px 520px at 4% 14%, rgba(255, 90, 54, .07), transparent 60%),
    linear-gradient(180deg, rgba(10, 15, 20, .92), rgba(5, 7, 9, 0) 44%);
  background-attachment: fixed;
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  overflow-x: hidden;
}

/* 左侧框架线：与头部底边共用同一条 2px 实线 */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: var(--rail);
  width: 2px;
  background: var(--c-line);
  z-index: 55;
  pointer-events: none;
}

.site-main { display: block; }
#main-content { scroll-margin-top: calc(var(--hdr-h) + 18px); }
:target { scroll-margin-top: calc(var(--hdr-h) + 18px); }

/* ---------- 中文排版 ---------- */
p { max-width: 38em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 300; line-height: 1.02; letter-spacing: .01em; }

.display {
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 250;
  line-height: .92;
  letter-spacing: -.015em;
}
.sec-title { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.14; }
.sec-title--sm { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: rgba(230, 239, 243, .78);
  max-width: 34em;
}
.prose p { max-width: 36em; margin-bottom: 1.15em; color: rgba(230, 239, 243, .86); }
.prose strong { color: var(--c-white); font-weight: 600; }
.prose a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose h2, .prose h3 { margin: 1.6em 0 .55em; }

/* ---------- 容器与网格 ---------- */
.container {
  width: min(var(--shell), calc(100% - var(--rail) - var(--gutter) * 2));
  margin-inline: auto;
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.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-12 { grid-column: span 12; }

.section { padding-block: clamp(48px, 8vw, 120px); }
.section--tight { padding-block: clamp(30px, 5vw, 66px); }
.hairline { height: 2px; border: 0; background: var(--c-line); }
.band { background: var(--c-ink); border-block: 2px solid var(--c-line); }
.band--steel { background: var(--c-steel); }
.band--cyan { background: linear-gradient(90deg, rgba(34, 224, 208, .14), rgba(5, 7, 9, 0) 62%); }
.slice-cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--c-cyan);
  color: #04100F;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-decoration: none;
  border: 2px solid var(--c-cyan);
  transform: translateY(-220%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(5, 7, 9, .93);
  border-bottom: 2px solid var(--c-line);
  backdrop-filter: blur(12px) saturate(1.2);
}
@supports not (backdrop-filter: blur(4px)) {
  .site-header { background: var(--c-void); }
}
.hdr__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(230, 239, 243, .035) 0 1px, transparent 1px 4px);
}
.hdr__frame {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - var(--rail) - var(--gutter) * 2));
  margin-inline: auto;
  min-height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

/* 品牌 */
.hdr__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-right: clamp(10px, 1.4vw, 22px);
  border-right: 2px solid var(--c-line);
  text-decoration: none;
}
.hdr__brand-mark {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--c-white);
}
.hdr__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__brand-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .3em; }
.hdr__brand-tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--c-mist); }

/* 主导航 */
.hdr__nav { flex: 1 1 auto; min-width: 0; }
.hdr__nav-list { display: flex; align-items: center; gap: clamp(6px, 1.3vw, 20px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--c-mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s cubic-bezier(.2, .7, .2, 1);
}
.nav-link:hover { color: var(--c-white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--c-white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* 状态条与常驻入口 */
.hdr__aside { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hdr__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 2px solid var(--c-line);
  background: var(--c-ink);
  color: var(--c-mist);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.hdr__status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: var(--c-hot);
  animation: rayPulse 2.6s ease-in-out infinite;
}
.hdr__status:hover { border-color: var(--c-cyan); color: var(--c-white); }
.hdr__status-label { color: var(--c-wire); }
.hdr__status-num { color: var(--c-cyan); font-weight: 700; }
.hdr__status-phase { color: var(--c-white); }
.hdr__status-next { color: var(--c-hot); }

.hdr__quick {
  padding: 8px 14px;
  border: 2px solid var(--c-hot);
  color: var(--c-hot);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--c-hot-dim);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.hdr__quick:hover { background: var(--c-hot); color: #150400; box-shadow: 4px 4px 0 rgba(255, 90, 54, .42); }
.hdr__quick:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(255, 90, 54, .42); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 9px 12px;
  background: transparent;
  border: 2px solid var(--c-line);
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: border-color .2s ease;
}
.nav-toggle:hover { border-color: var(--c-cyan); }
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; transition: transform .22s ease, opacity .18s ease; }
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.hdr__progress {
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-hot));
  transition: width .08s linear;
}

@keyframes rayPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 2px solid var(--c-cyan);
  background: transparent;
  color: var(--c-cyan);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.btn:hover { background: var(--c-cyan); color: #04100F; box-shadow: 4px 4px 0 var(--c-cyan-dim); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--c-cyan-dim); }
.btn--solid { background: var(--c-cyan); color: #04100F; }
.btn--solid:hover { background: #5BF0E4; border-color: #5BF0E4; color: #04100F; }
.btn--alert { border-color: var(--c-hot); color: var(--c-hot); }
.btn--alert:hover { background: var(--c-hot); color: #150400; box-shadow: 4px 4px 0 var(--c-hot-dim); }
.btn--line { border-color: var(--c-line); color: var(--c-white); }
.btn--line:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-void); box-shadow: none; }

.breadcrumb { margin-bottom: clamp(18px, 2.4vw, 30px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-mist);
}
.breadcrumb li + li::before { content: "/"; color: var(--c-wire); }
.breadcrumb a { color: var(--c-mist); text-decoration: none; transition: color .18s ease; }
.breadcrumb a:hover { color: var(--c-cyan); }
.breadcrumb [aria-current="page"] { color: var(--c-white); }

.panel {
  position: relative;
  background: var(--c-ink);
  border: 2px solid var(--c-line);
  padding: clamp(18px, 2.2vw, 32px);
}
.panel--steel { background: var(--c-steel); }
.panel--cyan { border-color: var(--c-cyan); box-shadow: 6px 6px 0 var(--c-cyan-dim); }
.panel--hot { border-color: var(--c-hot); box-shadow: 6px 6px 0 var(--c-hot-dim); }
.panel__index { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--c-cyan); margin-bottom: 12px; }

.stat { display: grid; gap: 6px; }
.stat__num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-cyan);
}
.stat__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 2px solid var(--c-wire);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-mist);
}
.tag--cyan { border-color: var(--c-cyan); color: var(--c-cyan); }
.tag--hot { border-color: var(--c-hot); color: var(--c-hot); }

/* 分段控件 */
.tabs { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.tabs__list { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--c-line); }
.tabs__tab {
  appearance: none;
  margin: 0 0 -2px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--c-mist);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.tabs__tab:hover { color: var(--c-white); }
.tabs__tab[aria-selected="true"] {
  color: var(--c-white);
  background: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: inset 0 2px 0 var(--c-cyan);
}
.tabs__panel { outline: none; }
.tabs__panel[hidden] { display: none; }

/* 横向时间轴 */
.timeline {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-top: 2px solid var(--c-line);
  border-bottom: 2px solid var(--c-line);
  scrollbar-width: thin;
}
.timeline__node {
  flex: 1 0 auto;
  min-width: 124px;
  padding: 16px;
  border: 0;
  border-right: 2px solid var(--c-line);
  background: transparent;
  color: var(--c-mist);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.timeline__node:last-child { border-right: 0; }
.timeline__node:hover { background: var(--c-steel); color: var(--c-white); }
.timeline__node.is-active,
.timeline__node[aria-current="true"] { background: var(--c-steel); color: var(--c-cyan); box-shadow: inset 0 -2px 0 var(--c-cyan); }

/* 图片容器 */
.media-frame { position: relative; overflow: hidden; border: 2px solid var(--c-line); background: var(--c-steel); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.06) brightness(.92); }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x5 { aspect-ratio: 4 / 5; }
.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(5, 7, 9, .22) 0 1px, transparent 1px 3px);
}
.media-frame__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 78% 8%, rgba(34, 224, 208, .22), transparent 70%);
}
.media-frame__tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 8px 14px;
  background: rgba(5, 7, 9, .88);
  border-top: 2px solid var(--c-cyan);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--c-white);
}

/* 左侧章节索引 */
.rail {
  position: fixed;
  left: 0; top: var(--hdr-h); bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 50;
  pointer-events: none;
}
.rail__item {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--c-wire);
  writing-mode: vertical-rl;
  transition: color .24s ease;
}
.rail__item.is-active { color: var(--c-cyan); }

/* 显现 */
.has-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 130px);
  border-top: 2px solid var(--c-line);
  background: var(--c-ink);
}
.ftr__strip { border-bottom: 2px solid var(--c-line); background: linear-gradient(90deg, rgba(34, 224, 208, .09), rgba(5, 7, 9, 0) 68%); }
.ftr__strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 54px; }
.ftr__strip-text {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-mist);
}
.ftr__dot { width: 7px; height: 7px; flex: 0 0 auto; background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); animation: rayPulse 2.6s ease-in-out infinite; }
.ftr__strip-link {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.ftr__strip-link:hover { border-bottom-color: var(--c-cyan); }

.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr 1.4fr;
  gap: clamp(24px, 3vw, 56px);
  padding-block: clamp(36px, 5vw, 68px);
}
.ftr__col { min-width: 0; }
.ftr__title {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--c-cyan);
  margin-bottom: 16px;
}
.ftr__list { display: grid; gap: 10px; }
.ftr__list--plain li { font-size: 13.5px; line-height: 1.75; color: var(--c-mist); }
.ftr__link {
  display: inline-block;
  font-size: 14px;
  color: var(--c-white);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--c-wire);
  transition: color .18s ease, border-color .18s ease;
}
.ftr__link:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }

.ftr__brand {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .12em;
  line-height: 1;
  max-width: none;
  margin-bottom: 12px;
}
.ftr__brand span { margin-left: 10px; font-size: 16px; font-weight: 600; letter-spacing: .3em; color: var(--c-mist); }
.ftr__season {
  max-width: none;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--c-mist);
}
.ftr__season b { color: var(--c-cyan); font-weight: 700; }
.ftr__note { max-width: 22em; font-size: 13px; line-height: 1.75; color: var(--c-mist); }

.sub { margin-top: 20px; }
.sub__label { display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--c-mist); }
.sub__field { display: flex; }
.sub__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  background: var(--c-void);
  border: 2px solid var(--c-line);
  border-right: 0;
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease;
}
.sub__input::placeholder { color: var(--c-wire); }
.sub__input:focus { border-color: var(--c-cyan); }
.sub__btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 2px solid var(--c-cyan);
  background: transparent;
  color: var(--c-cyan);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sub__btn:hover { background: var(--c-cyan); color: #04100F; }
.sub__note { margin-top: 8px; max-width: 28em; font-size: 11.5px; line-height: 1.6; color: var(--c-mist); }
.sub__note[data-state="ok"] { color: var(--c-cyan); }
.sub__note[data-state="error"] { color: var(--c-hot); }

.ftr__bottom { border-top: 2px solid var(--c-line); background: var(--c-void); }
.ftr__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.ftr__legal, .ftr__copy {
  max-width: none;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--c-mist);
}

.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 70;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--c-ink);
  border: 2px solid var(--c-line);
  color: var(--c-cyan);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.to-top:hover { border-color: var(--c-cyan); box-shadow: 4px 4px 0 var(--c-cyan-dim); }
.to-top.is-on { opacity: 1; visibility: visible; }

/* ---------- 焦点 ---------- */
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { box-shadow: 4px 4px 0 rgba(34, 224, 208, .32); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .hdr__status-phase, .hdr__status-next { display: none; }
}
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  body::before { display: none; }
  .rail { display: none; }
  .hdr__frame, .container { width: calc(100% - var(--gutter) * 2); }
}
@media (max-width: 1024px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .hdr__nav {
    position: fixed;
    top: var(--hdr-h);
    left: 0; right: 0;
    z-index: 110;
    max-height: calc(100vh - var(--hdr-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--c-ink);
    border-bottom: 2px solid var(--c-line);
    transform: translateY(-118%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
  }
  .site-header[data-open] .hdr__nav,
  .hdr__nav[data-open] { transform: translateY(0); visibility: visible; }
  .hdr__nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .hdr__nav-list li { border-bottom: 1px solid var(--c-line); }
  .hdr__nav-list li:last-child { border-bottom: 0; }
  .nav-link { display: block; padding: 16px 0; font-size: 17px; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--c-cyan); }
  .hdr__aside { gap: 8px; }
}
@media (max-width: 700px) {
  :root { --hdr-h: 62px; }
  .hdr__brand-tag { display: none; }
  .hdr__brand-mark { font-size: 13px; }
  .hdr__brand-name { font-size: 17px; letter-spacing: .22em; }
  .hdr__status { padding: 5px 9px; font-size: 10px; letter-spacing: .08em; }
  .hdr__quick { padding: 7px 11px; font-size: 11px; letter-spacing: .08em; }
  .nav-toggle { padding: 8px 10px; font-size: 10px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .to-top { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  .hdr__brand-text { display: none; }
  .hdr__brand { border-right: 0; padding-right: 0; }
  .hdr__status-label { display: none; }
  .nav-toggle__text { display: none; }
}

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