/* ==========================================================================
   乐竞体育 · /assets/site.css
   共享骨架：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #070B0F;
  color: #A9B6C2;
  font-family: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-nav-lock] { overflow: hidden; }

h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button { font: inherit; color: inherit; }

a {
  color: #5AA9FF;
  text-decoration: none;
  transition: color .16s cubic-bezier(.2, .7, .2, 1);
}
a:hover { color: #4CFF8F; }

::selection { background: #4CFF8F; color: #04150A; }

:focus-visible {
  outline: 2px solid #4CFF8F;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 变量 ---------- */
:root {
  --ink: #070B0F;
  --panel: #10161D;
  --panel-2: #16202A;
  --line: #2A3541;
  --text: #A9B6C2;
  --white: #F2F6F8;
  --neon: #4CFF8F;
  --neon-deep: #1FA85C;
  --hot: #FF5A3C;
  --blue: #5AA9FF;
  --amber: #FFC24B;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(14px, 1.6vw, 24px);
  --radius: 4px;
  --hair: 1px solid var(--line);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 34px -26px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 中文排版基础 ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--white);
  line-height: 1.14;
  letter-spacing: .005em;
}

.display { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.06; letter-spacing: -.01em; }
.display--sm { font-size: clamp(28px, 3.6vw, 46px); }
.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; color: #C6D2DC; max-width: 62ch; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--neon);
  text-transform: uppercase;
}

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

/* ---------- 容器与骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.rule-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 clamp(16px, 2vw, 26px);
}
.rule-title h2 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); }
.rule-title::after {
  content: "";
  flex: 1 1 60px;
  min-width: 40px;
  height: 1px;
  background: var(--line);
  align-self: center;
}
.rule-title__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  letter-spacing: .04em;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  background: var(--neon);
  color: #04150A;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 2px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #04150A; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: var(--hair);
}

.brandbar {
  height: 44px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: var(--hair);
  transition: height .32s var(--ease), background .32s var(--ease);
}
.brandbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity .18s var(--ease), transform .32s var(--ease);
}
.brandbar__mark {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(76, 255, 143, .7);
}
.brandbar__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--white);
}
.brandbar__tag {
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: .02em;
}
.brandbar__spacer { flex: 1 1 auto; }
.brandbar__mail {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  letter-spacing: -.01em;
}

.site-header.is-condensed .brandbar {
  height: 2px;
  background: var(--neon);
  border-bottom-color: transparent;
}
.site-header.is-condensed .brandbar__inner {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 194, 75, .34);
  background: rgba(255, 194, 75, .07);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--amber);
  white-space: nowrap;
}
.live-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot);
  animation: lj-pulse 1.8s ease-in-out infinite;
}
@keyframes lj-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}

.totop-btn {
  background: transparent;
  border: var(--hair);
  border-radius: 2px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.totop-btn:hover { border-color: var(--neon); color: var(--neon); }

/* 主栏目条 */
.mainnav { border-bottom: 0; }
.mainnav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 12px);
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text);
  transition: color .16s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-meta { display: none; }
.nav-meta__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: .04em;
}
.nav-meta__line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: -.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 14px;
  background: transparent;
  border: var(--hair);
  border-radius: 2px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 9px;
  display: inline-block;
}
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle__bars i:first-child { top: 1px; }
.nav-toggle__bars i:last-child { top: 6px; }
[data-nav][data-open] .nav-toggle__bars i:first-child { transform: translateY(2.5px) rotate(45deg); }
[data-nav][data-open] .nav-toggle__bars i:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* 滚动进度 */
.scroll-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-line__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-deep), var(--neon));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 浮动返回顶部 */
.totop {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 55;
  padding: 11px 17px;
  background: rgba(16, 22, 29, .94);
  border: var(--hair);
  border-radius: 2px;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s, border-color .16s var(--ease), color .16s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--neon); color: var(--neon); }

