/* ==========================================================================
   天行体育 · 共享样式表  /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, li, figure, figcaption, blockquote,
dl, dt, dd, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色板 */
  --ink-000: #050A14;   /* 深夜球场蓝黑 */
  --ink-100: #0B1220;   /* 次级夜蓝 */
  --ink-200: #111C2E;   /* 数据面板深蓝 */
  --cyan:    #3DF5E0;   /* 荧光青 */
  --orange:  #FF6A3D;   /* 信号橙 */
  --paper:   #F5F1E8;   /* 暖白 */
  --muted:   #6B7A90;   /* 雾蓝灰 */
  --line:    #1E2E45;   /* 分隔线蓝 */
  --green:   #6EE7A8;   /* 实时绿 */
  --amber:   #FFB347;   /* 提示琥珀 */

  /* 布局 */
  --maxw: 1280px;
  --gutter: clamp(18px, 4.2vw, 44px);
  --bar-h: 66px;
  --radius: 14px;

  /* 字体 */
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 缓动 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1.1;
  letter-spacing: -.02em;
}

strong, b { font-weight: 700; }

::selection { background: var(--cyan); color: #04120F; }

#main-content:focus { outline: none; }

/* ---------- 4. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04120F;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-240%);
  transition: transform .2s var(--ease);
}

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

/* ---------- 5. 通用排版与文本组件 ---------- */
.display-1 {
  font-size: clamp(44px, 8.4vw, 96px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}

.display-2 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.028em;
}

.display-3 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: rgba(245, 241, 232, .82);
  max-width: 62ch;
}

.prose p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(245, 241, 232, .86);
  max-width: 68ch;
}

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

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

.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

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

/* ---------- 6. 容器 / 分区 / 网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
}

.section--tint { background: var(--ink-100); }
.section--panel { background: var(--ink-200); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

.span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 {
  grid-column: span 12;
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 980px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6, .span-7, .span-8 { grid-column: span 12; }
}

@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}

/* ---------- 7. 面板 / 数据 / 标签 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-200);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .24s var(--ease), background-color .24s var(--ease), transform .24s var(--ease);
}

.panel--flush { border-radius: 0; }

.panel:hover {
  border-color: rgba(61, 245, 224, .42);
  background: #132036;
  transform: translateY(-2px);
}

.stat__value {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 28, 46, .6);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.5;
}

.tag--live { color: var(--green); border-color: rgba(110, 231, 168, .35); }
.tag--warn { color: var(--amber); border-color: rgba(255, 179, 71, .35); }
.tag--hot  { color: var(--orange); border-color: rgba(255, 106, 61, .42); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #100704;
}

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

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

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

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

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

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

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

.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- 10. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 90% at 12% 6%, rgba(61, 245, 224, .16), transparent 60%),
    radial-gradient(120% 120% at 92% 100%, rgba(255, 106, 61, .14), transparent 62%),
    var(--ink-200);
}

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

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

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

/* ---------- 11. 标签筛选 ---------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.filter-btn:hover {
  color: var(--paper);
  border-color: rgba(61, 245, 224, .42);
}

.filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
  font-weight: 700;
}

.filter-count {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 12. 滚动显现 ---------- */
[data-reveal].is-pending {
  opacity: 0;
  transform: translateY(16px);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* ---------- 13. 页头 · 命令栏 ---------- */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 10, 20, .97), rgba(5, 10, 20, .90));
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--bar-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.brand__mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 20px;
  height: 26px;
}

.brand__mark i {
  flex: 1;
  border-radius: 1px;
  background: var(--cyan);
}

.brand__mark i:nth-child(1) { height: 58%; }
.brand__mark i:nth-child(2) { height: 100%; }
.brand__mark i:nth-child(3) { height: 36%; background: var(--orange); }

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

.brand__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
  color: var(--paper);
  transition: color .2s var(--ease);
}

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

.brand__tag {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .2em;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

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

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cmd-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border-radius: 6px;
  transition: background-color .2s var(--ease);
}

.cmd-nav__idx {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.cmd-nav__label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.3;
  color: var(--paper);
  transition: color .2s var(--ease);
}

.cmd-nav__link:hover { background: rgba(61, 245, 224, .08); }
.cmd-nav__link:hover .cmd-nav__idx { color: var(--cyan); }
.cmd-nav__link:hover .cmd-nav__label { color: var(--cyan); }

.cmd-nav__link[aria-current="page"] { background: rgba(61, 245, 224, .1); }
.cmd-nav__link[aria-current="page"] .cmd-nav__idx,
.cmd-nav__link[aria-current="page"] .cmd-nav__label { color: var(--cyan); }

.cmd-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.cmd-nav__foot { display: none; }

.cmd-nav__status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* 尾部状态与 CTA */
.cmd-bar__tail {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.cmd-bar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(110, 231, 168, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(110, 231, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

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

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

.nav-toggle__box i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease);
}

.cmd-bar[data-open="true"] .nav-toggle__box i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.cmd-bar[data-open="true"] .nav-toggle__box i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* 滚动进度 */
.cmd-bar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 14. 页脚 ---------- */
.site-foot {
  margin-top: clamp(64px, 10vw, 140px);
  background: var(--ink-100);
  border-top: 1px solid var(--line);
}

.site-foot__inner {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter) 0;
}

.foot-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 64px);
  align-items: start;
}

.foot-brand__line {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--paper);
}

.foot-brand__desc {
  margin-top: 12px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.foot-brand__badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--green);
}

.foot-contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.foot-contact__item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(30, 46, 69, .9);
}

.foot-contact__key {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

.foot-contact__val {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 241, 232, .88);
  word-break: break-word;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.foot-col__head {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan);
}

.foot-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.foot-link {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 232, .78);
  transition: color .2s var(--ease);
}

.foot-link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: clamp(26px, 4vw, 46px);
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.foot-base__copy,
.foot-base__icp { line-height: 1.6; }

.foot-base__icp { font-family: var(--font-num); letter-spacing: .06em; }

.foot-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot-base__links .foot-link { font-size: 12.5px; }

/* ---------- 15. 响应式 · 命令栏切移动端 ---------- */
@media (max-width: 1180px) {
  .cmd-bar__status { display: none; }
}

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

  .cmd-bar__tail { display: none; }

  .cmd-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bar-h);
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px var(--gutter) 48px;
    overflow-y: auto;
    background: var(--ink-000);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }

  .cmd-bar[data-open="true"] .cmd-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

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

  .cmd-nav__link {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .cmd-nav__label { font-size: 20px; font-weight: 700; }

  .cmd-nav__link[aria-current="page"] { background: transparent; }
  .cmd-nav__link[aria-current="page"]::after { display: none; }

  .cmd-nav__foot {
    display: grid;
    gap: 14px;
    margin-top: 26px;
  }
}

@media (max-width: 420px) {
  .brand__tag { display: none; }
}

/* ---------- 16. 响应式 · 页脚 ---------- */
@media (max-width: 900px) {
  .foot-lead { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-contact__item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal].is-pending { opacity: 1; transform: none; }
  .cmd-bar__progress { transition: none; }
}
