:root {
  --bg: #f4f6f8;
  --card: #fff;
  --text: #1a1d21;
  --muted: #6b7280;
  --brand: #0b6e4f;
  --brand-2: #c81e1e;
  --line: #e5e7eb;
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #e8f2ee 0%, var(--bg) 220px);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, 92%); margin: 0 auto; }
.site-header {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); }
.site-header nav a { margin-left: 16px; color: var(--muted); }
.site-footer { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); }
.hero { padding: 36px 0 12px; }
.hero.compact { padding-top: 24px; }
.hero h1 { margin: 0 0 8px; font-size: 1.8rem; }
.tool-section { margin: 24px 0; }
.tool-section h2 { font-size: 1.15rem; margin-bottom: 12px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tool-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; color: inherit;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.tool-card strong { display: block; margin-bottom: 6px; }
.tool-card span { color: var(--muted); font-size: .9rem; }
.lottery-card, .latest-box, .page-body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 16px 0;
}
.lottery-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.draw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.balls { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ball {
  display: inline-flex; width: 32px; height: 32px; border-radius: 50%;
  align-items: center; justify-content: center; color: #fff; font-size: .85rem; font-weight: 700;
}
.ball.red { background: var(--brand-2); }
.ball.blue { background: #1d4ed8; }
.stats, .history, .schedule-table {
  width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 10px;
}
.stats th, .stats td, .history th, .history td, .schedule-table th, .schedule-table td {
  border: 1px solid var(--line); padding: 8px; text-align: center;
}
.stats th, .history th, .schedule-table th { background: #f8fafc; }
.table-scroll { overflow-x: auto; }
.links a, .links span { margin-right: 14px; }
.links .on { font-weight: 700; }
.pager { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.schedule { margin: 32px 0; }
.rich { white-space: pre-wrap; }
@media (max-width: 640px) {
  .ball { width: 28px; height: 28px; font-size: .78rem; }
}
