/* ==========================================================================
   K1体育主站 · 共享样式表 /assets/site.css
   夜间赛场数据看板：深空黑底 + 荧光橙唯一主角 + 1px 精密边界
   ========================================================================== */

/* ---------------------------------------------------------------
   1. 变量
   --------------------------------------------------------------- */
:root {
  --ink: #0A0B0E;
  --panel: #14161C;
  --panel-2: #191C24;
  --line: #262A33;
  --orange: #FF6A1A;
  --orange-soft: #FF8A3D;
  --orange-dim: #3A1B08;
  --blue: #3FA9FF;
  --mint: #6EE7B7;
  --text: #E8EAED;
  --muted: #9AA3B2;
  --faint: #5A6172;

  --rail-w: 240px;
  --topbar-h: 0px;
  --status-h: 48px;

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

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1180px;
  --gap: clamp(16px, 2.2vw, 28px);
  --r: 2px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: calc(var(--topbar-h) + var(--status-h));
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(32px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; }
h4 { font-size: 18px; font-weight: 800; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

a {
  color: var(--orange-soft);
  text-decoration: none;
  transition: color .18s var(--ease);
}
a:hover { color: var(--orange); }

button { font: inherit; color: inherit; }

table { border-collapse: collapse; }

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

html.nav-open,
html.nav-open body { overflow: hidden; }

/* ---------------------------------------------------------------
   3. 焦点
   --------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   4. 跳至内容
   --------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-220%);
  padding: 10px 18px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

/* ---------------------------------------------------------------
   5. 头部：左侧品牌轨道
   --------------------------------------------------------------- */
.site-header { position: relative; z-index: 60; }

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 26px 0 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 22px;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--orange-dim);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.brand:hover .brand__mark { background: var(--orange); color: var(--ink); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .02em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.rail__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 10px;
}

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

.rail__item { list-style: none; }

.rail__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.rail__link:hover {
  color: var(--text);
  background: var(--panel-2);
  border-left-color: var(--orange-soft);
}
.rail__link[aria-current="page"] {
  color: var(--text);
  background: var(--orange-dim);
  border-left-color: var(--orange);
}
.rail__link[aria-current="page"] .rail__num { color: var(--orange); }

.rail__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--faint);
}

.rail__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rail__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 2px 14px;
}

.rail__cta {
  display: block;
  padding: 11px 10px;
  text-align: center;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.rail__cta:hover { background: var(--orange-soft); border-color: var(--orange-soft); color: var(--ink); }

.rail__cta--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.rail__cta--ghost:hover {
  background: rgba(255, 106, 26, .08);
  border-color: var(--orange);
  color: var(--orange);
}

.rail__foot {
  margin: 0;
  padding: 14px 20px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* ---------------------------------------------------------------
   6. 顶部状态栏
   --------------------------------------------------------------- */
.statusbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 55;
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(10, 11, 14, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.statusbar__group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.statusbar__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, .16);
}

.statusbar__tag {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.statusbar__ver {
  white-space: nowrap;
  color: var(--faint);
}

.statusbar__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transition: width .12s linear;
}

/* ---------------------------------------------------------------
   7. 移动导航按钮
   --------------------------------------------------------------- */
.nav-toggle {
  display: none;
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 90;
  width: 44px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--orange); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: background .18s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .2s var(--ease), top .2s var(--ease), background .18s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  background: var(--orange);
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  background: var(--orange);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------
   8. 页脚
   --------------------------------------------------------------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
}
.footer__brand:hover { color: var(--orange-soft); }

.footer__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--orange-dim);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}

.footer__note {
  margin: 16px 0 0;
  max-width: 32em;
  font-size: 15px;
  color: var(--muted);
}

.footer__meta {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--faint);
}

.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.footer__list li { color: var(--muted); }
.footer__list a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__list a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.footer__list--contact a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--text);
}
.footer__list--contact a:hover { color: var(--orange); }

.footer__hint {
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
}

.footer__base { border-top: 1px solid var(--line); }

.footer__base-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--faint);
}
.footer__base-inner p { margin: 0; }

.footer__copy { color: var(--faint); }

.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: var(--muted); }
.footer__legal a:hover { color: var(--orange); }

/* ---------------------------------------------------------------
   9. 通用排版工具
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 44px);
}

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
}

.section-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(72px, 11vw, 160px);
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--orange);
  opacity: .26;
  margin-bottom: -0.12em;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

.lede {
  max-width: 40em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   10. 通用组件
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { border-color: var(--orange); color: var(--orange-soft); }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 106, 26, .08);
  border-color: var(--orange);
  color: var(--orange);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.tag--hot { border-color: rgba(255, 106, 26, .45); color: var(--orange); }
.tag--live { border-color: rgba(110, 231, 183, .4); color: var(--mint); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

/* ---------------------------------------------------------------
   11. 响应式图片容器（页面阶段放入 img / inline SVG）
   --------------------------------------------------------------- */
.figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, #14161C 0%, #0A0B0E 72%);
  border: 1px solid var(--line);
}
.figure > img,
.figure > svg,
.figure > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .22;
}
.figure--square { aspect-ratio: 1 / 1; }
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 21 / 9; }

.figure__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(10, 11, 14, .82);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   12. 数据表与面包屑
   --------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table caption {
  padding-bottom: 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table td { color: var(--text); }
.data-table tbody tr { transition: background .18s var(--ease); }
.data-table tbody tr:hover { background: var(--panel); }
.data-table .num {
  font-family: var(--font-mono);
  text-align: right;
  letter-spacing: .04em;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item { display: inline-flex; align-items: center; }
.breadcrumb__item::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumb__item:last-child::after { content: ""; margin-left: 0; }
.breadcrumb__item a { color: var(--muted); }
.breadcrumb__item a:hover { color: var(--orange); }
.breadcrumb__item [aria-current="page"] { color: var(--text); }

/* ---------------------------------------------------------------
   13. 进场显现
   --------------------------------------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ---------------------------------------------------------------
   14. 平板与移动端
   --------------------------------------------------------------- */
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root {
    --rail-w: 0px;
    --topbar-h: 64px;
    --status-h: 40px;
  }

  .rail {
    top: 0;
    bottom: auto;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    padding: 0 66px 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail::after { display: none; }

  .brand { padding: 0; gap: 10px; }
  .brand__mark { width: 36px; height: 36px; font-size: 13px; }
  .brand__tag { display: none; }

  .rail__foot { display: none; }

  .rail__nav {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 18px 16px 32px;
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
  }
  .rail__nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .rail__link {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px 12px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .rail__label { white-space: normal; }

  .rail__actions { margin-top: 22px; }
  .rail__cta { padding: 14px 10px; font-size: 15px; }

  .nav-toggle { display: block; }

  .statusbar { left: 0; }
}

@media (max-width: 520px) {
  :root { --status-h: 36px; }
  .statusbar { font-size: 11px; gap: 10px; }
  .statusbar__ver { display: none; }
  .footer__base-inner { font-size: 11px; }
}

/* ---------------------------------------------------------------
   15. 减少动态
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
