/* =========================================================
   必赢亚州赛事 · 共享站点样式  /assets/site.css
   堆叠面板 · 双色高敏 · 等宽索引 · 克制微动效
   ========================================================= */

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

html { -webkit-text-size-adjust: 100%; }

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

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 底色层 */
  --ink-900: #06182E;
  --ink-800: #0B2545;
  --ink-850: #081D36;
  --line: #1E4A75;
  --line-soft: rgba(30, 74, 117, .55);

  /* 强调层 */
  --cyan: #21E6C1;
  --cyan-deep: #0FA98F;
  --amber: #FFC24B;
  --magenta: #FF4D8D;
  --violet: #7C5CFF;
  --warn: #FF8A3D;

  /* 阅读层 */
  --paper: #F2F7FC;
  --text: #E6F1FF;
  --muted: #93AEC9;

  /* 字体 */
  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "Source Han 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, "Courier New", monospace;

  /* 度量 */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --panel-shadow: 0 4px 0 rgba(2, 10, 20, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --fast: 160ms;
  --base: 200ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 84% -10%, rgba(33, 230, 193, .10), transparent 62%),
    radial-gradient(900px 540px at 2% 10%, rgba(124, 92, 255, .10), transparent 60%),
    radial-gradient(700px 420px at 60% 100%, rgba(255, 194, 75, .05), transparent 65%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(33, 230, 193, .3); color: #ffffff; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }

p + p { margin-top: 1em; }

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

/* ---------- 4. 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.idx {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--amber);
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line-soft);
  margin-block: clamp(18px, 2.4vw, 30px);
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.85;
  color: #CFE0F2;
}

.prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: .55em; }
.prose p + p { margin-top: 1.05em; }
.prose ul, .prose ol { margin-block: 1em; padding-left: 1.25em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 1em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 6px; height: 1px;
  background: var(--cyan);
}
.prose li + li { margin-top: .45em; }

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

@media (min-width: 901px) {
  .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-12 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 内联链接与按钮 ---------- */
.link {
  color: var(--cyan);
  border-bottom: 1px solid rgba(33, 230, 193, .38);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.link:hover { color: var(--cyan-deep); border-bottom-color: var(--cyan-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease),
              transform var(--fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04141F;
}
.btn--primary:hover { background: var(--cyan-deep); border-color: var(--cyan-deep); color: #03121F; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(33, 230, 193, .07);
}

.btn--block { width: 100%; }

/* ---------- 6. 画板 / 标签 / 章节头 ---------- */
.panel {
  position: relative;
  background: linear-gradient(168deg, var(--ink-800), var(--ink-850) 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  transition: border-color var(--base) var(--ease), background-color var(--base) var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--panel-accent, transparent);
}

.panel--pad { padding: clamp(18px, 2.4vw, 28px); }

.panel--ios     { --panel-accent: var(--magenta); }
.panel--android { --panel-accent: var(--violet); }
.panel--v4      { --panel-accent: var(--cyan); }

.panel:hover { border-color: rgba(33, 230, 193, .45); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--ios     { color: var(--magenta); }
.tag--android { color: var(--violet); }
.tag--v4      { color: var(--cyan); }
.tag--amber   { color: var(--amber); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.section-head__title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.crumbs li:not(:first-child)::before {
  content: "/";
  color: var(--line);
  letter-spacing: 0;
}

.crumbs a { color: var(--muted); transition: color var(--fast) var(--ease); }
.crumbs a:hover { color: var(--cyan); }

/* ---------- 8. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900) 68%);
}

.figure > img,
.figure > svg,
.figure > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--hero   { aspect-ratio: 21 / 9; }
.figure--wide   { aspect-ratio: 16 / 9; }
.figure--card   { aspect-ratio: 4 / 3; }
.figure--tall   { aspect-ratio: 3 / 4; }

@media (min-width: 900px) {
  .figure--hero { aspect-ratio: 24 / 9; }
}

.figure__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.figure__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(6, 24, 46, .94));
}

/* ---------- 9. 浅底阅读面板 ---------- */
.paper {
  background: var(--paper);
  color: #0A1F35;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 44px);
  box-shadow: var(--panel-shadow);
}

.paper h2, .paper h3, .paper h1 { color: #06182E; }
.paper .idx, .paper .mono { color: #4A6B8A; }
.paper .stat { color: #A97410; }
.paper a { color: #0B6E5F; border-bottom: 1px solid rgba(11, 110, 95, .38); }
.paper a:hover { color: #075148; border-color: #075148; }
.paper .divider { background: rgba(30, 74, 117, .22); }

/* ---------- 10. 页头 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: #03121F;
  font-weight: 700;
  font-size: 14px;
  border-radius: 2px;
  transition: top var(--base) var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 24, 46, .94), rgba(6, 24, 46, .58));
  border-bottom: 1px solid transparent;
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease),
              box-shadow var(--base) var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--ink-900);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(2, 10, 20, .55);
}

/* 时间戳条 */
.stamp-bar {
  border-bottom: 1px solid rgba(30, 74, 117, .45);
  background: rgba(11, 37, 69, .5);
  transition: border-color var(--base) var(--ease), background-color var(--base) var(--ease);
}

html[data-platform="ios"] .stamp-bar { border-bottom-color: rgba(33, 230, 193, .38); }
html[data-platform="android"] .stamp-bar { border-bottom-color: rgba(124, 92, 255, .5); }

.stamp-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  transition: min-height var(--base) var(--ease);
}

.site-header[data-scrolled="true"] .stamp-bar__inner { min-height: 26px; }

.stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.stamp__dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.stamp__label { overflow: hidden; text-overflow: ellipsis; }
.stamp__sep { color: var(--line); }
.stamp__date { color: var(--amber); }

html[data-platform="android"] .stamp__dot { background: var(--violet); }

@media (prefers-reduced-motion: no-preference) {
  .stamp__dot { animation: stampPulse 2.6s var(--ease) infinite; }
  @keyframes stampPulse {
    0%   { box-shadow: 0 0 0 0 rgba(33, 230, 193, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(33, 230, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 230, 193, 0); }
  }
  html[data-platform="android"] .stamp__dot { animation-name: stampPulseViolet; }
  @keyframes stampPulseViolet {
    0%   { box-shadow: 0 0 0 0 rgba(124, 92, 255, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(124, 92, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
  }
}

/* 双端切换 */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.switch__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.switch__btn {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}

.switch__btn:hover { border-color: var(--cyan); color: var(--text); }

.switch__btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #03121F;
  font-weight: 700;
}

.switch__btn[data-platform-btn="android"][aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #FFFFFF;
}

/* 主导航行 */
.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 74px;
  transition: min-height var(--base) var(--ease);
}

.site-header[data-scrolled="true"] .header-main__inner { min-height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 3px;
  align-items: end;
  height: 22px;
}

.brand__mark i { display: block; border-radius: 1px; }
.brand__mark i:nth-child(1) { height: 22px; background: var(--magenta); }
.brand__mark i:nth-child(2) { height: 14px; background: var(--violet); }
.brand__mark i:nth-child(3) { height: 18px; background: var(--cyan); }

.brand__name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
  color: var(--text);
}

.brand__desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { margin-inline: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 22px);
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--base) var(--ease);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--text); }

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after { transform: scaleX(1); }

.site-nav__list a[aria-current="page"] { color: var(--cyan); font-weight: 700; }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__actions { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 70;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease);
}

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

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 90ms linear;
}

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

/* ---------- 11. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 110px);
  background: linear-gradient(180deg, var(--ink-900), #040F1D);
  border-top: 1px solid var(--line);
}

.footer-strip {
  background: rgba(11, 37, 69, .55);
  border-bottom: 1px solid var(--line-soft);
}

.footer-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 11px;
}

.footer-strip__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-strip__links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-strip__links a { color: var(--muted); transition: color var(--fast) var(--ease); }
.footer-strip__links a:hover { color: var(--cyan); }
.footer-strip__links span { color: var(--line); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: clamp(22px, 3.2vw, 46px);
  padding-block: clamp(34px, 5vw, 62px);
}

.footer-brand__text {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-col__list li + li { margin-top: 10px; }

.footer-col__list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.footer-col__list a:hover { color: var(--text); transform: translateX(2px); }

.footer-meta {
  display: grid;
  gap: 9px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.footer-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.footer-meta__row--legal { color: #7B93AD; }

.footer-meta__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--line);
}

/* ---------- 12. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 37, 69, .92);
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease),
              visibility 0s linear var(--base), border-color var(--fast) var(--ease),
              background-color var(--fast) var(--ease);
}

.back-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.back-top:hover {
  border-color: var(--cyan);
  background: rgba(33, 230, 193, .14);
}

.back-top__glyph {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

/* ---------- 13. 显现动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1100px) {
  .header-cta .btn--ghost { display: none; }
}

@media (max-width: 960px) {
  body { font-size: 16.5px; }

  .header-main__inner { min-height: 64px; gap: 12px; }
  .site-header[data-scrolled="true"] .header-main__inner { min-height: 58px; }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .brand__desc { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    margin: 0;
    padding: 84px var(--gutter) 44px;
    background: var(--ink-900);
    border: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--base) var(--ease),
                transform 260ms var(--ease),
                visibility 0s linear 260ms;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--base) var(--ease),
                transform 260ms var(--ease),
                visibility 0s linear 0s;
  }

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

  .site-nav__list li { border-bottom: 1px solid var(--line-soft); }

  .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 2px;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
  }

  .site-nav__list a::after { display: none; }

  .site-nav__list a::before {
    content: "→";
    order: 2;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--line);
    transition: color var(--fast) var(--ease);
  }

  .site-nav__list a:hover::before,
  .site-nav__list a[aria-current="page"]::before { color: var(--cyan); }

  .site-nav__actions {
    display: grid;
    gap: 10px;
    margin-top: 30px;
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__text { max-width: 46ch; }
}

@media (max-width: 560px) {
  .stamp__label { display: none; }
  .switch__label { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-strip__inner { justify-content: flex-start; }
  .footer-meta { padding-block: 20px 34px; }
  .back-top { width: 40px; height: 40px; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::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; }
  .site-nav__list a::after { transform: scaleX(1); }
  .back-top { transition: none; }
}
