/* =========================================================
   888棋牌 · 乐动体育季票信息 — /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- 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; }

input, textarea, select { font: inherit; }

table { border-collapse: collapse; }

a { color: inherit; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink: #0B1F1A;         /* 夜场墨绿 · 主背景 */
  --panel: #102C24;       /* 面板深绿 */
  --panel-2: #143428;     /* 面板深绿 · 提亮一档 */
  --lime: #C8FF3D;        /* 荧光青柠 · 数据高亮 */
  --lime-soft: #E6FFB0;   /* 浅青柠雾 */
  --orange: #FF8A2B;      /* 转会暖橙 */
  --paper: #F4EBDC;       /* 暖纸色 */
  --text: #EAF2EE;        /* 正文亮灰 */
  --muted: #9AB0A8;       /* 次级灰绿 */
  --grid: #2A4A3F;        /* 网格线绿 */
  --alert: #D94F45;       /* 提示朱红 */

  --lime-line: rgba(200, 255, 61, .45);
  --orange-line: rgba(255, 138, 43, .5);
  --grid-soft: rgba(42, 74, 63, .45);
  --ink-veil: rgba(11, 31, 26, .94);

  /* 字体 */
  --font-display: "Barlow Condensed", "Oswald", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  /* 布局 */
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --gap: 24px;
  --zone: clamp(48px, 7vw, 96px);
  --header-h: 108px;

  color-scheme: dark;
}

/* ---------- 3. 中文排版与基础 ---------- */
body {
  min-height: 100%;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, var(--grid-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 87.5%;
  letter-spacing: -.01em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 7.5vw, 92px); }
h2 { font-size: clamp(28px, 4.4vw, 52px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 19px; }

p { text-wrap: pretty; }

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

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

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

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- 4. 工具类 ---------- */
.ld-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ld-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.ld-rule {
  height: 1px;
  background: var(--grid);
}

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

/* ---------- 5. 跳转链接 ---------- */
.ld-skip {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .16s ease;
}

.ld-skip:focus {
  top: 12px;
}

/* ---------- 6. 头部 ---------- */
.ld-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-veil);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid);
}

.ld-header__top {
  border-bottom: 1px solid var(--grid-soft);
  transition: padding .2s ease;
}

.ld-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

.ld-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}

.ld-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 7px 8px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1;
}

.ld-brand__text { display: block; }

.ld-brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
  line-height: 1.15;
}

.ld-brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  line-height: 1.4;
}

.ld-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  transition: opacity .2s ease;
}

.ld-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity .2s ease;
}

.ld-header__pulse {
  width: 7px;
  height: 7px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .15);
}

.ld-quick {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}

.ld-quick:hover {
  color: var(--lime);
  border-color: var(--grid);
}

.ld-quick--apple {
  color: var(--lime);
  border-color: var(--lime-line);
}

.ld-quick--apple:hover {
  border-color: var(--lime);
}

.ld-header__rail {
  position: relative;
}

.ld-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.ld-nav__list::-webkit-scrollbar { display: none; }

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

.ld-nav__link {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, border-color .16s ease;
}

.ld-nav__link:hover { color: var(--text); }

.ld-nav__link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.ld-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--grid);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

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

.ld-nav-toggle__bar {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor;
}

/* 滚动收起态 */
.ld-header[data-collapsed] .ld-header__status,
.ld-header[data-collapsed] .ld-quick--apple {
  opacity: 0;
  visibility: hidden;
}

.ld-header[data-collapsed] .ld-header__inner {
  padding-block: 6px;
}

/* ---------- 7. 按钮 ---------- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--grid);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.ld-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

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

.ld-btn--lime:hover {
  background: var(--lime-soft);
  border-color: var(--lime-soft);
  color: var(--ink);
}

.ld-btn--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.ld-btn--orange:hover {
  background: #FFA054;
  border-color: #FFA054;
  color: var(--ink);
}

.ld-btn--ghost {
  border-color: var(--grid);
  color: var(--muted);
}

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

.ld-btn--block {
  display: flex;
  width: 100%;
}

.ld-copy {
  margin-left: 8px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid var(--grid);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}

.ld-copy:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- 8. 面包屑 ---------- */
.ld-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.ld-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

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

.ld-breadcrumb a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.ld-breadcrumb [aria-current="page"] {
  color: var(--text);
}

/* ---------- 9. 正文与纸面 ---------- */
.ld-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.ld-prose p + p { margin-top: 1.1em; }

.ld-prose ul,
.ld-prose ol {
  margin-top: 1.1em;
  padding-left: 1.2em;
  list-style: square;
}

.ld-prose li + li { margin-top: .5em; }

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

.ld-prose a:hover { text-decoration-color: var(--lime); }

.ld-prose--lead {
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
}

.ld-paper {
  background: var(--paper);
  color: #1B2A24;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--paper);
}

