/* ==========================================================================
   JN江南体育 · 共享样式表 /assets/site.css
   框架式导航 + 侧边导览 + 切角面板 + 夜间赛场双色节奏
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #06150F;
  --panel: #0C241A;
  --lime: #C6FF3D;
  --lime-dim: #8FD62B;
  --gold: #F2B33D;
  --ink: #0A0C0B;
  --text: #E8F1EA;
  --muted: #8FA79A;
  --line: #2E5A45;
  --alert: #FF7A45;

  --rail: 96px;
  --bar: 56px;
  --cut: 16px;
  --pad-x: clamp(16px, 4vw, 40px);

  --font-head: system-ui, -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. 页面基底 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--bar);
  padding-left: var(--rail);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(198, 255, 61, .07), transparent 44%),
    radial-gradient(circle at 90% 94%, rgba(242, 179, 61, .06), transparent 48%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 90, 69, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 90, 69, .14) 1px, transparent 1px);
  background-size: 72px 72px;
}

#main-content { position: relative; z-index: 1; }
.site-header { position: relative; z-index: 60; }
.site-footer { position: relative; z-index: 2; }

/* ---------- 4. 排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.05rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.5rem); letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { max-width: 76ch; }

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

.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.coord::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transform: skewX(-26deg);
}

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: clamp(44px, 6.5vw, 88px); }
.section--tight { padding-block: clamp(26px, 3.6vw, 48px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 2.8vw, 34px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(46, 90, 69, .55);
}

.section__head h2, .section__head h3 { margin-top: 8px; }

.rule-track,
.divider-track {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(46, 90, 69, .85) 0 14px, transparent 14px 24px);
}

.divider-track { margin-block: clamp(26px, 4vw, 46px); }

/* ---------- 6. 面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(46, 90, 69, .55);
  padding: clamp(16px, 2.2vw, 26px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

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

.panel--flush { padding: 0; }

.panel--lime {
  border-color: rgba(198, 255, 61, .45);
  background: linear-gradient(160deg, rgba(198, 255, 61, .12), rgba(12, 36, 26, .92) 46%);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-dim); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d99a26; }

.btn--ghost {
  background: rgba(12, 36, 26, .72);
  border-color: rgba(198, 255, 61, .4);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--sm { padding: 7px 12px; font-size: 11px; letter-spacing: .1em; }

[data-copy].is-copied {
  border-color: var(--lime);
  background: rgba(198, 255, 61, .14);
  color: var(--lime);
}

/* ---------- 8. 标签与数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lime);
  background: rgba(198, 255, 61, .1);
  border: 1px solid rgba(198, 255, 61, .3);
}

.tag--gold { color: var(--gold); background: rgba(242, 179, 61, .1); border-color: rgba(242, 179, 61, .32); }
.tag--alert { color: var(--alert); background: rgba(255, 122, 69, .1); border-color: rgba(255, 122, 69, .34); }
.tag--muted { color: var(--muted); background: rgba(143, 167, 154, .08); border-color: rgba(143, 167, 154, .3); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(46, 90, 69, .5);
  border: 1px solid rgba(46, 90, 69, .5);
}

.stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--panel);
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--lime);
}

.stat__label { font-size: 12px; letter-spacing: .1em; color: var(--muted); }

/* ---------- 9. 正文 / 面包屑 ---------- */
.prose { max-width: 74ch; color: #D9E6DD; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .55em; }
.prose ul, .prose ol { display: grid; gap: .55em; margin-bottom: 1.1em; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 2px;
  background: var(--lime);
}
.prose strong { color: #FFFFFF; font-weight: 700; }
.prose a { color: var(--lime); border-bottom: 1px solid rgba(198, 255, 61, .4); }
.prose code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: 2px 6px;
  color: var(--lime);
  background: rgba(46, 90, 69, .4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs__sep { color: var(--line); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 10. 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(46, 90, 69, .5);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) contrast(1.08) brightness(.8);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(6, 21, 15, .6), rgba(6, 21, 15, .06) 52%, rgba(198, 255, 61, .1));
}

.img-frame--hero { aspect-ratio: 16 / 9; }
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 3 / 4; }

.img-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text);
  background: rgba(10, 12, 11, .78);
}

