/* ============================================================
   /assets/site.css — 亿博体育主站 共享外壳
   夜间赛场指挥台：墨绿夜幕 / 荧光青数据 / 琥珀金行动
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #071A16;
  --ink-2: #0C2620;
  --ink-3: #12342B;
  --ink-4: #1A453A;

  --paper: #F1E7D2;
  --paper-2: #CDBFA6;

  --cyan: #64F5D4;
  --cyan-deep: #1FAF97;
  --amber: #F0B44C;
  --amber-deep: #B9791F;

  --coral: #C98274;
  --violet: #9488B8;
  --olive: #9EAF6F;
  --steel: #7C9DB8;
  --alert: #D96B5C;

  --line: rgba(100, 245, 212, 0.16);
  --line-soft: rgba(205, 191, 166, 0.2);
  --line-strong: rgba(100, 245, 212, 0.38);

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

  --shell: 1440px;
  --pad: clamp(18px, 4vw, 72px);
  --gutter: clamp(18px, 2.6vw, 44px);
  --band: clamp(56px, 7vw, 128px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, figcaption,
blockquote, ul, ol, dl, dd { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

:focus { outline: none; }

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

#main-content { scroll-margin-top: 96px; }

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    to right,
    rgba(100, 245, 212, 0.045) 0 1px,
    transparent 1px 104px
  );
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-nav-open { overflow: hidden; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-2);
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  flex: 0 0 auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: rgba(241, 231, 210, 0.78);
  max-width: 62ch;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(241, 231, 210, 0.86);
}

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

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.prose h2 { font-size: clamp(22px, 2.4vw, 30px); }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); }

.prose ul,
.prose ol { padding-left: 1.1em; }
.prose li { list-style: none; position: relative; padding-left: 1em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--cyan-deep);
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band { padding-block: var(--band); }

.band--field {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band--paper {
  background: var(--paper);
  color: #0A1F1A;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.band--paper .display,
.band--paper .section-title { color: #06201A; }

.band--paper .lead,
.band--paper .prose { color: #1B3A32; }

.band--paper .label { color: #4A6259; }

.band--paper .eyebrow { color: #0F6E5C; }

.grid {
  display: grid;
  gap: var(--gutter);
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-cta {
  background: var(--amber);
  color: #1C1508;
  border-color: var(--amber);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: #100D06;
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  background: rgba(100, 245, 212, 0.08);
}

/* ---------- 6. 标签 / 数据锚点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 1px;
  background: var(--ink-3);
  color: var(--cyan);
  border: 1px solid var(--line);
}

.tag--coral { background: var(--coral); color: #0B1F1A; border-color: transparent; }
.tag--violet { background: var(--violet); color: #0B1F1A; border-color: transparent; }
.tag--olive { background: var(--olive); color: #0B1F1A; border-color: transparent; }
.tag--steel { background: var(--steel); color: #0B1F1A; border-color: transparent; }
.tag--amber { background: var(--amber); color: #1C1508; border-color: transparent; }

.stat-figure {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-2);
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(205, 191, 166, 0.72);
}

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

.crumbs-list > li { display: inline-flex; align-items: center; }

.crumbs-list > li:not(:first-child)::before {
  content: "/";
  margin: 0 10px;
  color: var(--cyan-deep);
}

.crumbs-list a { transition: color 0.2s var(--ease); }
.crumbs-list a:hover { color: var(--cyan); }

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

/* ---------- 8. 图片容器基础 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-3);
  background-image:
    repeating-linear-gradient(135deg, rgba(100, 245, 212, 0.1) 0 1px, transparent 1px 11px),
    linear-gradient(158deg, var(--ink-3) 0%, var(--ink-2) 55%, var(--ink-4) 100%);
  aspect-ratio: 16 / 9;
}

.media img,
.media picture,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--wide { aspect-ratio: 21 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

.media-caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper-2);
}

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--amber);
  color: #1C1508;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 10. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: clamp(66px, 7vw, 88px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 36px);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex: 0 0 auto;
  padding-block: 12px;
}

.brand-word {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: 0.03em;
  color: var(--paper);
}

.brand-latin {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(205, 191, 166, 0.66);
  white-space: nowrap;
}

.brand:hover .brand-mark { color: var(--cyan); }

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(241, 231, 210, 0.72);
  transition: color 0.22s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--cyan); }

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

.nav-link[aria-current="page"] {
  color: var(--paper);
  font-weight: 700;
}

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

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--cyan);
  background: transparent;
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(100, 245, 212, 0.08); }

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 20px;
  height: 16px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.26s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-toggle[aria-expanded="false"] [data-label-open] { display: none; }
.nav-toggle[aria-expanded="true"] [data-label-closed] { display: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-deep) 0%, var(--cyan) 55%, var(--amber) 100%);
  pointer-events: none;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--paper);
  padding-block: clamp(48px, 6vw, 96px) clamp(24px, 3vw, 40px);
}

.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    to right,
    var(--cyan) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.42;
  pointer-events: none;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 3.2vw, 64px);
  align-items: start;
}

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

.footer-wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.footer-latin {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.footer-desc {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(241, 231, 210, 0.68);
}

.footer-facts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.footer-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: rgba(241, 231, 210, 0.82);
}

.footer-fact-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-2);
}

.footer-facts .mono { color: var(--cyan); font-size: 14px; }

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

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

.footer-links a {
  display: inline-block;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(241, 231, 210, 0.74);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--cyan); }

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

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(205, 191, 166, 0.7);
}

.footer-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact .mono { color: var(--cyan); letter-spacing: 0.02em; }

.footer-note {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 1px solid var(--amber);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(205, 191, 166, 0.72);
}

.footer-base {
  margin-top: clamp(32px, 4vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(205, 191, 166, 0.66);
}

/* ---------- 12. 显现动效 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

/* ---------- 13. 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
  .footer-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 40px;
  }
  .footer-contact li { min-width: 180px; flex: 1 1 180px; }
}

/* ---------- 14. 响应式：导航抽屉 ---------- */
@media (max-width: 900px) {
  .header-inner { gap: 12px; }

  .brand,
  .header-cta,
  .nav-toggle { position: relative; z-index: 2; }

  .header-cta {
    margin-left: auto;
    padding: 10px 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: clamp(92px, 16vh, 132px) var(--pad) 48px;
    background: var(--ink);
    background-image: repeating-linear-gradient(
      to right,
      rgba(100, 245, 212, 0.05) 0 1px,
      transparent 1px 88px
    );
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    display: block;
    padding: 20px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 5vw, 28px);
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--line);
    color: rgba(241, 231, 210, 0.8);
  }

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

  .nav-link[aria-current="page"] {
    color: var(--amber);
    padding-left: 14px;
    border-left: 2px solid var(--amber);
  }

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

/* ---------- 15. 响应式：手机 ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }

  .brand-meta { display: none; }

  .header-cta { padding: 9px 12px; font-size: 12px; }

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

  .footer-contact { flex-direction: column; gap: 14px; }

  .footer-contact li { min-width: 0; flex: 1 1 auto; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .prose { font-size: 16px; }
}

/* ---------- 16. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .nav-link::after { transition: none !important; }
}
