/* ============================================================
   /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, ul, ol, dl, dd, figure, blockquote { 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 { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #061A15;
  --panel: #0C2A22;
  --panel-2: #0A241D;
  --line: #17473A;
  --lime: #C6FF4A;
  --lime-soft: #E2FF9C;
  --orange: #FF8A3D;
  --paper: #F2E8D5;
  --paper-ink: #1B1510;
  --muted: #8FA7A0;
  --white: #F4FFF9;

  --shell: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.2vw, 28px);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(32px, 6vw, 64px); }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }
h4 { font-size: 17px; }

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

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. 布局与章节 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(36px, 6vw, 80px); }
.section--tight { padding-block: clamp(22px, 3vw, 38px); }

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.section--paper .section-title { color: var(--paper-ink); }
.section--paper .lede { color: rgba(27, 21, 16, .74); }
.section--paper .eyebrow { color: #5D6B24; }

.section-head {
  display: grid;
  gap: 10px;
  max-width: 70ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.section-title { color: var(--white); }

.lede {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 5. 网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 981px) {
  .grid--split { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
}

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 6. 面板 / 卡片 / 标签 / 数字 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--cut {
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid rgba(27, 21, 16, .16);
}

.panel--paper .lede { color: rgba(27, 21, 16, .74); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(16px, 2vw, 22px);
  transition: border-color .2s ease, background-color .2s ease;
}

.card:hover {
  border-color: rgba(198, 255, 74, .55);
  background: #0E302600;
  background-color: #0E3026;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.35;
}

.card__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(12, 42, 34, .6);
  border: 1px solid var(--line);
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.tag--orange {
  background: transparent;
  border-color: rgba(255, 138, 61, .55);
  color: var(--orange);
}

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

.gradient-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-soft) 30%, var(--orange) 74%, #FF5F2E 100%);
}

.stat { display: grid; gap: 6px; }

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  color: var(--white);
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--lime-soft);
  outline-offset: -4px;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
}

.btn--lime:hover { background: var(--lime-soft); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(198, 255, 74, .7);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
  letter-spacing: .06em;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(143, 167, 160, .55);
}

.breadcrumbs__link {
  color: #B7C9C3;
  transition: color .2s ease;
}

.breadcrumbs__link:hover { color: var(--lime); }

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

/* ---------- 9. 长文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: #DCE9E4;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: clamp(21px, 3vw, 28px);
  margin-top: 2em;
  color: var(--white);
}

.prose h3 {
  font-size: 18px;
  margin-top: 1.6em;
  color: var(--lime-soft);
}

.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul li { list-style: square; }
.prose ol li { list-style: decimal; }
.prose li + li { margin-top: .5em; }

.prose a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  color: var(--muted);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.figure {
  position: relative;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--panel-2);
  background-image: repeating-linear-gradient(135deg, rgba(23, 71, 58, .55) 0 10px, rgba(10, 36, 29, 0) 10px 20px);
}

.figure--wide .figure__img { aspect-ratio: 21 / 9; }
.figure--square .figure__img { aspect-ratio: 1 / 1; }

.figure__cap {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 11. 头部 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #071E18;
  border-bottom: 1px solid var(--line);
}

/* 上层品牌说明条 */
.header-top {
  background: #04120E;
  border-bottom: 1px solid rgba(23, 71, 58, .65);
  font-size: 12px;
}

.header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  min-height: 34px;
  padding-block: 6px;
}

.header-top__brand {
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime-soft);
}

.header-top__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
}

.header-top__live {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, .55); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(255, 138, 61, 0); opacity: .6; }
}

/* 下层主导航条 */
.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
}

.site-nav { margin-left: auto; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.2vw, 16px);
}

.site-nav__item { flex: 0 0 auto; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #A9BEB7;
  transition: color .2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--white); }

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* 移动按钮 */
.nav-toggle {
  position: relative;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  background: rgba(12, 42, 34, .7);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--lime-soft);
  outline-offset: -4px;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transition: transform .24s var(--ease-out), top .24s var(--ease-out), bottom .24s var(--ease-out);
}

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

.nav-toggle__label::after { content: "菜单"; }
.site-header[data-open] .nav-toggle__label::after { content: "关闭"; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  bottom: 4px;
  transform: rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(23, 71, 58, .5);
  z-index: 2;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width .12s linear;
}

/* 侧滑遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(4, 18, 14, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.site-header[data-open] ~ .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* 头部移动断点 */
@media (max-width: 980px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(340px, 88vw);
    margin: 0;
    padding: 108px 22px 32px;
    overflow-y: auto;
    background: var(--panel);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px rgba(0, 0, 0, .45);
    transform: translateX(103%);
    transition: transform .32s var(--ease-out);
  }

  .site-header[data-open] .site-nav { transform: translateX(0); }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: navIndex;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(23, 71, 58, .8);
  }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 15px 4px;
    font-size: 17px;
  }

  .site-nav__link::before {
    counter-increment: navIndex;
    content: counter(navIndex, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--muted);
  }

  .site-nav__link::after { display: none; }

  .site-nav__link[aria-current="page"]::before { color: var(--orange); }
}

html.is-nav-open { overflow: hidden; }

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding-block: clamp(40px, 6vw, 72px) 24px;
  background: #04120E;
  border-top: 1px solid var(--line);
}

.footer-mark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0%, var(--lime-soft) 22%, var(--orange) 58%, rgba(23, 71, 58, .9) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--white);
}

.footer-brand__desc {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.footer-nav__list,
.footer-legal__list {
  display: grid;
  gap: 9px;
}

.footer-nav__link,
.footer-legal__link {
  display: inline-block;
  font-size: 14px;
  color: #B7C9C3;
  transition: color .2s ease, transform .2s ease;
}

.footer-nav__link::before {
  content: "›";
  margin-right: 8px;
  color: var(--line);
  transition: color .2s ease;
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible,
.footer-legal__link:hover,
.footer-legal__link:focus-visible {
  color: var(--lime);
}

.footer-nav__link:hover { transform: translateX(3px); }
.footer-nav__link:hover::before { color: var(--orange); }

.footer-legal__link { border-bottom: 1px dashed rgba(23, 71, 58, .9); }

.footer-contact__list {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(23, 71, 58, .9);
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.footer-contact__note {
  margin-top: 12px;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(23, 71, 58, .75);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer-note { color: var(--muted); }
.footer-icp { color: #A9BEB7; }

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

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand__desc { max-width: none; }
}

/* ---------- 13. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  transition: opacity .24s ease, transform .24s var(--ease-out), background-color .2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover { background: var(--lime-soft); }

.back-top:focus-visible { outline-offset: -4px; }

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .header-top__live { animation: none; }
  .back-top { transform: none; }
}
