/* ==========================================================================
   乐竞体育站 · 城市看台坐标 — 共享基础样式 /assets/site.css
   夜战墨绿底 + 荧光橙红强调 + 电光蓝青数据层 + 纸张叠层
   ========================================================================== */

:root {
  --ink: #061A14;
  --ink-2: #0E1110;
  --ink-3: #040C09;
  --white: #F2F7F4;
  --flame: #FF5A36;
  --blue: #29B6FF;
  --cyan: #24E0B8;
  --red: #E23D4F;
  --yellow: #F4C542;
  --muted: #8D9A94;
  --paper: #E8E0D1;

  --line: rgba(141, 154, 148, .26);
  --line-strong: rgba(141, 154, 148, .46);

  --font-head: 'Archivo Black', 'Arial Narrow', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shell: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink);
  background-image: linear-gradient(157deg, #061A14 0%, #07130F 42%, #0E1110 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }

button { font: inherit; }

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

::selection {
  background: rgba(255, 90, 54, .85);
  color: #140503;
}

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.62rem); letter-spacing: -.012em; }
h4 { font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

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

code, kbd, samp, .mono { font-family: var(--font-mono); }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: clamp(24px, 4vw, 44px) 0;
}

.prose { max-width: 68ch; }
.prose p { max-width: 68ch; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 容器与主区域 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

main { display: block; padding-top: clamp(18px, 3vw, 38px); }

#main-content { scroll-margin-top: 132px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 999;
  padding: .62rem 1.05rem;
  background: var(--flame);
  color: #140503;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: #140503;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: .72em 1.15em;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease),
              color .18s var(--ease),
              border-color .18s var(--ease),
              transform .18s var(--ease);
}

.btn--flame {
  background: var(--flame);
  border-color: var(--flame);
  color: #180703;
}

.btn--flame:hover,
.btn--flame:focus-visible {
  background: #FF7A5B;
  border-color: #FF7A5B;
  color: #180703;
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(36, 224, 184, .08);
}

.btn--sm {
  padding: .5em .85em;
  font-size: .78rem;
}

.btn--block { width: 100%; }

/* ==========================================================================
   头部命令栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg,
    rgba(6, 26, 20, .97) 0%,
    rgba(8, 21, 17, .96) 55%,
    rgba(14, 17, 16, .97) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.header-brandbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-height: 64px;
  padding-block: 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover { color: var(--white); }

.brand__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1;
  color: #0B0503;
  background: linear-gradient(150deg, var(--flame) 0%, #FF8A3D 100%);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: transform .2s var(--ease);
}

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

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--white);
}

.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .63rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.header-hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 0 clamp(2px, 1.4vw, 16px);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(36, 224, 184, .16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-inline-start: auto;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5em .72em;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--flame); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars > span {
  display: block;
  height: 2px;
  background: var(--flame);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars > span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 命令栏导航 */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
  max-height: none;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(6px, 1.7vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .66rem 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-link__num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(141, 154, 148, .72);
  transition: color .18s var(--ease);
}

.nav-link__label { white-space: nowrap; }

.nav-link__state {
  padding: .12rem .38rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1A1300;
  background: var(--yellow);
  border-radius: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2px;
  width: 0;
  background: var(--flame);
  transition: width .2s var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-link:hover .nav-link__num { color: var(--cyan); }

.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] .nav-link__num { color: var(--flame); }

/* 阅读进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(41, 182, 255, .12);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 58%, var(--flame) 100%);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(44px, 7vw, 88px);
  background: var(--ink-2);
  border-top: 1px solid var(--line-strong);
  color: var(--white);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(115deg,
    var(--flame) 0 12px,
    transparent 12px 26px);
  opacity: .5;
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 60px) var(--pad) clamp(20px, 3vw, 30px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.footer-brand__name {
  margin: 0 0 .45rem;
  font-family: var(--font-head);
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  letter-spacing: -.01em;
  color: var(--white);
}

.footer-brand__note {
  margin: 0 0 1.15rem;
  max-width: 34ch;
  font-size: .9rem;
  color: var(--muted);
}

.footer-contact {
  display: grid;
  gap: .42rem;
  margin: 0;
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .8rem;
}

.footer-contact__key {
  flex: 0 0 auto;
  min-width: 4.9em;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--cyan);
}

.footer-contact__val {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: rgba(242, 247, 244, .82);
  word-break: break-word;
}

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

.footer-col__title {
  display: block;
  margin: 0 0 .95rem;
  padding-left: .68rem;
  border-left: 2px solid var(--flame);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.45;
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  display: inline-block;
  color: rgba(242, 247, 244, .78);
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-link:hover {
  color: var(--white);
  border-bottom-color: var(--flame);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
  padding-top: clamp(16px, 2.5vw, 26px);
}

.footer-base__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.15rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--muted);
}

.footer-legal__link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.footer-legal__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.footer-icp { color: rgba(141, 154, 148, .92); }

.footer-copy { color: rgba(242, 247, 244, .56); }

/* ==========================================================================
   通用内容组件
   ========================================================================== */

