/* =========================================================
   乐竞体育主站 · 共享样式 /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, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0B1220;
  --ink-deep: #070D16;
  --lake: #0F6F7F;
  --panel: #17253A;
  --pale: #CFE9EA;
  --lava: #FF6B35;
  --volt: #C7F464;
  --home: #5CC8D7;
  --away: #F2A65A;
  --text: #F7FBFB;
  --muted: #8FA3B0;

  --line: rgba(207, 233, 234, 0.14);
  --line-soft: rgba(207, 233, 234, 0.075);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-offset: 128px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 0.72, 0.28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 600px at 84% -10%, rgba(15, 111, 127, 0.55) 0%, rgba(15, 111, 127, 0) 62%),
    radial-gradient(900px 520px at 2% 6%, rgba(255, 107, 53, 0.12) 0%, rgba(255, 107, 53, 0) 58%),
    radial-gradient(820px 700px at 100% 78%, rgba(92, 200, 215, 0.10) 0%, rgba(92, 200, 215, 0) 66%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

strong, b { font-weight: 700; }

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

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

[id],
[data-section] { scroll-margin-top: var(--header-offset); }

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

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

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

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.btn--signal {
  background: var(--lava);
  color: var(--ink-deep);
  box-shadow: 0 12px 28px -16px rgba(255, 107, 53, 0.95);
}
.btn--signal:hover { background: #ff8459; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--pale);
  border-color: rgba(207, 233, 234, 0.34);
}
.btn--ghost:hover {
  background: rgba(15, 111, 127, 0.4);
  border-color: var(--home);
  color: var(--text);
}

.btn--lake {
  background: var(--lake);
  color: var(--text);
  box-shadow: 0 12px 28px -18px rgba(15, 111, 127, 0.95);
}
.btn--lake:hover { background: #12879a; transform: translateY(-1px); }

.btn--volt {
  background: var(--volt);
  color: var(--ink-deep);
}
.btn--volt:hover { background: #d6ff7c; transform: translateY(-1px); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- 6. 站点页头 ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 120;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--volt);
  color: var(--ink-deep);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-220%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 18, 32, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 46px -36px #000;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.header-progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(207, 233, 234, 0.08);
  overflow: hidden;
}
.header-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--home) 0%, var(--volt) 55%, var(--lava) 100%);
  transition: width 0.12s linear;
}

/* 页头上层：品牌 + 联络提示 */
.header-upper {
  background:
    linear-gradient(90deg,
      rgba(15, 111, 127, 0.42) 0%,
      rgba(15, 111, 127, 0.08) 52%,
      rgba(255, 107, 53, 0.12) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.header-upper__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding-block: 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  height: 26px;
  flex: none;
}
.brand__mark i {
  display: block;
  border-radius: 2px;
  background: var(--home);
}
.brand__mark i:nth-child(1) { height: 11px; background: var(--lake); }
.brand__mark i:nth-child(2) { height: 18px; background: var(--home); }
.brand__mark i:nth-child(3) { height: 26px; background: var(--volt); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}
.brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand__line {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--pale);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home);
  flex: none;
}
.dot--live {
  background: var(--volt);
  box-shadow: 0 0 0 0 rgba(199, 244, 100, 0.55);
  animation: dotPulse 2.6s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(199, 244, 100, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(199, 244, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 244, 100, 0); }
}

/* 页头下层：栏目滑轨 */
.header-lower { position: relative; }
.header-lower__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.site-nav__item { flex: none; }

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--pale);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.site-nav__link:hover {
  background: rgba(15, 111, 127, 0.48);
  color: var(--text);
}
.site-nav__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: rgba(143, 163, 176, 0.9);
  transition: color 0.2s var(--ease-out);
}
.site-nav__link[aria-current="page"] {
  background: rgba(15, 111, 127, 0.88);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(92, 200, 215, 0.5);
}
.site-nav__link[aria-current="page"] .site-nav__num { color: var(--volt); }

.header-cta { flex: none; }

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(207, 233, 234, 0.26);
  border-radius: var(--radius-pill);
  color: var(--pale);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nav-toggle:hover { background: rgba(15, 111, 127, 0.4); border-color: var(--home); }

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

