/* ===================================================================
   亚洲体育CN · 共享样式 /assets/site.css
   夜场比赛色系：夜墨绿底、荧光青数据、竞技橙红与电光蓝状态
   =================================================================== */

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

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

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

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

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

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #071B14;
  --ink-2: #0E2A20;
  --moss: #2F5A45;
  --cyan: #3DF2C0;
  --cyan-soft: #6BF7CF;
  --flame: #FF5A36;
  --blue: #4D9BFF;
  --stone: #8E9A92;
  --clay: #D07A57;
  --paper: #F3EEE2;
  --mist: #C4D5CC;

  --line: rgba(196, 213, 204, 0.16);
  --line-strong: rgba(196, 213, 204, 0.34);

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

  --wrap: 1320px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --radius: 2px;
  --shadow: 0 24px 48px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p { max-width: 68ch; }

[hidden] { display: none !important; }

[id] { scroll-margin-top: 130px; }

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

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

.site-main { display: block; }

/* ---------- 4. 通用工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--tint {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

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

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 44px);
  color: var(--paper);
}

.lede {
  max-width: 60ch;
  color: var(--mist);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04150F;
}

.btn--primary:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn:active { transform: translateY(0); }

/* ---------- 6. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 44px -38px rgba(0, 0, 0, 0.95);
}

/* 顶部计分牌状态条 */
.header-strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.header-strip__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stone);
  text-transform: uppercase;
}

.header-strip__tag {
  color: var(--cyan);
  white-space: nowrap;
}

.header-strip__meter {
  flex: 1 1 auto;
  min-width: 40px;
  height: 2px;
  background: rgba(196, 213, 204, 0.18);
  overflow: hidden;
}

.header-strip__meter-fill {
  display: block;
  height: 100%;
  width: 24%;
  background: var(--cyan);
  transition: width 0.12s linear;
}

.header-strip__meta {
  white-space: nowrap;
  color: var(--mist);
}

.header-strip__meta .num { color: var(--cyan); }

/* 主网格：品牌 | 横向索引 | 行动 */
.site-header__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  min-height: 70px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 1px solid var(--cyan);
  overflow: hidden;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: rotate(-38deg) translateX(6px);
}

.brand__pip {
  width: 11px;
  height: 11px;
  background: var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand__pip { transform: rotate(135deg); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.brand__motto {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--stone);
  white-space: nowrap;
}

/* 横向编号索引 */
.primary-nav { min-width: 0; max-height: none; visibility: visible; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 8px);
  counter-reset: navidx;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav__list::-webkit-scrollbar { display: none; }

.primary-nav__list > li { flex: 0 0 auto; }

.primary-nav__link {
  position: relative;
  display: block;
  padding: 12px 10px 14px;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.primary-nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--stone);
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.primary-nav__link:hover { color: var(--paper); }
.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] { color: var(--cyan); }

.primary-nav__link[aria-current="page"]::before { color: var(--cyan); }

.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
}

/* 桌面行动区 & 抽屉内行动区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn {
  padding: 9px 14px;
  font-size: 13px;
}

.nav-cta { display: none; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

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

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid var(--line-strong);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(38%, 340px);
  height: 2px;
  background: var(--cyan);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -1px;
  left: min(38%, 340px);
  width: 56px;
  height: 2px;
  background: var(--clay);
}

.footer-frame {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
}

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

.footer-brand {
  display: inline-block;
  text-decoration: none;
  color: var(--paper);
}

.footer-brand__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.footer-brand__motto {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.footer-lead__text {
  margin-top: 18px;
  max-width: 34ch;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
}

.footer-lead__stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: rgba(7, 27, 20, 0.55);
}

.footer-stat__num {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

.footer-stat__unit {
  font-size: 12px;
  color: var(--stone);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
}

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

.footer-col__title,
.footer-contact__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-col__list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.footer-col__link {
  display: inline-block;
  padding-block: 2px;
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-col__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

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

.footer-contact__list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.footer-contact__row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(142, 154, 146, 0.28);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.footer-contact__value {
  color: var(--paper);
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.footer-base {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-base__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

.footer-base__meta { max-width: none; }

.footer-base__dot {
  width: 4px;
  height: 4px;
  background: var(--moss);
  display: inline-block;
}

/* ---------- 9. 共享页面组件 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.breadcrumbs__link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.breadcrumbs__sep { color: var(--moss); }

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

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

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}

.card:hover {
  border-color: rgba(61, 242, 192, 0.42);
  transform: translateY(-2px);
}

.card__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

.card__title {
  margin-top: 8px;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--paper);
}

.card__text {
  margin-top: 8px;
  color: var(--mist);
  font-size: 14.5px;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.tag--clay { color: var(--clay); border-color: rgba(208, 122, 87, 0.5); }
.tag--blue { color: var(--blue); border-color: rgba(77, 155, 255, 0.45); }

/* 响应式图片容器（页面阶段放置占位图） */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--moss);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(7, 27, 20, 0.82);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* 滚动进度条（JS 注入） */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 2px;
  background: var(--cyan);
  pointer-events: none;
  transition: width 0.1s linear;
}

/* 显现（仅在有 JS 时隐藏初始态） */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 10. 响应式：平板与手机 ---------- */
@media (max-width: 1180px) {
  .brand__motto { display: none; }
  .header-actions .btn { padding: 9px 12px; font-size: 12.5px; }
}

@media (max-width: 1080px) {
  .site-header__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
  }

  .header-actions { display: none; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.32s var(--ease), visibility 0.32s var(--ease);
  }

  .site-header[data-open="true"] .primary-nav {
    max-height: min(78vh, 560px);
    overflow-y: auto;
    visibility: visible;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 4px;
    overflow: visible;
  }

  .primary-nav__link {
    padding: 15px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav__link::before { font-size: 11px; }

  .primary-nav__link::after {
    left: 0;
    right: auto;
    bottom: 0;
    width: 100%;
    height: 1px;
  }

  .nav-cta {
    display: grid;
    gap: 10px;
    padding: 16px var(--gutter) 24px;
  }

  .nav-cta .btn { width: 100%; }

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

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
}

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

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

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-contact__list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }

  .header-strip__inner { font-size: 10px; letter-spacing: 0.1em; }
  .header-strip__meta { display: none; }

  .brand__name { font-size: 17px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__pip { width: 9px; height: 9px; }

  .nav-toggle { padding: 9px 11px; font-size: 12.5px; }

  .footer-base__inner { font-size: 10.5px; letter-spacing: 0.04em; }
  .footer-base__dot { display: none; }
}

/* ---------- 11. 减少动态偏好 ---------- */
@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;
  }

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

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