/* ==========================================================================
   爱游戏体育 · 夜场数据台 — 共享样式表 /assets/site.css
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, 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;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --bg: #050A12;
  --panel: #0C1620;
  --panel-deep: #060C14;
  --glass: rgba(20, 34, 46, 0.62);
  --line: #22323F;
  --line-soft: rgba(34, 50, 63, 0.62);

  --text: #EAF2F8;
  --muted: #93A6B5;
  --dim: #6E8496;

  --mint: #26F2B8;
  --orange: #FF7A33;
  --blue: #4D8CFF;
  --amber: #FFC658;
  --red: #FF4D5E;

  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 4px;
  --radius-sm: 2px;
  --clip: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);

  --shell-max: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(77, 140, 255, 0.11), transparent 68%),
    radial-gradient(760px 460px at 2% -8%, rgba(38, 242, 184, 0.08), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; font-weight: 750; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }
h4 { font-size: 0.9375rem; line-height: 1.4; font-weight: 700; }

p { text-wrap: pretty; }

::selection {
  background: rgba(38, 242, 184, 0.28);
  color: #ffffff;
}

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

/* ---------- 4. 跳转链接与工具类 ---------- */
.skip-link {
  position: fixed;
  top: -96px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #04140F;
  background: var(--mint);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -14px rgba(38, 242, 184, 0.9);
  transition: top 0.2s var(--ease);
}

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

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(36px, 5.5vw, 76px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 2.5vw, 32px);
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.section-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

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

/* ---------- 6. 面板 / 玻璃层 / 标签 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
}

.tag--live {
  color: var(--mint);
  border-color: rgba(38, 242, 184, 0.45);
  background: rgba(38, 242, 184, 0.1);
}

.tag--score {
  color: var(--orange);
  border-color: rgba(255, 122, 51, 0.45);
  background: rgba(255, 122, 51, 0.1);
}

.tag--time {
  color: var(--amber);
  border-color: rgba(255, 198, 88, 0.45);
  background: rgba(255, 198, 88, 0.1);
}

.tag--alert {
  color: var(--red);
  border-color: rgba(255, 77, 94, 0.45);
  background: rgba(255, 77, 94, 0.1);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.8125rem;
}

.btn-primary {
  color: #04140F;
  background: var(--mint);
  box-shadow: 0 0 0 1px rgba(38, 242, 184, 0.35), 0 10px 26px -16px rgba(38, 242, 184, 0.9);
}

.btn-primary:hover { background: #63FFD3; }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  color: var(--text);
  background: rgba(20, 34, 46, 0.62);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--mint);
  border-color: rgba(38, 242, 184, 0.5);
}

/* ---------- 8. 头部：夜场命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 12, 20, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  isolation: isolate;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  height: var(--header-h);
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.brand-mark {
  position: relative;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--mint);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(38, 242, 184, 0.65);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(38, 242, 184, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--mint);
  opacity: 0.9;
}

/* 主导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 11px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: #47606F;
  transition: color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link:hover .nav-index { color: var(--blue); }

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

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), rgba(38, 242, 184, 0));
  box-shadow: 0 0 12px rgba(38, 242, 184, 0.55);
}

/* 右侧快捷区 */
.header-utility {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.utility-link {
  font-size: 0.8125rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.utility-link:hover { color: var(--mint); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--mint);
  border-color: rgba(38, 242, 184, 0.5);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 面板内的快捷区：桌面隐藏 */
.nav-extras { display: none; }

/* 状态带 */
.header-status {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(38, 242, 184, 0.07), rgba(5, 10, 18, 0) 46%);
}

.header-status-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 5px var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  animation: statusPulse 2.4s var(--ease) infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(38, 242, 184, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(38, 242, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 242, 184, 0); }
}

.status-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-clock {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  pointer-events: none;
}

/* ---------- 9. 头部响应式 ---------- */
@media (max-width: 1180px) {
  .utility-link { display: none; }
}

@media (max-width: 1080px) {
  .header-utility { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: #071019;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px -30px rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list { display: block; }

  .nav-item { border-bottom: 1px solid var(--line-soft); }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 2px;
    font-size: 1rem;
    border-radius: 0;
  }

  .nav-link:hover { background: none; }

  .nav-link[aria-current="page"]::after { display: none; }

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

  .nav-index { font-size: 0.75rem; }

  .nav-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
  }

  .nav-extra-link {
    padding: 6px 2px;
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.18s var(--ease);
  }

  .nav-extra-link:hover { color: var(--mint); }
}

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

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 112px);
  background: var(--panel-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), var(--blue) 38%, transparent 78%);
  opacity: 0.85;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 320px at 8% 0%, rgba(38, 242, 184, 0.09), transparent 70%),
    radial-gradient(620px 300px at 92% 8%, rgba(77, 140, 255, 0.09), transparent 70%);
}

.footer-inner,
.footer-meta,
.footer-legal {
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
}

.footer-brand-line {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-brand-sub {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--mint);
}

.footer-summary {
  max-width: 34ch;
  margin-top: 18px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}

.footer-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--dim);
}

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

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted);
  word-break: break-word;
  transition: color 0.18s var(--ease);
}

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

.footer-link--mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.footer-link--inline { font-size: inherit; }

.footer-meta {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  font-size: 0.8125rem;
  color: var(--dim);
}

.footer-meta-item { max-width: 62ch; }

.footer-meta-key {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--mint);
  border: 1px solid rgba(38, 242, 184, 0.35);
  border-radius: var(--radius-sm);
  vertical-align: 1px;
}

.footer-legal {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-summary { max-width: none; }
}

@media (max-width: 620px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- 11. 正文与面包屑 ---------- */
.prose {
  max-width: 68ch;
  color: var(--muted);
}

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

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 1.8em;
}

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

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--mint); }

.prose ul { list-style: none; }

.prose li {
  position: relative;
  padding-left: 18px;
}

.prose li + li { margin-top: 0.4em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--mint);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--mint); }

/* ---------- 12. 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0C1620, #050A12);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--card { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

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

/* ---------- 13. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

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

/* ---------- 14. 减弱动效 ---------- */
@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;
  }

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

  .scroll-progress { display: none; }
}
