/* ==========================================================================
   18新利赛事 — 共享站点样式 /assets/site.css
   视觉母题：夜间比赛边线看板 · 深色底 · 精密网格 · 荧光数据高亮
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h, 68px) + 16px);
}

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

ul, ol { margin: 0; padding: 0; }

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

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

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* 2. Design tokens -------------------------------------------------------- */
:root {
  --ink-900: #05161C;
  --ink-800: #0B2A32;
  --ink-700: #0F323B;
  --line: #1C4048;
  --accent: #12E0C4;
  --hi: #C6FF3D;
  --warn: #FF7A2F;
  --rule: #6C4CFF;
  --rule-soft: #A995FF;
  --text: #E6F1F2;
  --muted: #93AEB4;
  --white: #FFFFFF;
  --focus: #C6FF3D;

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --maxw: 1240px;
  --gutter: clamp(18px, 4vw, 36px);
  --header-h: 68px;
  --shadow-panel: 0 24px 48px -30px rgba(0, 0, 0, 0.9);
}

/* 3. 基础排版与页底网格 ---------------------------------------------------- */
body {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(28, 64, 72, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 64, 72, 0.42) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 68%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 68%);
}

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

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

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.num,
.stat-value,
.panel-index,
.section-index,
.footer-meta,
.status-pill,
.tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 4. 骨架 ---------------------------------------------------------------- */
.container {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--hi);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink-900);
  transition: top 0.16s ease-out;
}

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

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin: 0;
}

.section-lead {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

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

.prose strong { color: var(--hi); font-weight: 700; }

.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 196, 0.4);
}

.prose a:hover { border-bottom-color: var(--accent); }

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 5. 头部 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  --header-h: 68px;
  background: rgba(5, 22, 28, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header[data-scrolled] { --header-h: 56px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  transition: height 0.22s ease-out;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(135deg, var(--hi) 0 48%, transparent 48%),
    linear-gradient(315deg, var(--accent) 0 48%, transparent 48%);
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--hi);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.65); }
  70%  { box-shadow: 0 0 0 7px rgba(198, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease-out, color 0.16s ease-out;
}

.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, top 0.2s ease-out;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: 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) { top: 5px; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 9px 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.16s ease-out, background-color 0.16s ease-out, border-color 0.16s ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--ink-800);
  border-color: var(--line);
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--hi);
  background: var(--ink-800);
  border-color: var(--line);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--hi);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--line);
}

.read-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--hi));
  transform: scaleX(0);
  transform-origin: left center;
}

/* 6. 按钮 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out;
}

.btn:hover {
  background: rgba(18, 224, 196, 0.12);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-900);
}

.btn-primary:hover {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--ink-900);
}

.btn-ghost {
  background: var(--ink-800);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--ink-700);
}

/* 7. 面包屑 -------------------------------------------------------------- */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0 8px;
}

.breadcrumb-list li { display: flex; align-items: center; }

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb-list a:hover { color: var(--accent); }

.breadcrumb-list [aria-current="page"] { color: var(--text); }

/* 8. 面板组件 ------------------------------------------------------------ */
.panel {
  position: relative;
  background: var(--ink-800);
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 62%);
  opacity: 0.5;
}

.panel:hover { border-color: rgba(18, 224, 196, 0.45); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.panel-index {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.panel-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--ink-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.data-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 14px 22px;
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hi);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  background: rgba(18, 224, 196, 0.08);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.tag--warn {
  border-color: var(--warn);
  background: rgba(255, 122, 47, 0.1);
  color: var(--warn);
}

.tag--rule {
  border-color: var(--rule);
  background: rgba(108, 76, 255, 0.14);
  color: var(--rule-soft);
}

.tag--live {
  border-color: var(--hi);
  background: rgba(198, 255, 61, 0.08);
  color: var(--hi);
}

/* 9. 图片容器基础规则 ---------------------------------------------------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 22, 28, 0) 55%, rgba(5, 22, 28, 0.55));
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--band { aspect-ratio: 32 / 9; }

.media-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* 10. 折叠、指示点、悬浮胶囊、复制按钮 ----------------------------------- */
.accordion {
  background: var(--ink-800);
  border: 1px solid var(--line);
}

.accordion-item + .accordion-item { border-top: 1px solid var(--line); }

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease-out, background-color 0.16s ease-out;
}

.accordion-trigger:hover { color: var(--accent); background: var(--ink-700); }

.accordion-panel {
  padding: 0 18px 18px;
  font-size: 15px;
  color: var(--muted);
}

.accordion-panel[hidden] { display: none; }

.section-dots {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.section-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: transparent;
  border: 1px solid var(--line);
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out;
}

.section-dot:hover { border-color: var(--accent); }

.section-dot[aria-current="true"],
.section-dot.is-current {
  background: var(--hi);
  border-color: var(--hi);
}

.float-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--ink-800);
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-panel);
  transform: translateX(-50%) translateY(140%);
  transition: transform 0.3s ease-out, border-color 0.16s ease-out;
}

.float-cta.is-visible { transform: translateX(-50%) translateY(0); }
.float-cta:hover { border-color: var(--hi); color: var(--hi); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}

.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.is-done { color: var(--hi); border-color: var(--hi); }

/* 11. 入场显现 ----------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.34s ease-out, transform 0.34s ease-out;
}

/* 12. 页脚 --------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding: 56px 0 32px;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line) 0 2px,
    transparent 2px 14px
  );
  opacity: 0.9;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 2.1fr;
  gap: 40px;
}

.footer-brand-link {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

.footer-brand-link:hover { color: var(--accent); }

.footer-brand-line {
  max-width: 34ch;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

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

.footer-col-title {
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  margin-right: 8px;
  background: var(--hi);
}

.footer-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer-link {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.86;
  transition: color 0.16s ease-out, opacity 0.16s ease-out;
}

.footer-link:hover { color: var(--hi); opacity: 1; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-contact-value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}

.legal-list a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease-out;
}

.legal-list a:hover { color: var(--accent); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  color: var(--muted);
}

/* 13. 响应式 ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .site-nav { gap: 12px; }
  .nav-link { padding: 9px 11px; font-size: 13.5px; }
  .nav-link::after { left: 11px; right: 11px; }
}

@media (max-width: 1080px) {
  .status-pill { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 22px;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.95);
  }

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

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

  .nav-link {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: var(--ink-700);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .nav-cta { margin-top: 18px; }
  .nav-cta .btn { width: 100%; }

  .section-dots { display: none; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .data-strip { gap: 20px; padding-inline: var(--gutter); }
  .stat { min-width: 84px; }
  .stat-value { font-size: 22px; }
  .float-cta { left: var(--gutter); right: var(--gutter); transform: translateY(140%); }
  .float-cta.is-visible { transform: translateY(0); }
}

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 16px; }
}

/* 14. 动效与无障碍偏好 --------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

  .float-cta {
    transform: translateX(-50%) translateY(0);
  }
}
