/* ============================================================
   得乐88投注 — 共享样式 /assets/site.css
   未来感数据终端 · 侧边轨道导航 · 深空蓝基底
   ============================================================ */

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #061428;
  --ink-800: #0B2340;
  --ink-700: #123A5E;
  --cyan: #17E0D0;
  --cyan-deep: #0FA3B1;
  --gold: #F2B444;
  --violet: #B26BFF;
  --blue: #3F7BFF;
  --text: #E8F3FF;
  --text-dim: #8FA6BF;

  --line: rgba(23, 224, 208, 0.18);
  --line-soft: rgba(143, 166, 191, 0.16);
  --glass: rgba(11, 35, 64, 0.78);
  --grad: linear-gradient(115deg, #17E0D0 0%, #3F7BFF 100%);
  --grad-soft: linear-gradient(140deg, rgba(23,224,208,.20), rgba(63,123,255,.20) 58%, rgba(178,107,255,.14));

  --rail-w: 288px;
  --shell: 1240px;
  --r-l: 24px;
  --r-m: 18px;
  --r-s: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

/* ---------- 3. Base & typography ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  min-height: 100%;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 6% 0%, rgba(23, 224, 208, .10), transparent 55%),
    radial-gradient(90% 70% at 100% 10%, rgba(63, 123, 255, .14), transparent 62%),
    radial-gradient(70% 60% at 62% 100%, rgba(178, 107, 255, .08), transparent 62%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 8vw, 6.4rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
p { font-size: 1rem; }

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

.prose { max-width: 68ch; color: var(--text-dim); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 700; }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--text-dim); max-width: 60ch; }

.divider { height: 1px; border: 0; background: linear-gradient(90deg, var(--line), transparent); margin: 0; }

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

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04141F;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform .24s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5. Header / 侧边轨道 ---------- */
.site-header { position: relative; z-index: 60; }

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 80;
  width: min(86vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px 20px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0B2340 0%, #081A31 62%, #061428 100%);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform .34s var(--ease);
}
.site-header[data-open] .rail { transform: translateX(0); }

.rail__brand { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.rail__nav { flex: 1 1 auto; }
.rail__foot { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }

/* 品牌块 */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #03121F;
  background: var(--grad);
  box-shadow: 0 10px 26px -14px rgba(23, 224, 208, .9);
}
.brand__text { display: grid; gap: 2px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand__tag { font-size: 11.5px; line-height: 1.4; color: var(--text-dim); }
.brand--compact { display: inline-flex; }
.brand--compact .brand__mark { width: 30px; height: 30px; border-radius: 10px; font-size: 12px; }
.brand--compact .brand__name { font-size: 15px; }

/* 栏目索引 */
.rail__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rail__count {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  letter-spacing: .06em;
}

.nav-list { display: grid; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  border-radius: var(--r-s);
  color: var(--text);
  font-size: 15px;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  border-radius: 3px;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height .28s var(--ease);
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.nav-link__text { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.nav-link:hover { background: rgba(23, 224, 208, .08); }
.nav-link:hover .nav-link__idx { color: var(--cyan); }
.nav-link[aria-current="page"] { background: rgba(23, 224, 208, .12); color: var(--cyan); }
.nav-link[aria-current="page"]::before { height: 62%; }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--cyan); }

.rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(23, 224, 208, .55);
  animation: dot-pulse 2.6s var(--ease) infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 224, 208, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(23, 224, 208, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 224, 208, 0); }
}

