/* ============================================================
   江南平台看台 /assets/site.css
   共享层：重置 · 变量 · 中文排版 · 悬浮页头 · 页脚 · 基础组件
   视觉语言：夜场看台灯光 × 战术板纸 × 数据台等宽索引
   ============================================================ */

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

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

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

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

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

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

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

table { border-collapse: collapse; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --night: #0C1A2B;      /* 夜赛深蓝 */
  --stand: #16283C;      /* 看台靛 */
  --teal: #2F9A93;       /* 江南水青 */
  --teal-deep: #1F6E69;  /* 浅底可用深青 */
  --mist: #9FD6D0;       /* 水青雾 */
  --pitch: #43A047;      /* 球场草绿 */
  --pitch-deep: #2E7D32;
  --flare: #F5C518;      /* 荧光警示黄 */
  --flare-ink: #8A6A00;  /* 浅底荧光黄文字 */
  --red: #D2452F;        /* 红牌朱 */
  --paper: #F3EDDF;      /* 战术板纸 */
  --graphite: #5C6470;   /* 手写炭灰 */
  --white: #FFFFFF;

  /* 字体 */
  --font-display: "Archivo Expanded", "Archivo Black", "Source Han Sans SC",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular",
    Consolas, "Courier New", monospace;

  /* 形制 */
  --bd: 3px solid var(--night);
  --shadow: 6px 6px 0 var(--night);
  --shadow-sm: 4px 4px 0 var(--night);
  --pill: 999px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--night);
  background-color: var(--paper);
  background-image:
    linear-gradient(0deg, rgba(12, 26, 43, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 26, 43, .035) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { text-wrap: pretty; }

::selection {
  background: var(--flare);
  color: var(--night);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- 4. 容器与节奏 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page {
  display: block;
  padding-block-start: clamp(96px, 10vw, 128px);
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(32px, 4.5vw, 56px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 32px);
}

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

/* ---------- 5. 文本工具 ---------- */
.mono,
.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.8;
  color: var(--graphite);
  max-width: 56ch;
}

.prose {
  max-width: 68ch;
}

.prose p { margin-block-end: 1.05em; }
.prose p:last-child { margin-block-end: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--teal);
}

.is-dark { color: var(--paper); }
.is-dark .eyebrow { color: var(--mist); }
.is-dark .eyebrow::before { background: var(--flare); }
.is-dark .lead { color: rgba(243, 237, 223, .78); }

/* ---------- 6. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  transform: translateY(-220%);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--night);
  background: var(--flare);
  border: 3px solid var(--night);
  border-radius: var(--pill);
  transition: transform .18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--night);
  outline-offset: 3px;
}

/* ---------- 7. 悬浮页头 ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gutter);
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

/* 品牌岛 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  background: var(--night);
  color: var(--white);
  border: 3px solid var(--night);
  border-radius: var(--pill);
  box-shadow: 0 6px 0 -2px rgba(12, 26, 43, .22);
  transition: transform .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--teal);
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}

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

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

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-block-start: 2px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    transform: translateY(-2px);
    border-color: var(--flare);
    box-shadow: 0 8px 0 -2px rgba(12, 26, 43, .3);
  }
}

/* 导航岛 */
.nav-island {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - var(--gutter) * 2);
  padding: 7px 7px 7px 12px;
  background: var(--night);
  color: var(--white);
  border: 3px solid var(--teal);
  border-radius: var(--pill);
  box-shadow: 0 10px 0 -4px rgba(12, 26, 43, .24);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .nav-island:hover {
    transform: translateY(-2px);
    border-color: var(--flare);
  }
}

.kickoff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--flare);
  border: 1px dashed rgba(245, 197, 24, .55);
  border-radius: var(--pill);
  white-space: nowrap;
}

.kickoff__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--flare);
  border-radius: 50%;
}

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

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, .84);
  border-radius: var(--pill);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              transform .18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 3px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s var(--ease), background-color .18s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--white);
    transform: translateY(-2px);
  }
  .nav__link:hover::after { transform: scaleX(1); }
}

.nav__link:focus-visible::after {
  transform: scaleX(1);
  background: var(--flare);
}

.nav__link[aria-current="page"] {
  color: var(--night);
  background: var(--flare);
  transform: none;
}

.nav__link[aria-current="page"]::after { display: none; }

/* 导航岛内的 CTA */
.nav-island__cta {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  background: var(--flare);
  color: var(--night);
  border: 3px solid var(--flare);
  border-radius: var(--pill);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav-island__cta:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--night);
    transform: translateY(-2px);
    box-shadow: none;
  }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--stand);
  border: 3px solid var(--teal);
  border-radius: var(--pill);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--flare);
  transition: transform .18s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--night);
  background: var(--paper);
  border: 3px solid var(--night);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--night);
  }
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--night);
}

.btn--cta {
  background: var(--flare);
  color: var(--night);
  border-color: var(--night);
}

.btn--cta:hover { background: var(--white); }

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--night);
  color: var(--paper);
  transform: none;
  box-shadow: none;
}

.is-dark .btn--ghost {
  border-color: var(--paper);
  color: var(--paper);
}

