:root {
  --brand: #6387cd;
  --brand-dark: #4267b3;
  --red: #ed0000;
  --green: #19aa21;
  --blue: #2687df;
  --border: #cfdae9;
  --ink: #242424;
  --site-width: 720px;
  --header-height: 140px;
  --nav-height: 56px;
  --font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 148px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  background: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #123e99;
  outline-offset: 2px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.site-shell {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding-bottom: var(--nav-height);
}
.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: var(--site-width);
  background: #fff;
}
.brand-bar {
  height: 58px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.brand-logo {
  height: 47px;
  display: block;
  max-width: 310px;
  object-fit: contain;
}
.brand-badge {
  height: 43px;
  max-width: 132px;
}
.brand-badge img {
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: contain;
}
.brand-name {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 9px;
  border: 2px solid #d9ffd2;
  border-radius: 6px;
  background: #0fa10f;
  color: #ffe600;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.lottery-tabs {
  height: 40px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
}
.lottery-tab {
  height: 40px;
  flex: 1 0 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eee;
  color: #080808;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  gap: 3px;
}
.lottery-tab img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}
.lottery-tab.selected {
  color: #fff;
  background: var(--brand);
}
.lottery-tab:hover {
  filter: brightness(0.96);
}
.compact-result {
  height: 42px;
  display: flex;
  background: #fff;
  overflow: hidden;
  font-weight: 700;
}
.compact-issue {
  flex: 0 0 20%;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  line-height: 17px;
}
.record-link {
  background: #ffff00;
  color: #ef0000;
  font-weight: bold;
  line-height: 17px;
}
.compact-balls {
  display: flex;
  flex: 1;
  min-width: 0;
}
.compact-ball {
  flex: 1;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 20px;
}
.compact-ball strong {
  display: block;
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: white;
  line-height: 20px;
}
.compact-ball span {
  font-size: 16px;
  line-height: 20px;
}
.compact-ball.pending-ball strong {
  background: #cfcfcf;
  color: #111;
}
.compact-ball.pending-ball span {
  display: none;
}
.red {
  --ball-color: #e60012;
  --ball-light: #ff5a5f;
  --ball-dark: #a8000d;
}
.blue {
  --ball-color: #1268c8;
  --ball-light: #6aa4ee;
  --ball-dark: #0a468c;
}
.green {
  --ball-color: #0b9d43;
  --ball-light: #5fcd8b;
  --ball-dark: #06702f;
}
.compact-ball strong {
  background: var(--ball-color);
}
.compact-refresh {
  flex: 0 0 22px;
  font-size: 15px;
  line-height: 19px;
  background: #ffff00;
  color: red;
}
.header-spacer {
  height: 140px;
}
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: linear-gradient(#dfeeff, #fff);
  border: 1px solid #a2bce7;
  border-radius: 7px;
  padding: 6px;
  margin-top: 3px;
  box-shadow: 0 1px 4px #d6dfeb;
}
.sponsor-grid button,
.sponsor-grid .sponsor-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #c8d8ed;
  background: #fff;
  box-shadow: 0 2px 5px #cbd9eb;
}
.sponsor-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}
.sponsor-grid button:hover,
.sponsor-grid .sponsor-card:hover {
  filter: brightness(1.06);
}
.live-stage {
  height: 430px;
  background: #353a40;
  margin: 5px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  border: 1px solid #b6b6b6;
}
.live-message {
  text-align: center;
  margin-top: 0;
}
.live-message h1 {
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 4px;
  font-weight: 700;
}
.red-label {
  display: table;
  background: red;
  border-radius: 6px;
  font-size: 25px;
  font-weight: 700;
  padding: 4px 8px;
  line-height: 1.4;
  margin: 4px auto;
}
.live-note {
  font-size: 16px;
  margin: 5px 0 14px;
  font-weight: 700;
}
.live-refresh {
  color: #fff;
  background: #e60000;
  border-radius: 4px;
  padding: 11px 25px;
  font-size: 16px;
  min-width: 116px;
}
.live-refresh:hover {
  background: #b90000;
}
.live-countdown {
  position: absolute;
  bottom: 15px;
  font-size: 13px;
  color: #bac2ce;
  letter-spacing: 0.3px;
}
.headline-list {
  border: 2px solid #dfa800;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.headline-list button {
  height: 67px;
  background: #ffff00;
  border-bottom: 1px solid #eda500;
  font-size: 27px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
}
.headline-list button:last-child {
  border-bottom: 0;
}
.headline-list em {
  font-style: normal;
  color: #e00000;
}
.headline-list button:hover {
  background: #fff6a2;
}
.notice-strip {
  font-size: 18px;
  font-weight: 700;
  color: red;
  text-align: center;
  padding: 9px 4px;
  background: #fff;
}
.notice-strip span {
  color: #001eff;
}
.draw-card {
  border: 1px solid #b9cbe9;
  border-radius: 6px;
  margin: 5px 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px #dee6f2;
}
.draw-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#d1e0f7, #f9fbff);
  padding: 9px 14px;
  font-size: 19px;
  font-weight: bold;
  color: #284d87;
  gap: 8px;
}
.draw-card-head time {
  color: #f03a37;
  font:
    700 18px Arial,
    sans-serif;
}
.draw-card-head button {
  color: #426799;
  font-size: 14px;
  text-decoration: underline;
}
.draw-balls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 15px 7px;
  gap: 10px;
}
.number-ball {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.ball-circle {
  font:
    700 29px Arial,
    sans-serif;
  border-radius: 50%;
  height: 62px;
  width: 62px;
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(
    circle at 32% 25%,
    #fff8,
    var(--ball-color) 55%,
    color-mix(in srgb, var(--ball-color) 80%, black)
  );
  box-shadow:
    inset 0 -2px 3px #0002,
    0 1px 2px #0002;
  margin: auto;
  border: 1px solid #fff;
}
.number-ball small {
  display: block;
  font-size: 19px;
  margin: 5px 0 0;
}
.number-ball.is-pending .ball-circle {
  border-radius: 4px;
  background: #d6d6d6;
  color: #111;
  box-shadow: none;
  border-color: #d6d6d6;
}
.number-ball.is-pending small {
  visibility: hidden;
}
.ball-plus {
  font-size: 25px;
  font-weight: 700;
  color: #454545;
  flex: 0 0 15px;
}
.ball-plus.pending-plus {
  color: #ea0000;
}
.draw-card-foot {
  border-top: 1px solid #d5dfea;
  padding: 9px 13px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.draw-card-foot span {
  color: #4266a3;
}
.draw-card-foot button {
  color: #174d9b;
}
.demo-label {
  font-size: 11px;
  padding: 2px 5px;
  border: 1px solid #89a6d2;
  border-radius: 3px;
  font-weight: 400;
  white-space: nowrap;
  margin-left: 4px;
}
.bookmark-bar {
  height: 46px;
  background: #fff500;
  color: #df0000;
  width: 100%;
  font-size: 21px;
  font-weight: 700;
  border: 1px solid #e7b645;
  margin: 4px 0;
}
.bookmark-bar strong {
  color: #001fff;
}
.module {
  border: 2px solid var(--brand);
  border-radius: 5px;
  margin: 6px 0;
  overflow: hidden;
}
.module-title {
  height: 48px;
  line-height: 48px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(var(--brand), #b8ccef);
  border-bottom: 1px solid var(--brand);
  text-shadow: 0 1px 1px #41689e;
}
.recommended-links {
  padding: 4px 6px;
}
.recommended-links button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d2d2d2;
  box-shadow: 0 1px 4px #ddd;
  border-radius: 10px;
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  padding: 6px;
  margin: 5px 0;
}
.recommended-links button span {
  color: red;
}
.rank-mark {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  font-size: 18px;
  width: 26px;
  line-height: 26px;
}
.subsection-title {
  font-size: 24px;
  line-height: 40px;
  margin: 2px 0 0;
  text-align: center;
  background: linear-gradient(#c1d3f4, #fff);
  color: #163d76;
}
.articles-list button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #cecece;
  width: 100%;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.6;
  padding: 9px 4px;
  gap: 5px;
}
.articles-list button em {
  font-style: normal;
  color: #e00000;
}
.articles-list button span {
  color: #143dd2;
  font-size: 18px;
  white-space: nowrap;
}
.articles-list button:hover {
  background: #eaf1ff;
}
.reference-tabs {
  display: flex;
  border-bottom: 1px solid #d3ddec;
  background: #f4f7fc;
}
.reference-tabs button {
  font-size: 19px;
  font-weight: 700;
  flex: 1;
  padding: 11px;
}
.reference-tabs button.selected {
  background: var(--brand);
  color: white;
}
.reference-row {
  display: flex;
  align-items: center;
  min-height: 45px;
  border-bottom: 1px solid #dedede;
  font-size: 20px;
  font-weight: 700;
}
.reference-row:last-child {
  border-bottom: 0;
}
.reference-row strong {
  flex: 0 0 21%;
  text-align: center;
  border-right: 1px solid #dedede;
  color: #28467a;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reference-row span {
  flex: 1;
  text-align: center;
  padding: 6px 3px;
  word-spacing: 8px;
  font-family: Arial, var(--font);
}
.reference-row:nth-child(even) {
  background: #f4f8ff;
}
.reference-row.red span {
  color: #d90b0b;
}
.reference-row.blue span {
  color: #167cdc;
}
.reference-row.green span {
  color: #14a125;
}
.trend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 16px;
  color: #486080;
}
.trend-toolbar button {
  color: #234b9b;
}
.trend-preview {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 8px 25px 14px;
  min-height: 150px;
}
.trend-item {
  flex: 1;
  text-align: center;
}
.trend-bar {
  height: var(--height);
  max-height: 115px;
  min-height: 4px;
  background: var(--ball-color);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  padding-top: 3px;
}
.trend-number {
  font-size: 17px;
  font-weight: 700;
  margin-top: 7px;
}
.module-footnote {
  padding: 7px 12px;
  background: #f3f6fa;
  color: #627087;
  font-size: 13px;
  text-align: center;
  margin: 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.resource-grid > * {
  font-size: 22px;
  font-weight: 700;
  padding: 16px 3px;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
}
.resource-grid > *:nth-child(4n) {
  border-right: 0;
}
.resource-grid > *:hover {
  color: var(--brand);
  background: #f2f6ff;
}
.site-footer {
  margin: 14px 5px 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #626875;
}
.site-footer h2 {
  margin: 0;
  color: #444;
  font-size: 20px;
}
.site-footer p {
  margin: 6px 0;
  text-align: center;
}
.footer-brand {
  color: #002fcc;
  font-size: 21px;
  font-weight: 700;
}
.footer-brand b {
  color: #e30000;
  padding-left: 10px;
}
.footer-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  color: #6382b8;
  font-size: 14px;
}
.site-footer small {
  font-size: 12px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-height);
  width: 100%;
  max-width: var(--site-width);
  background: #fff;
  z-index: 30;
  display: flex;
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -1px 3px #ddd3;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  position: relative;
  font-size: 15px;
  color: #000;
}
.bottom-nav button b {
  font:
    700 30px Arial,
    sans-serif;
  line-height: 31px;
  color: var(--brand);
}
.bottom-nav svg {
  fill: var(--brand);
  width: 27px;
  height: 27px;
  margin-bottom: 3px;
}
.bottom-nav button .center-icon {
  font-family: var(--font);
  font-size: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  width: 45px;
  height: 45px;
  line-height: 43px;
  margin-top: -18px;
  border: 2px solid #fff;
  box-shadow: 0 0 2px #7392c2;
}
.bottom-nav button.selected span {
  font-weight: 700;
}
.bottom-nav button:hover {
  background: #f6f8fd;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  position: relative;
  font-size: 15px;
  color: #000;
  text-decoration: none;
}
.bottom-nav a b {
  font: 700 30px Arial, sans-serif;
  line-height: 31px;
  color: var(--brand);
}
.bottom-nav a .center-icon {
  font-family: var(--font);
  font-size: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  width: 45px;
  height: 45px;
  line-height: 43px;
  margin-top: -18px;
  border: 2px solid #fff;
  box-shadow: 0 0 2px #7392c2;
}
.bottom-nav a.selected span {
  font-weight: 700;
}
.bottom-nav a:hover {
  background: #f6f8fd;
}
@media (max-width: 480px) {
  .bottom-nav a {
    font-size: 12px;
  }
  .bottom-nav a b {
    font-size: 25px;
  }
  .bottom-nav a svg {
    height: 24px;
    width: 24px;
  }
  .bottom-nav a .center-icon {
    height: 41px;
    width: 41px;
    font-size: 28px;
    line-height: 39px;
  }
}
.floating-reminder {
  position: fixed;
  right: 20px;
  top: 63vh;
  z-index: 40;
  border: 3px solid #b9e5a9;
  border-radius: 5px;
  box-shadow: 0 0 4px #a6d8a0;
  background: #27d922;
  padding: 3px;
}
.float-close {
  position: absolute;
  right: -9px;
  top: -14px;
  line-height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #a8a8a8;
  color: white;
  font-size: 18px;
}
.reminder-content {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 17px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 1px #669645;
}
.reminder-content strong {
  color: yellow;
  font-size: 17px;
}
.reminder-content small {
  background: #f8df10;
  color: red;
  border-radius: 2px;
  font-size: 11px;
  margin-top: 2px;
}
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  background: #183257ed;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  max-width: 90vw;
  font-size: 14px;
  z-index: 90;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.detail-dialog {
  border: 1px solid #cbd8ed;
  border-radius: 9px;
  width: calc(100% - 24px);
  max-width: 690px;
  max-height: 80vh;
  padding: 0;
  background: #fff;
  box-shadow: 0 20px 80px #071c4855;
  position: fixed;
}
.detail-dialog::backdrop {
  background: #14264488;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 18px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-head button {
  font-size: 28px;
  line-height: 28px;
  padding: 0 3px;
}
#dialog-content {
  padding: 18px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.dialog-content-note {
  border-radius: 4px;
  padding: 9px 12px;
  background: #eff4fd;
  color: #526e9f;
  font-size: 13px;
}
.history-row {
  border: 1px solid #d7e1f0;
  border-radius: 4px;
  padding: 9px;
  margin-bottom: 10px;
}
.history-row-head {
  display: flex;
  justify-content: space-between;
  color: #4e6790;
  font-size: 14px;
}
.history-numbers {
  display: flex;
  justify-content: space-between;
  padding-top: 7px;
  gap: 4px;
}
.history-numbers span {
  border-radius: 50%;
  height: 39px;
  width: 39px;
  background: var(--ball-color);
  color: white;
  text-align: center;
  font: 700 20px/39px Arial;
}
.dialog-filters {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.dialog-filters button {
  padding: 5px 11px;
  background: #eff3fa;
  border-radius: 4px;
  font-size: 14px;
}
.dialog-filters .selected {
  background: var(--brand);
  color: white;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}
.pagination button {
  padding: 5px 10px;
  background: #6387cd;
  color: #fff;
  border-radius: 3px;
}
.article-meta {
  color: #8390a5;
  font-size: 13px;
  border-bottom: 1px solid #e5eaf1;
  padding-bottom: 10px;
}
.article-content {
  white-space: pre-wrap;
  padding-top: 10px;
  line-height: 1.9;
}
.loading-line {
  text-align: center;
  padding: 18px;
  color: #6c7e99;
  font-size: 16px;
}
.trend-full-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.frequency {
  padding: 5px;
  text-align: center;
  border: 1px solid #d6dfed;
  border-radius: 4px;
  background: #f9fbff;
}
.frequency b {
  color: var(--ball-color);
  display: block;
  font-size: 20px;
}
.frequency small {
  color: #70849c;
  font-size: 12px;
}
@media (max-width: 720px) {
  :root {
    --nav-height: 56px;
  }
  .floating-reminder {
    right: 7px;
    top: 65vh;
  }
  .brand-logo {
    max-width: 225px;
  }
  .lottery-tab {
    font-size: 19px;
  }
  .live-stage {
    height: auto;
    aspect-ratio: 1.65;
  }
  .live-message h1 {
    font-size: 22px;
  }
  .red-label {
    font-size: 22px;
  }
  .live-note {
    font-size: 13px;
  }
  .headline-list button {
    font-size: clamp(18px, 3.8vw, 27px);
    height: 56px;
  }
  .live-countdown {
    font-size: 11px;
    bottom: 9px;
  }
  .ball-circle {
    height: auto;
    font-size: 25px;
  }
  .draw-balls {
    gap: 6px;
    padding: 10px;
  }
  .draw-card-head {
    font-size: 17px;
    padding: 9px 10px;
  }
  .draw-card-head time {
    font-size: 16px;
  }
  .draw-card-foot {
    font-size: 14px;
  }
  .module-title {
    height: 40px;
    line-height: 40px;
    font-size: 22px;
  }
  .articles-list button {
    font-size: 21px;
  }
  .recommended-links button {
    font-size: 22px;
  }
  .resource-grid > * {
    font-size: 20px;
  }
  .reference-row {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  :root {
    --header-height: 130px;
  }
  .header-spacer {
    height: 130px;
  }
  .brand-bar {
    height: 52px;
  }
  .brand-logo {
    height: 34px;
    max-width: 262px;
  }
  .brand-name {
    height: 26px;
    padding: 0 7px;
    font-size: 15px;
  }
  .brand-badge {
    height: 39px;
    max-width: 100px;
  }
  .lottery-tabs,
  .lottery-tab {
    height: 36px;
  }
  .lottery-tab {
    font-size: 18px;
    gap: 2px;
  }
  .lottery-tab img {
    width: 17px;
    height: 17px;
  }
  .compact-issue {
    font-size: 12px;
    flex-basis: 20%;
  }
  .compact-ball strong {
    font-size: 16px;
  }
  .compact-ball span {
    font-size: 14px;
  }
  .compact-refresh {
    font-size: 13px;
    flex-basis: 19px;
  }
  .sponsor-grid {
    gap: 4px;
    padding: 4px;
  }
  .sponsor-grid button,
  .sponsor-grid .sponsor-card {
    border-radius: 12px;
  }
  .live-stage {
    margin: 4px 3px;
    aspect-ratio: 1.65;
  }
  .live-message h1 {
    font-size: 18px;
  }
  .red-label {
    font-size: 18px;
    padding: 3px 6px;
    margin: 3px auto;
    border-radius: 4px;
  }
  .live-note {
    font-size: 10px;
    margin: 4px 0 8px;
  }
  .live-refresh {
    font-size: 13px;
    min-width: 95px;
    padding: 8px 15px;
  }
  .live-countdown {
    bottom: 7px;
    font-size: 10px;
  }
  .headline-list button {
    height: 46px;
    font-size: 18px;
  }
  .notice-strip {
    font-size: 12px;
    padding: 8px 3px;
  }
  .draw-card-head {
    font-size: 15px;
    gap: 4px;
  }
  .draw-card-head time {
    font-size: 13px;
  }
  .draw-card-head button {
    font-size: 12px;
  }
  .demo-label {
    display: none;
  }
  .draw-balls {
    gap: 5px;
    padding: 10px 8px 6px;
  }
  .ball-circle {
    font-size: 21px;
  }
  .number-ball small {
    font-size: 15px;
    margin-top: 4px;
  }
  .ball-plus {
    font-size: 18px;
    flex-basis: 10px;
  }
  .draw-card-foot {
    font-size: 12px;
    padding: 8px 9px;
  }
  .bookmark-bar {
    font-size: 15px;
    height: 37px;
  }
  .module-title {
    font-size: 19px;
  }
  .recommended-links button {
    font-size: 18px;
  }
  .recommended-links span {
    font-size: 16px;
  }
  .subsection-title {
    font-size: 20px;
  }
  .articles-list button {
    font-size: 17px;
    gap: 1px;
    padding: 9px 3px;
    flex-wrap: wrap;
  }
  .articles-list button span {
    font-size: 15px;
  }
  .reference-tabs button {
    font-size: 16px;
    padding: 9px 2px;
  }
  .reference-row {
    font-size: 16px;
    min-height: 40px;
  }
  .reference-row span {
    word-spacing: 3px;
  }
  .trend-preview {
    gap: 8px;
    padding: 8px 15px 12px;
  }
  .trend-toolbar {
    font-size: 14px;
  }
  .resource-grid > * {
    font-size: 16px;
    padding: 12px 2px;
  }
  .site-footer {
    font-size: 13px;
  }
  .footer-brand {
    font-size: 18px;
  }
  .floating-reminder {
    transform: scale(0.78);
    transform-origin: right center;
    right: 5px;
  }
  .bottom-nav button {
    font-size: 12px;
  }
  .bottom-nav button b {
    font-size: 25px;
  }
  .bottom-nav svg {
    height: 24px;
    width: 24px;
  }
  .bottom-nav button .center-icon {
    height: 41px;
    width: 41px;
    font-size: 28px;
    line-height: 39px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  #dialog-content {
    padding: 13px;
    font-size: 14px;
  }
  .history-numbers span {
    height: 34px;
    width: 34px;
    font-size: 18px;
    line-height: 34px;
  }
  .detail-dialog {
    max-height: 82vh;
  }
  .trend-full-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .frequency {
    padding: 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* 开奖区采用紧凑方形号码块，保留原门户的信息密度。 */
.draw-card {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  border: 1px solid #9bb4de;
}
.draw-card-head {
  background: linear-gradient(#f9fbff, #fff);
  padding: 5px 4px;
  color: #333;
  font-size: 24px;
  font-weight: 400;
}
.draw-card-head time {
  color: #222;
  font-size: 21px;
}
.draw-card-head button {
  font-size: 21px;
  color: #ee0010;
  background: #ffffcf;
  text-decoration: none;
}
.draw-balls {
  padding: 4px 5px 8px;
  gap: 6px;
}
.number-ball {
  height: 74px;
  border-radius: 3px;
  background: var(--ball-color);
  padding-top: 2px;
}
.ball-circle {
  height: 43px;
  width: auto;
  aspect-ratio: auto;
  font-size: 34px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.number-ball small {
  width: 24px;
  font-size: 20px;
  line-height: 23px;
  font-weight: 700;
  background: #fff;
  color: #333;
  margin: 1px auto 0;
}
.draw-card-foot {
  padding: 4px;
  font-size: 22px;
  font-weight: 400;
  border-top: 0;
}
.draw-card-foot span {
  color: red;
}
.draw-card-foot button {
  background: #f1a71e;
  color: white;
  font-size: 20px;
  padding: 1px 4px;
}
.demo-label {
  font-style: normal;
  font-size: 10px;
}
.draw-card-foot div {
  min-width: 0;
}
.ball-plus {
  font-size: 38px;
  flex-basis: 26px;
}
.draw-card-head > span {
  white-space: nowrap;
}
@media (max-width: 720px) {
  .draw-card-head {
    font-size: 21px;
  }
  .draw-card-foot {
    font-size: 19px;
  }
  .draw-card-head time {
    font-size: 20px;
  }
  .draw-card-head button {
    font-size: 19px;
  }
  .number-ball {
    height: 70px;
  }
  .ball-circle {
    font-size: 30px;
    height: 39px;
  }
  .ball-plus {
    font-size: 30px;
    flex-basis: 21px;
  }
}
@media (max-width: 480px) {
  .draw-card-head {
    font-size: 16px;
    padding: 5px 3px;
  }
  .draw-card-head time {
    font-size: 15px;
  }
  .draw-card-head button {
    font-size: 15px;
  }
  .draw-balls {
    gap: 4px;
    padding: 4px 3px 6px;
  }
  .number-ball {
    height: 52px;
    padding: 1px 0;
  }
  .ball-circle {
    font-size: 24px;
    height: 30px;
  }
  .number-ball small {
    font-size: 15px;
    width: 18px;
    line-height: 17px;
  }
  .ball-plus {
    font-size: 26px;
    flex-basis: 13px;
  }
  .draw-card-foot {
    font-size: 14px;
    padding: 3px;
  }
  .draw-card-foot button {
    font-size: 14px;
  }
  .draw-card-foot div {
    font-size: 13px;
  }
}

/* 2026-11-20 开奖号码球：参考图同款（白瓷球心 + 波色外圈 + 黑色号码） */
.number-ball {
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
}
.ball-circle {
  --ball-size: 60px;
  position: relative;
  width: var(--ball-size);
  height: var(--ball-size);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 21% at 25% 85%, #fff 0 42%, #fff9 62%, #fff0 80%),
    radial-gradient(ellipse 25% 18% at 62% 96%, #fff 0 40%, #fff8 60%, #fff0 78%),
    radial-gradient(ellipse 14% 20% at 98% 50%, #e9eef2d9 0 38%, #e9eef200 74%),
    radial-gradient(circle at 50% 50%, #fff 0 52%, #fbfcfd 56%, #eef2f4 60%, #eef2f400 66%),
    radial-gradient(circle at 34% 26%, var(--ball-light, #ff8080) 0 32%, #ffffff00 70%),
    radial-gradient(circle at 50% 50%, var(--ball-color) 0 72%, var(--ball-dark, #a00000) 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff73,
    inset 0 -2px 5px #00000026,
    0 1px 2px #0000002e;
  color: #17181c;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: calc(var(--ball-size) * .35);
  line-height: 1;
  letter-spacing: 0;
  aspect-ratio: 1;
  text-shadow: none;
}
.number-ball small {
  display: block;
  width: auto;
  margin: 4px 0 0;
  padding: 0;
  background: none;
  color: #666;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
}
.number-ball.is-pending .ball-circle {
  background: radial-gradient(circle at 48% 42%, #fdfdfd 0 52%, #e0e1e4 74%, #bcbec2 100%);
  color: #8e9095;
  border-radius: 50%;
  box-shadow:
    inset 0 -2px 4px #0000001a,
    0 1px 2px #0000001f;
  text-shadow: none;
}
.number-ball.is-pending small {
  display: none;
}
.compact-ball strong {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 30% 21% at 25% 85%, #fff 0 42%, #fff9 62%, #fff0 80%),
    radial-gradient(ellipse 25% 18% at 62% 96%, #fff 0 40%, #fff8 60%, #fff0 78%),
    radial-gradient(ellipse 14% 20% at 98% 50%, #e9eef2d9 0 38%, #e9eef200 74%),
    radial-gradient(circle at 50% 50%, #fff 0 52%, #fbfcfd 56%, #eef2f4 60%, #eef2f400 66%),
    radial-gradient(circle at 34% 26%, var(--ball-light, #ff8080) 0 32%, #ffffff00 70%),
    radial-gradient(circle at 50% 50%, var(--ball-color) 0 72%, var(--ball-dark, #a00000) 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff73,
    inset 0 -1px 3px #00000026,
    0 1px 1px #0000002e;
  color: #17181c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}
.compact-ball span {
  color: #6b6b6b;
  font-size: 10px;
  line-height: 12px;
}
.compact-ball.pending-ball strong {
  background: radial-gradient(circle at 48% 42%, #fdfdfd 0 52%, #e0e1e4 74%, #bcbec2 100%);
  color: #8e9095;
  box-shadow:
    inset 0 -1px 3px #0000001a,
    0 1px 1px #0000001f;
  text-shadow: none;
}
@media (max-width: 720px) {
  .ball-circle {
    --ball-size: 58px;
    font-size: 20px;
  }
  .number-ball small {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .ball-circle {
    --ball-size: 46px;
    font-size: 16px;
  }
  .number-ball small {
    margin-top: 3px;
    font-size: 11px;
  }
  .compact-ball strong {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
  .compact-ball span {
    font-size: 9px;
    line-height: 11px;
  }
}

/* 2026-11-20 球体最终版：直接使用参考站同款 60x60 球体贴图（红/蓝/绿），仅按号码波色换图 */
.number-ball .ball-circle,
.compact-ball strong {
  border: 0;
  box-shadow: none;
  text-shadow: none;
  color: #666;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-weight: 700;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100% 100%;
}
.number-ball .ball-circle {
  padding-bottom: 7%;
}
.number-ball.red .ball-circle,
.compact-ball.red strong {
  background-image: url("/portal/balls/r.png");
}
.number-ball.blue .ball-circle,
.compact-ball.blue strong {
  background-image: url("/portal/balls/b.png");
}
.number-ball.green .ball-circle,
.compact-ball.green strong {
  background-image: url("/portal/balls/g.png");
}

/* 2026-11-20 新澳午夜彩摇珠中：所有号码球统一灰色贴图，不改号码字体 */
.number-ball.is-pending .ball-circle {
  background: url("/portal/balls/r.png") 50% 50% / 100% 100% no-repeat;
  filter: grayscale(1);
  color: #666;
  box-shadow: none;
  text-shadow: none;
  border-radius: 50%;
}
.compact-ball.pending-ball strong {
  background: url("/portal/balls/r.png") 50% 50% / 100% 100% no-repeat;
  filter: grayscale(1);
  color: #666;
  box-shadow: none;
  text-shadow: none;
}

/* 2026-11-20 开奖历史：与首页同款贴图球体，带生肖/五行与波色 */
.history-numbers {
  align-items: flex-start;
  gap: 2px;
}
.history-numbers .number-ball {
  flex: 1 1 0;
  min-width: 0;
}
.history-numbers .ball-circle {
  --ball-size: 52px;
  font-size: 17px;
}
.history-numbers .number-ball small {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.2;
  color: #666;
}
.history-numbers > .ball-plus {
  flex: 0 0 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #acacac;
  font: 700 18px/52px Arial, sans-serif;
}
@media (max-width: 600px) {
  .history-numbers .ball-circle {
    --ball-size: 40px;
    font-size: 13px;
  }
  .history-numbers .number-ball small {
    font-size: 9px;
  }
  .history-numbers > .ball-plus {
    font: 700 14px/40px Arial, sans-serif;
  }
}
.trend-toolbar .trend-more-link {
  color: #234b9b;
  font-weight: 600;
  text-decoration: none;
}
/* ===== 号码走势统计页（/trend） ===== */
.trend-page .trend-hero {
  padding: 16px 14px;
  text-align: center;
  background: linear-gradient(180deg, #1a3d96, #2a5bc4);
  color: #fff;
}
.trend-page .trend-hero h1 {
  margin: 0 0 6px;
  font-size: 23px;
}
.trend-page .trend-hero p {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
}
.trend-page .trend-lottery-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 2px solid #1a3d96;
}
.trend-page .trend-lottery-tabs button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid #ccd9ee;
  border-radius: 999px;
  background: #f3f7ff;
  color: #203a66;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.trend-page .trend-lottery-tabs button.selected {
  background: #d90011;
  border-color: #d90011;
  color: #fff;
}
.trend-page .trend-period-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e3e9f4;
  font-size: 15px;
  color: #33445f;
}
.trend-page .trend-period-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-page .trend-period-control input {
  width: 72px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #c6d3e7;
  border-radius: 5px;
  text-align: center;
  font-size: 15px;
}
.trend-page .trend-period-tip {
  margin-left: auto;
  color: #6b7c96;
  font-size: 13px;
}
.trend-page .trend-charts {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.trend-page .trend-card {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  overflow: hidden;
}
.trend-page .trend-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 14px;
  background: #1a3d96;
  color: #fff;
}
.trend-page .trend-card-head h2 {
  margin: 0;
  font-size: 17px;
}
.trend-page .trend-card-head span {
  font-size: 13px;
  opacity: 0.85;
}
.trend-page .trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 10px;
  overflow-x: auto;
}
.trend-page .trend-column {
  flex: 0 0 36px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.trend-page .trend-column-value {
  font-size: 12px;
  line-height: 1.3;
  color: #33445f;
}
.trend-page .trend-column-bar {
  width: 22px;
  margin: 3px 0;
  background: #1a3d96;
  border-radius: 3px 3px 0 0;
}
.trend-page .trend-column-label {
  font-size: 12px;
  line-height: 1.4;
  color: #3d4f6b;
  white-space: nowrap;
}
.trend-page .trend-column.red .trend-column-bar {
  background: #d90011;
}
.trend-page .trend-column.blue .trend-column-bar {
  background: #0d63c9;
}
.trend-page .trend-column.green .trend-column-bar {
  background: #12972a;
}
.trend-page .trend-chart.is-scroll {
  padding-bottom: 14px;
}
.trend-page .trend-chart.is-scroll .trend-column {
  flex: 0 0 32px;
}
.trend-page .trend-empty {
  margin: 0;
  padding: 22px 14px;
  text-align: center;
  color: #6b7c96;
  font-size: 14px;
}
.trend-page .trend-empty-state {
  margin: 12px;
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
}
.trend-page .trend-empty-state h2 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #1a3d96;
}
.trend-page .trend-empty-state p {
  margin: 0 0 12px;
  color: #5c6f8b;
  font-size: 14px;
}
.trend-page .trend-empty-state a {
  color: #1a3d96;
  font-weight: 700;
}
@media (max-width: 600px) {
  .trend-page .trend-hero h1 {
    font-size: 19px;
  }
  .trend-page .trend-lottery-tabs button {
    padding: 7px 12px;
    font-size: 14px;
  }
  .trend-page .trend-charts {
    gap: 9px;
    padding: 8px;
  }
  .trend-page .trend-card-head h2 {
    font-size: 15px;
  }
  .trend-page .trend-column {
    flex-basis: 32px;
    height: 170px;
  }
  .trend-page .trend-column-bar {
    width: 18px;
  }
}
/* ===== 开奖记录独立页（/history） ===== */
.history-page .history-hero {
  padding: 16px 14px;
  text-align: center;
  background: linear-gradient(180deg, #1a3d96, #2a5bc4);
  color: #fff;
}
.history-page .history-hero h1 {
  margin: 0 0 6px;
  font-size: 23px;
}
.history-page .history-hero p {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
}
.history-page .history-lottery-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 2px solid #1a3d96;
}
.history-page .history-lottery-tabs button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 1px solid #ccd9ee;
  border-radius: 999px;
  background: #f3f7ff;
  color: #203a66;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.history-page .history-lottery-tabs button.selected {
  background: #d90011;
  border-color: #d90011;
  color: #fff;
}
.history-page .history-summary {
  padding: 9px 14px;
  background: #f3f7ff;
  border-bottom: 1px solid #e3e9f4;
  color: #5a6f8e;
  font-size: 13px;
}
.history-page .history-page-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.history-page .history-card {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d7e1f0;
  border-radius: 6px;
}
.history-page .history-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e9f4;
  color: #3f5a85;
}
.history-page .history-card-head b {
  font-size: 16px;
  color: #1a3d96;
}
.history-page .history-card-head time {
  flex: 0 0 auto;
  color: #7b8ca6;
  font-size: 12px;
}
.history-page .history-card .history-numbers {
  padding-top: 10px;
  justify-content: flex-start;
}
.history-page .history-more {
  display: block;
  margin: 2px auto 18px;
  padding: 9px 26px;
  border-radius: 999px;
  background: #1a3d96;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.history-page .history-more[hidden] {
  display: none;
}
.history-page .history-more:disabled {
  opacity: 0.6;
  cursor: default;
}
.history-page .history-empty {
  margin: 12px;
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
}
.history-page .history-empty h2 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #1a3d96;
}
.history-page .history-empty p {
  margin: 0 0 12px;
  color: #5c6f8b;
  font-size: 14px;
}
.history-page .history-empty a {
  color: #1a3d96;
  font-weight: 700;
}
@media (max-width: 600px) {
  .history-page .history-hero h1 {
    font-size: 19px;
  }
  .history-page .history-lottery-tabs button {
    padding: 7px 12px;
    font-size: 14px;
  }
  .history-page .history-page-list {
    gap: 8px;
    padding: 8px;
  }
  .history-page .history-card-head {
    flex-wrap: wrap;
  }
  .history-page .history-card-head b {
    font-size: 15px;
  }
}
