/* ============================================================
   买球网中心 · /assets/site.css
   深靛蓝底 + 信号橙 + 荧光青；色带叙事、记分牌栏格、终端质感
   ============================================================ */

:root {
  --ink-0: #0B1230;
  --ink-1: #111A44;
  --ink-2: #1B2A6B;
  --card: #14204E;
  --orange: #FF6A2A;
  --cyan: #2DE2E6;
  --mint: #D7F7F6;
  --paper: #F4F1E8;
  --slate: #7C89B8;
  --amber: #FFB020;
  --green: #3DDC97;
  --text: #F7FAFF;
  --line: rgba(124, 137, 184, 0.26);
  --line-soft: rgba(124, 137, 184, 0.15);
  --line-strong: rgba(45, 226, 230, 0.55);
  --shell: 1240px;
  --gutter: 24px;
  --radius: 3px;
  --dur: 0.2s;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 32px -26px rgba(0, 0, 0, 0.95);
  --shadow-2: 0 28px 64px -34px rgba(0, 0, 0, 0.98);
  --font-sans: "Helvetica Neue", "Arial Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ---------- base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(45, 226, 230, 0.10), transparent 68%),
    radial-gradient(880px 480px at 4% -4%, rgba(255, 106, 42, 0.09), transparent 64%),
    linear-gradient(rgba(124, 137, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 137, 184, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; letter-spacing: 0.02em; color: var(--text); }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 3.1vw, 36px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: 17px; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #ffffff; }
strong { font-weight: 700; color: #ffffff; }
::selection { background: var(--cyan); color: #061024; }

/* ---------- layout utils ---------- */
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.shell--narrow { width: min(880px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { position: relative; padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper {
  --line: rgba(11, 18, 48, 0.18);
  --line-soft: rgba(11, 18, 48, 0.1);
  --slate: #4A5578;
  --text: #0B1230;
  background: var(--paper);
  color: #0B1230;
}
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: #0B1230; }
.section--paper a { color: #0A6270; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section--paper a:hover { color: #0B1230; }
.section--paper .eyebrow { color: #0A6B78; }
.section--paper strong { color: #0B1230; }

#main-content { display: block; scroll-margin-top: 128px; }
[data-section] { scroll-margin-top: 140px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.band { display: flex; align-items: baseline; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.band-index { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.22em; color: var(--orange); }
.band-title { font-size: clamp(22px, 2.8vw, 32px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }

.display-index {
  display: block;
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.9; letter-spacing: -0.02em;
  color: rgba(45, 226, 230, 0.32);
}

.lead { max-width: 64ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; color: rgba(247, 250, 255, 0.84); }
.divider { height: 1px; border: 0; margin: 32px 0; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease, transform var(--dur) ease, box-shadow var(--dur) ease;
}
.btn--primary { background: var(--orange); color: #17100A; box-shadow: 0 8px 22px -14px rgba(255, 106, 42, 0.9); }
.btn--primary:hover { background: #FF8047; color: #17100A; transform: translateY(-1px); }
.btn--ghost { background: rgba(45, 226, 230, 0.05); border-color: rgba(124, 137, 184, 0.5); color: var(--mint); }
.btn--ghost:hover { border-color: var(--cyan); color: #ffffff; background: rgba(45, 226, 230, 0.1); }
.btn--quiet { padding: 6px 0; background: none; border: 0; color: var(--cyan); font-weight: 700; }
.btn--quiet:hover { color: #ffffff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- tags / notes ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mint); background: rgba(45, 226, 230, 0.05);
  white-space: nowrap;
}
.tag--new { color: #1A0C04; background: var(--orange); border-color: var(--orange); }
.tag--ok { color: var(--green); border-color: rgba(61, 220, 151, 0.45); background: rgba(61, 220, 151, 0.08); }
.tag--warn { color: var(--amber); border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.08); }
.tag--info { color: var(--cyan); border-color: rgba(45, 226, 230, 0.45); background: rgba(45, 226, 230, 0.07); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.note {
  padding: 14px 16px;
  border-left: 2px solid var(--cyan);
  background: rgba(45, 226, 230, 0.06);
  color: var(--mint); font-size: 14px; line-height: 1.8;
}
.note--warn { border-left-color: var(--amber); background: rgba(255, 176, 32, 0.09); color: #FFE6B8; }

/* ============================================================
   HEADER
   ============================================================ */
.skip-link {
  position: absolute; top: 10px; left: 10px; z-index: 300;
  padding: 10px 18px; border-radius: 2px;
  background: var(--orange); color: #17100A;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  transform: translateY(-240%);
  transition: transform var(--dur) ease;
}
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); color: #17100A; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-0);
  box-shadow: 0 22px 44px -36px rgba(0, 0, 0, 1);
}

/* 上层状态带 */
.header-strip { background: #090F27; border-bottom: 1px solid var(--line-soft); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.strip-note {
  margin: 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
}
.strip-meta { display: flex; align-items: center; gap: 14px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px; border: 1px solid rgba(61, 220, 151, 0.42); border-radius: 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--green); background: rgba(61, 220, 151, 0.07);
  white-space: nowrap;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
  animation: status-pulse 3.2s ease-in-out infinite;
}
@keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.42; } }
.strip-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--cyan); white-space: nowrap;
}
.strip-link:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* 下层主栏 */
.header-main {
  position: relative;
  background-color: var(--ink-1);
  border-bottom: 1px solid var(--line);
}
.header-main::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 240px;
  background: linear-gradient(180deg, rgba(45, 226, 230, 0.16), rgba(45, 226, 230, 0));
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
  pointer-events: none;
}
.header-inner {
  position: relative; z-index: 2;
  display: flex; align-items: stretch; justify-content: space-between; gap: 20px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-content: center; justify-items: start; gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(45, 226, 230, 0.08);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 48, 0.65);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.brand:hover .brand-mark { border-color: var(--line-strong); background: rgba(45, 226, 230, 0.14); }
.brand-tick { width: 22px; height: 7px; background: linear-gradient(180deg, var(--orange) 0 3px, transparent 3px 4px, var(--cyan) 4px 7px); }
.brand-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mint); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.2; color: #ffffff; }
.brand-line { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--cyan); text-transform: uppercase; }

.primary-nav { display: flex; align-items: stretch; }
.nav-list { display: flex; align-items: stretch; }
.nav-item { display: flex; }
.nav-link {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 12px 16px;
  border-left: 1px solid var(--line-soft);
  color: var(--mint); text-decoration: none;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.nav-item:last-child .nav-link { border-right: 1px solid var(--line-soft); }
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur) ease;
}
.nav-link:hover { background: rgba(45, 226, 230, 0.08); color: #ffffff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-index {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--slate);
  transition: color var(--dur) ease;
}
.nav-label { font-size: 14.5px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; white-space: nowrap; }
.nav-link:hover .nav-index { color: var(--orange); }
.nav-link[aria-current="page"] { color: #ffffff; background: rgba(255, 106, 42, 0.1); }
.nav-link[aria-current="page"] .nav-index { color: var(--orange); }
.nav-link[aria-current="page"]::after { background: var(--orange); transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; align-self: center;
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(45, 226, 230, 0.06);
  color: var(--mint);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  cursor: pointer;
  transition: border-color var(--dur) ease, color var(--dur) ease, background-color var(--dur) ease;
}
.nav-toggle:hover { border-color: var(--line-strong); color: #ffffff; background: rgba(45, 226, 230, 0.1); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; transition: transform var(--dur) ease, opacity var(--dur) ease; }
.nav-toggle-label { line-height: 1; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-progress { position: relative; height: 3px; overflow: hidden; background: rgba(124, 137, 184, 0.16); }
.progress-fill {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: transform 0.1s linear;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background-color: var(--ink-1);
  background-image:
    linear-gradient(rgba(124, 137, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 137, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--mint);
}
.footer-signal {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--cyan) 0 26px, transparent 26px 40px,
    var(--orange) 40px 62px, transparent 62px 96px);
  opacity: 0.85;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr 1.4fr;
  gap: 40px 28px;
  padding: 60px 0 44px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-mark { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.footer-mark:hover { color: #ffffff; }
.footer-word { font-size: 19px; font-weight: 800; letter-spacing: 0.1em; }
.footer-tagline {
  margin: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan);
}
.footer-note { margin: 0; max-width: 34ch; font-size: 13.5px; line-height: 1.8; color: var(--slate); }

.footer-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate);
}
.footer-title::before { content: ""; width: 12px; height: 2px; background: var(--orange); }
.footer-list { display: grid; gap: 9px; }
.footer-list a {
  display: inline-block;
  font-size: 14px; color: var(--mint);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.footer-list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-item { display: grid; gap: 2px; }
.footer-contact-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate);
}
.footer-contact-value { font-size: 13.5px; line-height: 1.6; color: var(--mint); overflow-wrap: anywhere; }

.footer-base { border-top: 1px solid var(--line-soft); background: rgba(9, 15, 39, 0.55); }
.footer-base-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0 22px;
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--slate);
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 20px 0 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--slate);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; color: rgba(124, 137, 184, 0.7); }
.breadcrumbs a { color: var(--mint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--cyan); }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) ease, transform var(--dur) ease, box-shadow var(--dur) ease;
}
.card:hover { border-color: rgba(45, 226, 230, 0.5); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card-title { margin-bottom: 8px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.card-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); }

.media-frame {
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: var(--radius);
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(45, 226, 230, 0.22), transparent 60%),
    radial-gradient(100% 80% at 88% 92%, rgba(255, 106, 42, 0.2), transparent 62%),
    linear-gradient(rgba(215, 247, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 247, 246, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}
.media-frame img, .media-frame svg { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--phone { aspect-ratio: 9 / 19.5; width: min(260px, 100%); margin-inline: auto; }
.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--slate);
}

.data-list { display: grid; }
.data-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.data-row dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate);
}
.data-row dd { margin: 0; font-size: 14.5px; }

.disclosure {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(27, 42, 107, 0.34);
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px;
  list-style: none; cursor: pointer;
  font-weight: 700; color: var(--text);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--cyan); }
