/* ============================================================
   正版彩票主站 · /assets/site.css
   共享外壳：变量、排版、左侧品牌轨道头部、页脚、通用组件
   ============================================================ */

/* ---------- 01 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, li, dl, dt, dd, figure, blockquote, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; border-spacing: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- 02 tokens ---------- */
:root {
  --red: #A6241C;
  --red-deep: #8C1D16;
  --gold: #C79A2E;
  --gold-dark: #8C6B1F;
  --night: #1B2B4B;
  --night-deep: #131F37;
  --ink: #17161A;
  --paper: #F4EDE0;
  --butter: #FBF7EF;
  --jade: #2E7D74;
  --orange: #E08A2E;
  --white: #FFFFFF;

  --line: rgba(140, 107, 31, 0.26);
  --line-strong: rgba(140, 107, 31, 0.52);
  --line-night: rgba(244, 237, 224, 0.16);

  --ink-70: rgba(23, 22, 26, 0.72);
  --ink-55: rgba(23, 22, 26, 0.56);
  --paper-70: rgba(244, 237, 224, 0.72);
  --paper-48: rgba(244, 237, 224, 0.5);

  --rail-w: 252px;
  --topbar-h: 64px;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 03 base ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 22, 26, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 400; }
strong, b { font-weight: 700; }
::selection { background: rgba(166, 36, 28, 0.18); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.band--night :focus-visible, .site-foot :focus-visible, .site-head :focus-visible { outline-color: var(--gold); }

.num, .mono { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 04 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.display--xl { font-size: clamp(46px, 8.4vw, 112px); }
.h-sec {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
}
.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.8;
  color: var(--ink-70);
  max-width: 62ch;
}
.sec-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
}
.sec-index::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.band--night .sec-index { color: var(--gold); }

/* ---------- 05 布局 ---------- */
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.band { padding-block: clamp(44px, 6.4vw, 104px); }
.band--butter { background: var(--butter); }
.band--night { background: var(--night); color: var(--paper); }
.band--night .lede { color: var(--paper-70); }
.band--night .h-sec, .band--night .h-sub { color: var(--paper); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-aside { grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); align-items: start; }

/* ---------- 06 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--red); color: var(--white); }
.btn--solid:hover { background: var(--red-deep); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d8ab3c; }
.btn--ghost { border-color: rgba(199, 154, 46, 0.55); color: var(--paper); background: transparent; }
.btn--ghost:hover { background: rgba(244, 237, 224, 0.1); color: var(--white); }

/* ---------- 07 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-55);
}
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--gold); }
.crumbs__sep { color: var(--gold-dark); }

/* ---------- 08 通用组件 ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.6vw, 34px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 154, 46, 0.32);
  background: rgba(199, 154, 46, 0.14);
  color: var(--gold-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.chip--red { background: rgba(166, 36, 28, 0.1); border-color: rgba(166, 36, 28, 0.3); color: var(--red); }
.chip--night { background: rgba(27, 43, 75, 0.1); border-color: rgba(27, 43, 75, 0.26); color: var(--night); }

.ball {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ball--red { background: var(--red); border-color: var(--red); color: var(--white); }
.ball--gold { background: var(--gold); border-color: var(--gold-dark); color: var(--ink); }

.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num--gold { color: var(--gold-dark); }
.stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-55);
}
.band--night .stat__label { color: var(--paper-48); }

/* ---------- 09 数据表 ---------- */
.data-table { width: 100%; font-size: 14px; }
.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.data-table td.num { text-align: right; }
.data-table tbody tr:nth-child(even) { background: var(--butter); }
.data-table tbody tr { transition: background-color 0.2s var(--ease), transform 0.2s var(--ease); }
.data-table tbody tr:hover { background: var(--white); transform: translateX(2px); }

/* ---------- 10 图片容器 ---------- */
.figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--butter);
}
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #E9E0CE;
  background-image:
    linear-gradient(135deg, rgba(199, 154, 46, 0.16), rgba(27, 43, 75, 0.12)),
    repeating-linear-gradient(118deg, rgba(23, 22, 26, 0.06) 0 1px, transparent 1px 26px);
}
.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 4 / 5; }
.figure__media--square { aspect-ratio: 1 / 1; }
.figure__media img { width: 100%; height: 100%; object-fit: cover; }
.figure__cap {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-55);
}

/* ---------- 11 轻松淡入 ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.6s var(--ease); }
[data-reveal="shown"] { opacity: 1; }

/* ---------- 12 skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============================================================
   13 头部：左侧品牌轨道
   ============================================================ */
.site-head {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 20px 26px;
  color: var(--paper);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 50% 5%, rgba(199, 154, 46, 0.22), transparent 58%),
    repeating-linear-gradient(114deg, rgba(244, 237, 224, 0.05) 0 1px, transparent 1px 26px);
  border-right: 1px solid rgba(199, 154, 46, 0.32);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.head-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__seal {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--red);
  color: var(--paper);
  border: 1px solid rgba(199, 154, 46, 0.6);
  box-shadow: 0 0 0 4px rgba(166, 36, 28, 0.16);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}
