/* =========================================================
   亚博看台 · 共享样式 /assets/site.css
   夜场看台：墨绿草皮 + 电子记分牌 + 座位编号系统
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --pitch-black: #06110C;
  --deep-ink-green: #0B1F17;
  --panel-green: #102A20;
  --line-green: #25473B;

  --neon-cyan: #38F2C8;
  --ice-cyan: #9BFFE8;
  --amber-gold: #F2B544;
  --amber-soft: #FFD98A;
  --rose-status: #F24D7E;

  --text-primary: #E8F5EF;
  --text-secondary: #B8CEC4;
  --muted-green: #6F8C80;

  --font-display: "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans SC",
                   "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-num: "JetBrains Mono", "DIN Alternate", "Roboto Mono", ui-monospace,
              SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;

  --wrap: 1280px;
  --gutter: 24px;
  --cut: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --lift: 0 18px 40px -26px rgba(0, 0, 0, .95);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background: var(--deep-ink-green);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

strong { color: var(--text-primary); font-weight: 700; }

::selection { background: var(--neon-cyan); color: #04231B; }

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--pitch-black);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon-cyan);
  color: #04231B;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 76px; }

.grid { display: grid; gap: var(--gutter); }

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

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------- 6. Typography utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-green);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--neon-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.14;
  color: var(--text-primary);
}

/* ---------- 7. Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--neon-cyan); color: #04231B; }
.btn-primary:hover { background: var(--ice-cyan); color: #04231B; }

.btn-ghost {
  background: rgba(56, 242, 200, .06);
  color: var(--ice-cyan);
  border-color: var(--line-green);
}
.btn-ghost:hover {
  background: rgba(56, 242, 200, .14);
  border-color: var(--neon-cyan);
  color: var(--text-primary);
}

.btn-amber { background: var(--amber-gold); color: #241703; }
.btn-amber:hover { background: var(--amber-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--ice-cyan);
  background: rgba(56, 242, 200, .10);
  border: 1px solid rgba(56, 242, 200, .28);
}
.tag-amber {
  color: var(--amber-soft);
  background: rgba(242, 181, 68, .12);
  border-color: rgba(242, 181, 68, .34);
}
.tag-rose {
  color: #FFC2D4;
  background: rgba(242, 77, 126, .14);
  border-color: rgba(242, 77, 126, .36);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-status);
  box-shadow: 0 0 0 3px rgba(242, 77, 126, .18);
  flex: 0 0 auto;
}

/* ---------- 8. Media container ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--panel-green) 0%, var(--pitch-black) 100%);
  border: 1px solid var(--line-green);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(118deg, rgba(56, 242, 200, .07) 0 1px, transparent 1px 26px),
    radial-gradient(120% 90% at 82% 0%, rgba(56, 242, 200, .18), transparent 62%),
    radial-gradient(90% 80% at 0% 100%, rgba(242, 181, 68, .13), transparent 62%);
  mix-blend-mode: screen;
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame .media-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 17, 12, .12) 0%, rgba(6, 17, 12, .74) 100%);
  pointer-events: none;
}
.media-frame figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  font-size: 14px;
  color: var(--text-primary);
}

/* ---------- 9. Shared components ---------- */
.cut-panel {
  position: relative;
  padding: 28px;
  background: var(--panel-green);
  border: 1px solid var(--line-green);
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cut-panel:hover {
  background: #123328;
  border-color: rgba(56, 242, 200, .45);
  transform: translateY(-3px);
  box-shadow: var(--lift);
}

.label-card {
  position: relative;
  padding: 20px 22px 20px 24px;
  background: rgba(16, 42, 32, .72);
  border-left: 2px solid var(--amber-gold);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.label-title {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--amber-soft);
}

.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  padding: 16px 20px;
  background: rgba(11, 31, 23, .82);
  border: 1px solid var(--line-green);
}
.data-value {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber-gold);
}
.data-label {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted-green);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted-green);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line-green);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.breadcrumb a:hover { color: var(--neon-cyan); }

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  --header-h: 76px;
  background: var(--pitch-black);
  border-bottom: 1px solid var(--line-green);
}
.site-header[data-scrolled="true"] { --header-h: 60px; }

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, rgba(56, 242, 200, .18) 32%, transparent 62%);
  opacity: .8;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  transition: min-height .22s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding-block: 6px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  transform: skewX(-9deg);
}
.brand-mark .step { display: block; width: 100%; }
.brand-mark .step:nth-child(1) { height: 42%; background: var(--line-green); }
.brand-mark .step:nth-child(2) { height: 70%; background: var(--neon-cyan); }
.brand-mark .step:nth-child(3) { height: 100%; background: var(--amber-gold); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-primary);
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-green);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-secondary);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .18s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-cyan);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(56, 242, 200, .07);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(56, 242, 200, .12);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"]::before { opacity: 1; }
.nav-link[aria-current="page"] .nav-index { color: var(--neon-cyan); }