/* ---------- 7. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: clamp(44px, 6vw, 76px);
  background:
    radial-gradient(760px 320px at 10% 0%, rgba(15, 111, 127, 0.45) 0%, rgba(15, 111, 127, 0) 72%),
    linear-gradient(180deg, #0E1A2B 0%, #0A101C 72%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-rail {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  height: 92px;
  background: linear-gradient(90deg,
    rgba(255, 107, 53, 0.55) 0%,
    rgba(199, 244, 100, 0.32) 42%,
    rgba(92, 200, 215, 0.48) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 9%, 0 100%);
  opacity: 0.5;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 4vw, 54px);
  grid-template-columns: 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 42ch;
}
.footer-brand__link {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.footer-brand__link:hover { color: var(--pale); border-color: var(--lava); }

.footer-brand__summary {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.footer-brand__cta { margin-top: 4px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.footer-col__title {
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--home);
}
.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--pale);
  transition: color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.footer-link:hover {
  color: var(--volt);
  transform: translateX(3px);
}

.footer-contact {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(23, 37, 58, 0.42);
}
.footer-contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(20px, 3vw, 40px);
  padding-block: 22px;
}
.footer-contact__item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14.5px;
  min-width: 0;
}
.footer-contact__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--home);
}
.footer-contact__value {
  color: var(--pale);
  word-break: break-word;
}
.footer-contact__cta { margin-left: auto; }

.footer-base {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 3vw, 34px);
  padding-bottom: 26px;
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-base__meta {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
[data-year]:empty::before { content: "—"; }

/* ---------- 8. 通用内容组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--home);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lava), var(--volt));
  flex: none;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.section-head__title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.section-head__lead {
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.panel {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(23, 37, 58, 0.95) 0%, rgba(11, 18, 32, 0.92) 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.badge--home {
  background: rgba(92, 200, 215, 0.16);
  color: var(--home);
  box-shadow: inset 0 0 0 1px rgba(92, 200, 215, 0.42);
}
.badge--away {
  background: rgba(242, 166, 90, 0.16);
  color: var(--away);
  box-shadow: inset 0 0 0 1px rgba(242, 166, 90, 0.44);
}
.badge--live {
  background: var(--volt);
  color: var(--ink-deep);
}

.axis {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 200, 215, 0.55) transparent;
}
.axis::-webkit-scrollbar { height: 6px; }
.axis::-webkit-scrollbar-thumb {
  background: rgba(92, 200, 215, 0.5);
  border-radius: var(--radius-pill);
}
.axis__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(23, 37, 58, 0.78);
  font-size: 14px;
  font-weight: 600;
  color: var(--pale);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.axis__link:hover {
  background: rgba(15, 111, 127, 0.62);
  border-color: rgba(92, 200, 215, 0.45);
}
.axis__link[aria-current] {
  background: var(--lava);
  border-color: transparent;
  color: var(--ink-deep);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.crumbs a {
  color: var(--pale);
  transition: color 0.18s var(--ease-out);
}
.crumbs a:hover { color: var(--volt); }
.crumbs__sep { color: rgba(143, 163, 176, 0.55); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.88;
  color: rgba(247, 251, 251, 0.9);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--text);
}
.prose h3 {
  margin-top: 1.5em;
  font-size: 19px;
  color: var(--pale);
}
.prose a {
  color: var(--home);
  border-bottom: 1px solid rgba(92, 200, 215, 0.45);
}
.prose a:hover { color: var(--volt); border-color: var(--volt); }
.prose ul { padding-left: 1.15em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }

/* 图片容器基础规则：页面阶段放入 <img> 或保持占位渐变 */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(15, 111, 127, 0.55) 0%, rgba(23, 37, 58, 0.92) 58%, rgba(11, 18, 32, 0.96) 100%);
  isolation: isolate;
}
.media > img,
.media > svg,
.media > picture,
.media > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0) 46%);
  pointer-events: none;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media--band { aspect-ratio: 21 / 9; }

.media__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, 0.82);
  color: var(--pale);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* ---------- 9. 进入视口显现 ---------- */
html.reveal-init [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
html.reveal-init [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (min-width: 860px) {
  .footer__inner {
    grid-template-columns: minmax(250px, 1fr) minmax(0, 1.45fr);
    align-items: start;
  }
}

@media (max-width: 899px) {
  .header-note { display: none; }

  .header-lower__inner {
    justify-content: space-between;
    min-height: 58px;
    gap: 12px;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: linear-gradient(180deg, #0C1626 0%, #0B1220 86%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 52px -32px #000;
  }
  .site-nav[data-open] {
    display: block;
    animation: navDrop 0.22s var(--ease-out) both;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav__link {
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .site-nav__link[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(92, 200, 215, 0.5), inset 4px 0 0 0 var(--volt);
  }

  .footer-contact__cta { margin-left: 0; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

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

  .brand__line { letter-spacing: 0.1em; font-size: 11px; }
  .brand__name { font-size: 16px; }

  .header-cta { padding: 10px 16px; font-size: 14px; }

  .footer-brand { max-width: none; }
  .footer-contact__inner { padding-block: 18px; }
  .footer-base__inner { justify-content: flex-start; gap: 6px 18px; }
  .footer-base { padding-bottom: 22px; }

  .section-head { gap: 10px; }
  .axis__link { padding: 7px 13px; font-size: 13px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
}

/* ---------- 11. 降低动效偏好 ---------- */
@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;
  }

  html.reveal-init [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .dot--live { animation: none; }
  .footer-link:hover { transform: none; }
  .btn:hover { transform: none; }
}
