/* ============================================================
   M88体育赛事 · 共享样式 /assets/site.css
   夜场转播室配色 + 框架式导航 + 等宽坐标索引
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --c-ink: #071A16;
  --c-carbon: #111614;
  --c-cream: #F3EBDD;
  --c-brown: #211A16;
  --c-cyan: #38F2D0;
  --c-orange: #FF5A2A;
  --c-gold: #D9A441;
  --c-mist: #8FA39B;
  --c-glass: #A8FFF1;
  --c-red: #E23B3B;

  --line: rgba(143, 163, 155, 0.26);
  --line-soft: rgba(143, 163, 155, 0.14);
  --line-bright: rgba(168, 255, 241, 0.45);
  --cream-line: rgba(33, 26, 22, 0.18);

  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --rail: 56px;
  --bar-h: 68px;
  --pad-x: clamp(16px, 4vw, 56px);
  --measure: 62ch;
  --r: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 760px) {
  :root {
    --rail: 0px;
    --bar-h: 60px;
    --pad-x: 16px;
  }
}

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

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

body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.4vw + 15px, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.012em;
  color: var(--c-cream);
  background-color: var(--c-ink);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(56, 242, 208, 0.10), transparent 62%),
    radial-gradient(820px 480px at 4% 4%, rgba(255, 90, 42, 0.08), transparent 66%),
    linear-gradient(180deg, #05130F 0%, #071A16 46%, #071A16 100%);
  background-repeat: no-repeat;
  padding-top: var(--bar-h);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 左侧坐标轴线：框架式导航的竖直边 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--rail);
  width: 1px;
  background: linear-gradient(180deg,
    rgba(168, 255, 241, 0.22),
    rgba(143, 163, 155, 0.12) 42%,
    rgba(143, 163, 155, 0.04) 100%);
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 760px) {
  body::before { display: none; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: condensed;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

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

/* ---------- 4. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.measure { max-width: var(--measure); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(56, 242, 208, 0.8);
}

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.rule {
  border: 0;
  height: 1px;
  margin: clamp(24px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(143, 163, 155, 0.34), rgba(143, 163, 155, 0.04));
}

/* ---------- 5. 容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: calc(var(--pad-x) + var(--rail));
  padding-right: var(--pad-x);
}

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(14px, 2vw, 26px);
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- 6. 内容层 ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
  background: rgba(17, 22, 20, 0.72);
  color: var(--c-cream);
}

.panel--cream {
  background: var(--c-cream);
  color: var(--c-brown);
  border-color: var(--cream-line);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.panel--cream .eyebrow { color: #A63A12; }
.panel--cream .mono { color: rgba(33, 26, 22, 0.68); }
.panel--cream a { color: #8A2F0E; }

.panel--glass {
  background: rgba(168, 255, 241, 0.06);
  border-color: var(--line-bright);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

/* ---------- 7. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(56, 242, 208, 0.12), rgba(255, 90, 42, 0.10) 58%, rgba(7, 26, 22, 0.94));
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.92);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
    rgba(4, 16, 13, 0.16) 0 1px,
    transparent 1px 3px);
  mix-blend-mode: multiply;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--c-mist);
}

@media (max-width: 640px) {
  .media { aspect-ratio: 4 / 3; }
  .media--wide { aspect-ratio: 16 / 9; }
  .media--tall { aspect-ratio: 4 / 5; }
}

/* ---------- 8. 扫描线纹理 ---------- */
.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,
    rgba(168, 255, 241, 0.05) 0 1px,
    transparent 1px 4px);
  animation: scan-drift 14s linear infinite;
}

@keyframes scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

