/* ==========================================================================
   K1 SPORTS · CN — shared site kit
   夜场赛事指挥中心 / 深墨绿底 + 荧光青数据线 + 琥珀金关键标记
   ========================================================================== */

:root {
  /* palette */
  --ink-900: #04120F;
  --ink-800: #0A2B24;
  --ink-700: #11443A;
  --cyan: #28F2C2;
  --cyan-soft: #86FFE4;
  --amber: #F4B740;
  --amber-soft: #FFD88A;
  --paper: #F2FBF7;
  --muted: #9DB8AE;
  --line: #2C5B50;
  --alert: #FF8A73;

  /* type */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", SFMono-Regular, Consolas, monospace;

  /* metrics */
  --rail-w: 232px;
  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .005em;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(40, 242, 194, .10), transparent 64%),
    radial-gradient(900px 540px at 4% 6%, rgba(17, 68, 58, .58), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

/* ---------- typography ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--paper);
}
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 23px); font-weight: 700; letter-spacing: -.02em; }
h4 { font-size: clamp(17px, 1.8vw, 19px); font-weight: 700; }

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

strong { font-weight: 700; color: var(--paper); }

/* ---------- utilities ---------- */
.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.page-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: none;
  background: var(--cyan);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--cyan-soft);
  background: rgba(40, 242, 194, .08);
}
.tag--amber {
  color: #3A2600;
  background: var(--amber);
  border-color: var(--amber);
}
.tag--paper {
  color: var(--paper);
  background: rgba(242, 251, 247, .10);
  border-color: var(--line);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(44, 91, 80, .05));
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 68, 58, .60), rgba(10, 43, 36, .82));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), transform .15s var(--ease);
}
.btn:hover { border-bottom-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

.btn-amber {
  color: var(--ink-900);
  background: var(--amber);
  border-color: var(--amber);
}
.btn-amber:hover {
  color: var(--ink-900);
  background: var(--amber-soft);
  box-shadow: 0 10px 26px -14px rgba(244, 183, 64, .95);
}

.btn-ghost {
  color: var(--cyan-soft);
  background: rgba(40, 242, 194, .04);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(40, 242, 194, .10);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--amber);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  color: var(--ink-900);
  transform: translateY(0);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(40, 242, 194, .12);
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform .12s linear;
}

/* ==========================================================================
   HEADER — 左侧窄轨（桌面） / 顶部条 + 抽屉（移动）
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(168deg, #0C332A 0%, #08241D 46%, #04120F 100%);
  background-repeat: no-repeat;
  scrollbar-width: thin;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--cyan) 16%,
    rgba(40, 242, 194, .25) 42%,
    transparent 56%,
    rgba(244, 183, 64, .55) 88%,
    transparent 100%);
  opacity: .8;
}

.rail-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  width: 100%;
}

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink-900);
  background: linear-gradient(140deg, var(--cyan) 0%, var(--cyan-soft) 56%, var(--amber) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-mark--lg {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--paper);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

/* mobile-only compact CTA */
.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 2px;
  background: var(--amber);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.header-cta:hover { background: var(--amber-soft); color: var(--ink-900); }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(17, 68, 58, .62);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(40, 242, 194, .10);
}
.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink-900);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
  flex: none;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* navigation */
.site-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.nav-title {
  margin: 18px 20px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .85;
  line-height: 1.4;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 18px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-list a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: currentColor;
  opacity: .5;
  transition: width .18s var(--ease), opacity .18s var(--ease), background-color .18s var(--ease);
}
.nav-list a:hover {
  color: var(--paper);
  background: rgba(40, 242, 194, .07);
  border-left-color: rgba(40, 242, 194, .55);
}
.nav-list a:hover::before { width: 20px; opacity: 1; color: var(--cyan); }