/* ---------- 按钮 ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  background: var(--neon);
  border: 1px solid var(--neon);
  border-radius: 2px;
  color: #04150A;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.cta:hover {
  background: var(--neon-deep);
  border-color: var(--neon-deep);
  color: #04150A;
  transform: translateY(-2px);
}
.cta--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.cta--ghost:hover {
  background: rgba(76, 255, 143, .07);
  border-color: var(--neon);
  color: var(--neon);
}

/* ---------- 网格与模块 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.tile {
  position: relative;
  background: var(--panel);
  border: var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 26px);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--neon);
}
.tile--focus {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-left: 3px solid var(--neon);
}
.tile--index {
  background: transparent;
  padding: clamp(14px, 1.5vw, 18px);
}
.tile__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--neon);
  margin-bottom: 10px;
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  background: var(--panel);
  border: var(--hair);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius);
  font-size: 14px;
}

/* ---------- 数据块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--white);
}
.stat__num--neon { color: var(--neon); }
.stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: var(--hair);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text);
  white-space: nowrap;
}
.tag--hot { color: var(--hot); border-color: rgba(255, 90, 60, .42); background: rgba(255, 90, 60, .08); }
.tag--live { color: var(--neon); border-color: rgba(76, 255, 143, .4); background: rgba(76, 255, 143, .07); }
.tag--blue { color: var(--blue); border-color: rgba(90, 169, 255, .36); }
.tag--amber { color: var(--amber); border-color: rgba(255, 194, 75, .36); }

/* ---------- 图文容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--panel-2);
  border: var(--hair);
  border-radius: var(--radius);
}
.media-frame > img,
.media-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--duotone > img {
  filter: grayscale(1) contrast(1.08) brightness(.72);
}
.media-frame--duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(190deg, rgba(76, 255, 143, .16), rgba(7, 11, 15, .62) 60%, rgba(7, 11, 15, .94));
  mix-blend-mode: screen;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--text);
}
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--neon); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 目录与旁注 ---------- */
.toc {
  position: sticky;
  top: 108px;
  padding: 16px 16px 18px;
  background: var(--panel);
  border: var(--hair);
  border-radius: var(--radius);
}
.toc__title {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--neon);
}
.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc__link {
  display: block;
  padding: 7px 10px 7px 13px;
  border-left: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.toc__link:hover { color: var(--white); border-left-color: var(--neon-deep); }
.toc__link.is-current {
  color: var(--white);
  border-left-color: var(--neon);
  background: linear-gradient(90deg, rgba(76, 255, 143, .1), transparent);
}

.note {
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
}
.note--hot { border-left-color: var(--hot); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16.5px;
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 2.2em 0 .6em;
}
.prose h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 1.8em 0 .5em;
}
.prose p { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--white); font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--neon);
  background: var(--panel);
  color: var(--white);
}

/* ---------- 表格 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: var(--hair);
  font-size: 14.5px;
}
.table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text);
}
.table th {
  padding: 12px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
.table tbody tr:nth-child(even) { background: var(--panel-2); }
.table tbody tr:hover { background: #1A242F; }
.table td .mono { color: var(--white); font-size: 15px; }

/* ---------- 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: var(--hair);
  background: linear-gradient(180deg, var(--ink), #060A0D);
}

.footer-grid {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--pad) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.5fr 1fr;
  gap: clamp(20px, 3vw, 44px);
}

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

.footer-brand {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--white);
}
.footer-note {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

.footer-title {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--neon);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.footer-list a { color: var(--text); }
.footer-list a:hover { color: var(--neon); }

.footer-list--contact { gap: 12px; }
.footer-list--contact li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  color: var(--white);
}
.footer-k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--text);
  opacity: .75;
}

.footer-tip {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: var(--hair);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text);
}

.footer-icp {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: -.01em;
  color: var(--text);
}
.footer-year {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: #7A8896;
}

.footer-base { border-top: var(--hair); }
.footer-base__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: #7A8896;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .brandbar__tag { display: none; }
}

@media (max-width: 1024px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    margin: 0;
    padding: 92px 22px 32px;
    background: var(--panel);
    border-left: var(--hair);
    box-shadow: -34px 0 70px -30px rgba(0, 0, 0, .96);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    z-index: 90;
    transform: translateX(103%);
    transition: transform .3s var(--ease);
  }
  [data-nav][data-open] .nav-list { transform: none; }

  .nav-link {
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: var(--hair);
  }
  .nav-link::after {
    left: 4px;
    right: auto;
    width: 22px;
    bottom: 6px;
  }

  .nav-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: var(--hair);
  }

  .brandbar__mail { display: none; }

  .col-9, .col-8, .col-6 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .col-3 { grid-column: span 6; }
  .col-2 { grid-column: span 4; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  .brandbar__name { font-size: 13.5px; }
  .brandbar__inner { gap: 10px; }
  .totop-btn { padding: 3px 9px; font-size: 11.5px; }

  .mainnav__inner { height: 58px; }

  .col-4, .col-3, .col-2 { grid-column: span 12; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-base__inner { flex-direction: column; gap: 6px; }
  .footer-brand { font-size: 21px; }
}

/* ---------- 可访问性与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