.disclosure[open] summary { border-bottom: 1px solid var(--line-soft); }
.disclosure[open] summary::after { content: "−"; color: var(--orange); }
.disclosure-body { padding: 16px 18px; font-size: 14.5px; line-height: 1.85; color: var(--mint); }
.disclosure-body > * + * { margin-top: 10px; }

.section-nav { display: grid; gap: 2px; }
.section-nav a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: var(--slate); font-size: 13.5px; line-height: 1.6; text-decoration: none;
  transition: color var(--dur) ease, border-color var(--dur) ease, background-color var(--dur) ease;
}
.section-nav a:hover { color: var(--mint); border-left-color: var(--line-strong); background: rgba(45, 226, 230, 0.05); }
.section-nav a[aria-current="true"] { color: var(--cyan); border-left-color: var(--orange); background: rgba(45, 226, 230, 0.07); }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 2px;
  background: rgba(11, 18, 48, 0.94);
  color: var(--mint);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.back-to-top[data-visible] { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { border-color: var(--line-strong); color: #ffffff; }

.prose { font-size: 16.5px; line-height: 1.9; color: rgba(247, 250, 255, 0.88); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p { max-width: 74ch; }
.prose ul, .prose ol { max-width: 72ch; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li + li { margin-top: 0.5em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.86em;
  width: 9px; height: 2px; background: var(--cyan);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { position: relative; padding-left: 26px; counter-increment: prose-ol; }
.prose ol li + li { margin-top: 0.5em; }
.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--orange);
}
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { border-left: 2px solid var(--orange); padding-left: 18px; color: var(--mint); }

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px #0B1230;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .nav-link { padding: 12px 12px; }
  .nav-label { font-size: 14px; }
  .footer-inner { grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 1.2fr; gap: 32px 22px; }
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    z-index: 6;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #0A1030;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .primary-nav[data-open] { display: block; animation: nav-drop 0.18s ease-out; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .nav-link {
    flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px;
    padding: 15px 20px;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-item:last-child .nav-link { border-right: 0; border-bottom: 0; }
  .nav-link::after {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 3px; height: auto;
    transform: scaleY(0); transform-origin: 50% 0;
  }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleY(1); }
  .nav-index { font-size: 11px; }
  .nav-label { font-size: 16px; }
  .header-main::before { width: 150px; }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .strip-note { display: none; }
  .strip-inner { min-height: 34px; }
  .strip-link { font-size: 10.5px; letter-spacing: 0.14em; }
  .status-chip { font-size: 10.5px; letter-spacing: 0.1em; }
  .header-inner { min-height: 66px; gap: 12px; }
  .brand { gap: 10px; padding: 10px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 17.5px; }
  .brand-line { font-size: 9.5px; letter-spacing: 0.16em; }
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .band { flex-wrap: wrap; gap: 8px 14px; margin-bottom: 22px; }
  .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .data-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 0 32px; gap: 30px; }
  .footer-contact-list { grid-template-columns: minmax(0, 1fr); }
  .footer-base-inner { justify-content: flex-start; }
  .back-to-top { right: 12px; bottom: 12px; padding: 9px 12px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  .nav-toggle { padding: 9px 12px; }
  .nav-toggle-label { display: none; }
  .display-index { font-size: clamp(40px, 16vw, 64px); }
  .card { 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;
  }
  .status-dot { animation: none; }
  .card:hover, .btn--primary:hover, .back-to-top { transform: none !important; }
  .progress-fill { transition: none; }
  .primary-nav[data-open] { animation: none; }
}