.brand__line { font-size: 11px; letter-spacing: 0.06em; color: rgba(244, 237, 224, 0.58); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 154, 46, 0.5);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle__bars i {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.25s var(--ease);
}
.site-head[data-open] .nav-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-head[data-open] .nav-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.head-body { display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; }

.head-nav__cap {
  margin: 0 0 10px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(244, 237, 224, 0.42);
}
.head-nav__list { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: rgba(244, 237, 224, 0.72);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.8;
}
.nav-link:hover { background: rgba(244, 237, 224, 0.08); color: var(--white); }
.nav-link[aria-current="page"] {
  background: rgba(166, 36, 28, 0.92);
  border-color: rgba(199, 154, 46, 0.45);
  color: var(--white);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--paper); opacity: 1; }

.head-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.head-meta {
  display: flex;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(199, 154, 46, 0.28);
}
.head-meta dt { font-size: 10px; letter-spacing: 0.14em; color: rgba(244, 237, 224, 0.45); }
.head-meta dd { margin-top: 2px; font-family: var(--font-mono); font-size: 15px; color: var(--gold); }

.head-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: rgba(244, 237, 224, 0.08);
  pointer-events: none;
}
.head-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--red));
  transform: scaleY(0);
  transform-origin: top;
}

/* ============================================================
   14 页脚
   ============================================================ */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 130px);
  padding-top: clamp(44px, 5.6vw, 84px);
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 88% -10%, rgba(199, 154, 46, 0.22), transparent 55%),
    repeating-linear-gradient(0deg, rgba(244, 237, 224, 0.04) 0 1px, transparent 1px 30px);
  color: var(--paper-70);
}
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 154, 46, 0.65), transparent);
}
.foot-wrap {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 46px);
}
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand__seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--red);
  border: 1px solid rgba(199, 154, 46, 0.55);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.foot-brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
}
.foot-brand__line { font-size: 12.5px; letter-spacing: 0.08em; color: var(--paper-48); }
.foot-brand__stat { font-size: 13px; color: var(--paper-70); }
.foot-brand__stat .num { color: var(--gold); }

.foot-col__t {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.foot-list { display: flex; flex-direction: column; gap: 4px; }
.foot-list a {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 14.5px;
  color: var(--paper-70);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.foot-list a:hover { color: var(--white); border-bottom-color: var(--gold); }

.foot-contact {
  grid-column: 1 / -1;
  margin-top: clamp(12px, 2vw, 26px);
  padding-top: clamp(22px, 2.6vw, 34px);
  border-top: 1px solid var(--line-night);
}
.foot-contact__list { display: flex; flex-wrap: wrap; gap: 12px 42px; }
.foot-contact__list li { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; }
.foot-contact__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--paper-48);
}
.foot-note {
  margin-top: 14px;
  max-width: 70ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--paper-48);
}
.foot-base {
  width: min(100% - 40px, 1180px);
  margin: clamp(30px, 4vw, 54px) auto 0;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line-night);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--paper-48);
}

/* ---------- 15 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(199, 154, 46, 0.6);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 16px 32px -16px rgba(23, 22, 26, 0.8);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
              background-color 0.2s var(--ease), visibility 0.28s;
}
.to-top.is-on { visibility: visible; opacity: 1; transform: none; }
.to-top:hover { background: var(--red-deep); }

/* ============================================================
   16 响应式
   ============================================================ */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
  #main-content { scroll-margin-top: 0; }
}

@media (max-width: 1079px) {
  body { padding-top: var(--topbar-h); }
  #main-content { scroll-margin-top: calc(var(--topbar-h) + 16px); }

  .site-head {
    inset: 0 0 auto 0;
    width: auto;
    gap: 0;
    padding: 0;
    max-height: 100vh;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 154, 46, 0.4);
  }
  .head-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--topbar-h);
    padding: 10px 16px;
  }
  .brand__seal { width: 34px; height: 34px; border-radius: 11px; font-size: 16px; }
  .brand__name { font-size: 15px; }
  .brand__line { display: none; }
  .nav-toggle { display: inline-flex; }

  .head-body {
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 26px;
    border-top: 1px solid rgba(199, 154, 46, 0.22);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }
  .site-head[data-open] .head-body { display: flex; }

  .head-nav__list { gap: 4px; }
  .nav-link { padding: 13px 14px; font-size: 16px; }
  .head-actions { flex-direction: column; margin-top: 4px; }
  .head-actions .btn { width: 100%; padding: 14px 20px; font-size: 15px; }
  .head-meta { padding-top: 16px; }

  .head-progress {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 3px;
  }
  .head-progress__fill { transform-origin: left; }
}

@media (max-width: 900px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .cols-aside { grid-template-columns: 1fr; }
  .foot-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-contact__list { flex-direction: column; gap: 10px; }
}

@media (max-width: 560px) {
  .wrap, .foot-wrap, .foot-base { width: calc(100% - 32px); }
  .foot-wrap { grid-template-columns: 1fr; gap: 28px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .to-top { right: 16px; bottom: 16px; padding: 11px 16px; }
  .display--xl { font-size: clamp(40px, 13vw, 72px); }
}

/* ---------- 17 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1 !important; }
  .btn:hover { transform: none; }
  .data-table tbody tr:hover { transform: none; }
}