.ld-paper .ld-prose,
.ld-paper .ld-prose--lead,
.ld-paper h2,
.ld-paper h3 { color: #1B2A24; }

.ld-paper .ld-prose a { color: #0B5B3C; }

.ld-paper .ld-eyebrow,
.ld-paper .ld-num { color: #4A6155; }

.ld-paper .ld-rule { background: #C9BBA2; }

/* ---------- 10. 通用组件 ---------- */
.ld-zone {
  padding-block: var(--zone);
}

.ld-section {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px);
}

.ld-section__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--grid);
}

@supports (-webkit-text-stroke: 1px red) {
  .ld-section__num {
    color: transparent;
    -webkit-text-stroke: 1px var(--grid);
  }
}

.ld-section__title {
  font-size: clamp(26px, 3.6vw, 44px);
}

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

.ld-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--lime);
  flex: 0 0 auto;
}

.ld-panel {
  background: var(--panel);
  border: 1px solid var(--grid);
  padding: var(--gap);
  transition: border-color .16s ease, background-color .16s ease;
}

.ld-panel:hover {
  border-color: var(--lime);
  background: var(--panel-2);
}

.ld-panel--flat:hover {
  border-color: var(--grid);
  background: var(--panel);
}

.ld-stat {
  display: block;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--grid);
}

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

.ld-stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.ld-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.ld-tag--lime { color: var(--lime); border-color: var(--lime-line); }
.ld-tag--orange { color: var(--orange); border-color: var(--orange-line); }
.ld-tag--alert { color: var(--alert); border-color: rgba(217, 79, 69, .55); }

.ld-index {
  border-top: 1px solid var(--grid);
}

.ld-index li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--grid);
}

.ld-index__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--lime);
}

.ld-callout {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-left: 2px solid var(--lime);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

.ld-callout strong { color: var(--text); }

/* ---------- 11. 图片容器 ---------- */
.ld-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--grid);
}

.ld-media > img,
.ld-media > svg,
.ld-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-media--hero { aspect-ratio: 16 / 9; }
.ld-media--wide { aspect-ratio: 21 / 9; }
.ld-media--std { aspect-ratio: 4 / 3; }
.ld-media--square { aspect-ratio: 1 / 1; }
.ld-media--tall { aspect-ratio: 3 / 4; }

.ld-media__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 9px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.ld-media__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- 12. 动效基元 ---------- */
.ld-reveal {
  opacity: 0;
  transform: translateY(12px);
}

.ld-reveal[data-revealed] {
  opacity: 1;
  transform: none;
  transition: opacity .24s ease-out, transform .24s ease-out;
}

.ld-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.ld-backtop {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--grid);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, border-color .16s ease;
}

.ld-backtop[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ld-backtop:hover { border-color: var(--lime); }

/* ---------- 13. 页脚 ---------- */
.ld-footer {
  margin-top: var(--zone);
  border-top: 1px solid var(--grid);
  background: linear-gradient(180deg, rgba(16, 44, 36, .92) 0%, var(--ink) 100%);
}

.ld-footer__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 56px var(--gutter) 28px;
}

.ld-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 40px 32px;
}

.ld-footer__col { min-width: 0; }

.ld-footer__col--brand { max-width: 36ch; }

.ld-brand--footer { margin-bottom: 16px; }

.ld-footer__tagline {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.ld-footer__note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--muted);
}

.ld-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.ld-footer__list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

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

.ld-footer__link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.ld-footer__apple {
  margin-top: 18px;
  border-color: var(--lime);
  color: var(--lime);
  font-size: 14px;
  padding: 10px 16px;
}

.ld-footer__apple:hover {
  background: var(--lime);
  color: var(--ink);
}

.ld-footer__legal { color: var(--muted); }

.ld-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .ld-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
  .ld-footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

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

  .ld-header__status,
  .ld-quick { display: none; }

  .ld-header__tools { gap: 0; }

  .ld-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--grid);
    border-top: 1px solid var(--grid);
    padding: 6px 0 14px;
  }

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

  .ld-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--gutter);
    overflow: visible;
  }

  .ld-nav__item { width: 100%; }

  .ld-nav__link {
    height: auto;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--grid-soft);
    font-size: 16px;
  }

  .ld-nav__link[aria-current="page"] {
    border-bottom-color: var(--grid-soft);
    border-left: 2px solid var(--lime);
    padding-left: 12px;
  }

  .ld-header[data-collapsed] .ld-header__status,
  .ld-header[data-collapsed] .ld-quick--apple {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 760px) {
  .ld-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .ld-footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .ld-footer__inner { padding-top: 40px; }

  .ld-prose { font-size: 16px; }

  .ld-prose--lead { font-size: 17px; }

  .ld-index li { grid-template-columns: 44px minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .ld-brand__sub { display: none; }

  .ld-brand__name { font-size: 17px; }

  .ld-backtop { padding: 9px 11px; }
}

/* ---------- 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;
    scroll-behavior: auto !important;
  }

  .ld-reveal { opacity: 1; transform: none; }
}
