/* =========================================================
   加加体育 · 共享样式 /assets/site.css
   夜场看台系统：深墨绿大面 + 竞技橙关键点 + 荧光黄绿数据高亮
   ========================================================= */

:root {
  --ink: #0B1F1A;
  --ink-2: #123B32;
  --green: #1F6A54;
  --orange: #F15A24;
  --orange-lit: #FF8E4D;
  --steel: #C9D8DE;
  --lime: #D8FF57;
  --paper: #F3EDDF;
  --wine: #5A1F2B;
  --indigo: #241A2E;

  --line: rgba(201, 216, 222, 0.22);
  --line-strong: rgba(201, 216, 222, 0.42);
  --line-ink: rgba(11, 31, 26, 0.16);

  --max: 1360px;
  --rail: 104px;
  --header-h: 76px;

  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(11, 31, 26, 0.42);
}

/* ---------- 中文排版与通用文字 ---------- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.78;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.prose h2 { font-size: clamp(22px, 2.4vw, 28px); }
.prose h3 { font-size: clamp(18px, 1.9vw, 20px); }
.prose a { color: var(--green); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }

/* ---------- 骨架容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(14px, 2.4vw, 32px);
  padding-right: clamp(14px, 2.4vw, 32px);
}

.section { padding: clamp(40px, 6vw, 88px) 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

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

.grid-7-5 { grid-template-columns: 7fr 5fr; }
.grid-8-4 { grid-template-columns: 8fr 4fr; }
.grid-4-5-3 { grid-template-columns: 4fr 5fr 3fr; }

.slant-rule {
  height: 4px;
  border: 0;
  margin: 0;
  background: var(--orange);
  transform: skewY(-1.4deg);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible { top: 12px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--ink);
  color: var(--steel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 clamp(14px, 2.4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--steel);
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink-2);
  border: 2px solid var(--orange);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.brand:hover .brand-mark {
  background: var(--orange);
  color: #FFFFFF;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: rgba(201, 216, 222, 0.72);
}

.brand-coord {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-lit);
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  background: var(--ink-2);
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle-label { line-height: 1; }

.nav-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

/* 导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
}

.nav-list a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--steel);
  border-left: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: rgba(201, 216, 222, 0.52);
  transition: color 0.2s ease;
}

.nav-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--ink-2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.nav-list a:hover .nav-id { color: var(--orange-lit); }

.nav-list a[aria-current="page"] {
  background: var(--orange);
  color: #FFFFFF;
}

.nav-list a[aria-current="page"] .nav-id { color: var(--lime); }

.header-cta {
  display: none;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 18px;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--orange-lit);
  transform: translateY(-2px);
}

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 左侧品牌轨道 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: 40;
  width: var(--rail);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  background: var(--ink);
  color: var(--steel);
  border-right: 1px solid var(--line);
}

.rail-word {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: rgba(201, 216, 222, 0.82);
}

.rail-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--lime);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--orange);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--orange-lit);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- 标签 / 编号 / 说明牌 / 票根 ---------- */
.tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-orange {
  background: var(--orange);
  color: #FFFFFF;
}

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

.seat-num {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.plate {
  padding: 18px 20px;
  background: var(--ink-2);
  color: var(--steel);
  border-left: 4px solid var(--orange);
}

.plate > * + * { margin-top: 0.6em; }

.ticket {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink-ink, rgba(11, 31, 26, 0.65));
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(11, 31, 26, 0.28);
  pointer-events: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: inherit;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  opacity: 0.45;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.breadcrumb a:hover { border-bottom-color: var(--orange); }

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid rgba(201, 216, 222, 0.26);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 216, 222, 0.055) 0 1px,
    transparent 1px 64px
  );
  color: var(--steel);
  border-top: 3px solid var(--orange);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(14px, 2.4vw, 32px) clamp(28px, 4vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-line {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.72;
  color: #E7EEEB;
  max-width: 26ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-heading {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-lit);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a {
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.footer-list a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--orange);
  padding-left: 4px;
}

.footer-contact .footer-list {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.footer-note {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.72;
  color: rgba(201, 216, 222, 0.62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px clamp(14px, 2.4vw, 32px) 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(201, 216, 222, 0.66);
}

.footer-icp,
.footer-copy { line-height: 1.6; }

/* ---------- 显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (min-width: 1100px) {
  .rail { display: flex; }
}

@media (min-width: 1200px) {
  .header-cta { display: inline-flex; }
}

@media (max-width: 1100px) {
  .grid-4-5-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(320px, 88vw);
    margin-left: 0;
    padding: calc(var(--header-h) + 20px) 20px 28px;
    background: var(--ink-2);
    border-left: 1px solid var(--line-strong);
    overflow-y: auto;
    transform: translateX(103%);
    transition: transform 0.24s ease;
  }

  .site-nav[data-open] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    padding: 15px 4px;
    border-left: 0;
    border-top: 1px solid var(--line);
    transform: none;
  }

  .nav-list a:hover { transform: none; }
  .nav-list a[aria-current="page"] { padding-left: 10px; }

  .nav-id { font-size: 11px; }
  .nav-label { font-size: 16px; }

  .grid-7-5,
  .grid-8-4,
  .grid-4-5-3 { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-line { max-width: none; }
}

@media (max-width: 640px) {
  .brand-coord { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 15px; }
  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 10px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 11px; letter-spacing: 0.05em; }
  .btn { width: 100%; justify-content: center; }
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