.nav-list a[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(40, 242, 194, .16), rgba(40, 242, 194, 0) 78%);
}
.nav-list a[aria-current="page"]::before {
  width: 20px;
  opacity: 1;
  background: var(--cyan);
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 18px 0;
  border-top: 1px solid var(--line);
}
.nav-actions .btn { width: 100%; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10, 43, 36, .55) 0%, rgba(4, 18, 15, 1) 78%),
    repeating-linear-gradient(90deg, rgba(40, 242, 194, .07) 0 1px, transparent 1px 72px);
  color: var(--muted);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--cyan) 0%,
    rgba(40, 242, 194, 0) 38%,
    rgba(244, 183, 64, .85) 76%,
    var(--amber) 100%);
  opacity: .9;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(38px, 6vw, 74px) var(--gutter) 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1.3fr);
  gap: clamp(24px, 3.6vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: var(--paper);
}
.footer-summary {
  margin: 0;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--cyan);
}

.footer-list li + li { margin-top: 9px; }
.footer-list a {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-list a:hover {
  color: var(--paper);
  border-bottom-color: var(--cyan);
}

.footer-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.footer-meta li + li { margin-top: 12px; }
.footer-meta span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-hours {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-left: 12px;
  border-left: 2px solid rgba(244, 183, 64, .62);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.7;
  color: var(--muted);
}
.footer-base p { margin: 0; }
.footer-copy { color: var(--paper); }
.footer-icp { color: var(--muted); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}
.footer-legal a { color: var(--muted); border-bottom: 1px solid transparent; }
.footer-legal a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ==========================================================================
   SHARED CONTENT COMPONENTS
   ========================================================================== */
.breadcrumb {
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--line);
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

/* image container base — 供页面阶段放置图片占位 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 130% at 18% 0%, #11443A 0%, #0A2B24 42%, #04120F 78%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.06) brightness(.94);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 18, 15, 0) 42%, rgba(4, 18, 15, .88) 100%);
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--band { aspect-ratio: 21 / 9; }
.media-frame--plain::after { display: none; }

/* accessible tabs / segmented switch */
.seg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 43, 36, .55);
  overflow: hidden;
}
.seg-list {
  display: flex;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 18, 15, .5);
  scrollbar-width: thin;
}
.seg-btn {
  appearance: none;
  flex: none;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.seg-btn:hover {
  color: var(--paper);
  background: rgba(40, 242, 194, .10);
}
.seg-btn[aria-selected="true"] {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
}
.seg-panel { padding: clamp(16px, 2.4vw, 24px); }
.seg-panel[hidden] { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1025px) {
  body { padding-left: var(--rail-w); }

  .site-nav { flex: 1 1 auto; }
  .nav-actions { margin-top: auto; }
}

@media (min-width: 820px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 76px; }

  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #0C332A 0%, #04120F 100%);
  }
  .site-header::after { display: none; }

  .rail-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 10px 14px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    gap: 9px;
  }
  .brand-mark { width: 32px; height: 32px; font-size: 11.5px; }
  .brand-name { font-size: 14px; }
  .brand-line { font-size: 8.5px; letter-spacing: .14em; }

  .header-cta { display: inline-flex; flex: none; }
  .nav-toggle { display: inline-flex; flex: none; position: relative; z-index: 220; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 210;
    width: min(340px, 86vw);
    padding: 76px 0 26px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: linear-gradient(180deg, #0C332A 0%, #04120F 100%);
    box-shadow: -26px 0 64px -30px #000;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .24s var(--ease), visibility .24s linear;
  }
  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform .24s var(--ease), visibility 0s;
  }

  .nav-title { margin: 0 20px 10px; }
  .nav-list a { padding: 14px 22px 14px 20px; font-size: 16px; }
  .nav-actions { margin-top: 20px; padding: 18px 22px 0; }
}

@media (max-width: 980px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-legal { margin-left: 0; width: 100%; }
  .footer-base { font-size: 11.5px; }

  .nav-toggle__text { display: none; }
}

html.nav-open { overflow: hidden; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-progress__bar { transition: none; }
}
