/* ==========================================================================
   新花园国际站 · 共享样式 /assets/site.css
   夜场墨绿 · 荧光草绿 · 信号橙 / 左侧赛程轴 · 顶部双层导航
   ========================================================================== */

:root {
  --ink: #06110D;
  --stand: #0B1F17;
  --tundra: #123A2A;
  --edge: #2A5C45;
  --lime: #B6FF3B;
  --signal: #FF7A1A;
  --paper: #F0F7EC;
  --moss: #9DB8A8;
  --haze: #C8D9CE;
  --mid: #1E5C42;

  --rail: clamp(150px, 15vw, 196px);
  --gap: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 4vw, 56px);
  --wide: 1320px;
  --radius: 8px;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-hard: 6px 6px 0 rgba(42, 92, 69, 0.5);

  color-scheme: dark;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 82% at 84% -14%, rgba(182, 255, 59, 0.09), transparent 58%),
    radial-gradient(92% 70% at 2% 4%, rgba(30, 92, 66, 0.45), transparent 62%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--edge); margin: 0; }

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

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

/* ---------- 中文排版基线 ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; }

p { text-wrap: pretty; }

/* ---------- 跳转链 ---------- */

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  border-radius: 5px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 页头 ---------- */

.site-header {
  position: relative;
  z-index: 60;
  background: var(--stand);
  border-bottom: 2px solid var(--edge);
  color: var(--paper);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding: 14px var(--pad);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

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

.site-brand__mark {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--lime);
  border-radius: 5px;
  background: linear-gradient(150deg, var(--tundra) 0%, var(--ink) 100%);
  box-shadow: inset 0 0 0 3px rgba(6, 17, 13, 0.92);
}
.site-brand__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--lime);
}
.site-brand__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 2px;
  background: var(--signal);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}
.site-brand__tag {
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--moss);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 13px;
  border: 2px solid var(--edge);
  border-radius: 5px;
  background: var(--tundra);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s ease;
}
.site-header[data-open] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}
.site-header[data-open] .site-nav { display: flex; }

.site-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 9px 10px 9px 14px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--haze);
  transition: color 0.16s ease, background-color 0.16s ease;
}
.site-nav__link::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--edge);
  transition: background-color 0.16s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--lime);
  background: rgba(182, 255, 59, 0.07);
}
.site-nav__link:hover::before,
.site-nav__link:focus-visible::before { background: var(--lime); }

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--lime);
  font-weight: 700;
}
.site-nav__link[aria-current="page"]::before { background: var(--ink); }

.site-nav__cta {
  width: 100%;
  align-self: stretch;
  justify-content: center;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 20px;
  border: 2px solid var(--edge);
  border-radius: 5px;
  background: var(--tundra);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.btn--primary:hover { background: #c9ff6d; border-color: #c9ff6d; }
.btn--ghost {
  background: transparent;
  border-color: var(--edge);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--signal {
  background: rgba(255, 122, 26, 0.1);
  border-color: rgba(255, 122, 26, 0.55);
  color: var(--signal);
}
.btn--signal:hover { background: rgba(255, 122, 26, 0.18); border-color: var(--signal); }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--stand);
  border-top: 2px solid var(--edge);
  color: var(--haze);
  padding: clamp(32px, 5vw, 56px) var(--pad) 22px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
}

.site-footer__brand { min-width: 0; }

.site-footer__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.site-footer__note {
  margin-top: 10px;
  max-width: 36ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--moss);
}

.site-footer__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--edge);
  color: var(--moss);
  opacity: 0.82;
}

.site-footer__nav { min-width: 0; }

.site-footer__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.site-footer__list {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.site-footer__list a {
  color: var(--haze);
  transition: color 0.16s ease;
}
.site-footer__list a:hover,
.site-footer__list a:focus-visible { color: var(--lime); }

.site-footer__contact { min-width: 0; }

.site-footer__line {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--haze);
  word-break: break-word;
}
.site-footer__line--mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.site-footer__line--muted {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--moss);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  width: 100%;
  max-width: var(--wide);
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.site-footer__copy,
.site-footer__icp { margin: 0; }

/* ---------- 通用布局工具 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad);
}

main { display: block; min-width: 0; }

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--band { background: var(--stand); }
.section--tint {
  background: linear-gradient(180deg, var(--stand) 0%, var(--ink) 100%);
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.lead {
  max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--haze);
}

.prose {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--paper);
}
.prose p + p { margin-top: 1em; }
.prose ul,
.prose ol { margin: 1em 0; padding-left: 1.35em; }
.prose ul { list-style: square; }
.prose li + li { margin-top: 0.35em; }
.prose a {
  color: var(--lime);
  border-bottom: 1px solid rgba(182, 255, 59, 0.45);
}
.prose a:hover { border-bottom-color: var(--lime); }

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

.grid { display: grid; gap: var(--gap); }
.grid--halves {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--12 > * { grid-column: span 12; }

/* ---------- 面包屑 ---------- */

.breadcrumb {
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--moss);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin-inline: 10px;
  color: var(--edge);
}
.breadcrumb a { color: var(--moss); transition: color 0.16s ease; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--haze); }

/* ---------- 数据面板 ---------- */

.surface {
  padding: clamp(18px, 3vw, 28px);
  background: var(--tundra);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 4px 10px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: rgba(18, 58, 42, 0.55);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  line-height: 1.5;
}
.tag--live {
  border-color: rgba(255, 122, 26, 0.55);
  color: var(--signal);
}
.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: tag-pulse 1.8s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}

/* ---------- 筛选按钮 ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 7px 14px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--stand);
  color: var(--moss);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- 统计条 ---------- */

.stat-bar {
  display: grid;
  gap: 8px;
}
.stat-bar__track {
  height: 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--stand);
  overflow: hidden;
}
.stat-bar__fill {
  display: block;
  height: 100%;
  width: var(--bar-value, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mid) 0%, var(--lime) 100%);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- 图片容器 ---------- */

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--tundra) 0%, var(--stand) 58%, var(--ink) 100%);
}
.media-frame > img,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08) brightness(0.92);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(to right, rgba(182, 255, 59, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(182, 255, 59, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------- 平板 ---------- */

@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
}

/* ---------- 桌面：左侧竖向赛程轴 ---------- */

@media (min-width: 1024px) {
  body {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: start;
  }

  .site-header {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    border-bottom: 0;
    border-right: 2px solid var(--edge);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header__inner {
    min-height: 100%;
    max-width: none;
    padding: 26px 14px 22px;
    gap: 26px;
    margin-inline: 0;
  }

  .site-header__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .site-brand__name {
    white-space: normal;
    font-size: 1rem;
    line-height: 1.3;
  }
  .site-brand__tag {
    white-space: normal;
    font-size: 0.625rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
  }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    margin-top: auto;
    gap: 14px;
    padding-top: 18px;
  }

  .site-nav__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .site-nav__link {
    padding: 8px 6px 8px 14px;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
  }

  .site-nav__cta {
    padding: 9px 8px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }

  main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .site-footer {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 1080px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  }
}

/* ---------- 动效偏好 ---------- */

@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;
  }

  .skip-link { transition: none; }
  .stat-bar__fill { transition: none; }
  .btn:hover { transform: none; }
  .tag--live::before { animation: none; }
}
