/* ==========================================================================
   凤凰体育看台 · 共享样式 /assets/site.css
   蓝图网格 + 火羽标记 + 墨蓝命令栏 + 切角面板
   ========================================================================== */

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

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

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

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --flame-red: #B0121C;
  --flame-red-deep: #8A0D15;
  --feather-red: #E03A2F;
  --gold: #F2A03D;
  --dawn: #FFD9A6;
  --ink-blue: #0B1830;
  --night-blue: #16294A;
  --cyan: #2FD3C6;
  --paper: #F7F5F2;
  --ink: #14161A;
  --haze: #D9D3CA;
  --stone: #6C727E;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, "Courier New", monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 76px;
  --header-h-compact: 56px;
  --notch: 14px;
  --ease: cubic-bezier(.22, .7, .28, 1);
  --line: 1px solid var(--haze);
  --rail: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
}

/* ---------- 3. Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 24px);
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

p { word-break: break-word; }

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

/* ---------- 4. 工具类 ---------- */
.u-vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.blueprint {
  background-image:
    linear-gradient(rgba(11, 24, 48, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 24, 48, .055) 1px, transparent 1px);
  background-size: 64px 64px;
}

.blueprint--dark {
  background-image:
    linear-gradient(rgba(247, 245, 242, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 245, 242, .06) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--stone);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--feather-red);
  flex: none;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.14;
  letter-spacing: -.018em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.8;
  color: #3A3F4A;
}

/* ---------- 5. 章节 ---------- */
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  background: var(--flame-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.btn:hover { background: var(--flame-red-deep); }

.btn--ghost {
  background: transparent;
  border-color: var(--haze);
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--feather-red);
  color: var(--flame-red);
}

.btn--light {
  background: var(--paper);
  color: var(--ink-blue);
}

.btn--light:hover {
  background: var(--dawn);
  color: var(--ink-blue);
}

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

/* ---------- 7. 面板 / 网格 / 图片容器 ---------- */
.panel {
  background: #fff;
  border: var(--line);
  padding: clamp(20px, 2.4vw, 32px);
}

.panel--notch {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.panel--dark {
  background: var(--night-blue);
  border-color: rgba(47, 211, 198, .28);
  color: var(--paper);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.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; }

.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(152deg, var(--night-blue), var(--ink-blue));
  border: 1px solid var(--haze);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }

.media--notch {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.media--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 211, 198, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 211, 198, .14) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(11, 24, 48, .88), rgba(11, 24, 48, 0));
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.7;
}

/* ---------- 8. 面包屑 / 正文 / 提示 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--stone);
}

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

.crumbs li + li::before {
  content: "/";
  color: var(--haze);
}

.crumbs a {
  color: var(--stone);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.crumbs a:hover { color: var(--flame-red); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.2em; }

.prose > * + h2,
.prose > * + h3 { margin-top: 1.6em; }

.prose--wide {
  max-width: 66ch;
  font-size: 20px;
  line-height: 1.85;
}

.prose__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.7;
  font-weight: 500;
  color: var(--ink-blue);
}

.notice {
  padding: 24px 20px;
  border: 1px dashed var(--haze);
  color: var(--stone);
  font-size: 14px;
  text-align: center;
  background: rgba(255, 255, 255, .5);
}

/* ---------- 9. 筛选标签 ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--haze);
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.chip:hover {
  border-color: var(--feather-red);
  color: var(--flame-red);
}

.chip[aria-pressed="true"] {
  background: var(--flame-red);
  border-color: var(--flame-red);
  color: #fff;
}

/* ---------- 10. 手风琴 ---------- */
.acc { border-top: 1px solid var(--haze); }

.acc__item { border-bottom: 1px solid var(--haze); }

.acc__btn {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.acc__btn::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--feather-red);
  transition: transform .18s var(--ease);
}

.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .18s var(--ease);
}

.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }

.acc__body { overflow: hidden; }

.acc__body > * {
  padding-bottom: 22px;
  max-width: 72ch;
}

/* ---------- 11. 章节锚点 ---------- */
.toc {
  position: sticky;
  top: calc(var(--header-h-compact) + 28px);
  font-size: 13px;
}

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

.toc__link {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--haze);
  color: var(--stone);
  text-decoration: none;
  line-height: 1.6;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.toc__link:hover {
  color: var(--ink);
  border-left-color: var(--feather-red);
}

.toc__link[aria-current="true"] {
  color: var(--flame-red);
  border-left-color: var(--flame-red);
  font-weight: 700;
}

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--night-blue);
  background: var(--ink-blue);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: opacity .16s var(--ease), visibility .16s var(--ease), transform .16s var(--ease), background-color .16s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--flame-red);
  border-color: var(--flame-red);
}