/* ---------- 9. 渐显 ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}

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

/* ---------- 10. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--c-cyan);
  color: #04110E;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 11. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 21, 18, 0.98), rgba(7, 26, 22, 0.90));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 rgba(168, 255, 241, 0.06), 0 18px 44px rgba(0, 0, 0, 0.44);
}

.scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(143, 163, 155, 0.12);
}

.scroll-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-gold));
  box-shadow: 0 0 12px rgba(56, 242, 208, 0.75);
  transition: width 0.1s linear;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: var(--bar-h);
  padding-left: calc(var(--pad-x) + var(--rail));
  padding-right: var(--pad-x);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--c-cream);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 8px;
  border-radius: 1px;
  background: linear-gradient(180deg, #E8B75A, #D9A441);
  color: #1A1206;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.85), 0 0 22px rgba(217, 164, 65, 0.28);
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-cream);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mist);
}

/* 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

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

.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 10px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(243, 235, 221, 0.74);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-num {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(143, 163, 155, 0.72);
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--c-cream);
  background: rgba(168, 255, 241, 0.07);
}

.nav-link:hover .nav-num { color: var(--c-glass); }

.nav-link[aria-current="page"] { color: var(--c-cyan); }

.nav-link[aria-current="page"] .nav-num { color: var(--c-orange); }

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: var(--c-cyan);
  box-shadow: 0 0 8px rgba(56, 242, 208, 0.85);
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: clamp(8px, 2vw, 26px);
}

/* ---------- 12. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.26s var(--ease),
    transform 0.18s var(--ease);
}

.btn--gold {
  background: linear-gradient(180deg, #E8B75A, #D9A441);
  color: #1A1206;
  border-color: #C08F33;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.35), 0 8px 24px rgba(217, 164, 65, 0.20);
}

.btn--gold:hover {
  box-shadow: 0 0 0 1px rgba(56, 242, 208, 0.55), 0 0 30px rgba(217, 164, 65, 0.45);
}

.btn--gold:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--line-bright);
}

.btn--ghost:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(56, 242, 208, 0.08);
}

.btn--orange {
  background: var(--c-orange);
  color: #160800;
  border-color: #FF7A4D;
  font-weight: 600;
}

.btn--orange:hover {
  box-shadow: 0 0 0 1px rgba(255, 90, 42, 0.6), 0 0 26px rgba(255, 90, 42, 0.42);
}

.btn--ink {
  background: var(--c-brown);
  color: var(--c-cream);
  border-color: rgba(33, 26, 22, 0.9);
}

.btn--ink:hover {
  background: #2E241E;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.5);
}

.btn-label-sm { display: none; }

@media (max-width: 560px) {
  .btn-label-lg { display: none; }
  .btn-label-sm { display: inline; }
}

/* ---------- 13. 移动目录按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r);
  background: rgba(168, 255, 241, 0.04);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  background: rgba(56, 242, 208, 0.08);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle-text {
  letter-spacing: 0.18em;
}

/* ---------- 14. 移动导航状态 ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px calc(var(--pad-x) + var(--rail)) 18px;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--bar-h));
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(6, 21, 18, 0.99), rgba(9, 30, 26, 0.98));
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.58);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.26s var(--ease),
      transform 0.26s var(--ease),
      visibility 0.26s linear;
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 4px;
    font-size: 13px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-link[aria-current="page"]::after {
    left: 4px;
    right: auto;
    width: 26px;
    bottom: 9px;
  }

  .nav-item:last-child .nav-link { border-bottom: 0; }
}

@media (max-width: 620px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; }
  .header-actions { margin-left: auto; }
}

/* ---------- 15. 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
}

.crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs-item + .crumbs-item::before {
  content: "/";
  color: rgba(143, 163, 155, 0.5);
}

.crumbs-link {
  color: rgba(243, 235, 221, 0.76);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.crumbs-link:hover { color: var(--c-cyan); }

.crumbs-current { color: var(--c-cyan); }

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(56, 242, 208, 0.10), transparent 72%),
    radial-gradient(700px 300px at 92% 100%, rgba(255, 90, 42, 0.07), transparent 70%),
    linear-gradient(180deg, #061714 0%, #081D19 58%, #05100E 100%);
  color: rgba(243, 235, 221, 0.78);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(80px, 22vw, 320px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-cyan), rgba(56, 242, 208, 0));
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) var(--pad-x) clamp(18px, 3vw, 28px) calc(var(--pad-x) + var(--rail));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(110px, 0.75fr));
  gap: clamp(22px, 3.5vw, 52px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 1px;
  background: var(--c-gold);
  color: #1A1206;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.7);
}

.footer-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-cream);
}

.footer-desc {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(243, 235, 221, 0.62);
}

.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-mist);
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: rgba(243, 235, 221, 0.80);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--c-cyan);
  padding-left: 5px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(24px, 3.6vw, 38px) 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.footer-contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(243, 235, 221, 0.90);
  text-decoration: none;
}

a.footer-contact-value:hover { color: var(--c-cyan); }

.footer-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 90, 42, 0.65);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(243, 235, 221, 0.66);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: clamp(18px, 2.6vw, 26px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(143, 163, 155, 0.85);
}

.footer-copy-brand { color: rgba(243, 235, 221, 0.86); }

.footer-legal { margin-left: auto; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .footer-inner { padding-left: var(--pad-x); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-legal { margin-left: 0; }
}

/* ---------- 17. 降级动效 ---------- */
@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;
  }

  .scanlines::after { animation: none; }

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