/* ============================================================
   新世纪体育中文站 · 共享样式 /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,
p, figure, blockquote, dl, dd { margin: 0; }

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

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

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #04121F;
  --ink-850: #051A2C;
  --ink-800: #072A44;
  --ink-700: #0E4A6B;
  --line: #17394E;

  --cyan: #35F2E3;
  --teal: #00B8A9;
  --orange: #FF6A2A;
  --yellow: #FFC857;
  --white: #F4FAFD;
  --mist: #A8C4D6;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  --shell: 1240px;
  --gutter: 24px;
  --bevel: 18px;
  --skew: -9deg;
  --radius: 14px;
  --dur: 180ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(1200px 620px at 12% -12%, rgba(14, 74, 107, .55), transparent 62%),
    radial-gradient(900px 520px at 92% -4%, rgba(0, 184, 169, .16), transparent 66%),
    var(--ink-900);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

/* 控制台式网格叠层，仅在首屏附近显形 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(53, 242, 227, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 242, 227, .05) 1px, transparent 1px);
  background-size: 82px 82px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

main,
.site-header,
.site-footer { position: relative; z-index: 1; }

#main-content { display: block; scroll-margin-top: 20px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .015em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 4.25rem); line-height: .98; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.35; }

strong { font-weight: 800; color: var(--white); }

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

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(30px, 5vw, 56px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3.4vw, 40px);
}

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

/* ---------- 5. 文本单元 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  transform: skewX(var(--skew));
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.8;
  color: var(--mist);
}

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose p { line-height: 1.85; }
.prose h2, .prose h3 { margin-top: 1.9em; }
.prose a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose li { margin-top: .5em; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: -4px; }

.btn--primary { background: var(--orange); color: #1A0700; }
.btn--primary:hover { background: var(--yellow); }

.btn--ghost {
  border-color: rgba(53, 242, 227, .45);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(53, 242, 227, .13); border-color: var(--cyan); }

.btn--quiet { background: rgba(14, 74, 107, .6); color: var(--white); }
.btn--quiet:hover { background: var(--ink-700); }

/* ---------- 7. 面板 / 标签 / 图片容器 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  background: linear-gradient(158deg, rgba(14, 74, 107, .62), rgba(4, 18, 31, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--cyan);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.tag--orange { background: var(--orange); color: #1A0700; }

.tag--ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(53, 242, 227, .45);
  clip-path: none;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(14, 74, 107, .92), rgba(4, 18, 31, .96)),
    repeating-linear-gradient(90deg, rgba(53, 242, 227, .08) 0 1px, transparent 1px 40px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bevel)), calc(100% - var(--bevel)) 100%, 0 100%);
}

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

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

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
  font-size: 13px;
  color: var(--mist);
}

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

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

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

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

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

/* ---------- 9. 头部 ---------- */
.site-header {
  background: linear-gradient(180deg, #04121F 0%, #072A44 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .95);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(53, 242, 227, .07) 1px, transparent 1px);
  background-size: 74px 100%;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  z-index: 90;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 800;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: 2px;
}

/* 顶部控制条 */
.header-rail {
  position: relative;
  background: linear-gradient(90deg, rgba(255, 106, 42, .18), rgba(4, 18, 31, 0) 58%);
  border-bottom: 1px solid rgba(23, 57, 78, .9);
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px var(--gutter);
}

.rail-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}

.rail-tag__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 200, 87, .18);
  animation: railPulse 2.6s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.rail-note {
  margin: 0;
  font-size: 13px;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rail__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-rail__actions .btn { min-height: 36px; padding: 7px 16px; }

/* 居中报头 */
.masthead {
  position: relative;
  padding: 20px var(--gutter) 16px;
  text-align: center;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 10px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

.masthead__brand:hover { transform: translateY(-1px); }

.masthead__mark {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--teal) 52%, var(--orange) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.masthead__mark::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--ink-900);
  box-shadow: 0 6px 0 var(--ink-900), 0 12px 0 var(--ink-900);
  transform: skewX(-24deg);
}

