:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #26352c;
  background: #f5f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-weight: 400;
  --green: #285a42;
  --green-dark: #1a3b2b;
  --green-soft: #eaf0eb;
  --gold: #c49a51;
  --ink-muted: #77837a;
  --line: #e3e8e2;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 205px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  color: #fff; background: var(--green); font-size: 22px; font-weight: 700;
}
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green-dark); font-size: 16px; letter-spacing: .04em; }
.brand small { margin-top: 3px; color: var(--ink-muted); font-size: 10px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); height: 76px; }
.main-nav a { display: grid; align-items: center; height: 100%; border-bottom: 2px solid transparent; color: #67736a; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--green); border-color: var(--green); }
.admin-link { padding: 9px 14px; border: 1px solid #dce5de; border-radius: 7px; color: var(--green); font-size: 13px; white-space: nowrap; }
.admin-link:hover { background: var(--green-soft); }
.page-shell { width: min(1120px, calc(100% - 40px)); margin: 38px auto 60px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: #8a7047; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.welcome-row h1, .admin-title-row h1 { margin-bottom: 7px; color: var(--green-dark); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.welcome-copy { margin-bottom: 0; color: var(--ink-muted); font-size: 14px; }
.update-note { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #60a377; }
.draw-feature { padding: 26px 28px 18px; border: 1px solid #e2e9e1; border-radius: 12px; background: var(--white); }
.draw-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.draw-heading h2, .panel-heading h2 { margin: 0; color: #24392c; font-size: 18px; }
.period-badge { padding: 7px 11px; border: 1px solid #e9dfca; border-radius: 99px; color: #82652f; background: #fbf7ef; font-size: 12px; white-space: nowrap; }
.latest-draw { display: flex; flex-wrap: wrap; gap: 10px; min-height: 80px; align-items: center; padding: 20px 0 16px; }
@property --light-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.color-light-frame {
  --light-angle: 0deg;
  border: 7px solid transparent;
  border-radius: inherit;
  background-image:
    linear-gradient(#fff, #fff),
    conic-gradient(from var(--light-angle), #ff1744, #ff9100, #ffea00, #00e676, #00e5ff, #2979ff, #d500f9, #ff1744);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  animation: color-light-rotate 3.2s linear infinite, color-light-pulse 1.3s ease-in-out infinite alternate;
}
.draw-light-frame { border-radius: 12px; }
.material-light-frame { border-radius: 10px; }
@keyframes color-light-rotate {
  to { --light-angle: 360deg; }
}
@keyframes color-light-pulse {
  from { filter: brightness(.92); }
  to { filter: brightness(1.28); }
}
.number-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 66px; min-height: 66px; padding: 8px; border: 1px solid #e3e9e3; border-radius: 9px; background: #fbfcfa; }
.number-chip.color-red { border-color: #f10c0c; background: #f10c0c; }
.number-chip.color-blue { border-color: #1515f5; background: #1515f5; }
.number-chip.color-green { border-color: #07830e; background: #07830e; }
.number-chip.color-unknown { border-color: #e3e9e3; background: #fbfcfa; }
.number-chip.special { box-shadow: inset 0 0 0 2px #f6d27f; }
.number-plus { display: grid; align-self: stretch; place-items: center; color: #f28c00; font-size: 38px; font-weight: 900; line-height: 1; }
.number-value { color: var(--green); font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.number-chip.color-red .number-value, .number-chip.color-blue .number-value,
.number-chip.color-green .number-value { color: #fff; }
.number-label { color: var(--green); font-size: 23px; font-weight: 700; line-height: 1; }
.number-chip.color-red .number-label, .number-chip.color-blue .number-label,
.number-chip.color-green .number-label { color: #fff; }
.draw-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; border-top: 1px solid #edf0ec; color: #7d887f; font-size: 11px; }
.source-note { text-align: right; }
.content-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 18px; margin-top: 20px; align-items: stretch; }
.home-content-grid { grid-template-columns: minmax(0, 1fr); }
.content-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.article-panel { display: flex; flex-direction: column; }
.panel-heading { min-height: 76px; padding: 16px 20px; border-bottom: 1px solid #edf0ec; }
.panel-heading .section-kicker { margin-bottom: 5px; }
.panel-heading h2 { font-size: 16px; }
.subtle-label { color: #8b958e; font-size: 11px; white-space: nowrap; }
.history-filter { display: flex; align-items: center; gap: 7px; color: #879188; font-size: 11px; }
.history-filter select { min-height: 31px; padding: 4px 25px 4px 8px; border: 1px solid #e1e7e1; border-radius: 6px; color: #46564b; background: #fff; font: inherit; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 15px; border-top: 1px solid #edf0ec; color: #78847b; font-size: 11px; }
.pagination > div { display: flex; gap: 7px; }
.button-small { min-height: 29px; padding: 5px 9px; }
.table-scroller { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
#history table { table-layout: fixed; }
#history th:nth-child(1), #history td:nth-child(1) { width: 36%; }
#history th:nth-child(2), #history td:nth-child(2) { width: 64%; }
#history table { font-size: 14px; }
#history th { font-size: 13px; }
#history td { line-height: 1.65; }
th, td { padding: 12px 15px; border-bottom: 1px solid #edf0ec; vertical-align: top; }
th { color: #7b877e; background: #fbfcfa; font-size: 11px; font-weight: 600; white-space: nowrap; }
td { color: #46564b; line-height: 1.55; }
tbody tr:last-child td { border-bottom: 0; }
.table-period { color: var(--green); font-weight: 700; }
.period-label, .period-date { display: block; }
.period-label { white-space: nowrap; }
.period-date { margin-top: 3px; color: var(--ink-muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.table-detail { min-width: 0; }
.table-positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); gap: 5px 2px; }
.table-position { display: flex; min-width: 0; flex-direction: column; align-items: center; line-height: 1.25; }
.table-number { color: #394d40; font-variant-numeric: tabular-nums; }
.table-zodiac { color: var(--ink-muted); font-size: 11px; }
.table-empty, .empty-copy { padding: 22px 18px; color: #8a958d; font-size: 13px; text-align: center; }
.article-list { padding: 3px 18px 12px; }
.article-item { padding: 15px 2px; border-bottom: 1px solid #edf0ec; }
.article-item:last-child { border-bottom: 0; }
.article-meta { margin-bottom: 6px; color: #997846; font-size: 10px; }
.article-item h3 { margin: 0 0 5px; color: #304438; font-size: 14px; }
.article-item p { display: -webkit-box; overflow: hidden; margin: 0; color: #7b877e; font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; white-space: pre-line; }
.material-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 34px; align-content: start; gap: 3.5px; padding: 13px 15px 15px; }
.material-link { display: flex; min-width: 0; min-height: 34px; align-items: center; justify-content: center; gap: 4px; padding: 2px 8px; border: 1px solid #174b2d; border-radius: 7px; color: #57ff87; background: #050806; text-align: center; box-shadow: inset 0 0 7px rgb(39 255 106 / 12%), 0 0 5px rgb(39 255 106 / 24%); transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.material-link:hover, .material-link:focus-visible { border-color: #49f879; color: #8affaa; background: #09150d; box-shadow: inset 0 0 11px rgb(39 255 106 / 22%), 0 0 10px rgb(39 255 106 / 52%); outline: none; }
.material-new-arrow {
  flex: 0 0 auto;
  padding: 1px 7px 1px 4px;
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
  color: #fff4a3;
  background: #d71920;
  content: "NEW";
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 13px;
  animation: material-new-arrow 1.15s ease-in-out infinite;
}
.material-links:not(.material-links-secondary) .material-link strong { width: auto; }
@keyframes material-new-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .material-new-arrow, .material-rank-badge, .material-zodiac { animation: none; }
}
.material-link strong, .material-link small { display: block; }
.material-link strong { display: grid; width: 100%; min-height: 26px; place-items: center; color: inherit; font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; text-shadow: 0 0 5px rgb(65 255 124 / 65%), 0 0 11px rgb(35 255 98 / 35%); }
.material-rank-badge {
  flex: 0 0 auto;
  padding: 1px 4px 1px 3px;
  border-left: 4px solid #16a34a;
  border-radius: 4px;
  color: #fff;
  background: #d71920;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  white-space: nowrap;
  animation: material-rank-flash 1s ease-in-out infinite;
}
@keyframes material-rank-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.material-title-line {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.material-title-line strong { width: auto; min-width: 0; min-height: 0; text-align: center; }
.material-zodiac {
  flex: 0 0 auto;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  min-height: 40px;
  place-items: center;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 38px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 0 3px rgb(237 121 46 / 65%));
  animation: material-zodiac-shine 1.8s ease-in-out infinite;
}
@keyframes material-zodiac-shine {
  0%, 100% { opacity: .78; transform: translateX(0) scale(1); }
  50% { opacity: 1; transform: translateX(2px) scale(1.12); }
}
.material-link small, .material-link > span[aria-hidden="true"] { display: none; }
.material-links-secondary .material-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-color: #e2e8e3;
  color: #365443;
  background: #fff;
  box-shadow: none;
  gap: 0;
  padding: 1px 5px;
}
.material-links-secondary { grid-auto-rows: minmax(34px, auto); }
.material-links-secondary .material-link > .material-rank-badge { display: inline-flex; align-items: center; }
.material-links-secondary .material-link > .material-title-line { display: flex; }
.material-links-secondary .material-link .material-title-line strong { flex: 1 1 auto; width: auto; min-width: 0; min-height: 0; font-size: 24px; font-weight: 900; line-height: 1.2; text-shadow: none; }
.material-links-secondary .material-link:nth-child(12n + 1) { color: #c62828; }
.material-links-secondary .material-link:nth-child(12n + 2) { color: #ad1457; }
.material-links-secondary .material-link:nth-child(12n + 3) { color: #6a1b9a; }
.material-links-secondary .material-link:nth-child(12n + 4) { color: #283593; }
.material-links-secondary .material-link:nth-child(12n + 5) { color: #0277bd; }
.material-links-secondary .material-link:nth-child(12n + 6) { color: #00838f; }
.material-links-secondary .material-link:nth-child(12n + 7) { color: #2e7d32; }
.material-links-secondary .material-link:nth-child(12n + 8) { color: #558b2f; }
.material-links-secondary .material-link:nth-child(12n + 9) { color: #9e6b00; }
.material-links-secondary .material-link:nth-child(12n + 10) { color: #ef6c00; }
.material-links-secondary .material-link:nth-child(12n + 11) { color: #d84315; }
.material-links-secondary .material-link:nth-child(12n) { color: #455a64; }
.material-links-secondary .material-link:hover,
.material-links-secondary .material-link:focus-visible {
  border-color: #c7d5ca;
  background: #f5f8f5;
  box-shadow: 0 1px 4px rgb(31 65 43 / 10%);
}
.material-link-empty { background: #fff; }
.material-banner { display: block; width: calc(100% - 30px); height: auto; margin: 0 15px 14px; border-radius: 4px; }
.dynamic-material-banner {
  position: relative;
  width: 100%;
  height: 76px;
  overflow: hidden;
  margin: 12px 0 4px;
  border: 1px solid #e8bd69;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 78% 120%, rgb(255 239 178 / 70%), transparent 42%),
    radial-gradient(ellipse at 18% -25%, rgb(255 199 83 / 75%), transparent 46%),
    linear-gradient(108deg, #9d481e 0%, #d9832d 34%, #f5be59 64%, #b95b20 100%);
}
.dynamic-material-banner::before {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -42%;
  width: 28%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgb(255 250 220 / 62%), transparent);
  content: "";
  animation: material-banner-sheen 5.5s ease-in-out infinite;
}
.dynamic-material-banner::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 72%, rgb(255 243 190 / 68%) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 29%, rgb(255 247 207 / 82%) 0 2px, transparent 3px),
    radial-gradient(circle at 69% 78%, rgb(255 250 220 / 68%) 0 1px, transparent 2px);
  content: "";
  animation: material-banner-glow 3.8s ease-in-out infinite alternate;
}
@keyframes material-banner-sheen {
  0%, 22% { left: -42%; }
  78%, 100% { left: 120%; }
}
@keyframes material-banner-glow {
  from { opacity: .45; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dynamic-material-banner::before, .dynamic-material-banner::after, .color-light-frame { animation: none; }
}
.published-articles { border-top: 1px solid #edf0ec; }
.article-subheading { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; color: #526257; font-size: 11px; }
.published-articles .article-list { padding-top: 0; }
.prediction-disclaimer { margin: 0 15px 14px; padding: 10px 11px; border: 1px solid #ece7dc; border-radius: 6px; color: #7c705b; background: #fcfaf6; font-size: 10px; line-height: 1.6; }
.info-strip { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 13px 16px; border: 1px solid #e4e9e3; border-radius: 8px; color: #728076; background: #f9faf8; }
.info-icon { display: grid; flex: 0 0 21px; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #5d765f; background: #e9efe8; font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.info-strip p { margin: 0; font-size: 11px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 21px max(20px, calc((100% - 1120px)/2)); border-top: 1px solid var(--line); color: #89938c; background: #fff; font-size: 11px; }

/* Standalone history page */
.history-page { width: min(980px, calc(100% - 40px)); margin: 24px auto 48px; }
.history-controls { overflow: hidden; border: 1px solid #e3e8e2; background: #fff; }
.history-control-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e9ece8; }
.history-control-row:last-child { border-bottom: 0; }
.history-control-label { flex: 0 0 48px; color: #b44a3d; font-size: 13px; font-weight: 700; text-align: center; }
.history-filter-buttons { display: flex; flex: 1; flex-wrap: wrap; gap: 5px; }
.history-filter-button, .history-reset { min-width: 39px; min-height: 29px; padding: 4px 9px; border: 1px solid #e2dfc8; border-radius: 4px; color: #41483d; background: #fffef3; font-size: 13px; }
.history-filter-button:hover, .history-filter-button.active { border-color: #347d43; color: #fff; background: #398b48; }
.history-reset { flex: 0 0 auto; border-color: #54a96b; color: #fff; background: #54a96b; }
.history-reset:hover { background: #398b48; }
.history-years { display: flex; gap: 5px; overflow-x: auto; margin: 9px 0 6px; padding: 4px; background: #f1f1f1; scrollbar-width: thin; }
.history-year-button { display: grid; flex: 1 0 86px; min-height: 34px; place-items: center; padding: 5px 10px; border: 0; border-radius: 5px; color: #fff; background: #ff9800; font-size: 13px; white-space: nowrap; cursor: pointer; }
.history-year-button:hover, .history-year-button.active { background: #fff; color: #4d554e; }
.history-home-link { background: #ff9800; }
.history-status { margin: 0; padding: 5px 3px; color: var(--ink-muted); font-size: 11px; }
.history-draw-row { margin-bottom: 5px; padding: 4px 4px 5px; border: 1px solid #eceeeb; background: #fff; }
.history-period { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 3px; color: #718078; font-size: 13px; font-weight: 400; line-height: 1.4; }
.history-period strong { color: #56645b; font-size: 14px; }
.history-number-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 24px minmax(0, 1fr); gap: 4px; }
.history-number-card { display: grid; min-width: 0; grid-template-rows: 22px 17px; text-align: center; }
.history-number-plus { display: grid; place-items: center; color: #f28c00; font-size: 25px; font-weight: 900; line-height: 1; }
.history-number { display: grid; place-items: center; border-radius: 2px; color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.history-number.red { background: #f10c0c; }
.history-number.blue { background: #1515f5; }
.history-number.green { background: #07830e; }
.history-number.unknown { background: #68756b; }
.history-zodiac { overflow: hidden; color: #48544b; font-size: 12px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.special-number-card { position: relative; padding-left: 12px; }
.history-special-label { position: absolute; top: 3px; left: 0; color: #68756b; font-size: 12px; }
.history-empty, .history-error { margin: 0; padding: 28px 15px; border: 1px solid var(--line); color: var(--ink-muted); background: #fff; font-size: 13px; text-align: center; }
.history-error { color: #a2473c; }
.history-pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 12px; color: var(--ink-muted); font-size: 12px; }
.history-page-button { min-height: 32px; padding: 5px 12px; border: 1px solid #dce5de; border-radius: 5px; color: var(--green); background: #fff; }
.history-page-button:disabled { color: #aab2ac; background: #f3f4f2; cursor: default; }

/* Public archive pages */
.reserved-page {
  background:
    radial-gradient(ellipse at 12% 15%, rgb(255 218 128 / 16%), transparent 30%),
    radial-gradient(ellipse at 88% 25%, rgb(118 220 204 / 15%), transparent 28%),
    linear-gradient(135deg, #f7f7f1, #f2f7f4 50%, #f7f3f9);
  background-size: 140% 140%;
  animation: reserved-background-drift 16s ease-in-out infinite alternate;
}
@keyframes reserved-background-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
.material-shell { width: min(900px, calc(100% - 40px)); margin: 38px auto 60px; }
.reserved-page .material-card {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #ff8a65, #ffd54f, #66bb6a, #4dd0e1, #7986cb, #ba68c8, #ff8a65) border-box;
  background-size: auto, 260% 260%;
  animation: reserved-card-shimmer 9s ease-in-out infinite alternate;
}
@keyframes reserved-card-shimmer {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 0 0, 100% 50%; }
}
.material-intro { margin-bottom: 19px; }
.material-intro h1 { margin-bottom: 7px; color: var(--green-dark); font-size: clamp(24px, 3vw, 31px); }
.material-intro p { margin-bottom: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.65; }
.material-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.material-card .panel-heading { min-height: 68px; }
.material-content { padding: 18px 20px; }
.cold-reference {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid #e5e9df;
  border-radius: 12px;
  background: #fbfcf8;
}
.cold-reference-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e8ebdf;
  background: #f3f6ec;
}
.cold-reference-kicker { color: #72824d; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.cold-reference-heading h2 { margin: 4px 0 0; color: #314631; font-size: 19px; }
.cold-reference-count { padding: 5px 9px; border: 1px solid #dce5cd; border-radius: 99px; color: #607345; background: #fff; font-size: 10px; white-space: nowrap; }
.cold-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 13px; }
.cold-reference-row { min-width: 0; padding: 11px; border: 1px solid #e8ece5; border-radius: 8px; background: #fff; }
.cold-reference-row h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin: 0 0 9px; color: #334838; font-size: 13px; }
.cold-reference-row h3 small { color: #8a9588; font-size: 10px; font-weight: 500; }
.cold-reference-numbers { display: flex; flex-wrap: wrap; gap: 5px; }
.cold-reference-number { display: grid; min-width: 30px; min-height: 28px; place-items: center; border: 1px solid #e4e9df; border-radius: 5px; color: #465747; background: #f8faf5; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cold-reference-number.is-highlighted { border-color: #f1d45a; color: #a73822; background: #fff5b9; }
.zodiac-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 13px; }
.zodiac-reference-row { min-width: 0; padding: 11px; border: 1px solid #e8ece5; border-radius: 8px; background: #fff; }
.zodiac-reference-row h3 { margin: 0 0 9px; color: #334838; font-size: 13px; }
.zodiac-reference-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.zodiac-reference-pick { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 5px; padding: 8px; border: 1px solid #e8ece5; border-radius: 7px; }
.zodiac-reference-pick > span { color: #78847b; font-size: 10px; }
.zodiac-reference-pick strong { color: #465747; font-size: 14px; font-weight: 800; }
.zodiac-reference-pick.is-main { border-color: #f0d7cb; background: #fff8f4; }
.zodiac-reference-pick.is-main strong { color: #ad4935; }
.zodiac-reference-pick.is-defense { border-color: #d8dfef; background: #f7f8fc; }
.zodiac-reference-pick.is-defense strong { color: #4e5e91; }
.three-period-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 13px; }
.three-period-reference-row { min-width: 0; padding: 11px; border: 1px solid #e8ece5; border-radius: 8px; background: #fff; }
.three-period-reference-row > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.three-period-reference-row h3 { margin: 0; color: #334838; font-size: 14px; }
.three-period-reference-row > header > span { padding: 4px 8px; border: 1px solid #dce8d7; border-radius: 99px; color: #4e7650; background: #f5faf1; font-size: 10px; font-weight: 700; white-space: nowrap; }
.three-period-reference-details { display: grid; gap: 6px; }
.three-period-reference-detail { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 7px 8px; border: 1px solid #edf0e9; border-radius: 6px; background: #fafbf8; }
.three-period-reference-detail > span { color: #78847b; font-size: 10px; }
.three-period-reference-detail strong { color: #4a5b4c; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.three-period-reference-row:last-child .three-period-reference-detail strong { color: #a84e32; }
.three-period-reference-muted { margin: 0; color: #8a9588; font-size: 11px; line-height: 1.6; }
.bull-head-reference-grid { display: grid; gap: 5px; padding: 11px; }
.bull-head-reference-row { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) minmax(100px, auto); align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid #e8ece5; border-radius: 7px; background: #fff; }
.bull-head-period { color: #405641; font-size: 12px; }
.bull-head-category { color: #a84e32; font-size: 12px; }
.bull-head-detail { color: #526991; font-size: 12px; font-weight: 700; }
.bull-head-result { color: #a84e32; font-size: 12px; font-weight: 750; }
.bull-head-unreadable { color: #7b847b; font-size: 11px; font-weight: 500; }
.lion-tail-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 11px; }
.lion-tail-reference-row { min-width: 0; padding: 10px; border: 1px solid #e8ece5; border-radius: 7px; background: #fff; }
.lion-tail-reference-row h3 { margin: 0 0 8px; color: #405641; font-size: 13px; }
.lion-tail-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #728076; font-size: 10px; }
.lion-tail-pick strong { color: #ad4935; font-size: 16px; font-weight: 850; }
.lion-tail-pick b { color: #778b57; font-size: 14px; }
.lion-tail-pick .lion-tail-defense { font-size: 12px; }
.lion-tail-note { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid #edf0e9; color: #758075; font-size: 10px; line-height: 1.5; }
.four-zodiac-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 11px; }
.four-zodiac-detail-row { min-width: 0; padding: 10px; border: 1px solid #e8ece5; border-radius: 7px; background: #fff; }
.four-zodiac-detail-row > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.four-zodiac-detail-row h3 { margin: 0; color: #405641; font-size: 13px; }
.four-zodiac-detail-row > header > strong { color: #a84e32; font-size: 12px; }
.four-zodiac-group { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 6px; padding: 7px 0; border-top: 1px solid #edf0e9; }
.four-zodiac-group h4 { margin: 0; color: #71804f; font-size: 10px; }
.four-zodiac-signs { display: flex; flex-wrap: wrap; gap: 4px; }
.four-zodiac-signs span { min-width: 22px; padding: 3px 5px; border-radius: 4px; color: #526547; background: #eef4e7; font-size: 11px; font-weight: 750; text-align: center; }
.four-zodiac-numbers { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; color: #78847b; font-size: 10px; }
.four-zodiac-numbers strong { color: #a74332; font-size: 11px; font-variant-numeric: tabular-nums; }
.four-zodiac-unreadable { margin: 0; color: #7b847b; font-size: 11px; line-height: 1.5; }
.single-double-ten-note { margin: 7px 0 0; padding-top: 7px; border-top: 1px solid #edf0e9; color: #74804f; font-size: 11px; font-weight: 700; }
.male-female-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 13px; }
.male-female-reference-row { min-width: 0; overflow: hidden; border: 1px solid #e8ece5; border-radius: 8px; background: #fff; }
.male-female-period { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; border-bottom: 1px solid #e8ece5; background: #f7f8f3; }
.male-female-period h3 { margin: 0; color: #334838; font-size: 14px; }
.male-female-reference-pick { color: #78847b; font-size: 10px; }
.male-female-reference-pick strong { color: #a84e32; font-size: 13px; font-weight: 800; }
.male-female-groups { display: grid; gap: 7px; padding: 9px; }
.male-female-group { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 7px; min-width: 0; padding: 7px; border: 1px solid #edf0e9; border-radius: 6px; background: #fcfdfb; }
.male-female-group h4 { margin: 0; color: #4e7650; font-size: 10px; }
.male-female-zodiacs, .male-female-numbers { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.male-female-zodiacs span, .male-female-numbers span { display: grid; min-width: 22px; min-height: 23px; place-items: center; border-radius: 4px; font-size: 11px; font-weight: 750; }
.male-female-zodiacs span { color: #526547; background: #eef4e7; }
.male-female-numbers span { color: #a74332; background: #fff0e9; font-variant-numeric: tabular-nums; }
.male-female-unreadable { grid-column: 2 / -1; margin: 0; color: #8a9588; font-size: 10px; }
.cold-reference-notice { margin: 0; padding: 11px 15px; border-top: 1px solid #e8ebdf; color: #798473; background: #f7f8f3; font-size: 10px; line-height: 1.6; }
.material-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #e4e9e3; border-radius: 7px; color: #728076; background: #f9faf8; font-size: 11px; line-height: 1.65; }
.material-filter { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #edf0ec; color: #78847b; font-size: 11px; }
.material-filter select { min-height: 31px; padding: 4px 26px 4px 8px; border: 1px solid #e1e7e1; border-radius: 6px; color: #46564b; background: #fff; font: inherit; }
.year-link { color: var(--green); font-weight: 650; }
.source-url { overflow-wrap: anywhere; color: var(--green); }
.material-back { display: inline-flex; margin-top: 16px; color: var(--green); font-size: 12px; }
.material-back:hover { text-decoration: underline; }
.all-material-nav {
  overflow: hidden;
  margin-top: 15px;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  background: rgb(255 255 255 / 94%);
}
.all-material-nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0e8;
  background: linear-gradient(100deg, #fff8e8, #effaf5 52%, #f7f0fb);
}
.all-material-nav-kicker { color: #8a7047; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.all-material-nav-heading h2 { margin: 3px 0 0; color: #304438; font-size: 17px; }
.all-material-nav-count { padding: 5px 9px; border: 1px solid #e7e8d8; border-radius: 99px; color: #667452; background: #fff; font-size: 10px; white-space: nowrap; }
.all-material-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; padding: 12px; }
.all-material-link {
  display: grid;
  min-width: 0;
  min-height: 36px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid #e4e9e3;
  border-radius: 7px;
  color: #405449;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}
.all-material-link:nth-child(6n + 1) { border-color: #f1d4c7; color: #a84e32; background: #fff8f4; }
.all-material-link:nth-child(6n + 2) { border-color: #f0e1ad; color: #84641e; background: #fffdf3; }
.all-material-link:nth-child(6n + 3) { border-color: #cce5cf; color: #3c7547; background: #f5fcf5; }
.all-material-link:nth-child(6n + 4) { border-color: #c7e5e9; color: #287280; background: #f3fbfc; }
.all-material-link:nth-child(6n + 5) { border-color: #d3d8f0; color: #505d9b; background: #f6f7ff; }
.all-material-link:nth-child(6n) { border-color: #e6d0ec; color: #80518c; background: #fcf7fd; }
.all-material-link:hover, .all-material-link:focus-visible { transform: translateY(-2px); border-color: #8db69a; color: #294e37; background: #f2faf3; outline: none; }
.all-material-link.is-current { border-color: #476f53; color: #fff; background: #476f53; }
.all-material-link.is-current:hover, .all-material-link.is-current:focus-visible { border-color: #355840; color: #fff; background: #355840; }
@media (prefers-reduced-motion: reduce) {
  .reserved-page, .reserved-page .material-card { animation: none; }
  .all-material-link { transition: none; }
}
.prediction-list { display: grid; gap: 12px; padding: 16px; }
.prediction-item { padding: 15px 16px; border: 1px solid #e7ece7; border-radius: 8px; background: #fff; }
.prediction-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 8px; color: #8a7047; font-size: 10px; }
.prediction-item h2 { margin: 0 0 9px; color: #304438; font-size: 16px; }
.prediction-body { margin: 0; color: #58665c; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }
.prediction-notice { margin: 0 16px 16px; padding: 12px 14px; border: 1px solid #ece7dc; border-radius: 7px; color: #786c57; background: #fcfaf6; font-size: 11px; line-height: 1.7; }
.generated-statistics { border-bottom: 1px solid #edf0ec; }
.generated-statistics > h2, .stats-content > h2 { margin: 18px 16px 7px; color: #304438; font-size: 15px; }
.stats-intro { margin: 0; padding: 0 16px 13px; color: #78847b; font-size: 11px; line-height: 1.65; }
.stats-content { padding-bottom: 12px; }
.stats-content .table-scroller { max-height: 520px; overflow-y: auto; }
.stats-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 16px; }
.stats-summary > div { padding: 12px; border: 1px solid #e7ece7; border-radius: 7px; background: #fcfdfb; }
.stats-summary dt { color: #78847b; font-size: 10px; }
.stats-summary dd { margin: 5px 0 0; color: var(--green); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }

/* Admin surfaces */
.admin-page { background: #f5f6f2; }
.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 35px auto 70px; }
.login-panel { width: min(440px, 100%); margin: 50px auto; padding: 26px; }
.login-panel h1 { margin: 0 0 8px; color: var(--green-dark); font-size: 24px; }
.login-intro { margin-bottom: 22px; color: var(--ink-muted); font-size: 13px; }
.login-panel form { display: grid; gap: 14px; }
.form-field { display: grid; gap: 7px; min-width: 0; color: #58665c; font-size: 12px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #d6ded7; border-radius: 6px;
  color: #27382d; background: #fff; font-size: 13px; font-weight: 400;
}
.form-field select { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid #d6ded7; border-radius: 6px; color: #27382d; background: #fff; font-size: 13px; font-weight: 400; }
.form-field input { min-height: 39px; }
.form-field textarea { resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid #b6cebb; border-color: #789b80; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 37px; padding: 8px 13px; border: 1px solid #d5ded7; border-radius: 6px; color: #3f5546; background: #fff; font-size: 12px; }
.button:hover { background: #f4f7f3; }
.button-primary { border-color: var(--green); color: #fff; background: var(--green); }
.button-primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button-quiet { color: #67746a; background: transparent; }
.button-small { min-height: 30px; padding: 5px 9px; }
.form-message { min-height: 18px; margin: 0; color: var(--green); font-size: 12px; line-height: 1.5; }
.form-message.error { color: #a2473c; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.admin-title-row h1 { margin: 0; }
.admin-title-row .eyebrow { margin-bottom: 5px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.admin-editor .panel-heading { min-height: 68px; }
.editor-form { display: grid; gap: 15px; padding: 18px 20px 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.checkbox-field { display: flex; align-items: center; gap: 8px; min-height: 39px; color: #59675d; font-size: 12px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--green); }
.position-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #59675d; font-size: 12px; font-weight: 600; }
.position-list { display: grid; gap: 8px; }
.position-row { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(72px, .75fr) minmax(80px, 1fr) 32px; gap: 7px; align-items: end; }
.position-row .form-field { gap: 5px; font-size: 10px; }
.position-row .form-field input { min-height: 35px; padding: 7px 8px; font-size: 12px; }
.remove-position { width: 32px; min-height: 35px; padding: 4px; border-color: #ead8d6; color: #a2473c; }
.field-hint, .admin-footnote { margin: -6px 0 0; color: #89938c; font-size: 11px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.records-panel { margin-top: 18px; }
.admin-article-list { padding: 2px 18px; }
.admin-article { display: flex; justify-content: space-between; gap: 14px; padding: 13px 2px; border-bottom: 1px solid #edf0ec; }
.admin-article:last-child { border-bottom: 0; }
.admin-article-copy { min-width: 0; }
.admin-article-copy strong, .admin-article-copy small { display: block; }
.admin-article-copy strong { overflow-wrap: anywhere; color: #304438; font-size: 13px; }
.admin-article-copy small { margin-top: 5px; color: #879188; font-size: 10px; }
.admin-article-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.admin-article-actions .button { min-height: 29px; padding: 5px 8px; }
.button-danger { border-color: #ead8d6; color: #a2473c; }
.admin-footnote { margin-top: 14px; }
@media (max-width: 820px) {
  .main-nav { gap: 16px; }
  .content-grid { grid-template-columns: 1fr; }
  #articles { order: 1; }
  #history { order: 2; }
}
@media (max-width: 620px) {
  .header-inner { width: calc(100% - 28px); min-height: 66px; flex-wrap: wrap; gap: 0 14px; padding: 11px 0 0; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .admin-link { margin-left: auto; padding: 7px 10px; font-size: 11px; }
  .main-nav { order: 3; width: 100%; height: 43px; justify-content: space-between; gap: 8px; }
  .main-nav a { font-size: 11px; }
  .page-shell, .admin-shell { width: calc(100% - 24px); margin-top: 24px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .welcome-row h1 { font-size: 25px; }
  .draw-feature { padding: 20px 17px 15px; }
  .latest-draw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 18px minmax(0, 1fr); gap: 5px; }
  .number-plus { font-size: clamp(26px, 8vw, 34px); }
  .number-chip { width: 100%; min-width: 0; min-height: 58px; padding: 5px 1px; gap: 3px; }
  .number-value, .number-label { font-size: clamp(14px, 5vw, 19px); }
  .panel-heading { padding: 14px 15px; }
  .history-filter { gap: 5px; }
  th, td { padding: 10px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 18px 14px; }
  .admin-grid { grid-template-columns: 1fr; }
  .login-panel { margin: 25px auto; padding: 21px; }
  .editor-form { padding: 16px; }
  .material-shell { width: calc(100% - 24px); margin-top: 24px; }
  .material-content { padding: 14px; }
  .all-material-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 9px; }
  .all-material-link { min-height: 38px; padding: 5px 4px; font-size: 11px; }
  .cold-reference-grid { grid-template-columns: 1fr; gap: 7px; padding: 9px; }
  .zodiac-reference-grid { grid-template-columns: 1fr; gap: 7px; padding: 9px; }
  .three-period-reference-grid { grid-template-columns: 1fr; gap: 7px; padding: 9px; }
  .bull-head-reference-grid { gap: 5px; padding: 8px; }
  .bull-head-reference-row { grid-template-columns: 48px 76px minmax(0, 1fr); gap: 5px; padding: 8px; }
  .bull-head-result { grid-column: 3; }
  .lion-tail-reference-grid { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .four-zodiac-detail-grid { grid-template-columns: 1fr; gap: 6px; padding: 8px; }
  .male-female-reference-grid { grid-template-columns: 1fr; gap: 7px; padding: 9px; }
  .cold-reference-heading { padding: 13px; }
  .cold-reference-row { padding: 9px; }
  .zodiac-reference-row { padding: 9px; }
  .three-period-reference-row { padding: 9px; }
  .male-female-groups { gap: 5px; padding: 7px; }
  .male-female-group { grid-template-columns: 68px minmax(0, 1fr); gap: 5px; padding: 6px; }
  .male-female-group h4 { grid-row: span 2; }
  .male-female-unreadable { grid-column: 2; }
  .material-links { padding: 11px; gap: 3px; }
  .material-banner { width: calc(100% - 22px); margin-right: 11px; margin-left: 11px; }
  .dynamic-material-banner { width: 100%; height: 58px; margin: 8px 0 4px; }
  .history-page { width: calc(100% - 20px); margin-top: 12px; }
  .history-control-row { gap: 5px; padding: 7px 5px; }
  .history-control-label { flex-basis: 34px; font-size: 12px; }
  .history-filter-buttons { gap: 4px; }
  .history-filter-button, .history-reset { min-width: 32px; min-height: 29px; padding: 4px 7px; font-size: 12px; }
  .history-reset { padding-right: 6px; padding-left: 6px; }
  .history-years { gap: 4px; margin-top: 7px; }
  .history-year-button { flex-basis: 72px; min-height: 32px; font-size: 12px; }
  .history-number-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) 18px minmax(0, 1fr); gap: 3px; }
  .history-number-plus { font-size: 21px; }
  .history-number-card { grid-template-rows: 21px 16px; }
  .history-number { font-size: 14px; }
  .history-zodiac { font-size: 11px; line-height: 16px; }
  .special-number-card { padding-left: 10px; }
  .history-special-label { font-size: 11px; }
}
@media (max-width: 440px) {
  #history th, #history td { padding: 9px 7px; }
  #history table { font-size: 13px; }
  #history th { font-size: 11px; white-space: normal; }
  #history th:nth-child(1), #history td:nth-child(1) { width: 38%; }
  #history th:nth-child(2), #history td:nth-child(2) { width: 62%; }
  #history .period-label { white-space: normal; }
  #history .period-date { font-size: 10px; }
  #history .table-positions { grid-template-columns: repeat(auto-fit, minmax(26px, 1fr)); gap: 5px 1px; }
  .draw-footer { flex-wrap: wrap; }
  .source-note { text-align: left; }
  .position-row { grid-template-columns: 1fr 1fr; }
  .position-row .form-field:first-child { grid-column: 1; }
  .position-row .form-field:nth-child(2) { grid-column: 2; }
  .position-row .form-field:nth-child(3) { grid-column: 1; }
  .position-row .remove-position { grid-column: 2; grid-row: 2; justify-self: end; }
  .form-row { gap: 9px; }
}

/* 每日参考号：首页入口按钮、独立页面与后台面板 */
.daily-entry {
  display: flex; align-items: center; gap: 12px; margin: 10px 16px 4px; padding: 12px 14px;
  border: 1px solid #cfe0d4; border-radius: 9px;
  background: linear-gradient(135deg, #f2f8f3 0%, #eaf3ec 100%);
}
.daily-entry:hover { border-color: var(--green); background: linear-gradient(135deg, #eaf4ec 0%, #e2efe6 100%); }
.daily-entry-badge {
  flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #fff;
  background: #d8862a; font-size: 10px; font-weight: 700; letter-spacing: .06em;
}
.daily-entry-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.daily-entry-copy strong { color: var(--green-dark); font-size: 15px; }
.daily-entry-copy small { color: #7c8a80; font-size: 11px; line-height: 1.5; }
.daily-entry-numbers { display: flex; flex-wrap: wrap; gap: 3px; margin-left: auto; }
.daily-entry-number {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px;
  color: #fff; background: #68756b; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.daily-entry-number.red { background: #f10c0c; }
.daily-entry-number.blue { background: #1515f5; }
.daily-entry-number.green { background: #07830e; }
.daily-entry-number.unknown { background: #68756b; }
.daily-entry-empty { color: #93a096; font-size: 11px; }

.daily-page { display: flex; flex-direction: column; gap: 16px; }
.daily-today-body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 4px; }
.daily-number-grid { max-width: 520px; }
.daily-summary {
  margin: 0; color: var(--green-dark); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.daily-meta { margin: 0; padding: 0 16px 16px; color: #879188; font-size: 11px; line-height: 1.7; }
.daily-history-list { padding: 4px 16px 16px; }
.daily-history-row { padding: 10px; }
.daily-admin-current { display: flex; flex-direction: column; gap: 5px; padding: 0 18px 12px; }
.daily-admin-current strong { color: var(--green-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.daily-admin-current small { color: #879188; font-size: 11px; line-height: 1.6; }
.daily-admin-current .empty-copy { padding: 0; }

@media (max-width: 720px) {
  .daily-entry { flex-wrap: wrap; margin: 9px 11px 3px; padding: 11px; }
  .daily-entry-numbers { margin-left: 0; }
  .daily-entry-copy strong { font-size: 14px; }
  .daily-today-body, .daily-meta, .daily-history-list { padding-right: 12px; padding-left: 12px; }
  .daily-admin-current { padding-right: 14px; padding-left: 14px; }
}

/* 后台：彩种切换、概览、摇奖面板 */
.lottery-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.lottery-tab {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px solid #dbe4dc; border-radius: 8px; color: #3f5546; background: #fff; text-align: left;
}
.lottery-tab:hover { border-color: var(--green); background: var(--green-soft); }
.lottery-tab.active { border-color: var(--green); color: #fff; background: var(--green); }
.lottery-tab strong { font-size: 15px; }
.lottery-tab small { color: #879188; font-size: 11px; }
.lottery-tab.active small { color: #d7e6db; }

.lottery-summary { margin-bottom: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.summary-title { margin: 0; color: var(--green-dark); font-size: 16px; }
.summary-line { margin: 0; color: #55665b; font-size: 12px; line-height: 1.7; }
.summary-hint { color: #879188; font-size: 11px; overflow-wrap: anywhere; }
.origin-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.origin-chip {
  padding: 3px 8px; border: 1px solid #e0e7e1; border-radius: 999px;
  color: #5c6c61; background: #f7faf7; font-size: 11px;
}

.draw-machine {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1fr);
  gap: 7px; padding: 4px 18px 2px;
}
.draw-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.draw-slot-label { color: #879188; font-size: 11px; white-space: nowrap; }
.draw-slot-input {
  width: 100%; height: 46px; border: 1px solid #d5ded7; border-radius: 7px;
  color: var(--green-dark); background: #fff; font-size: 20px; font-weight: 700;
  font-variant-numeric: tabular-nums; text-align: center;
}
.draw-slot-input:focus { border-color: var(--green); outline: 2px solid rgba(40, 90, 66, .18); }
.draw-slot-special { padding-left: 9px; border-left: 1px solid #eceeeb; }
.draw-slot-special .draw-slot-input { border-color: #e3c98a; background: #fffdf4; }
.draw-slot-input.is-rolling { color: #b06f14; border-color: #e3c98a; background: #fff8e6; }
@media (prefers-reduced-motion: no-preference) {
  .draw-slot-input.is-rolling { animation: draw-slot-pulse .28s ease-in-out infinite alternate; }
}
@keyframes draw-slot-pulse {
  from { transform: translateY(-1px); }
  to { transform: translateY(1px); }
}
.draw-machine + .field-hint { margin-top: 8px; }

.panel-heading-sub { margin-top: 16px; border-top: 1px solid #edf0ec; }
.panel-heading-sub h3 { margin: 0; color: var(--green-dark); font-size: 15px; }
.table-scroller-tall { max-height: 420px; overflow-y: auto; }
.scrape-report { padding: 0 18px 6px; }
.scrape-line { margin: 4px 0; color: #6d7c72; font-size: 11px; line-height: 1.6; }
.scrape-conflict { color: #a2473c; }

@media (max-width: 900px) {
  .lottery-switcher { grid-template-columns: 1fr; }
  .draw-machine { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .draw-slot-special { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .draw-machine { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 4px 12px 2px; }
  .draw-slot-input { height: 40px; font-size: 17px; }
  .draw-slot-label { font-size: 10px; }
}
