/* =========================================================
   玩球体育 · 共享站点样式 /assets/site.css
   夜间球场指挥室：深墨绿底 + 荧光青柠强调 + 战术板网格
   ========================================================= */

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

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

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

h1, h2, h3, h4, h5, h6 { font-weight: 700; }

ul, ol { padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }
main { display: block; }
[hidden] { display: none !important; }

/* ---------------- tokens ---------------- */
:root {
  --ink: #06110D;
  --panel: #0C1F17;
  --grid: #14342A;
  --lime: #B6FF3C;
  --lime-soft: #E8FFB0;
  --ember: #FF6B35;
  --violet: #7B8CFF;
  --violet-deep: #A78BFA;
  --paper: #F2EAD3;
  --text: #D7E8DE;
  --muted: #8FA89C;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  --rail-w: 268px;
  --gutter: clamp(18px, 3.4vw, 52px);
  --edge: 2px solid var(--grid);
  --hard-shadow: 6px 6px 0 var(--grid);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------- base ---------------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 52, 42, .42) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(20, 52, 42, .42) 0 1px, transparent 1px 48px),
    radial-gradient(130% 90% at 82% -12%, #0E2A1F 0%, #08170F 46%, var(--ink) 100%);
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: scroll, scroll, fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: #07130E;
}

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

/* ---------------- header : fixed left rail ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, #0A1B14 0%, #08150F 58%, #050F0A 100%);
  border-right: var(--edge);
  box-shadow: inset -1px 0 0 rgba(182, 255, 60, .12);
  scrollbar-width: thin;
  scrollbar-color: var(--grid) transparent;
}

.site-header::-webkit-scrollbar { width: 6px; }
.site-header::-webkit-scrollbar-thumb { background: var(--grid); }

/* skip link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 10px;
  z-index: 90;
  padding: 10px 16px;
  background: var(--lime);
  color: #07130E;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  border: 2px solid #07130E;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .6);
  transition: top .18s var(--ease);
}

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

/* scroll progress */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: rgba(20, 52, 42, .85);
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime) 0%, #79FFB5 100%);
  box-shadow: 0 0 12px rgba(182, 255, 60, .55);
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: var(--edge);
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: #07130E;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  border: 2px solid #07130E;
  box-shadow: 4px 4px 0 rgba(182, 255, 60, .20);
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--lime-soft);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(182, 255, 60, .20);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .07em;
  color: var(--paper);
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .13em;
  color: var(--muted);
  white-space: nowrap;
}

/* certification note */
.masthead__note {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--lime);
  background: rgba(182, 255, 60, .07);
  border: 1px solid rgba(182, 255, 60, .28);
}

/* nav toggle (mobile only by default) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  color: var(--lime);
  border: 2px solid var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover { background: var(--lime); color: #07130E; }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] { background: var(--lime); color: #07130E; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

/* primary navigation */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

.site-nav__caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 2px solid transparent;
  border-left: 3px solid var(--grid);
  transition:
    background .18s var(--ease),
    color .18s var(--ease),
    border-color .18s var(--ease),
    padding-left .18s var(--ease);
}

.site-nav__link::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: rgba(182, 255, 60, .09);
  border-left-color: var(--lime);
  color: var(--lime-soft);
  padding-left: 16px;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.site-nav__link[aria-current="page"] {
  background: var(--lime);
  color: #07130E;
  font-weight: 800;
  border-left-color: var(--lime-soft);
  box-shadow: 4px 4px 0 rgba(20, 52, 42, 1);
}

.site-nav__link[aria-current="page"]::after {
  content: "●";
  opacity: 1;
  transform: translateX(0);
  color: #07130E;
  font-size: 10px;
}

/* rail CTA */
.nav-cta {
  display: block;
  margin-top: 4px;
  padding: 13px 14px;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  color: #07130E;
  background: var(--lime);
  border: 2px solid #07130E;
  box-shadow: 5px 5px 0 var(--grid);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.nav-cta:hover {
  background: var(--lime-soft);
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 var(--grid);
}

.nav-cta:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--grid);
}

.site-nav__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--grid);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------------- footer ---------------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(32px, 4.6vw, 56px) var(--gutter) 24px;
  border-top: 3px solid var(--lime);
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(20, 52, 42, .75) 0%, transparent 62%),
    linear-gradient(180deg, #08150F 0%, #040C08 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin-inline: auto;
}

.footer__logo {
  display: inline-block;
  padding-bottom: 5px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .07em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 3px solid var(--lime);
  transition: color .18s var(--ease);
}

.footer__logo:hover { color: var(--lime-soft); }

.footer__line {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__badge {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--violet);
  background: linear-gradient(100deg, rgba(123, 140, 255, .18), rgba(167, 139, 250, .08));
  border: 1px solid rgba(123, 140, 255, .45);
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

a.footer__link:hover,
a.footer__link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer__link--mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--lime-soft);
  word-break: break-all;
}