/* 状态条 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar__meta {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.topbar__phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  white-space: nowrap;
}

/* 抽屉按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(23, 224, 208, .07);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.nav-toggle:hover { background: rgba(23, 224, 208, .14); border-color: var(--cyan-deep); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .26s var(--ease), opacity .26s var(--ease);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  pointer-events: none;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(36px, 5vw, 60px) 0 20px;
  background: linear-gradient(180deg, #08192F 0%, #061428 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: .55;
}
.footer__inner {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
}
.footer__col { display: grid; align-content: start; gap: 14px; }
.footer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__list { display: grid; gap: 9px; font-size: 14px; color: var(--text-dim); }
.footer__list--plain span { color: var(--text); }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__link::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan-deep);
  opacity: .55;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.footer__link:hover { color: var(--cyan); transform: translateX(3px); }
.footer__link:hover::before { background: var(--cyan); opacity: 1; }
.footer__note { font-size: 13px; color: var(--text-dim); max-width: 40ch; }
.footer__note--quiet { color: rgba(143, 166, 191, .8); }
.footer__meta { font-family: var(--font-mono); font-size: 12px; color: rgba(143, 166, 191, .86); }
.footer__base {
  width: min(100% - 32px, var(--shell));
  margin: 36px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease), filter .22s var(--ease);
}
.btn--primary {
  background: var(--grad);
  color: #03121F;
  box-shadow: 0 14px 30px -18px rgba(23, 224, 208, .95);
}
.btn--primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--ghost {
  border-color: rgba(23, 224, 208, .42);
  background: rgba(23, 224, 208, .06);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(23, 224, 208, .15); border-color: var(--cyan); }
.btn--gold {
  border-color: rgba(242, 180, 68, .5);
  background: rgba(242, 180, 68, .09);
  color: var(--gold);
}
.btn--gold:hover { background: rgba(242, 180, 68, .18); border-color: var(--gold); }
.btn--block { width: 100%; justify-content: space-between; padding-inline: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 8. Layout primitives ---------- */
.page-shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
  padding-block: clamp(28px, 5vw, 56px) clamp(40px, 7vw, 80px);
}
.section { padding-block: clamp(28px, 5vw, 64px); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(20px, 3vw, 34px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 面包屑 */
.breadcrumbs { font-size: 12.5px; color: var(--text-dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(143, 166, 191, .6); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* 面板 */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(18, 58, 94, .55), rgba(11, 35, 64, .85));
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(18, 58, 94, .7);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.panel__count { color: var(--cyan); letter-spacing: .06em; }
.panel__body { padding: 18px; }

/* 卡片 */
.card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: linear-gradient(160deg, rgba(18, 58, 94, .42), rgba(11, 35, 64, .72));
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.card__body { font-size: 14.5px; color: var(--text-dim); }
.card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--cyan);
}
.tag--gold { border-color: rgba(242, 180, 68, .45); color: var(--gold); }
.tag--violet { border-color: rgba(178, 107, 255, .5); color: var(--violet); }

/* 索引带 */
.index-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  background: rgba(11, 35, 64, .55);
}
.index-band__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 58, 94, .6);
  font-size: 13px;
  color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.index-band__link:hover { background: rgba(23, 224, 208, .16); color: var(--cyan); }
.index-band__num { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }

/* 主题筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--line); }
.filter-btn[aria-pressed="true"] {
  color: var(--violet);
  border-color: var(--violet);
  background: rgba(178, 107, 255, .12);
  box-shadow: 0 0 0 3px rgba(178, 107, 255, .08);
}
.is-filtered-out { display: none !important; }
.is-pop { animation: pop-in .34s var(--ease) both; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

/* 数字 */
.stat { display: grid; gap: 4px; }
.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--cyan);
}
.stat__label { font-size: 13px; color: var(--text-dim); }

/* 图片容器 */
.media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  overflow: hidden;
  background-image: var(--grad-soft);
  background-color: var(--ink-800);
  isolation: isolate;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(232, 243, 255, .05) 0 1px, transparent 1px 4px);
  opacity: .55;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* ---------- 9. Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1023px) {
  .site-header::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(4, 11, 22, .66);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open]::after { opacity: 1; visibility: visible; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar__meta { display: none; }
  .topbar { gap: 10px; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .page-shell { width: min(100% - 24px, var(--shell)); }
  .footer__inner,
  .footer__base { width: min(100% - 24px, var(--shell)); }
}

@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .rail {
    width: var(--rail-w);
    transform: none;
    padding: 30px 22px 28px;
    transition: none;
  }
  .nav-toggle { display: none; }
  .brand--compact { display: none; }
  .topbar {
    justify-content: flex-end;
    padding: 12px clamp(20px, 3vw, 40px);
  }
  .topbar__meta { margin-left: 0; }
  .scroll-progress { left: var(--rail-w); }
}

@media (min-width: 1440px) {
  :root { --shell: 1320px; }
}

/* ---------- 11. Reduced motion ---------- */
@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 !important; transform: none !important; }
  .dot { animation: none; }
  .nav-link:hover, .card:hover, .btn:hover, .footer__link:hover { transform: none; }
}