/* ---------- 13. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-blue);
  color: var(--paper);
  border-bottom: 1px solid rgba(47, 211, 198, .2);
  box-shadow: 0 18px 34px -30px rgba(0, 0, 0, .9);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 140;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink-blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--flame-red);
  transform: translateY(-180%);
  transition: transform .16s var(--ease);
}

.skip-link:focus-visible { transform: none; }

.header-status {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-inline: var(--rail);
  background: linear-gradient(90deg, var(--flame-red), var(--flame-red-deep) 62%, #6B0A11);
  color: var(--paper);
  overflow: hidden;
  transition: height .18s var(--ease), opacity .18s var(--ease);
}

.site-header[data-scrolled="true"] .header-status {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 211, 198, .22);
}

.header-status__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-status__link {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--dawn);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .16s var(--ease);
}

.header-status__link:hover { color: #fff; }

.header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  transition: height .18s var(--ease);
}

.site-header[data-scrolled="true"] .header-bar { height: var(--header-h-compact); }

/* 品牌 + 火羽 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  display: block;
  flex: none;
  width: 30px;
  height: 32px;
  transform: rotate(-18deg);
}

.feather {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  margin-left: -2.5px;
  border-radius: 3px 3px 60% 60%;
  transform-origin: 50% 100%;
  transition: transform .16s var(--ease);
}

.feather--1 { height: 16px; background: var(--feather-red); transform: rotate(-26deg); }
.feather--2 { height: 24px; background: var(--gold); transform: rotate(0deg); }
.feather--3 { height: 14px; background: var(--dawn); transform: rotate(26deg); }

.brand:hover .feather--1 { transform: rotate(-34deg); }
.brand:hover .feather--3 { transform: rotate(34deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.01em;
}

.brand__desc {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(247, 245, 242, .55);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  background: transparent;
  border: 1px solid rgba(247, 245, 242, .3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}

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

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .16s var(--ease), opacity .16s var(--ease);
}

.site-header[data-open="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 1.3vw, 20px);
}

.site-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 3px 11px;
  color: rgba(247, 245, 242, .74);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  line-height: 1;
  color: rgba(47, 211, 198, .62);
  transition: color .16s var(--ease);
}

.site-nav__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--feather-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .16s var(--ease);
}

.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link:hover .site-nav__idx { color: var(--cyan); }

.site-nav__link[aria-current="page"] { color: #fff; }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--gold); }

.site-nav__note {
  display: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(247, 245, 242, .18);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(247, 245, 242, .52);
}

/* 右侧提示胶囊 */
.header-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 15px;
  border: 1px solid rgba(47, 211, 198, .42);
  color: var(--dawn);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.header-slot::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.header-slot:hover {
  background: rgba(47, 211, 198, .16);
  border-color: var(--cyan);
  color: #fff;
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-blue);
  color: rgba(247, 245, 242, .8);
  padding-top: clamp(44px, 6vw, 84px);
  border-top: 3px solid var(--flame-red);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 245, 242, .1) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(224, 58, 47, 0), var(--feather-red) 22%, var(--gold) 58%, rgba(47, 211, 198, 0));
  transform: rotate(-.8deg);
  pointer-events: none;
}

.site-footer > .wrap,
.footer-legal { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.25fr;
  gap: clamp(24px, 3.4vw, 56px);
  padding-bottom: clamp(32px, 4.4vw, 60px);
}

.footer-brand__line {
  margin-top: 18px;
  max-width: 26ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(247, 245, 242, .74);
}

.footer-brand__meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}

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

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

.footer-col__list a {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 245, 242, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-col__list a:hover {
  color: #fff;
  border-bottom-color: var(--feather-red);
}

.footer-col__contact li {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(247, 245, 242, .78);
  padding-left: 14px;
  position: relative;
  word-break: break-word;
}

.footer-col__contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 5px;
  height: 5px;
  background: var(--cyan);
  opacity: .7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding: 20px var(--rail) 26px;
  border-top: 1px solid rgba(247, 245, 242, .16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.8;
  color: rgba(247, 245, 242, .55);
}

.footer-legal__icp { color: var(--dawn); }

.footer-legal__note { color: rgba(247, 245, 242, .5); }

.footer-legal__year { color: rgba(247, 245, 242, .45); }

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-legal__links a {
  color: rgba(247, 245, 242, .74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-legal__links a:hover {
  color: #fff;
  border-bottom-color: var(--feather-red);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand__line { max-width: 40ch; }
}

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

  .site-header { --header-h: 64px; }

  .header-bar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    padding: 10px var(--gutter) 26px;
    background: var(--ink-blue);
    border-top: 1px solid rgba(47, 211, 198, .24);
    box-shadow: 0 30px 44px -32px #000;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .site-header[data-open="true"] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(247, 245, 242, .12);
  }

  .site-nav__link::after { display: none; }

  .site-nav__idx { width: 22px; }

  .site-nav__text { font-size: 16px; }

  .site-nav__link[aria-current="page"] { color: var(--gold); }
  .site-nav__link[aria-current="page"] .site-nav__idx { color: var(--feather-red); }

  .site-nav__note { display: block; }
}

@media (max-width: 980px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .toc { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .header-status { height: 30px; }
  .header-status__text { font-size: 11px; letter-spacing: .02em; }
  .header-status__link { display: none; }

  .brand__name { font-size: 17px; }
  .brand__desc { font-size: 9px; letter-spacing: .14em; }
  .brand__mark { width: 26px; height: 28px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand__line { max-width: none; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal__links { margin-left: 0; }
}

@media (max-width: 420px) {
  .nav-toggle__label { display: none; }
  .header-status__text { max-width: 24ch; }
}

/* ---------- 16. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .to-top { transform: none; }
  .skip-link { transform: none; }
}
