/* ==========================================================================
   五分彩开奖网 · 样式表
   ========================================================================== */

:root {
  --bg: #070b14;
  --panel: #0e1526;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8edf8;
  --muted: #8b98b4;
  --gold: #f2c66d;
  --gold-deep: #d9a03c;
  --red: #e8544b;
  --blue: #4d8df6;
  --amber: #f0a93b;
  --green: #33b98a;
  --radius: 20px;
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --num-font: "Bahnschrift", "DIN Alternate", "HarmonyOS Sans SC", "Microsoft YaHei",
    system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(231, 168, 70, 0.16), transparent 62%),
    radial-gradient(900px 540px at 6% -4%, rgba(56, 104, 220, 0.18), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --------------------------------------------------------------------------
   顶部公告条
   -------------------------------------------------------------------------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 24px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #e7c98d;
  background: linear-gradient(90deg, rgba(217, 160, 60, 0.16), rgba(217, 160, 60, 0.04));
  border-bottom: 1px solid rgba(217, 160, 60, 0.18);
}

.ticker-badge {
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #2a1c05;
  background: linear-gradient(135deg, #ffe1a5, #e0aa45);
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker-move {
  display: flex;
  gap: 72px;
  width: max-content;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   头部
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 800;
  color: #241705;
  background: linear-gradient(140deg, #ffe4ac, #e2ac46 62%, #b47c22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 22px -12px rgba(226, 172, 70, 0.9);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: 0.02em; }
.brand-copy small {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }

.site-nav a.is-active { color: var(--gold); }

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: none;
}

.sync {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 198, 109, 0.16);
  animation: blink 1.6s ease-in-out infinite;
}

.sync.is-ok i { background: var(--green); box-shadow: 0 0 0 3px rgba(51, 185, 138, 0.16); animation: none; }
.sync.is-error i { background: var(--red); box-shadow: 0 0 0 3px rgba(232, 84, 75, 0.16); animation: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.clock {
  font-family: var(--num-font);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(242, 198, 109, 0.32);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(242, 198, 109, 0.07);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: rgba(242, 198, 109, 0.14); border-color: rgba(242, 198, 109, 0.55); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }

.btn svg { width: 15px; height: 15px; }
.btn.is-loading svg { animation: spin 0.9s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }


/* --------------------------------------------------------------------------
   最新开奖
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: 28px;
  padding: 32px 34px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(620px 280px at 0% 0%, rgba(242, 198, 109, 0.13), transparent 66%),
    radial-gradient(520px 320px at 100% 0%, rgba(61, 107, 214, 0.14), transparent 62%),
    linear-gradient(180deg, #141d33, #0b1220);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 198, 109, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 198, 109, 0.18);
  animation: blink 1.8s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.period-no {
  font-family: var(--num-font);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0 4px;
}

.hero-time {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.updated { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.hero-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin: 26px 0 4px;
}

.draw-line {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 16px);
  min-height: 68px;
}

.ball {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(52px, 7.2vw, 68px);
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--num-font);
  font-size: clamp(23px, 3.2vw, 30px);
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #ff938a 0%, #e04339 46%, #971d1d 100%);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.5),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    0 16px 30px -14px rgba(214, 48, 42, 0.85);
  animation: pop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: var(--d, 0ms);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ball::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.62); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-stats {
  display: flex;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.hero-stats > div {
  min-width: 104px;
  padding: 12px 22px;
  border-left: 1px solid var(--line);
}
.hero-stats > div:first-child { border-left: 0; }

.hero-stats dt {
  font-size: 11.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--num-font);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.info {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  cursor: help;
  vertical-align: 1px;
}

.hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.countdown { display: flex; align-items: center; gap: 16px; flex: none; }

.ring { position: relative; width: 116px; height: 116px; }

.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.075); stroke-width: 7; }

.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s linear;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.ring-label span {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ring-label strong {
  font-family: var(--num-font);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.next-time { margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.next-time span { color: #c6d2ea; }

.recent {
  flex: 1;
  min-width: 280px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.recent-head a { color: var(--gold); text-decoration: none; letter-spacing: 0; }
.recent-head a:hover { text-decoration: underline; }

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.recent-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 24px;
}

.r-period {
  width: 52px;
  flex: none;
  color: var(--muted);
  font-family: var(--num-font);
  font-variant-numeric: tabular-nums;
}

.r-balls { display: flex; gap: 3px; }

.mini-ball {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-family: var(--num-font);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #ff938a, #d33b32 58%, #8d1919);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), inset 0 -4px 6px rgba(0, 0, 0, 0.3);
}

.r-sum {
  width: 26px;
  flex: none;
  text-align: center;
  font-family: var(--num-font);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.recent-list .tag { font-size: 10.5px; min-width: 22px; padding: 2px 6px; }

/* --------------------------------------------------------------------------
   标签
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid transparent;
}

.tag--big {
  color: #ffb6b1;
  background: rgba(232, 84, 75, 0.14);
  border-color: rgba(232, 84, 75, 0.34);
}

.tag--small {
  color: #aecbff;
  background: rgba(77, 141, 246, 0.13);
  border-color: rgba(77, 141, 246, 0.34);
}

.tag--odd {
  color: #ffd699;
  background: rgba(240, 169, 59, 0.13);
  border-color: rgba(240, 169, 59, 0.34);
}

.tag--even {
  color: #96e9cb;
  background: rgba(51, 185, 138, 0.13);
  border-color: rgba(51, 185, 138, 0.32);
}

.tag--none {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.hero-stats .tag { font-size: 14px; min-width: 46px; padding: 6px 13px; }

/* --------------------------------------------------------------------------
   数据统计
   -------------------------------------------------------------------------- */
.section { margin-top: 34px; scroll-margin-top: 92px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 { margin: 0; font-size: 19px; letter-spacing: 0.02em; }
.section-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.section-head p span { color: #c6d2ea; font-variant-numeric: tabular-nums; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  position: relative;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

.stat-card--red { color: var(--red); }
.stat-card--blue { color: var(--blue); }
.stat-card--amber { color: var(--amber); }
.stat-card--green { color: var(--green); }

.stat-top { display: flex; align-items: baseline; gap: 8px; }

.stat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.stat-desc { font-size: 11px; color: var(--muted); }

.stat-value {
  margin: 8px 0 10px;
  font-family: var(--num-font);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-value small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }

.stat-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.stat-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: currentColor;
  transition: width 0.6s ease;
}

.stat-pct {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   面板 / 走势图
   -------------------------------------------------------------------------- */
.panel {
  margin-top: 34px;
  scroll-margin-top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008)), var(--panel);
  box-shadow: 0 20px 50px -38px #000;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head--wrap { flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16.5px; letter-spacing: 0.02em; }
.panel-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--big { background: var(--red); box-shadow: 0 0 0 3px rgba(232, 84, 75, 0.16); }
.dot--small { background: var(--blue); box-shadow: 0 0 0 3px rgba(77, 141, 246, 0.16); }

.chart-box { padding: 10px 14px 4px; }

#trendChart { width: 100%; height: auto; }
#trendChart .grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
#trendChart .axis { fill: #7c89a4; font-size: 10.5px; font-family: var(--num-font); }
#trendChart .axis--bound { fill: rgba(242, 198, 109, 0.75); }
#trendChart .boundary {
  stroke: rgba(242, 198, 109, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}
#trendChart .trend-line {
  fill: none;
  stroke: #f2c66d;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#trendChart .pt { stroke: #0e1526; stroke-width: 1.5; }

/* --------------------------------------------------------------------------
   历史开奖表
   -------------------------------------------------------------------------- */
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  height: 40px;
  width: 232px;
  padding: 0 34px 0 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder { color: #6c7994; }
.search input:focus { border-color: rgba(242, 198, 109, 0.55); box-shadow: 0 0 0 3px rgba(242, 198, 109, 0.1); }
.search input::-webkit-search-cancel-button { display: none; }

.search-clear {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.search-clear:hover { color: var(--text); }

.table-scroll { overflow-x: auto; }

.draw-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.draw-table th {
  padding: 11px 20px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.022);
  border-bottom: 1px solid var(--line);
}

.draw-table td {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
  white-space: nowrap;
}

.draw-table tbody tr { transition: background 0.16s ease; }
.draw-table tbody tr:hover { background: rgba(242, 198, 109, 0.05); }
.draw-table tbody tr.is-latest { background: linear-gradient(90deg, rgba(242, 198, 109, 0.1), transparent 62%); }

.draw-table .period { font-family: var(--num-font); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.badge-latest {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2a1c05;
  background: linear-gradient(135deg, #ffe1a5, #e0aa45);
  vertical-align: 1px;
}

.draw-table .time { color: var(--muted); font-variant-numeric: tabular-nums; }

.mini-balls { display: flex; gap: 5px; }

.draw-table .mini-ball {
  width: 28px;
  height: 28px;
  font-size: 12.5px;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.4), inset 0 -5px 8px rgba(0, 0, 0, 0.32);
}

.draw-table .num { text-align: center; font-family: var(--num-font); font-weight: 700; font-variant-numeric: tabular-nums; }
.draw-table th.num { text-align: center; }

.draw-table .tag { font-size: 11.5px; min-width: 30px; padding: 3px 9px; }

.empty-row td {
  padding: 54px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.empty-row strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}

.pager-info {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pager-info strong { color: var(--text); font-weight: 600; }

.pager-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pg {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #c3cee4;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pg:hover:not(:disabled) { color: var(--gold); border-color: rgba(242, 198, 109, 0.5); background: rgba(242, 198, 109, 0.07); }

.pg.is-active {
  color: #1d1305;
  font-weight: 800;
  border-color: transparent;
  background: linear-gradient(135deg, #f8d99d, #e0a83f);
  box-shadow: 0 8px 18px -10px rgba(242, 198, 109, 0.9);
}

.pg:disabled { opacity: 0.34; cursor: not-allowed; }
.pg--nav { padding: 0 14px; }

.pg-ellipsis { padding: 0 4px; font-size: 12px; color: var(--muted); }

.pager-jump { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }

.pager-jump input {
  width: 58px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--num-font);
  font-size: 13px;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  -moz-appearance: textfield;
}

.pager-jump input::-webkit-outer-spin-button,
.pager-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager-jump input:focus { border-color: rgba(242, 198, 109, 0.55); }

.pager-jump button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(242, 198, 109, 0.3);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(242, 198, 109, 0.07);
  cursor: pointer;
}

.pager-jump button:hover { background: rgba(242, 198, 109, 0.14); }

/* --------------------------------------------------------------------------
   玩法说明
   -------------------------------------------------------------------------- */
.rules { scroll-margin-top: 92px; }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.rule {
  position: relative;
  padding: 22px 24px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule:nth-child(3n) { border-right: 0; }
.rule:nth-child(n + 4) { border-bottom: 0; }

.rule-no {
  font-family: var(--num-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(242, 198, 109, 0.55);
}

.rule h4 { margin: 7px 0 6px; font-size: 14.5px; }
.rule p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------------------
   页脚 / 提示
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.footer-inner strong { font-size: 14px; letter-spacing: 0.03em; }
.footer-inner p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 60;
  padding: 11px 20px;
  border: 1px solid rgba(242, 198, 109, 0.4);
  border-radius: 12px;
  font-size: 13px;
  color: #ffe7bb;
  background: rgba(20, 15, 6, 0.94);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  z-index: 100;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .header-meta .clock { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule:nth-child(3n) { border-right: 1px solid var(--line); }
  .rule:nth-child(2n) { border-right: 0; }
  .rule:nth-child(n + 4) { border-bottom: 1px solid var(--line); }
  .rule:nth-child(n + 5) { border-bottom: 0; }
}

@media (max-width: 820px) {
  .header-inner { gap: 16px; }
  .brand-copy small { display: none; }
  .site-nav { margin-left: 0; }
  .hero { padding: 26px 22px 22px; }
  .hero-main { gap: 20px; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1; min-width: 0; padding: 10px 16px; }
  .recent { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; min-width: 100%; }
  .hero-bottom { gap: 20px; }
  .panel-head { padding: 16px 18px; }
  .draw-table th, .draw-table td { padding-left: 14px; padding-right: 14px; }
  .pager { padding: 16px 18px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .ticker { padding: 7px 16px; }
  .header-inner { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; }
  .header-meta { margin-left: auto; }
  .header-meta .sync { display: none; }
  .hero { border-radius: 20px; }
  .period-no { font-size: 27px; }
  .hero-actions { width: 100%; justify-content: space-between; }
  .hero-main { margin-top: 20px; }
  .ball { width: clamp(46px, 13.4vw, 58px); }
  .draw-line { gap: 8px; }
  .hero-stats dt { font-size: 11px; }
  .hero-stats dd { font-size: 22px; }
  .hero-stats .tag { font-size: 12.5px; min-width: 38px; padding: 5px 9px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .countdown { gap: 14px; }
  .ring { width: 100px; height: 100px; }
  .ring-label strong { font-size: 21px; }
  .recent { width: 100%; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 15px 15px 13px; }
  .stat-value { font-size: 26px; }
  .search input { width: 100%; min-width: 190px; }
  .tools { width: 100%; }
  .search { width: 100%; }
  .pager { flex-direction: column; align-items: stretch; gap: 12px; }
  .pager-controls { justify-content: center; }
  .pager-jump { justify-content: center; }
  .rules-grid { grid-template-columns: 1fr; }
  .rule { border-right: 0 !important; }
  .rule:nth-child(n) { border-bottom: 1px solid var(--line); }
  .rule:last-child { border-bottom: 0; }
  .chart-box { padding: 6px 4px 2px; }
  .panel-head .legend { font-size: 11px; gap: 12px; }
  .toast { left: 16px; right: 16px; transform: translate(0, 14px); text-align: center; }
  .toast.is-show { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
