/* ============================================================
   scoreboard-wei.com.cn · 威体育看台 共享站点样式
   /assets/site.css
   ============================================================ */

:root {
  /* 色彩体系 */
  --pitch-night: #0B1220;
  --stand-blue: #111C2E;
  --glass-blue: #1B2A40;
  --amber: #FFB020;
  --amber-deep: #C97A00;
  --pitch-green: #2FBF71;
  --cyan: #38F2D6;
  --ink: #F4F7FB;
  --ink-muted: #A9B7C9;
  --line: #2A3A52;
  --coral: #FF6B6B;

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-editorial: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* 尺寸 */
  --shell-max: 1240px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 76px;
  --radius: 14px;
  --radius-sm: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background-color: var(--pitch-night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: rgba(255, 176, 32, 0.32); color: #fff; }

/* ---------- 焦点反馈：琥珀外环 + 荧光青内线 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 1px var(--cyan);
  border-radius: 6px;
}

/* ---------- 工具类 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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;
}

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

.grid--rail {
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.stat {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--amber);
  color: #201500;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
              color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn--amber {
  background: linear-gradient(180deg, #FFC44D, var(--amber));
  color: #231700;
  box-shadow: 0 8px 22px -14px rgba(255, 176, 32, 0.95);
}

.btn--amber:hover {
  background: linear-gradient(180deg, #FFD270, #FFBB3A);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(27, 42, 64, 0.62);
  border-color: var(--line);
  color: var(--ink);
}

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

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

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 18, 32, 0.84);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  background:
    linear-gradient(150deg, rgba(255, 176, 32, 0.22), rgba(56, 242, 214, 0.12)),
    var(--stand-blue);
  border: 1px solid rgba(255, 176, 32, 0.55);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-line {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* 中间联赛/状态轨道 */
.header-track {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-track::-webkit-scrollbar { display: none; }

.track-chip {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 42, 64, 0.55);
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.track-chip.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: #231700;
  font-weight: 700;
}

/* 导航 */
.site-nav {
  justify-self: end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-list a:hover {
  color: var(--ink);
  background: rgba(27, 42, 64, 0.75);
  border-color: var(--line);
}

.nav-list a[aria-current="page"] {
  color: var(--amber);
  background: rgba(255, 176, 32, 0.09);
  border-color: rgba(255, 176, 32, 0.38);
}

/* 头部右侧 */
.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(27, 42, 64, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover {
  border-color: var(--amber-deep);
  background: rgba(27, 42, 64, 0.95);
}

.nav-toggle-lines {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-lines i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* 阅读进度脉冲 */
.scroll-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(56, 242, 214, 0.07);
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 58%, var(--cyan) 100%);
  transition: transform 0.09s linear;
  will-change: transform;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 9vw, 128px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(120% 240px at 14% -60px, rgba(47, 191, 113, 0.12), transparent 70%),
    radial-gradient(90% 220px at 88% -80px, rgba(255, 176, 32, 0.12), transparent 72%),
    linear-gradient(180deg, var(--stand-blue) 0%, var(--pitch-night) 88%);
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 56px);
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(26px, 3.4vw, 44px);
}

.footer-lead { min-width: 0; }

.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--ink);
}

.footer-headline::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}

.footer-summary {
  max-width: 42ch;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.footer-contact {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}

.contact-key {
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

.contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}

.contact-val--mail { color: var(--cyan); }

.footer-col { min-width: 0; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink-muted);
  padding-bottom: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 1px;
  transform: rotate(45deg);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.footer-links a:hover { color: var(--ink); }

.footer-links a:hover::before {
  border-color: var(--amber);
  background: var(--amber);
}

.footer-note {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.75;
  opacity: 0.9;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12.5px;
}

.footer-base-item { margin: 0; }

.footer-base-item--icp {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-base-item:last-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pitch-green);
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.16);
  vertical-align: middle;
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

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

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

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.16s ease;
}

.breadcrumbs a:hover { color: var(--amber); }

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

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  background: var(--stand-blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 30px);
}

.panel--glass {
  background: rgba(27, 42, 64, 0.58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(100% 140% at 20% 0%, rgba(56, 242, 214, 0.10), transparent 62%),
    linear-gradient(160deg, rgba(27, 42, 64, 0.95), rgba(11, 18, 32, 0.98));
}

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

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

/* ---------- 滚动显现协议 ---------- */
.is-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ---------- 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header-track { display: none; }
}

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

/* ---------- 响应式：手机 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 10px;
  }

  .brand { grid-column: 1; grid-row: 1; }
  .header-end { grid-column: 2; grid-row: 1; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: none;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-nav[data-open] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    display: block;
    padding: 12px 13px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .brand-line { letter-spacing: 0.1em; }
}

@media (max-width: 620px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 20px;
  }

  .footer-contact li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-name { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
}

/* ---------- 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress i { transition: none; }
}
