/* ==========================================================================
   亚星赛场 · 共享站点样式 /assets/site.css
   框架式页头 · 档案室页脚 · 通用组件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #0B1412;
  --pitch: #10302A;
  --glass: #1B4A40;
  --cyan: #35F2D0;
  --amber: #F2B33D;
  --rose: #FF3D7F;
  --paper: #E8EDE8;
  --moss: #8FA69C;
  --steel: #2A3B36;
  --focus: #7FD8FF;
  --cream: #F4F1E9;

  --ink-88: rgba(11, 20, 18, 0.88);
  --cyan-10: rgba(53, 242, 208, 0.10);
  --cyan-12: rgba(53, 242, 208, 0.12);
  --cyan-28: rgba(53, 242, 208, 0.28);
  --amber-14: rgba(242, 179, 61, 0.14);
  --rose-16: rgba(255, 61, 127, 0.16);
  --hair: rgba(232, 237, 232, 0.12);

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

  --step-1: 12px;
  --step-2: 13px;
  --step-3: 16px;
  --step-4: 20px;
  --step-5: 26px;
  --step-6: 34px;
  --step-7: 48px;
  --step-8: 68px;
  --step-9: 96px;

  --shell-max: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.33, 0.9, 0.4, 1);
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-color: var(--steel) var(--ink);
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--step-3);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

a {
  color: inherit;
}

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

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

[id] {
  scroll-margin-top: 132px;
}

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

::selection {
  background: var(--cyan);
  color: var(--ink);
}

/* ---------- 3. 排版基础 ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5vw, var(--step-7)); }
h2 { font-size: clamp(26px, 3.4vw, var(--step-6)); }
h3 { font-size: var(--step-4); }
h4 { font-size: var(--step-3); }

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: var(--paper);
}

small {
  font-size: var(--step-1);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 6. 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--steel);
}

.site-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 18%,
    var(--amber) 18% 30%,
    var(--rose) 30% 33%,
    var(--steel) 33% 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  min-height: 64px;
}

/* 品牌署名 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--cyan);
  transform: skewX(-9deg);
  transition: border-color 0.18s var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 9px;
  height: 9px;
  background: var(--amber);
}

.brand:hover .brand-mark {
  border-color: var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--moss);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--steel);
  background: rgba(27, 74, 64, 0.5);
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  color: var(--paper);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: background-color 0.18s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.18s var(--ease), top 0.18s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  white-space: nowrap;
}

/* 导航主体——边框格 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 15px;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  border-left: 1px solid var(--steel);
  box-shadow: inset 0 0 0 transparent;
  transition: color 0.18s var(--ease),
              background-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.nav-item:last-child .nav-link {
  border-right: 1px solid var(--steel);
}

.nav-link:hover {
  color: var(--cyan);
  background: var(--cyan-10);
  box-shadow: inset 0 2px 0 var(--cyan);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-10);
  box-shadow: inset 0 2px 0 var(--cyan);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-left: 18px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink);
  background: var(--amber);
  border: 1px solid var(--amber);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(11, 20, 18, 0.15);
  transition: background-color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.nav-cta:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* 常驻信息带 */
.header-band {
  border-top: 1px solid var(--steel);
  background: rgba(16, 48, 42, 0.55);
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-block: 5px;
}

.band-fact,
.band-update {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--moss);
  margin: 0;
}

.band-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
}

.band-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-16);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--steel);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 85% 0%, rgba(53, 242, 208, 0.08), transparent 62%);
}

.footer-accent {
  position: relative;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0 22%,
    var(--amber) 22% 32%,
    var(--rose) 32% 35%,
    var(--steel) 35% 100%
  );
}

.footer-main {
  position: relative;
  padding-block: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 30px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--steel);
}

.footer-col {
  min-width: 0;
}

.footer-nav,
.footer-legal {
  display: block;
}

.footer-identity {
  display: block;
}

.footer-contact {
  display: block;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 14px;
  max-width: 32ch;
  font-size: var(--step-2);
  line-height: 1.8;
  color: var(--moss);
}

.footer-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--steel);
}

.footer-list {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer-list--plain {
  gap: 10px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  padding-block: 3px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-list a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan-28);
}

.footer-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.footer-label {
  flex: 0 0 auto;
  min-width: 34px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--moss);
}

.footer-value {
  color: var(--paper);
  word-break: break-word;
}

.footer-hint {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--steel);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--moss);
}

.footer-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--moss);
}

.footer-record p {
  margin: 0;
}

.footer-icp {
  color: var(--paper);
}

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

/* ---------- 8. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--paper);
  background: var(--pitch);
  border: 1px solid var(--steel);
  transition: background-color 0.18s var(--ease),
              color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.btn:hover {
  background: var(--glass);
  border-color: var(--cyan-28);
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 700;
}

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

.btn--ghost {
  background: transparent;
}

.btn--ghost:hover {
  background: var(--cyan-10);
  color: var(--cyan);
}

/* 面包屑 */
.crumbs {
  display: block;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  color: var(--moss);
}

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

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

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

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