.is-dark .btn--ghost:hover {
  background: var(--paper);
  color: var(--night);
}

/* ---------- 9. 面板与卡片 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  background: var(--white);
  border: var(--bd);
  box-shadow: var(--shadow);
}

.panel--dark {
  background: var(--stand);
  color: var(--paper);
  border-color: var(--teal);
  box-shadow: 6px 6px 0 rgba(12, 26, 43, .5);
}

.panel--dashed {
  background: transparent;
  border: 1px dashed var(--graphite);
  box-shadow: none;
}

/* ---------- 10. 数据与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--graphite);
  border: 1.5px solid currentColor;
  border-radius: var(--pill);
}

.tag--live { color: var(--red); }
.tag--ok { color: var(--pitch-deep); }
.tag--warn { color: var(--flare-ink); }

.is-dark .tag { color: var(--mist); }
.is-dark .tag--live { color: #F08672; }
.is-dark .tag--ok { color: var(--pitch); }
.is-dark .tag--warn { color: var(--flare); }

.bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  background: rgba(12, 26, 43, .12);
  border: 1.5px solid var(--night);
}

.bar__fill {
  display: block;
  height: 100%;
  background: var(--pitch);
}

.bar__fill--away { background: var(--teal); }

.is-dark .bar {
  background: rgba(243, 237, 223, .16);
  border-color: var(--mist);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--graphite);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--graphite);
  opacity: .6;
}

.breadcrumb a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.breadcrumb a:hover { color: var(--night); }

.is-dark .breadcrumb { color: var(--mist); }
.is-dark .breadcrumb a { color: var(--flare); }

/* ---------- 12. 图片容器基础 ---------- */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--stand);
  background-image:
    linear-gradient(90deg, transparent 49.7%, rgba(159, 214, 208, .28) 50%, transparent 50.3%),
    repeating-linear-gradient(0deg, rgba(159, 214, 208, .1) 0 1px, transparent 1px 36px);
  background-size: 100% 100%, 100% 36px;
  border: var(--bd);
  box-shadow: var(--shadow);
}

.media > img,
.media > svg,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.05);
}

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

.is-dark .media { border-color: var(--teal); }

/* ---------- 13. 可选左侧索引轨 ---------- */
.rail {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
  padding-block-start: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
  border-inline-start: 3px solid var(--teal);
  padding-inline-start: 10px;
}

/* ---------- 14. 阅读进度条（JS 注入） ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  height: 3px;
  background: rgba(12, 26, 43, .1);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--flare);
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  margin-block-start: clamp(72px, 9vw, 132px);
  background: var(--night);
  color: var(--paper);
  border-block-start: 3px solid var(--teal);
  font-family: var(--font-mono);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 84px) clamp(30px, 4vw, 52px);
}

.foot-brand__mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--white);
}

.foot-brand__note {
  margin-block-start: 10px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist);
}

.foot-brand__stamp {
  margin-block-start: 20px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--teal);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.foot-col__title {
  margin-block-end: 12px;
  padding-block-end: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  border-block-end: 1px dashed rgba(159, 214, 208, .35);
}

.foot-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot-link {
  display: inline-block;
  padding-block: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 237, 223, .82);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .12s var(--ease), color .18s var(--ease);
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--flare);
  background-size: 100% 1px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px 30px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .03em;
  color: rgba(243, 237, 223, .66);
  border-block-start: 1px solid rgba(159, 214, 208, .22);
}

.foot-status { color: var(--mist); }

.foot-contact { flex: 1 1 320px; }

.foot-legal {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .rail { display: none; }
}

@media (max-width: 1100px) {
  .kickoff { display: none; }
  .nav__link { padding: 8px 9px; font-size: 13px; }
  .nav__link::after { inset-inline: 9px; }
  .brand__sub { display: none; }
}

@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

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

  body { padding-block-end: 100px; }

  .site-header {
    padding: 12px 14px;
    align-items: center;
  }

  .nav-island {
    position: fixed;
    inset-block-start: auto;
    inset-block-end: 12px;
    inset-inline: 12px;
    max-width: none;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    box-shadow: 0 12px 0 -6px rgba(12, 26, 43, .3);
  }

  .nav-toggle {
    display: inline-flex;
    order: 1;
    padding: 10px 14px;
  }

  .nav-island__cta {
    order: 2;
    flex: 1 1 120px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .nav__list {
    order: 3;
    flex: 1 0 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-block-start: 4px;
    padding-block-start: 8px;
    border-block-start: 1px dashed rgba(159, 214, 208, .35);
  }

  .nav-island[data-open] .nav__list { display: flex; }

  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 15px;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] { background: var(--flare); }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__meta { flex-direction: column; align-items: flex-start; }
  .foot-legal { white-space: normal; }
  .brand__name { font-size: 14px; }
  .media { box-shadow: 4px 4px 0 var(--night); }
}

@media (max-width: 420px) {
  .brand__mark { width: 30px; height: 30px; font-size: 17px; }
  .btn { padding: 12px 18px; font-size: 14px; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .brand:hover,
  .nav-island:hover,
  .nav__link:hover,
  .nav-island__cta:hover,
  .btn:hover {
    transform: none;
  }
}