.masthead__text { display: block; text-align: left; }

.masthead__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: .08em;
  color: var(--white);
}

.masthead__sub {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--teal);
}

/* 斜切标签导航 */
.primary-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(4, 18, 31, .55);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px var(--gutter);
  background: rgba(14, 74, 107, .55);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  cursor: pointer;
}

.nav-toggle:hover { background: var(--ink-700); }
.nav-toggle:focus-visible { outline-offset: -3px; }

.nav-toggle__bars {
  display: inline-block;
  width: 20px;
  height: 13px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 100% 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom / 100% 2px no-repeat;
}

.nav-toggle__label { display: inline-block; }

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list li { flex: none; }

.nav-list a {
  display: block;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mist);
  text-decoration: none;
  border: 1px solid transparent;
  transform: skewX(var(--skew));
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.nav-list a > span { display: inline-block; transform: skewX(9deg); }

.nav-list a:hover {
  color: var(--white);
  background: rgba(14, 74, 107, .72);
}

.nav-list a:focus-visible { outline-offset: -3px; }

.nav-list a[aria-current="page"] {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--teal) 100%);
  border-color: var(--cyan);
  color: var(--ink-900);
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  margin-top: 72px;
  color: var(--mist);
  background: linear-gradient(180deg, #04121F 0%, #072A44 62%, #051A2C 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--cyan) 0%,
    var(--teal) 34%,
    var(--orange) 68%,
    var(--yellow) 100%);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 58px var(--gutter) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 40px 48px;
}

.footer-brand__name {
  display: inline-block;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .09em;
  color: var(--white);
  border-bottom: 3px solid var(--orange);
}

.footer-brand__desc {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist);
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}

.footer-list { display: grid; gap: 10px; }

.footer-list a {
  font-size: 15px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 227, .5);
}

.footer-col--contact .footer-list { gap: 12px; }

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 14px;
}

.footer-line__k {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--teal);
}

.footer-line__v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--white);
  word-break: break-all;
}

.footer-line__v--text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--mist);
  word-break: normal;
}

.footer-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(168, 196, 214, .78);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: rgba(168, 196, 214, .82);
}

.footer-base__copy { margin: 0; }

.footer-base__legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.footer-base__links a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-base__links a:hover { color: var(--cyan); }

/* ---------- 11. JS 注入组件 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
  background: rgba(4, 18, 31, .6);
}

.scroll-progress__fill {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--teal) 48%, var(--orange) 100%);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink-900);
  background: var(--cyan);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 12px 28px -14px rgba(53, 242, 227, .85);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--yellow); }
.to-top:focus-visible { outline-offset: -4px; }

.to-top__label { display: inline-block; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__desc { max-width: 52ch; }
}

@media (max-width: 900px) {
  :root { --gutter: 18px; }

  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px 16px 16px;
    overflow: visible;
  }

  .primary-nav[data-open] .nav-list { display: flex; }

  .nav-list a {
    padding: 13px 16px;
    text-align: center;
    transform: none;
    border-color: rgba(23, 57, 78, .9);
  }

  .nav-list a > span { transform: none; }

  .masthead { padding: 16px var(--gutter) 14px; }
  .masthead__brand { gap: 12px; }
  .masthead__mark { width: 40px; height: 40px; }
  .masthead__sub { letter-spacing: .18em; }

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

@media (max-width: 720px) {
  body { font-size: 16px; }

  .rail-note { display: none; }
  .header-rail__inner { gap: 10px; padding-block: 8px; }
  .header-rail__actions .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }

  .masthead__name { letter-spacing: .05em; }
  .masthead__sub { font-size: 10px; letter-spacing: .14em; }

  .footer-shell { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-base__links { margin-left: 0; }

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

  .to-top { right: 12px; bottom: 16px; padding: 9px 13px; }
}

/* ---------- 13. 动效降级 ---------- */
@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;
  }

  .rail-tag__dot { animation: none; opacity: 1; }
  .btn:hover,
  .masthead__brand:hover { transform: none; }
}