/* 堆叠面板 */
.panel {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(160deg, rgba(14, 17, 16, .96) 0%, rgba(6, 26, 20, .92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.panel__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--flame);
}

.panel__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: -.015em;
}

.panel__note {
  margin: 0 0 0 auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .55rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--white);
  background: rgba(41, 182, 255, .1);
  border: 1px solid rgba(41, 182, 255, .4);
  border-radius: 2px;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(36, 224, 184, .45);
  background: rgba(36, 224, 184, .08);
}

.tag--flame {
  color: var(--flame);
  border-color: rgba(255, 90, 54, .45);
  background: rgba(255, 90, 54, .08);
}

/* 面包屑 */
.breadcrumb { margin: 0 0 clamp(14px, 2vw, 22px); }

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: .45rem; }

.breadcrumb__link { color: var(--muted); text-decoration: none; }
.breadcrumb__link:hover { color: var(--cyan); }

.breadcrumb__sep { color: rgba(141, 154, 148, .5); }

.breadcrumb__current { color: var(--white); }

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 34px);
}

.grid--aside { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.grid--aside-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 数据表 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: rgba(4, 12, 9, .6);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .86rem;
}

.data-table caption {
  padding: .7rem .9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.data-table th,
.data-table td {
  padding: .62rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0B1512;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan);
}

.data-table tbody tr:nth-child(even) { background: rgba(6, 26, 20, .55); }
.data-table tbody tr:hover { background: rgba(41, 182, 255, .07); }

.data-table td { font-variant-numeric: tabular-nums; }
.data-table .is-num { font-family: var(--font-mono); }

/* 图片容器基础 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background-color: #08130F;
  background-image:
    linear-gradient(rgba(41, 182, 255, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 182, 255, .15) 1px, transparent 1px),
    linear-gradient(158deg, rgba(36, 224, 184, .16) 0%, rgba(41, 182, 255, .08) 46%, rgba(255, 90, 54, .12) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

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

.media-frame--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06) brightness(.82);
}

.media-frame__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .42rem .78rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--white);
  background: rgba(4, 12, 9, .8);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

/* 章节 */
.section { padding-block: clamp(30px, 5vw, 68px); }
.section + .section { border-top: 1px solid var(--line); }

/* 显现动效 */
[data-reveal] {
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

html[data-js="on"] [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .header-hint { display: none; }
  .grid--aside,
  .grid--aside-flip,
  .grid--thirds { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-actions__ghost { display: none; }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s var(--ease);
  }

  .site-nav[data-open="true"] {
    max-height: 76vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
  }

  .nav-item {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    padding: .85rem 0;
    font-size: .95rem;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] { color: var(--flame); }

  .nav-link[aria-current="page"] .nav-link__num { color: var(--flame); }

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

  .footer-brand { grid-column: 1 / -1; }

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

@media (max-width: 620px) {
  .header-brandbar { min-height: 58px; gap: .5rem; }
  .brand__glyph { width: 32px; height: 32px; font-size: .92rem; }
  .brand__name { font-size: .92rem; }
  .brand__sub { font-size: .58rem; letter-spacing: .1em; }
  .header-actions .btn--flame { padding: .48em .66em; font-size: .74rem; }
  .nav-toggle { padding: .45em .58em; font-size: .66rem; letter-spacing: .1em; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__key { min-width: 4.4em; }

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

  .panel__note { margin-inline-start: 0; }
}

@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;
  }

  html[data-js="on"] [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