/* ---------- 11. 跳转链接与进度条 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-220%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 12. 顶部细条 ---------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar);
  z-index: 80;
  background: rgba(10, 12, 11, .97);
  border-bottom: 1px solid rgba(46, 90, 69, .75);
  backdrop-filter: blur(8px);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-inline: var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text { font-size: 1rem; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }

.brand__line {
  padding-left: 10px;
  border-left: 1px solid rgba(46, 90, 69, .8);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.top-bar__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.status { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .08em; color: var(--text); }

.status__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 0 3px rgba(255, 122, 69, .18);
}

.status__label { font-size: 12px; font-weight: 700; }

.status--off .status__dot { background: var(--muted); box-shadow: 0 0 0 3px rgba(143, 167, 154, .16); }
.status--off .status__label { color: var(--muted); }

.top-bar__update { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.top-bar__update b { font-weight: 700; color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text);
  border: 1px solid rgba(198, 255, 61, .4);
}

.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars i { display: block; height: 2px; background: var(--lime); }

.nav-toggle[aria-expanded="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i { background: var(--ink); }

/* ---------- 13. 左侧品牌竖轨 / 主导航 ---------- */
.site-nav {
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  z-index: 70;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 14px;
  background: linear-gradient(180deg, rgba(12, 36, 26, .99), rgba(6, 21, 15, .99));
  border-right: 1px solid rgba(46, 90, 69, .7);
  overflow: hidden;
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(46, 90, 69, .55);
}

.rail-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.rail-brand__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--muted);
}

.site-nav__list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 16px 0;
  overflow-y: auto;
}

.site-nav__list::-webkit-scrollbar { width: 4px; }
.site-nav__list::-webkit-scrollbar-thumb { background: rgba(46, 90, 69, .9); }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  border-left: 2px solid transparent;
  writing-mode: vertical-rl;
  text-orientation: upright;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.site-nav__link:hover { color: var(--text); background: rgba(198, 255, 61, .08); }

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  border-left-color: var(--gold);
}

.site-nav__coord { display: none; }
.site-nav__label { display: inline-block; }

.site-nav__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(46, 90, 69, .55);
}

.site-nav__status-text { font-size: 11px; letter-spacing: .1em; color: var(--muted); }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 84px);
  background: var(--ink);
  border-top: 1px solid rgba(46, 90, 69, .7);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0 22%, var(--gold) 22% 33%, transparent 33%);
}

.footer-track {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(46, 90, 69, .9) 0 18px, transparent 18px 26px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(110px, .8fr)) minmax(240px, 1.3fr);
  gap: clamp(20px, 2.6vw, 38px);
  padding-block: clamp(32px, 5vw, 58px);
}

.footer-brand { display: block; }
.brand--footer { align-items: center; margin-bottom: 14px; }
.brand--footer .brand__text { font-size: 1.15rem; }

.footer-brand__line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--lime);
  margin-bottom: 10px;
}

.footer-note { max-width: 34ch; font-size: 13px; line-height: 1.7; color: var(--muted); }

.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links { display: grid; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer-links a:hover { color: var(--lime); border-bottom-color: rgba(198, 255, 61, .45); }

.contact-list { display: grid; gap: 12px; font-size: 13px; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }

.contact-list__k {
  padding-top: .2em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
  white-space: nowrap;
}

.contact-list__v { color: var(--text); word-break: break-word; }
.contact-list__v.mono { font-size: 12.5px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 18px;
  border-top: 1px solid rgba(46, 90, 69, .5);
  font-size: 12px;
  color: var(--muted);
}
.footer-meta p { max-width: none; }
.footer-meta__icp { font-family: var(--font-mono); letter-spacing: .06em; color: var(--text); }

/* ---------- 15. 可见焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ---------- 16. 显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.has-motion [data-reveal] { opacity: 0; transform: translateY(14px); }
  html.has-motion [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .55s cubic-bezier(.22, .68, .28, 1), transform .55s cubic-bezier(.22, .68, .28, 1);
  }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1120px) {
  .brand__line { display: none; }
}

@media (max-width: 860px) {
  body { padding-left: 0; }

  .top-bar__update { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    top: var(--bar);
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - var(--bar));
    align-items: stretch;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(46, 90, 69, .8);
    background: rgba(10, 12, 11, .985);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .rail-brand { display: none; }

  .site-nav__list { flex: 0 0 auto; padding: 6px 0; }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 15px 20px;
    font-size: 15px;
    letter-spacing: .06em;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(46, 90, 69, .25);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .site-nav__coord {
    display: inline-block;
    min-width: 42px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--gold);
  }

  .site-nav__link[aria-current="page"] {
    background: rgba(198, 255, 61, .12);
    color: var(--lime);
    border-left-color: var(--lime);
  }

  .site-nav__status {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid rgba(46, 90, 69, .45);
  }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .top-bar__meta .coord { display: none; }
  .brand__text { font-size: .95rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-height: 820px) {
  .site-nav { padding-top: 12px; }
  .site-nav__link { padding: 9px 7px; font-size: 12px; letter-spacing: .1em; }
  .rail-brand__name { letter-spacing: .22em; }
}

/* ---------- 18. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { transition: none; }
  .skip-link { transition: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
