/* ==========================================================================
   亿德体育主站 — 共享样式 /assets/site.css
   夜间赛场指挥台：深墨蓝底、轨道线、记分牌数据块
   ========================================================================== */

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

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

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

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

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink-navy: #071A2B;
  --track-grey: #1B2A3A;
  --board-white: #F4F7FA;
  --neon-cyan: #31F2D0;
  --volt-orange: #FF6B2C;
  --ink-black: #080D12;
  --paper-beige: #E7DCC8;
  --slate-blue: #8FA3B8;
  --deep-teal: #0E4F5C;
  --live-green: #9BE15D;

  --line: rgba(143, 163, 184, 0.24);
  --line-strong: rgba(143, 163, 184, 0.44);
  --line-cyan: rgba(49, 242, 208, 0.32);
  --surface-raised: #122233;

  --font-display: "Noto Sans SC Condensed", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  min-height: 100vh;
  background: var(--ink-navy);
  color: var(--board-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--board-white);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { font-size: 1rem; }

strong { font-weight: 700; }

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

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

.section {
  padding-block: clamp(44px, 6.5vw, 92px);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

.grid {
  display: grid;
  gap: var(--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)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.88;
  color: rgba(244, 247, 250, 0.82);
}

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

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--neon-cyan);
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

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

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--neon-cyan);
  color: var(--ink-navy);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--ink-navy);
  outline-offset: -4px;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ink-navy);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 10px 26px rgba(3, 9, 16, 0.55);
}

/* 上层：品牌铭牌 + 快捷轨道 */
.header-top {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(94deg, rgba(14, 79, 92, 0.55) 0%, rgba(7, 26, 43, 0) 44%),
    var(--ink-navy);
}

.header-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(49, 242, 208, 0.16) 48%, transparent 64%);
  transform: translateX(-70%);
  animation: header-scan 9s linear infinite;
  pointer-events: none;
}

.header-top::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 0;
  width: 190px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.18), rgba(255, 107, 44, 0));
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

@keyframes header-scan {
  0%   { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

.header-top__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  transition: padding 0.25s var(--ease);
}

.site-header[data-scrolled="true"] .header-top__inner {
  padding-block: 8px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--board-white);
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--neon-cyan);
  color: var(--ink-navy);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: background 0.2s var(--ease);
}

.brand:hover .brand__mark {
  background: var(--board-white);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand__meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s var(--ease);
}

.site-header[data-scrolled="true"] .brand__meta {
  opacity: 0;
}

/* 快捷轨道 */
.header-top__rail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(27, 42, 58, 0.72);
  font-size: 13px;
  color: var(--board-white);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.rail-chip:hover {
  border-color: var(--neon-cyan);
  background: rgba(49, 242, 208, 0.12);
  transform: translateY(-1px);
}

.rail-chip__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  background: var(--paper-beige);
  color: var(--ink-navy);
  border-radius: 1px;
}

.rail-chip__label {
  white-space: nowrap;
}

/* 下层：栏目轨道 */
.header-bar {
  background: var(--track-grey);
  border-top: 1px solid rgba(143, 163, 184, 0.16);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2.2vw, 30px);
}

.primary-nav__link {
  position: relative;
  display: block;
  padding: 14px 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(244, 247, 250, 0.76);
  transition: color 0.2s var(--ease);
}

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

.primary-nav__link:hover {
  color: var(--board-white);
}

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

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

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

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--board-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

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

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

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

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

.nav-toggle__text {
  line-height: 1;
}

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

.btn--primary {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: var(--ink-navy);
}

.btn--primary:hover {
  background: #6ff8e0;
  border-color: #6ff8e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(49, 242, 208, 0.22);
}

.btn--accent {
  background: var(--volt-orange);
  border-color: var(--volt-orange);
  color: var(--ink-black);
}

.btn--accent:hover {
  background: #ff8a56;
  border-color: #ff8a56;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 107, 44, 0.28);
}

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

.btn--ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-blue);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__list li + li::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--line-strong);
}

.breadcrumb a {
  color: var(--slate-blue);
  transition: color 0.18s var(--ease);
}

.breadcrumb a:hover {
  color: var(--neon-cyan);
}

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

/* ---------- 9. 基础组件 ---------- */
.panel {
  background: var(--track-grey);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
}

.panel--paper {
  background: var(--paper-beige);
  border-color: rgba(8, 13, 18, 0.16);
  color: #241d16;
}

.panel--paper .field-label {
  color: #6a5f4d;
}

.paper-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: var(--paper-beige);
  color: #3b3227;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 0 rgba(8, 13, 18, 0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-blue);
  white-space: nowrap;
}

.tag--cyan {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.tag--orange {
  background: var(--volt-orange);
  border-color: var(--volt-orange);
  color: var(--ink-black);
}

.tag--live {
  border-color: rgba(155, 225, 93, 0.6);
  color: var(--live-green);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 0 3px rgba(155, 225, 93, 0.18);
}

/* ---------- 10. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--track-grey) 0%, var(--deep-teal) 100%);
  aspect-ratio: 16 / 9;
}

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

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

.media-frame__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(7, 26, 43, 0) 0%, rgba(7, 26, 43, 0.94) 100%);
}

.media-frame__overlay .field-label {
  color: rgba(244, 247, 250, 0.74);
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: 24px;
  background: var(--ink-black);
  color: var(--slate-blue);
  border-top: 1px solid var(--line-cyan);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(143, 163, 184, 0.18);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--board-white);
}

.footer-brand__desc {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate-blue);
}

.footer-brand__domain {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--board-white);
}

.footer-col__title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
}

.footer-col__list {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-col__list a {
  color: var(--slate-blue);
  transition: color 0.18s var(--ease);
}

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

.footer-col__list--plain {
  color: var(--slate-blue);
}

.footer-col__list--plain li {
  display: grid;
  gap: 2px;
  line-height: 1.62;
  word-break: break-word;
}

.footer-col__list--plain .field-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(143, 163, 184, 0.78);
}

.footer-col--contact .footer-col__list--plain li {
  color: rgba(244, 247, 250, 0.86);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 20px;
  font-size: 13px;
}

.footer-base__copy {
  color: rgba(143, 163, 184, 0.85);
}

.footer-base__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-base__legal a {
  color: var(--slate-blue);
  transition: color 0.18s var(--ease);
}

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

/* ---------- 12. 显现动效（可选，页面用 data-reveal 启用） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-top__rail .rail-chip {
    display: none;
  }

  .primary-nav {
    display: none;
    flex: 1 0 100%;
    padding-block: 6px 10px;
    border-top: 1px solid var(--line);
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav__list > li + li {
    border-top: 1px solid rgba(143, 163, 184, 0.14);
  }

  .primary-nav__link {
    padding: 13px 4px;
    font-size: 16px;
  }

  .primary-nav__link::after {
    bottom: 0;
  }

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

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

@media (max-width: 640px) {
  .header-top__inner {
    padding-block: 10px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .brand__name {
    font-size: 15.5px;
  }

  .brand__meta {
    display: none;
  }

  .btn--accent {
    padding: 9px 15px;
    font-size: 13px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

  .footer-base {
    justify-content: flex-start;
  }

  .footer-base__legal {
    gap: 14px;
  }
}

/* ---------- 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;
  }

  .header-top::before {
    animation: none;
    opacity: 0.4;
    transform: none;
  }

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