.footer__addr {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1240px;
  margin-top: clamp(28px, 4vw, 44px);
  margin-inline: auto;
  padding-top: 18px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer__copy,
.footer__update { line-height: 1.6; }

/* ---------------- shared content utilities ---------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
}

.btn {
  --btn-bg: var(--lime);
  --btn-fg: #07130E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid #07130E;
  box-shadow: 5px 5px 0 var(--grid);
  cursor: pointer;
  transition:
    transform .16s var(--ease),
    box-shadow .16s var(--ease),
    background .16s var(--ease),
    color .16s var(--ease),
    border-color .16s var(--ease);
}

.btn:hover {
  background: var(--lime-soft);
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 var(--grid);
}

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--lime);
  border-color: var(--lime);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(182, 255, 60, .12);
  color: var(--lime-soft);
  transform: none;
  box-shadow: none;
}

.btn--ember {
  --btn-bg: var(--ember);
  --btn-fg: #1A0A03;
}

.btn--ember:hover { background: #FF8A5E; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--text);
  text-decoration: none;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .22s var(--ease), color .18s var(--ease);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--lime);
  background-size: 100% 1px;
}

.breadcrumbs__sep { color: var(--grid); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text);
  background: rgba(20, 52, 42, .55);
  border: 1px solid var(--grid);
}

.tag--league {
  color: #CDD4FF;
  border-color: rgba(123, 140, 255, .55);
  background: linear-gradient(100deg, rgba(123, 140, 255, .22), rgba(167, 139, 250, .10));
}

.tag--live {
  color: #FFD8C8;
  border-color: rgba(255, 107, 53, .62);
  background: rgba(255, 107, 53, .16);
}

.prose {
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--paper);
  color: #12180F;
  font-size: 17px;
  line-height: 1.85;
  border: 2px solid #0B1A13;
  box-shadow: 8px 8px 0 rgba(20, 52, 42, .9);
}

.prose h2,
.prose h3 {
  font-family: var(--font-editorial);
  font-weight: 500;
  letter-spacing: .02em;
  color: #0B1A13;
}

.prose h2 {
  margin: 1.5em 0 .5em;
  font-size: clamp(22px, 2.4vw, 28px);
}

.prose h3 {
  margin: 1.4em 0 .45em;
  font-size: 19px;
}

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

.prose p { margin: 0 0 1em; }

.prose a {
  color: #0B5C3B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  font-family: var(--font-editorial);
  border-left: 4px solid #0B5C3B;
  background: rgba(11, 92, 59, .09);
}

.prose code {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: .92em;
  background: rgba(11, 26, 19, .10);
}

.prose hr {
  height: 2px;
  margin: 1.8em 0;
  border: 0;
  background: rgba(11, 26, 19, .22);
}

/* responsive image container base */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--panel);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(20, 52, 42, .95) 0 12px,
    rgba(12, 31, 23, .95) 12px 24px
  );
  border: 2px solid var(--grid);
  box-shadow: var(--hard-shadow);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.78) contrast(1.06);
  transition: filter .3s var(--ease), transform .5s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 17, 13, 0) 38%, rgba(6, 17, 13, .78) 100%),
    radial-gradient(58% 46% at 72% 18%, rgba(182, 255, 60, .16), transparent 72%);
}

.media:hover img {
  filter: saturate(1) brightness(.9) contrast(1.04);
  transform: scale(1.02);
}

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

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--lime-soft);
  background: rgba(6, 17, 13, .82);
  border-top: 2px solid var(--lime);
}

/* ---------------- tablet rail ---------------- */
@media (min-width: 981px) and (max-width: 1240px) {
  :root { --rail-w: 236px; }

  .brand__name { font-size: 16px; }
  .site-nav__link { font-size: 14px; padding: 9px 10px; }
}

/* ---------------- mobile / tablet header ---------------- */
@media (max-width: 980px) {
  body {
    padding-left: 0;
    background-attachment: scroll, scroll, scroll;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 12px var(--gutter);
    overflow: visible;
    border-right: 0;
    border-bottom: var(--edge);
    background: linear-gradient(180deg, #0A1B14 0%, #07130E 100%);
    box-shadow: 0 6px 0 rgba(20, 52, 42, .55);
  }

  .skip-link { left: 8px; }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .brand__mark { width: 38px; height: 38px; font-size: 18px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 10px; letter-spacing: .1em; }

  .masthead__note { display: none; }

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

  .site-nav {
    order: 5;
    display: none;
    flex: 1 1 100%;
    width: 100%;
    min-height: 0;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--grid);
  }

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

  .site-nav__link {
    padding: 12px 12px;
    font-size: 16px;
  }

  .nav-cta { margin-top: 12px; }

  .site-nav__foot {
    margin-top: 12px;
    padding-top: 12px;
  }

  .site-footer { padding-inline: var(--gutter); }
}

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

  .footer__base {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .media:hover img { transform: none; }
}
