/* ============================================================
   四季体育赛事 · 共享样式表 /assets/site.css
   色阶：赛季夜底 → 档案层底 → 界线钢蓝 → 赛季季色
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

table { border-collapse: collapse; }

hr { border: 0; }

/* ---------- tokens ---------- */
:root {
  --bg: #070B14;
  --bg-2: #0E1526;
  --bg-3: #0A101D;

  --line: #1B2740;
  --line-soft: #22304C;

  --ink: #F2F5FA;
  --ink-soft: #9AA7BE;
  --ink-dim: #5D6B85;

  --cyan: #2BE3C8;
  --violet: #6C5CE7;

  --spring: #7CE07A;
  --spring-2: #F2B6C6;
  --summer: #0B4F9E;
  --summer-2: #2BE3C8;
  --autumn: #F5A623;
  --autumn-2: #E8C46A;
  --winter: #DCE6F2;
  --winter-2: #12294D;

  --shell: 1280px;
  --gutter: 24px;
  --sp: 8px;

  --cut: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --cut-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 180ms;
}

/* ---------- base typography ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

::selection {
  background: var(--cyan);
  color: #04121A;
}

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

/* ---------- layout utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.content { max-width: 68ch; }
.content--narrow { max-width: 56ch; }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 132px) 0; }
.section--tinted { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 68ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.section__title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
}

.section__sub {
  font-size: 15px;
  color: var(--ink-soft);
}

.lead {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  font-weight: 600;
  color: var(--winter);
}

.prose p {
  margin-bottom: 1.1em;
  font-size: 16.5px;
  color: #D8DFEC;
}

.prose h3 {
  margin: 1.8em 0 0.6em;
  font-size: 20px;
  font-weight: 900;
}

.prose h3:first-child { margin-top: 0; }

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 1.4em;
}

.prose li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: #D8DFEC;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--line-soft);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid--7-5 > *:first-child { grid-column: span 7; }
.grid--7-5 > *:last-child { grid-column: span 5; }
.grid--8-4 > *:first-child { grid-column: span 8; }
.grid--8-4 > *:last-child { grid-column: span 4; }

.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- cut panels ---------- */
.cut-panel {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
  padding: 24px;
}