.nav-index {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--muted-green);
  transition: color .18s var(--ease);
}
.nav-name { white-space: nowrap; }

.header-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-green);
  color: var(--text-primary);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--neon-cyan);
  background: rgba(56, 242, 200, .08);
}
.nav-toggle-label {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--neon-cyan);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  background: var(--pitch-black);
  border-top: 1px solid var(--line-green);
  color: var(--text-secondary);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--amber-gold) 46%, var(--line-green) 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 56px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 72px var(--gutter) 48px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 400px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-brand::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--amber-gold) 100%);
  clip-path: polygon(0 100%, 0 60%, 34% 60%, 34% 30%, 68% 30%, 68% 0, 100% 0, 100% 100%);
}
.footer-brand:hover { color: var(--ice-cyan); }

.footer-summary {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.footer-note {
  padding-left: 12px;
  border-left: 2px solid var(--line-green);
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--muted-green);
}

.footer-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--amber-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.footer-link:hover {
  color: var(--neon-cyan);
  padding-left: 7px;
}

.footer-meta {
  border-top: 1px solid var(--line-green);
  background: rgba(11, 31, 23, .55);
}
.footer-meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 26px var(--gutter) 34px;
}

.footer-contact {
  flex: 1 1 100%;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--muted-green);
  font-variant-numeric: tabular-nums;
}
.footer-icp {
  padding-left: 18px;
  border-left: 1px solid var(--line-green);
  color: var(--muted-green);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ice-cyan);
  background: rgba(56, 242, 200, .05);
  border: 1px solid var(--line-green);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), opacity .18s var(--ease);
  opacity: .7;
}
.to-top:hover,
.to-top[data-active="true"] {
  opacity: 1;
  background: rgba(56, 242, 200, .14);
  border-color: var(--neon-cyan);
  color: var(--text-primary);
}

/* ---------- 12. Scroll progress (JS 注入) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--amber-gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  transition: transform .12s linear;
}

body[data-nav-open] { overflow: hidden; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-utility .btn-ghost { display: none; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    padding: calc(var(--header-h) + 36px) var(--gutter) 56px;
    background: var(--pitch-black);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      repeating-linear-gradient(122deg, rgba(56, 242, 200, .05) 0 1px, transparent 1px 34px);
  }

  .nav-list {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item { border-bottom: 1px solid var(--line-green); }
  .nav-link {
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    font-size: 20px;
    font-weight: 700;
  }
  .nav-link::after { display: none; }
  .nav-link::before { top: 50%; right: 4px; transform: translateY(-50%); }
  .nav-link:hover { background: transparent; }
  .nav-link[aria-current="page"] {
    background: transparent;
    color: var(--neon-cyan);
  }
  .nav-index { order: 2; font-size: 12px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .section { padding-block: 52px; }

  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .col-4, .col-5, .col-7, .col-8, .col-12 { grid-column: span 4; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 56px;
  }
  .footer-lead { max-width: none; }
  .footer-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --cut: 16px; }

  .header-inner { gap: 12px; }
  .brand-name { font-size: 17px; letter-spacing: .06em; }
  .brand-sub { display: none; }
  .brand-mark { width: 22px; height: 22px; }

  .cut-panel { padding: 22px; }

  .footer-index { grid-template-columns: minmax(0, 1fr); }
  .footer-meta-inner { padding-bottom: 92px; }
  .footer-icp { padding-left: 0; border-left: 0; }
  .to-top { width: 100%; justify-content: center; }
}

/* ---------- 14. 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;
  }
  .site-nav { transform: none !important; }
  .cut-panel:hover { transform: none; }
  .btn:hover { transform: none; }
}
