/* ==========================================================================
   乐竞体育 · 共享外壳样式表 /assets/site.css
   色彩：竞速红橙 / 深空蓝 / 冷灰白 / 荧光青绿
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --red: #F0441E;
  --red-hi: #FF7A2F;
  --ink: #0C1B33;
  --ink-2: #132A4A;
  --paper: #F3F5F8;
  --line: #C9D1DB;
  --text: #2B3440;
  --signal: #2FE6A6;
  --signal-deep: #0E8F63;
  --muted: #6B7A8C;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --fs-12: 0.75rem;
  --fs-15: 0.9375rem;
  --fs-19: 1.1875rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-38: 2.375rem;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 14px;
  --r-md: 22px;
  --r-pill: 999px;

  --shadow-capsule: 0 18px 44px -30px rgba(12, 27, 51, 0.75);
  --shadow-card: 0 26px 60px -42px rgba(12, 27, 51, 0.85);
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--paper);
  padding-top: 108px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

p { max-width: 68ch; }

::selection {
  background: var(--red);
  color: #fff;
}

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

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}

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

.slice {
  display: block;
  height: 3px;
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hi) 46%, rgba(47, 230, 166, 0.6) 74%, rgba(12, 27, 51, 0) 100%);
  transform: skewY(-0.9deg);
}

/* ---------- 5. 通用文字块 ---------- */
.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
  color: #4A5768;
  max-width: 62ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 22px;
  margin-bottom: 26px;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
}

.section-head__eyebrow::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
  transform: skewX(-24deg);
}

.section-head__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: var(--fs-15);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 28px -18px rgba(240, 68, 30, 0.95);
}

.btn--primary:hover {
  background: var(--red-hi);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(240, 68, 30, 0.1);
  color: var(--red);
}

.tag--signal {
  background: rgba(47, 230, 166, 0.16);
  color: var(--signal-deep);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

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

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

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

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 9. 数据面板 ---------- */
.data-panel {
  background: var(--ink);
  color: #E8EDF3;
  border: 1px solid rgba(201, 209, 219, 0.14);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-card);
}

.data-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 209, 219, 0.16);
}

.data-panel__title {
  font-size: var(--fs-15);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.data-panel__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
  color: var(--signal);
}

.data-panel p { color: #A9B6C5; max-width: 58ch; }

.stat {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat--signal { color: var(--signal); }

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--ink-2) 0%, var(--ink) 100%);
  isolation: isolate;
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-hi), transparent);
  opacity: 0.9;
}

/* ---------- 11. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-15);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 12. 头部浮岛 ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.header-shell {
  max-width: var(--shell);
  margin-inline: auto;
}

.capsule {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(243, 245, 248, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-capsule);
  transition: padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-compact .capsule {
  padding-block: 5px;
  border-color: rgba(201, 209, 219, 0.9);
  box-shadow: 0 20px 48px -34px rgba(12, 27, 51, 0.9);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mark {
  width: 10px;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-hi) 52%, var(--signal) 100%);
  transform: skewX(-13deg);
  flex: none;
}

.brand__word { display: inline-block; }

.brand__sub {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #7A8798;
  align-self: flex-end;
  padding-bottom: 3px;
}

.site-header.is-compact .brand__sub { display: none; }

/* 主导航 */
.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__list--aux { display: none; }

.nav__link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: var(--fs-15);
  font-weight: 600;
  color: #4A5768;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav__link:hover {
  color: var(--ink);
  background: rgba(12, 27, 51, 0.06);
}

.nav__link[aria-current="page"] {
  color: var(--red);
  background: rgba(240, 68, 30, 0.09);
}

.nav__link[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

.nav__cta-item { display: none; }

/* 合并入口 */
.capsule__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  padding: 11px 19px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: var(--fs-15);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 24px -14px rgba(240, 68, 30, 0.95);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.capsule__cta::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(47, 230, 166, 0.24);
  flex: none;
}

.capsule__cta:hover {
  background: var(--red-hi);
  transform: translateY(-1px);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* 阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: block;
  width: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hi) 58%, var(--signal) 100%);
  transition: width 0.12s linear;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  margin-top: 88px;
  padding: 62px 0 26px;
  background: linear-gradient(180deg, #0C1B33 0%, #132A4A 130%);
  color: #C6D0DC;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--red) 0%, var(--red-hi) 38%, var(--signal) 62%, rgba(12, 27, 51, 0) 100%) 1;
}

.footer-shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 44px 34px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.footer-brand::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--signal));
}

.footer-line {
  font-size: var(--fs-15);
  line-height: 1.75;
  color: #9DAAB9;
  max-width: 30ch;
}

.footer-col__title {
  margin-bottom: 16px;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--signal);
}

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

.footer-list a {
  font-size: var(--fs-15);
  color: #B7C3D1;
  transition: color 0.18s ease;
}

.footer-list a:hover { color: var(--red-hi); }

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list__row {
  display: grid;
  gap: 3px;
}

.contact-list dt {
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  color: #7E8C9C;
}

.contact-list dd {
  font-size: var(--fs-15);
  line-height: 1.6;
  color: #D6DEE7;
}

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

.footer-bottom {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin: 46px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 209, 219, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  font-size: 13px;
  color: #8794A3;
}

.footer-meta { max-width: none; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-legal a {
  transition: color 0.18s ease;
}

.footer-legal a:hover { color: var(--red-hi); }

/* ---------- 14. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 28px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(201, 209, 219, 0.28);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 34px -20px rgba(12, 27, 51, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease,
    background-color 0.18s ease;
}

.to-top[data-show] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--red); }

.to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .brand__sub { display: none; }
  .nav__link { padding: 8px 10px; }
}

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

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

  body {
    padding-top: 28px;
    padding-bottom: 108px;
  }

  .grid-12 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .grid-12 > * { grid-column: 1 / -1; }

  .site-header {
    top: auto;
    bottom: 0;
    padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .capsule {
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px 8px 16px;
  }

  .brand { font-size: 18px; }

  .nav {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    left: 0;
    display: none;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 -24px 56px -28px rgba(12, 27, 51, 0.6);
  }

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

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

  .nav__list--aux { display: block; }

  .nav__link {
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: 16px;
  }

  .nav__cta-item {
    display: block;
    margin-top: 8px;
  }

  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 16px;
    border-radius: var(--r-sm);
    background: var(--red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
  }

  .nav__cta:hover { background: var(--red-hi); }

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

  .capsule__cta { display: none; }

  .site-footer {
    margin-top: 56px;
    padding-top: 48px;
  }

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

  .to-top {
    right: 16px;
    bottom: 96px;
  }
}

@media (max-width: 560px) {
  .footer-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand { font-size: 26px; }

  .nav-toggle__text { display: none; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn--primary:hover,
  .capsule__cta:hover { transform: none; }

  .to-top { transform: none; }

  .skip-link { transition: none; }
}