.cut-panel--tinted { background: #111A2E; }

.cut-panel--link {
  display: block;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.cut-panel--link:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: #131F36;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  clip-path: var(--cut-sm);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

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

.btn--primary {
  background: var(--cyan);
  border-color: transparent;
  color: #04121A;
}

.btn--primary:hover {
  background: #57F0DA;
  color: #04121A;
  transform: translateY(-2px);
}

.btn--ghost { color: var(--ink-soft); }

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tag--spring { color: var(--spring); border-color: rgba(124, 224, 122, 0.42); background: rgba(124, 224, 122, 0.08); }
.tag--summer { color: var(--cyan); border-color: rgba(43, 227, 200, 0.42); background: rgba(43, 227, 200, 0.08); }
.tag--autumn { color: var(--autumn); border-color: rgba(245, 166, 35, 0.42); background: rgba(245, 166, 35, 0.08); }
.tag--winter { color: var(--winter); border-color: rgba(220, 230, 242, 0.34); background: rgba(220, 230, 242, 0.07); }

/* ---------- stats ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  color: var(--ink);
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stat--cyan .stat__value { color: var(--cyan); }
.stat--violet .stat__value { color: var(--violet); }

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: rgba(7, 11, 20, 0.82);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg-2);
  clip-path: var(--cut);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
}

.data-table caption {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121B2F;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--dur) var(--ease);
}

.data-table tbody tr:hover { background: rgba(43, 227, 200, 0.06); }

.data-table th.num,
.data-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- rail (锚点导航) ---------- */
.rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.rail__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}

.rail__dot {
  width: 7px;
  height: 7px;
  background: var(--line-soft);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.rail__link:hover { color: var(--ink); }

.rail__link[aria-current="true"] { color: var(--cyan); }

.rail__link[aria-current="true"] .rail__dot {
  background: var(--cyan);
  transform: scale(1.4);
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 20px 0; }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

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

.breadcrumb__link {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.breadcrumb__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumb__sep { color: #3A4864; }

.breadcrumb__current { color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 130;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 900;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus { top: 12px; }

/* --- 命令栏 --- */
.cmdbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.cmdbar__season {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cmdbar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}

.cmdbar__value {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.cmdbar__dot {
  width: 6px;
  height: 6px;
  background: var(--violet);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cmdbar__meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.cmdbar__search {
  position: relative;
  flex: 1 1 280px;
  max-width: 400px;
  margin-left: auto;
}

.cmdbar__input {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  clip-path: var(--cut-sm);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.cmdbar__input::placeholder {
  color: #61708C;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.cmdbar__input::-webkit-search-cancel-button { display: none; }

.cmdbar__input:hover { border-color: var(--line-soft); }

.cmdbar__input:focus,
.cmdbar__input:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.cmdbar__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 95;
  padding: 8px 6px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  max-height: 320px;
  overflow-y: auto;
}

.cmdbar__results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.cmdbar__result {
  display: block;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--ink);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.cmdbar__result:hover,
.cmdbar__result:focus-visible {
  background: rgba(43, 227, 200, 0.08);
  border-left-color: var(--cyan);
  color: var(--cyan);
  outline: none;
}

.cmdbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cmdbar__archive {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.cmdbar__archive:hover {
  color: var(--cyan);
  border-color: var(--line);
}

.cmdbar__cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: var(--cyan);
  color: #04121A;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  clip-path: var(--cut-sm);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.cmdbar__cta:hover {
  background: #57F0DA;
  transform: translateY(-1px);
}

.cmdbar__cta:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #04121A, inset 0 0 0 4px var(--cyan);
}

/* --- 导航带 --- */
.navband {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(14, 21, 38, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navband__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

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

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.brand__seg { display: block; background: var(--line); }
.brand__seg:nth-child(1) { background: var(--spring); clip-path: polygon(0 0, 100% 0, 0 100%); }
.brand__seg:nth-child(2) { background: var(--summer-2); }
.brand__seg:nth-child(3) { background: var(--autumn); }
.brand__seg:nth-child(4) { background: var(--winter); clip-path: polygon(100% 0, 100% 100%, 0 100%); }

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

.brand__name {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: var(--cut-sm);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--cyan);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__text { font-size: 12.5px; }

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

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--cyan);
}

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

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: baseline;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav__link::before {
  content: attr(data-index);
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #4E5C77;
  transition: color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(43, 227, 200, 0.06);
}

.nav__link:hover::before { color: var(--cyan); }

.nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.nav__link[aria-current="page"]::before { color: var(--cyan); }

/* --- 赛季轨道条 --- */
.season-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  height: 4px;
  background: var(--bg);
}

.season-rail__seg {
  display: block;
  background: var(--seg, var(--line));
  opacity: 0.3;
  transition: opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.season-rail__seg[data-season-seg="spring"] { --seg: #7CE07A; }
.season-rail__seg[data-season-seg="summer"] { --seg: #2BE3C8; }
.season-rail__seg[data-season-seg="autumn"] { --seg: #F5A623; }
.season-rail__seg[data-season-seg="winter"] { --seg: #DCE6F2; }

.season-rail__seg[data-active] {
  opacity: 1;
  box-shadow: 0 0 14px var(--seg);
}

/* --- 滚动进度 --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 80ms linear;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--bg-3);
  border-top: 1px solid var(--line);
}

.footer__band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 8px;
  background: var(--bg-3);
}

.footer__bandseg {
  position: relative;
  overflow: hidden;
}

.footer__bandseg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  opacity: 0.85;
}

.footer__bandseg--spring { color: var(--spring); }
.footer__bandseg--summer { color: var(--summer-2); }
.footer__bandseg--autumn { color: var(--autumn); }
.footer__bandseg--winter { color: var(--winter); }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 56px;
  padding-bottom: 28px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px;
}

.footer__brandlink {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.footer__brandlink:hover { color: var(--cyan); }

.footer__tagline {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--winter);
}

.footer__note {
  margin-top: 10px;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer__contactline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer__k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.footer__v { color: var(--ink); }

.footer__sep { color: #3A4864; }

.footer__address {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(27, 39, 64, 0.9);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.footer__icp { color: var(--ink-soft); }

.footer__copy { color: var(--ink-dim); }

/* ============================================================
   入场显现
   ============================================================ */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 220ms var(--ease), translate 220ms var(--ease);
}

html[data-js="on"] [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .nav__link { padding: 8px 8px; font-size: 13.5px; }
  .nav__link::before { display: none; }
}

@media (max-width: 959px) {
  .navband__inner {
    gap: 12px;
    min-height: 58px;
  }

  .brand { flex: 1 1 auto; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    display: none;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45);
  }

  .site-header[data-open] .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav__item { width: 100%; }

  .nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(27, 39, 64, 0.7);
    border-left: 2px solid transparent;
  }

  .nav__link::before { display: inline; }

  .nav__link[aria-current="page"] {
    border-bottom-color: rgba(27, 39, 64, 0.7);
    border-left-color: var(--cyan);
    background: rgba(43, 227, 200, 0.06);
  }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 899px) {
  .cmdbar__inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .cmdbar__season { order: 1; }
  .cmdbar__links { order: 2; margin-left: auto; }
  .cmdbar__meta { display: none; }

  .cmdbar__search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }

  .cmdbar__input { height: 38px; }

  .grid--7-5,
  .grid--8-4,
  .grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--7-5 > *,
  .grid--8-4 > * { grid-column: auto; }

  .rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
}

@media (max-width: 700px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer__inner { padding-top: 44px; gap: 28px; }
}

@media (max-width: 520px) {
  .cmdbar__dot { display: none; }
  .cmdbar__links { gap: 6px; }
  .cmdbar__archive { padding: 0 8px; }
  .brand__line { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; }
  .cut-panel { padding: 20px; }
}

/* ============================================================
   键盘焦点与动效偏好
   ============================================================ */
@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;
  }

  html[data-js="on"] [data-reveal] {
    opacity: 1;
    translate: 0 0;
  }

  .scroll-progress__bar { transition: none; }

  .cut-panel--link:hover,
  .btn--primary:hover,
  .cmdbar__cta:hover { transform: none; }
}
