/* =========================================================
   亚新体育 · 共享站点样式 /assets/site.css
   夜间记分牌 × 数据指挥中心
   ========================================================= */

/* ---------- 01 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, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
main { display: block; }

/* ---------- 02 TOKENS ---------- */
:root {
  --ink: #07100E;
  --ink-2: #0D1B18;
  --panel: #143029;
  --panel-2: #0F241F;
  --line: #22443A;
  --paper: #E9F5EF;
  --muted: #8FA9A1;
  --cyan: #27F5C8;
  --amber: #FFB23E;
  --magenta: #FF4F87;
  --wine: #3A1220;
  --white: #FFFFFF;

  --ff-display: "HarmonyOS Sans SC", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --ff-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow-hard: 5px 5px 0 rgba(0, 0, 0, 0.62);
}

/* ---------- 03 BASE ---------- */
body {
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(39, 245, 200, 0.10), transparent 62%),
    radial-gradient(900px 520px at -8% 4%, rgba(255, 178, 62, 0.07), transparent 58%),
    var(--ink);
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}

a { color: var(--cyan); }

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

::selection {
  background: var(--cyan);
  color: #04110D;
}

/* ---------- 04 UTILITIES ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.hairline {
  height: 1px;
  border: 0;
  margin: 24px 0;
  background: var(--line);
}

.section {
  position: relative;
  padding: clamp(44px, 6vw, 86px) 0;
}
.section--green {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--wine {
  background: linear-gradient(158deg, var(--wine), #200A12 72%);
  border-top: 1px solid rgba(255, 79, 135, 0.28);
  border-bottom: 1px solid rgba(255, 79, 135, 0.18);
}

.section-head { margin-bottom: clamp(20px, 3vw, 36px); }

.section-title {
  font-size: clamp(26px, 4vw, 44px);
  margin: 0 0 0.3em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
}

.lede {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(233, 245, 239, 0.82);
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 0.6em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 05 BUTTONS & TAGS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--amber);
  color: #1A0E00;
  border-color: #04100C;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.66);
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(39, 245, 200, 0.5);
}
.btn-ghost:hover {
  background: rgba(39, 245, 200, 0.12);
  border-color: var(--cyan);
}
.btn-sm {
  padding: 10px 15px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-cyan { color: var(--cyan); background: rgba(39, 245, 200, 0.08); }
.tag-amber { color: var(--amber); background: rgba(255, 178, 62, 0.08); }
.tag-magenta { color: var(--magenta); background: rgba(255, 79, 135, 0.1); }

/* ---------- 06 BREADCRUMBS ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.crumb-sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--amber); }

/* ---------- 07 MEDIA PLACEHOLDERS ---------- */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(39, 245, 200, 0.07) 0 1px, transparent 1px 12px),
    var(--panel-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(7, 16, 14, 0.82);
  border: 1px solid rgba(39, 245, 200, 0.36);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-caption {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 08 SKIP LINK ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: #04110D;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.16s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- 09 HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  isolation: isolate;
}

.header-rail {
  background: #04100C;
  border-bottom: 1px solid rgba(39, 245, 200, 0.14);
  transition: opacity 0.2s ease;
}
.rail-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 34px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39, 245, 200, 0.16);
}
.rail-label { color: var(--muted); }
.rail-value { color: var(--amber); font-weight: 700; }
.rail-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}
.rail-mono {
  color: rgba(143, 169, 161, 0.86);
  transition: opacity 0.2s ease;
}
.rail-mail {
  margin-left: auto;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.rail-mail:hover { border-bottom-color: var(--cyan); }

.site-header[data-condensed] .rail-mono { opacity: 0.35; }

.nav-island {
  position: relative;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wrap);
  margin: 10px auto 0;
  background: rgba(13, 27, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(233, 245, 239, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}
.site-header[data-condensed] .nav-island {
  background: rgba(7, 16, 14, 0.97);
  border-color: rgba(39, 245, 200, 0.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px) scale(0.994);
}
.site-header[data-open] .nav-island {
  background: rgba(7, 16, 14, 0.99);
  border-color: rgba(39, 245, 200, 0.42);
}

.island-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 8px 8px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-right: 14px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.brand-tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--panel);
  border: 2px solid var(--cyan);
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.brand-tile-glyph {
  font-family: var(--ff-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { flex: none; }
.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-idx {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-label { white-space: nowrap; }
.nav-link:hover {
  background: rgba(39, 245, 200, 0.1);
  color: var(--cyan);
}
.nav-link:hover .nav-idx { color: var(--cyan); }
.nav-link[aria-current="page"] {
  background: rgba(39, 245, 200, 0.12);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(39, 245, 200, 0.48);
}
.nav-link[aria-current="page"] .nav-idx { color: var(--amber); }

.island-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 48, 41, 0.6);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-toggle:hover { border-color: rgba(39, 245, 200, 0.6); }
.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.site-header[data-open] .nav-toggle { border-color: var(--cyan); }
.site-header[data-open] .toggle-bar { background: var(--cyan); }
.site-header[data-open] .toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-meter {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(233, 245, 239, 0.1);
}
.scroll-meter-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

/* ---------- 10 FOOTER ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 104px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.footer-bevel {
  height: 12px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(115deg, rgba(39, 245, 200, 0.55) 0 2px, transparent 2px 12px),
    var(--ink);
}
.footer-main { padding: clamp(32px, 5vw, 62px) 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.85fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.footer-brand { min-width: 0; }
.footer-logo {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
}
.footer-logo::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: var(--amber);
}
.footer-tagline {
  margin: 14px 0 18px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-col { min-width: 0; }
.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col-title::before {
  content: "// ";
  color: var(--cyan);
}
.footer-links {
  display: grid;
  gap: 9px;
}
.footer-link {
  display: inline-block;
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-contact { min-width: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 14px;
}
.contact-key {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.contact-val {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.copy-mail {
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(39, 245, 200, 0.45);
  border-radius: 2px;
  background: rgba(39, 245, 200, 0.08);
  color: var(--cyan);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.copy-mail:hover {
  background: var(--cyan);
  color: #04110D;
  border-color: var(--cyan);
}
.copy-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: #04100C;
}
.legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.legal-copy {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.legal-links a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 11 RESPONSIVE ---------- */
@media (max-width: 1120px) {
  .nav-idx { display: none; }
  .nav-link { padding: 9px 10px; font-size: 14px; }
  .brand-sub { display: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .island-inner { min-height: 56px; padding: 6px 6px 6px 10px; gap: 10px; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    background: var(--ink-2);
    border: 1px solid rgba(39, 245, 200, 0.28);
    border-radius: 6px;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }
  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-item { width: 100%; }
  .nav-link {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 15px;
  }
  .nav-idx { display: inline; }
  .nav-link[aria-current="page"]::after {
    content: "当前";
    margin-left: auto;
    font-family: var(--ff-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--amber);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: 46ch; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .rail-mono { display: none; }
  .rail-sep { display: none; }
  .rail-inner { min-height: 32px; font-size: 10px; letter-spacing: 0.08em; }
  .legal-inner { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .nav-island { border-radius: 14px; }
  .brand { padding-right: 10px; gap: 8px; }
  .brand-tile { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; letter-spacing: 0.04em; }
  .nav-cta { padding: 9px 11px; font-size: 10px; letter-spacing: 0.06em; }
  .island-actions { gap: 6px; }
  .scroll-meter { left: 12px; right: 12px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .contact-row { grid-template-columns: 54px minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .brand-name { font-size: 15.5px; }
  .nav-cta { display: none; }
}

/* ---------- 12 MOTION PREFERENCES ---------- */
@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;
  }
  .site-header[data-condensed] .nav-island { transform: none; }
}