.crumbs [aria-current="page"] {
  color: var(--paper);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--moss);
  background: rgba(27, 74, 64, 0.42);
  border: 1px solid var(--steel);
  white-space: nowrap;
}

.tag--league {
  color: var(--cyan);
  border-color: var(--cyan-28);
  background: var(--cyan-10);
}

.tag--phase {
  color: var(--amber);
  border-color: rgba(242, 179, 61, 0.42);
  background: var(--amber-14);
}

.tag--update {
  color: var(--rose);
  border-color: rgba(255, 61, 127, 0.42);
  background: var(--rose-16);
}

/* 章节标题组 */
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(26px, 3.4vw, var(--step-6));
}

.chapter-no {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(48px, 9vw, var(--step-9));
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(232, 237, 232, 0.07);
  -webkit-text-stroke: 1px var(--steel);
  text-stroke: 1px var(--steel);
  user-select: none;
}

/* 索引卡 */
.index-card {
  position: relative;
  display: block;
  padding: 18px 20px 20px;
  background: var(--pitch);
  border: 1px solid var(--steel);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.18s var(--ease),
              border-color 0.18s var(--ease),
              transform 0.18s var(--ease);
}

.index-card:hover {
  background: var(--glass);
  border-color: var(--cyan-28);
  transform: translateY(-2px);
}

.index-card__no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.index-card__title {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: var(--step-4);
  letter-spacing: -0.01em;
}

.index-card__meta {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--moss);
}

/* 数据浮层卡 */
.data-card {
  padding: 16px 18px;
  border: 1px solid var(--hair);
  background: rgba(27, 74, 64, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

.data-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.data-card__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--moss);
}

/* 玻璃层 */
.glass {
  background: rgba(27, 74, 64, 0.62);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header,
  .glass,
  .data-card {
    background: var(--glass);
  }
  .site-header {
    background: var(--ink);
  }
}

/* 横向赛季带 */
.season-band {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
  -webkit-overflow-scrolling: touch;
}

.season-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--steel);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease),
              background-color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

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

.season-chip[aria-current="true"],
.season-chip.is-current {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

/* 纵向时间轴 */
.timeline {
  display: grid;
  gap: 32px;
}

.timeline__item {
  display: grid;
  grid-template-columns: minmax(56px, 80px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.timeline__no {
  font-family: var(--font-mono);
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--steel);
}

/* 图片容器基础规则 */
.media {
  position: relative;
  overflow: hidden;
  background: var(--pitch);
  border: 1px solid var(--steel);
  aspect-ratio: 16 / 10;
}

.media > img,
.media > svg,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.06);
}

.media--wide   { aspect-ratio: 21 / 9; }
.media--tall   { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(11, 20, 18, 0.88));
}

/* 正文容器 */
.prose {
  max-width: 68ch;
  font-size: var(--step-3);
  line-height: 1.75;
  color: var(--paper);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2em;
  font-size: var(--step-5);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: var(--step-4);
}

.prose ul {
  list-style: disc;
  padding-left: 1.25em;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.prose blockquote {
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--amber);
  color: var(--moss);
}

.prose--light {
  max-width: 78ch;
  padding: clamp(24px, 4vw, 48px);
  background: var(--cream);
  color: var(--ink);
}

.prose--light h2,
.prose--light h3,
.prose--light strong {
  color: var(--ink);
}

.prose--light a {
  color: #0E6B5A;
}

/* 阅读进度条（页面级元素，样式由共享表提供） */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: var(--progress, 0%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.1s linear;
}

/* 章节高亮态 */
.index-card.is-current,
.index-card[aria-current="true"] {
  border-color: var(--cyan);
  background: var(--glass);
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link {
    padding-inline: 11px;
  }
  .nav-cta {
    margin-left: 12px;
    padding-inline: 14px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
  .footer-note {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding-bottom: 14px;
    background: var(--pitch);
    border-top: 1px solid var(--steel);
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    min-height: 52px;
    padding: 0 20px;
    border-left: 0;
    border-bottom: 1px solid var(--steel);
    box-shadow: none;
  }

  .nav-item:last-child .nav-link {
    border-right: 0;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--cyan);
  }

  .nav-cta {
    margin: 16px 20px 4px;
    min-height: 46px;
  }

  .brand-name {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 60px;
  }
  .band-fact {
    display: none;
  }
  .band-inner {
    justify-content: flex-end;
  }
  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-record {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .brand-sub {
    letter-spacing: 0.18em;
  }
}

/* ---------- 10. 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .nav-cta:hover,
  .btn:hover,
  .index-card:hover {
    transform: none;
  }
  .skip-link {
    transition: none;
    transform: none;
    clip-path: inset(50%);
  }
  .skip-link:focus {
    clip-path: none;
  }
}
