/* =========================================================
   爱游戏体育 · 共享层 /assets/site.css
   夜间球场指挥中心：深墨绿基底 + 战术网格 + 粗野主义面板
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 120px;
  background: #061C18;
}

body,
h1, h2, h3, h4, p, ol, ul, figure, blockquote, aside { margin: 0; }

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

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

a { color: inherit; }

button { font: inherit; color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #061C18;
  --panel: #0C2D25;
  --panel-2: #123A30;
  --panel-3: #1D4A3B;
  --lime: #C6FF3D;
  --lime-soft: #E4FF9A;
  --orange: #FF8A3D;
  --blue: #9FB8C8;
  --paper: #F3F0E6;
  --paper-warm: #E8E4D6;
  --line: #2D5146;
  --alert: #FF5A5F;

  --font-display: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1440px;
  --shadow-hard: 8px 8px 0 rgba(0, 0, 0, 0.40);
  --shadow-soft: 6px 6px 0 rgba(0, 0, 0, 0.32);
  --radius: 3px;
}

/* ---------- 3. 中文基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(45, 81, 70, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 81, 70, 0.22) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

main:focus { outline: none; }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 999;
  display: inline-block;
  padding: 11px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: top 0.18s ease-out;
}

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

/* ---------- 5. 头部：紧凑命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #0C2D25 0%, #08211C 100%);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.command-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 24px);
  transition: padding 0.2s ease-out;
}

.site-header[data-scrolled="true"] .command-bar {
  padding-top: 7px;
  padding-bottom: 7px;
}

/* 5.1 品牌标记（头尾共用） */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  padding: 3px 5px;
  background: var(--ink);
  border: 2px solid var(--line);
  border-radius: 2px;
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
  background: var(--lime);
}

.brand-mark i:nth-child(1) { height: 7px; background: var(--blue); }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 19px; background: var(--orange); }

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

/* 5.2 轮次状态灯 */
.round-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--blue);
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.14);
  animation: status-pulse 2.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.status-key { color: var(--blue); opacity: 0.65; }

.status-value {
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 9px;
  border: 2px solid transparent;
  border-radius: 2px;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, color 0.16s ease-out;
}

.nav-link:hover {
  background: var(--panel-2);
  border-color: var(--line);
}

.nav-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.nav-label { white-space: nowrap; }

.nav-link[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.nav-link[aria-current="page"] .nav-index { color: #0C2D25; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 2px solid var(--lime);
  border-radius: 2px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease-out, color 0.16s ease-out;
}

.nav-cta:hover { background: var(--lime); color: var(--ink); }

/* 5.4 移动命令面板开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 14px;
  background: var(--ink);
  border: 2px solid var(--lime);
  border-radius: 2px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.16s ease-out;
}

.nav-toggle:hover { background: var(--panel-2); }

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-icon i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.site-header[data-open="true"] .nav-toggle-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-icon i:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle-text { white-space: nowrap; }

/* 5.5 滚动进度光条 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(45, 81, 70, 0.55);
  overflow: hidden;
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.12s linear;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: #08211C;
  border-top: 3px solid var(--lime);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 24px) clamp(24px, 4vw, 40px);
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-tagline {
  max-width: 26em;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--blue);
}

.footer-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--blue);
  opacity: 0.75;
}

.footer-col { min-width: 0; }

.footer-title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-link {
  display: inline-block;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease-out, border-color 0.16s ease-out, transform 0.16s ease-out;
}

.footer-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
  transform: translateX(3px);
}

/* 6.1 客服事实 */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
}

.fact-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.85;
}

.fact-value {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.copy-btn {
  justify-self: end;
  align-self: center;
  min-height: 32px;
  padding: 5px 10px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.16s ease-out, color 0.16s ease-out, background-color 0.16s ease-out;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.copy-btn[data-copied="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

/* 6.2 页脚基座 */
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 24px) 30px;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.footer-copy,
.footer-icp { margin: 0; }

/* ---------- 7. 布局基础 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
}

.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- 8. 面板组件 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.panel--glow {
  background: linear-gradient(155deg, #0C2D25 0%, #123A30 55%, #215342 100%);
  border-color: #3A6A57;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel__index {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lime);
  white-space: nowrap;
}

.panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.card {
  padding: 18px 20px;
  background: #0A241E;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease-out, transform 0.18s ease-out;
}

.card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* ---------- 9. 文本与数据组件 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 38em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--blue);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(198, 255, 61, 0.08);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.stat__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, background-color 0.16s ease-out, color 0.16s ease-out;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--primary { --btn-bg: var(--lime); --btn-fg: #061C18; --btn-bd: var(--lime); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--lime); --btn-bd: var(--lime); }
.btn--orange { --btn-bg: var(--orange); --btn-fg: #1A0C02; --btn-bd: var(--orange); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease-out, border-color 0.16s ease-out;
}

.breadcrumb a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

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

/* ---------- 12. 正文窄栏 ---------- */
.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.9;
  color: #E6E2D5;
}

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

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--paper);
}

.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { font-size: 1.15rem; }

.prose a {
  color: var(--lime);
  text-underline-offset: 4px;
}

.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }

.prose strong { color: var(--lime-soft); }

.prose blockquote {
  padding: 12px 18px;
  border-left: 3px solid var(--lime);
  background: rgba(198, 255, 61, 0.06);
  color: var(--paper);
}

/* ---------- 13. 图片容器基础（页面阶段放占位） ---------- */
.figure {
  margin: 0;
  background: #08211C;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.figure__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #0C2D25 0%, #123A30 45%, #1D4A3B 100%);
}

.figure__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 22px,
    rgba(198, 255, 61, 0.07) 22px 23px
  );
  pointer-events: none;
}

.figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__caption {
  padding: 10px 14px;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--blue);
}

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  transition: opacity 0.36s ease-out, transform 0.36s ease-out;
}

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

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

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

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 14px clamp(16px, 4vw, 24px) 22px;
    background: #08211C;
    border-top: 2px solid var(--line);
    border-bottom: 3px solid var(--lime);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .site-header[data-open="true"] .primary-nav { display: flex; }

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

  .nav-item { display: block; }

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

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

  .nav-cta {
    justify-content: center;
    min-height: 46px;
    font-size: 14px;
  }

  .round-status {
    padding-left: 0;
    border-left: none;
    font-size: 11px;
  }

  .status-key { display: none; }
}

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

  .round-status { display: none; }

  .display { font-size: clamp(2rem, 8.5vw, 2.8rem); }

  .prose { font-size: 16px; line-height: 1.85; }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { font-size: 11px; }
  .grid--12 { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
  .nav-toggle-text { display: none; }
}

/* ---------- 16. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.reveal-on [data-reveal],
  html.reveal-on [data-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover,
  .card:hover,
  .footer-link:hover {
    transform: none;
  }
}
