@charset "UTF-8";
:root {
  --panel-width: 480px;
  color-scheme: light;
  --green: #07c160;
  --green-deep: #008f49;
  --green-ink: #126d43;
  --green-soft: #e9f8ef;
  --ink: #26372e;
  --muted: #819088;
  --line: #e9eeeb;
  --back: #f3f6f4;
  --surface: #fff;
  --shadow: 0 5px 22px rgb(20 65 40 / 5%);
  --radius: 15px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-width: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 75px;
}
body {
  margin: 0;
  background: #f2f5f3;
  color: var(--ink);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
a {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: transparent;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  min-height: 42px;
}
input[type='date'] {
  width: 100%;
  min-height: 42px;
}
input[type='search'] {
  appearance: none;
  -webkit-appearance: none;
}
select {
  padding-right: 24px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #8edcab;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  line-height: 1.5;
}
h2 {
  font-size: 17px;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
[hidden] {
  display: none !important;
}
.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--panel-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--back);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 40px rgb(28 66 42 / 4%);
}
.page-main {
  min-width: 0;
}
.section {
  padding: 17px 14px;
  background: var(--surface);
  margin-bottom: 9px;
}
.section.flat {
  background: transparent;
  margin-bottom: 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.section-title > div {
  min-width: 0;
}
.section-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.section-title .text-link {
  flex: none;
}
.text-link {
  font-size: 12px;
  color: var(--green-deep);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 32px;
}
.text-link svg {
  width: 14px;
  height: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.plain-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.subtle-note {
  color: #7f8d84;
  font-size: 12px;
  line-height: 1.8;
  padding: 4px 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 97%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 62px;
  padding: 9px 13px;
  border-bottom: 1px solid #edf2ee;
  padding-top: max(9px, env(safe-area-inset-top, 0px));
}
.wordmark {
  display: flex;
  align-items: center;
  min-width: 0;
  width: min(268px, 67%);
  background: #fff;
}
.wordmark img {
  flex: 1;
  min-width: 0;
  width: calc(100% - 45px);
  height: auto;
}
.wordmark span {
  font:
    900 clamp(19px, 5.5vw, 26px) / 1.2 STKaiti,
    KaiTi,
    'Kaiti SC',
    serif;
  color: #080b08;
  flex: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: none;
}
.icon-action {
  min-width: 36px;
  min-height: 40px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  color: #627367;
  font-size: 10px;
}
.icon-action svg {
  width: 20px;
  height: 20px;
}
.page-head {
  min-height: 54px;
  background: var(--green);
  color: white;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 6px 10px;
  padding-top: max(6px, env(safe-area-inset-top, 0px));
}
.page-head h1 {
  font-size: 17px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  min-height: 40px;
}
.back-link svg {
  width: 18px;
  height: 18px;
}
.page-head .head-right {
  justify-self: end;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-head .head-right svg {
  width: 17px;
  height: 17px;
}
.home-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 13px 14px 10px;
  padding: 22px 20px;
  border-radius: 17px;
  background: linear-gradient(114deg, #06b95d, #19d180);
  color: #fff;
  box-shadow: 0 7px 18px rgb(7 193 96 / 12%);
}
.home-banner::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 200px;
  height: 200px;
  border: 27px solid #ffffff17;
  right: -75px;
  top: -115px;
  border-radius: 50%;
}
.banner-kicker {
  font-size: 10px;
  letter-spacing: 2.2px;
  opacity: 0.85;
  margin-bottom: 7px;
}
.home-banner h1 {
  font-size: clamp(22px, 5.8vw, 28px);
  letter-spacing: 1px;
  font-weight: 750;
}
.home-banner p {
  font-size: 12px;
  opacity: 0.88;
  margin-top: 6px;
}
.banner-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 17px;
}
.banner-domain {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #eafff2;
  overflow-wrap: anywhere;
}
.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  min-height: 28px;
  background: #ffffffed;
  color: #087d45;
  padding: 4px 10px;
  border-radius: 20px;
  flex: none;
  font-weight: 650;
}
.banner-link svg {
  width: 13px;
  height: 13px;
}
.notice-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #fff;
  padding: 10px 15px;
  font-size: 11px;
  color: #718176;
  line-height: 1.8;
}
.notice-line svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  margin-top: 1px;
}
.notice-line span {
  min-width: 0;
}
.lottery-tabs {
  display: flex;
  gap: 9px;
  padding: 14px;
  background: #fff;
}
.lottery-tab {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f1f5f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 50px;
}
.lottery-tab strong {
  font-size: 15px;
}
.lottery-tab span {
  font-size: 11px;
  color: #8b978e;
}
.lottery-tab.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 8px #07c16020;
}
.lottery-tab.active span {
  color: #e6fff1;
}
.draw-section {
  padding: 0 14px 14px;
  background: #fff;
  margin-bottom: 9px;
}
.draw-card {
  border: 1px solid #c6ead5;
  border-radius: 14px;
  padding: 13px 10px 11px;
  background: linear-gradient(180deg, #f9fffb, #fff);
}
.draw-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
}
.draw-heading strong {
  font-weight: 700;
  color: #385a45;
}
.draw-heading strong em {
  font-style: normal;
  color: var(--green-deep);
}
.draw-heading .text-link {
  font-size: 11px;
  min-height: 20px;
}
.countdown {
  font-variant-numeric: tabular-nums;
  color: #e67a32;
  font-size: 11px;
  font-weight: 650;
}
.balls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}
.ball-cell {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
.ball {
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
  width: clamp(29px, 9.5vw, 46px);
  height: clamp(29px, 9.5vw, 46px);
  font-size: clamp(18px, 5.2vw, 25px);
  font-weight: 750;
  border: 3px solid #2bb968;
  border-radius: 50%;
  background: #fff;
  color: #39483f;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: 0 2px 4px #214e2d08;
}
.ball::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  right: 2px;
  bottom: 2px;
  background: #ffffffd9;
}
.ball.red {
  border-color: #f4666b;
}
.ball.blue {
  border-color: #4a9fea;
}
.ball.green {
  border-color: #30c973;
}
.ball-cell.special::before {
  content: '+';
  position: absolute;
  left: -7px;
  top: 7px;
  color: #6a7c6f;
  font-size: 16px;
}
.ball-label {
  font-size: 11px;
  line-height: 1.3;
  color: #718176;
  text-align: center;
  white-space: nowrap;
}
.next-draw {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #edf5ef;
  text-align: center;
  color: var(--green-deep);
  font-size: 11px;
  line-height: 1.65;
}
.draw-pending {
  padding: 22px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.forum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.forum-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 2px;
  border-radius: 7px;
  background: #f4f7f5;
  font-size: clamp(10px, 2.9vw, 13px);
  text-align: center;
  overflow-wrap: anywhere;
  color: #536258;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 6px;
}
.tool-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  text-align: center;
}
.tool-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #e3f9ed;
  color: var(--green);
  box-shadow: inset 0 0 0 1px #07c16007;
}
.tool-symbol svg {
  width: 23px;
  height: 23px;
}
.tool-link:nth-child(5n + 2) .tool-symbol {
  background: #eaf2ff;
  color: #5093de;
}
.tool-link:nth-child(5n + 3) .tool-symbol {
  background: #fff2e3;
  color: #e7a04c;
}
.tool-link:nth-child(5n + 4) .tool-symbol {
  background: #f2ebfc;
  color: #ad81d5;
}
.tool-label {
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.years-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.year-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 3px 0;
}
.year-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}
.year-symbol.mono {
  background: #aeb9b1;
}
.year-symbol svg {
  width: 22px;
  height: 22px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 5px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 6px 13px;
  border: 1px solid #e5eee8;
  border-radius: 22px;
  background: #fff;
  color: #748377;
  font-size: 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.gallery-listing {
  --gallery-gap: 10px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--gallery-gap);
}
.gallery-grid:not([hidden]) + .gallery-pending {
  margin-top: var(--gallery-gap);
}
.gallery-pending {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
}
.gallery-pending .gallery-card {
  border-radius: 8px;
}
.gallery-pending .image-frame {
  background: #f7f9f8;
  border-radius: 7px 7px 0 0;
}
.detail-image-status {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #65796c;
  text-align: center;
}
.gallery-grid.is-staggered {
  display: block;
  position: relative;
}
.gallery-grid.is-staggered > .gallery-card {
  position: absolute;
  left: 0;
  width: calc((100% - var(--gallery-gap)) / 2);
}
.gallery-grid.is-staggered > .gallery-card-right {
  left: calc((100% + var(--gallery-gap)) / 2);
}

.gallery-card {
  display: block;
  min-width: 0;
  background: #fff;
  border: 1px solid #e7eee9;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 8px #244b2c12;
}

.gallery-card .image-frame {
  position: relative;
  background: #f2f7f3;
}
.gallery-card .image-frame:not(.has-image) {
  display: grid;
  aspect-ratio: 4 / 5;
}
.gallery-card .image-frame > img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-card .image-frame:not(.has-image) > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
}
.gallery-caption {
  padding: 10px 9px 11px;
  text-align: center;
}
.gallery-caption strong {
  font-size: 14px;
  display: block;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.gallery-caption span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #96a299;
}
.gallery-heading {
  margin-top: 14px;
}
.load-more {
  display: block;
  margin: 15px auto 0;
  border: 1px solid #dceadf;
  border-radius: 22px;
  background: #fff;
  color: var(--green-deep);
  padding: 9px 28px;
  font-size: 12px;
  min-height: 40px;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.search-form .search-input {
  flex: 1;
  width: 100%;
  background: #f5f8f6;
  border-color: #edf2ee;
}
.primary-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 41px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.primary-button {
  background: var(--green);
  color: #fff;
}
.soft-button {
  background: var(--green-soft);
  color: var(--green-deep);
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}
.filter-row label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.filter-row select,
.filter-row input {
  width: 100%;
  font-size: 12px;
}
.filter-row .full {
  grid-column: 1/-1;
}
.catalog-head {
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.catalog-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #859489;
  gap: 8px;
  margin-top: 9px;
}
.catalog-body {
  padding: 0 13px 15px;
  min-height: 45vh;
}
.letter-group {
  scroll-margin-top: 65px;
}
.letter-title {
  color: var(--green);
  font-size: 15px;
  padding: 11px 5px 7px;
  font-weight: 750;
}
.directory-list {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #e9efeb;
  background: #fff;
}
.directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 53px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef3ef;
}
.directory-row:last-child {
  border-bottom: 0;
}
.directory-name {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.directory-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.issue-badge {
  min-width: 34px;
  border-radius: 5px;
  background: #eef8f1;
  color: var(--green-deep);
  padding: 2px 5px;
  font-size: 11px;
  text-align: center;
}
.directory-meta svg {
  width: 13px;
  height: 13px;
  color: #a5b3aa;
}
.catalog-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 3px;
  align-items: stretch;
  min-width: 0;
  padding-right: 4px;
}
.catalog-results > .catalog-body {
  min-width: 0;
  padding-right: 0;
}
.catalog-index {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 14px 0 18px;
}
.alphabet {
  position: sticky;
  z-index: 5;
  top: calc(70px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 22px;
  max-height: calc(100svh - 160px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 12px;
  padding: 4px 0;
  background: #ffffffe0;
}
.alphabet a {
  font-size: 10px;
  color: #84978a;
  display: grid;
  place-items: center;
  min-height: 18px;
  width: 22px;
  font-weight: 650;
}
.alphabet a:active {
  background: var(--green);
  color: #fff;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  background: #fff;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.detail-date {
  max-width: 175px;
  font-size: 12px;
  min-height: 36px;
  padding: 7px 9px;
}
.detail-subtitle {
  font-size: 11px;
  color: #94a196;
  margin-top: 4px;
}
.favorite-button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8c9a90;
  font-size: 12px;
  min-height: 40px;
  padding: 6px 9px;
}
.favorite-button svg {
  width: 18px;
  height: 18px;
}
.favorite-button.active {
  color: #e2a742;
}
.favorite-button.active svg {
  fill: #fff2ce;
  stroke: #dca534;
}
.dates-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 14px;
  background: #fff;
  scrollbar-width: none;
}
.date-pill {
  display: block;
  min-width: 75px;
  text-align: center;
  padding: 5px 10px;
  border: 1px solid #e5ece7;
  border-radius: 18px;
  font-size: 11px;
  color: #8c9b91;
  flex: none;
}
.date-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.detail-images {
  padding: 12px 12px 0;
  background: #fff;
}
.detail-images figure {
  margin: 0 0 14px;
}
.detail-image-link {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: #f5f8f5;
}
.detail-image-link img {
  width: 100%;
  height: auto;
}
.detail-image-note {
  font-size: 11px;
  color: #8b9c90;
  text-align: center;
  margin-top: 8px;
}
.day-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: #fff;
  padding: 17px 14px;
  margin-bottom: 9px;
}
.day-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  background: #f0f5f1;
  font-size: 12px;
  color: #6e8575;
  gap: 7px;
}
.day-button svg {
  width: 16px;
  height: 16px;
}
.record-card {
  border-bottom: 1px solid var(--line);
  padding: 5.6px 0;
}
.record-card:first-child {
  padding-top: 1.05px;
}
.record-card:last-child {
  border-bottom: 0;
  padding-bottom: 1.4px;
}
.record-title {
  font-size: 12px;
  color: #66796c;
  margin-bottom: 4.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.record-title strong {
  color: #3c5744;
}
.record-title time {
  font-size: 10px;
  color: #9aa69e;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 19px;
  padding-bottom: 3px;
  font-size: 12px;
  color: #809489;
}
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1ece4;
  border-radius: 20px;
  padding: 7px 14px;
  background: white;
  min-height: 35px;
  color: var(--green-deep);
}
.pagination .page-link.disabled {
  pointer-events: none;
  opacity: 0.4;
}
.article-card {
  background: #fff;
  border: 1px solid #e6eee8;
  border-radius: 13px;
  padding: 16px;
  margin-bottom: 12px;
}
.article-card h2 {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 9px;
}
.article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #9bad9f;
  margin-bottom: 7px;
}
.article-card .plain-copy {
  font-size: 13px;
  color: #66786a;
  line-height: 1.95;
}
.article-card details summary {
  color: var(--green-deep);
  font-size: 12px;
  margin-top: 12px;
  cursor: pointer;
}
.article-preview {
  white-space: pre-wrap;
  color: #7c8b80;
  font-size: 13px;
  line-height: 1.9;
  max-height: 80px;
  overflow: hidden;
}
.recommendation-card {
  background: #fff;
  border: 1px solid #e5eee7;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 13px;
}
.recommendation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #f5fbf7;
  border-bottom: 1px solid #eaf2ec;
}
.recommendation-title h2 {
  font-size: 14px;
}
.status-tag {
  font-size: 10px;
  border-radius: 20px;
  padding: 3px 8px;
  white-space: nowrap;
  background: #e4f5ea;
  color: #55906c;
}
.recommendation-row {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 45px;
  gap: 7px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid #f0f4f1;
  font-size: 12px;
}
.recommendation-row:last-child {
  border-bottom: 0;
}
.recommendation-row strong {
  color: #789482;
  font-size: 11px;
}
.recommendation-values {
  color: #4b6855;
  font-weight: 600;
  word-break: break-word;
  letter-spacing: 1px;
  line-height: 1.9;
}
.result-tag {
  font-size: 10px;
  text-align: right;
  color: #9baba0;
  white-space: nowrap;
}
.result-tag.hit {
  color: #ed8e44;
}
.result-tag.miss {
  color: #94a198;
}
.link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.link-group {
  padding: 13px;
  background: #fff;
  border: 1px solid #e5eee7;
  border-radius: 13px;
  min-width: 0;
}
.link-group h2 {
  font-size: 13px;
  color: #4d765b;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.domain-link {
  display: block;
  color: #7f9386;
  font-size: 11px;
  padding: 7px 0;
  overflow-wrap: anywhere;
  border-top: 1px solid #eef4ef;
}
.domain-link:first-of-type {
  border-top: 0;
}
.domain-list {
  display: grid;
  gap: 11px;
}
.domain-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #e3eee6;
  border-radius: 13px;
}
.domain-symbol {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  flex: none;
}
.domain-symbol svg {
  width: 19px;
  height: 19px;
}
.domain-card .domain-content {
  min-width: 0;
  flex: 1;
}
.domain-card a {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
  color: #496852;
}
.domain-card small {
  display: block;
  color: #9aaba0;
  font-size: 10px;
  margin-top: 3px;
}
.copy-button {
  font-size: 11px;
  border-radius: 17px;
  background: #eef8f1;
  color: var(--green-deep);
  padding: 7px 10px;
  min-height: 34px;
  flex: none;
}
.my-hero {
  padding: 24px 20px;
  background: linear-gradient(120deg, #08bb61, #19cf80);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-symbol {
  display: block;
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 3px 12px #075f3715;
}
.brand-symbol img {
  position: absolute;
  width: 497.73%;
  max-width: none;
  height: auto;
  left: -29.55%;
  top: -19.32%;
}
.my-hero h1 {
  font-size: 21px;
  letter-spacing: 1px;
}
.my-hero p {
  font-size: 11px;
  color: #dcffeb;
  margin-top: 4px;
}
.my-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  padding: 18px 14px;
  margin-bottom: 9px;
}
.my-stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.my-stat:first-child {
  border-right: 1px solid var(--line);
}
.my-stat strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--green-deep);
}
.my-stat span {
  font-size: 11px;
  color: #94a599;
}
.my-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 8px;
}
.my-tool {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  font-size: 11px;
  text-align: center;
  color: #799080;
}
.my-tool svg {
  width: 25px;
  height: 25px;
  color: var(--green);
}
.my-tool:nth-child(3n + 2) svg {
  color: #4a9ce8;
}
.my-tool:nth-child(3n) svg {
  color: #eaaa50;
}
.settings-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  min-height: 51px;
  font-size: 13px;
  color: #718776;
}
.settings-row:last-child {
  border: 0;
}
.settings-row svg {
  width: 15px;
  height: 15px;
  color: #a7b7ac;
}
.saved-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e6eee8;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 13px;
  min-width: 0;
}
.saved-row .saved-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border-radius: 8px;
  background: #f1f7f3;
  color: #9cbea6;
  flex: none;
}
.saved-row .saved-symbol svg {
  width: 24px;
  height: 24px;
}
.saved-row-content {
  min-width: 0;
  flex: 1;
}
.saved-row-content strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.saved-row-content small {
  display: block;
  color: #9aae9f;
  font-size: 10px;
  margin-top: 4px;
}
.saved-row .delete-saved {
  color: #a6b3a9;
  padding: 7px;
  min-height: 35px;
  flex: none;
}
.saved-row .delete-saved svg {
  width: 17px;
  height: 17px;
}
.attributes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.attribute-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 8px;
  border-radius: 10px;
  background: #f6faf7;
  min-width: 0;
}
.attribute-item .ball {
  width: 31px;
  height: 31px;
  border-width: 2px;
  font-size: 18px;
}
.attribute-item span {
  font-size: 12px;
  color: #718a79;
  white-space: nowrap;
}
.attribute-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.attribute-head select {
  font-size: 12px;
  min-height: 36px;
  max-width: 120px;
}
.number-query {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.number-query input {
  flex: 1;
  width: 100%;
  font-size: 13px;
}
.number-query button {
  flex: none;
}
.stats-note {
  font-size: 12px;
  color: #85998d;
  padding: 0 0 14px;
}
.stats-list {
  display: grid;
  gap: 11px;
}
.stats-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 11px;
}
.stats-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf8f1;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 650;
}
.stats-row progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: #edf2ee;
  overflow: hidden;
}
.stats-row progress::-webkit-progress-bar {
  background: #edf2ee;
  border-radius: 8px;
}
.stats-row progress::-webkit-progress-value {
  background: linear-gradient(90deg, #85dfad, #17c56c);
  border-radius: 8px;
}
.stats-row progress::-moz-progress-bar {
  background: #17c56c;
  border-radius: 8px;
}
.stats-count {
  font-size: 11px;
  text-align: right;
  color: #8da295;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 35px 20px;
  text-align: center;
  color: #8da393;
}
.empty-state > svg {
  width: 49px;
  height: 49px;
  color: #c0d7c7;
  stroke-width: 1.2;
}
.empty-state h2 {
  font-size: 15px;
  font-weight: 600;
  color: #819b89;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 280px;
}
.empty-state .primary-button {
  margin-top: 5px;
}
.first-loading {
  padding: 90px 20px;
  text-align: center;
  color: #8ba792;
  font-size: 13px;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 250px;
  font-size: 13px;
  color: #8ca491;
}
.loading::before {
  content: '';
  width: 17px;
  height: 17px;
  border: 2px solid #d8ebde;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.footer {
  padding: 21px 16px 8px;
  text-align: center;
  font-size: 10px;
  color: #a2b2a6;
  letter-spacing: 0.5px;
}
.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: var(--panel-width);
  background: rgb(255 255 255 / 98%);
  border-top: 1px solid #e8efea;
  box-shadow: 0 -4px 18px #31633b04;
  padding: 7px 5px max(7px, env(safe-area-inset-bottom, 0px));
  min-height: 65px;
}
.bottom-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-height: 49px;
  font-size: 11px;
  color: #a2afa6;
}
.bottom-link svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}
.bottom-link.active {
  color: var(--green);
  font-weight: 650;
}
.bottom-link.active::before {
  content: '';
  position: absolute;
  top: -7px;
  width: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green);
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: min(calc(100% - 35px), calc(var(--panel-width) - 35px));
  border-radius: 24px;
  padding: 10px 18px;
  background: #244e34ed;
  color: #fff;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 3px 15px #1a402b13;
  pointer-events: none;
}
.skip-link {
  position: fixed;
  left: max(10px, calc((100% - var(--panel-width)) / 2 + 10px));
  top: -100px;
  z-index: 100;
  padding: 10px;
  background: #fff;
  color: var(--green-deep);
  border: 1px solid var(--green);
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
.noscript {
  max-width: var(--panel-width);
  padding: 30px;
  margin: auto;
}
.copy-panel {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: #17382165;
  display: grid;
  place-items: center;
  padding: 20px;
}
.copy-box {
  width: min(100%, 390px);
  padding: 23px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 15px 45px #112a2520;
}
.copy-box p {
  font-size: 12px;
  color: #8da393;
  margin-top: 6px;
}
.copy-box input {
  width: 100%;
  margin: 15px 0;
  font-size: 13px;
}
.copy-box button {
  width: 100%;
}
.back-top {
  position: fixed;
  z-index: 18;
  right: max(13px, calc((100% - var(--panel-width)) / 2 + 13px));
  bottom: calc(83px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e0ece3;
  background: #fffffff2;
  color: var(--green-deep);
  box-shadow: 0 3px 12px #2c583817;
}
.back-top svg {
  width: 19px;
  height: 19px;
}
.back-top[hidden] {
  display: none;
}
.large-text .plain-copy,
.large-text .article-preview {
  font-size: 16px;
}
.about-copy p {
  font-size: 13px;
  line-height: 2;
  color: #7a9281;
  margin-bottom: 12px;
}
.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.article-top .text-link {
  font-size: 11px;
}
.inline-badge {
  padding: 2px 7px;
  font-size: 10px;
  background: #eef8f2;
  color: #71957e;
  border-radius: 7px;
}
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 10px;
  color: #9bac9f;
  margin: 13px 0 0;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70d29a;
}
.legend .wait i {
  background: #c6d4ca;
}
.empty-state.compact {
  min-height: 145px;
}
.video-empty {
  background: linear-gradient(135deg, #eff8f2, #e7f2eb);
  border-radius: 14px;
  padding: 45px 20px;
  min-height: 225px;
}
.video-empty > svg {
  color: #afcab8;
}
.section.large-gap {
  padding-top: 23px;
  padding-bottom: 23px;
}
@media (hover: hover) {
  .gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px #22532e0c;
    border-color: #bee3cc;
  }
  .forum-link:hover,
  .directory-row:hover {
    background: #edf8f1;
  }
  .tool-link:hover .tool-symbol {
    transform: translateY(-2px);
  }
  .domain-card:hover {
    border-color: #bfe5cc;
  }
  .bottom-link:hover,
  .icon-action:hover {
    color: var(--green);
  }
  .primary-button:hover {
    background: #04b358;
  }
  .chip:hover {
    border-color: #9eddb7;
  }
  .year-link:hover {
    color: var(--green-deep);
  }
}

@media (max-width: 359px) {
  .topbar {
    padding-left: 9px;
    padding-right: 9px;
    gap: 4px;
    min-height: 57px;
  }
  .wordmark {
    width: 68%;
  }
  .wordmark span {
    font-size: 22px;
  }
  .header-actions {
    gap: 0;
  }
  .icon-action {
    min-width: 31px;
    padding: 2px;
    font-size: 9px;
  }
  .icon-action svg {
    width: 18px;
    height: 18px;
  }
  .home-banner {
    margin: 10px 10px 9px;
    padding: 19px 16px;
  }
  .home-banner h1 {
    font-size: clamp(20px, 7vw, 24px);
  }
  .banner-kicker {
    font-size: 9px;
  }
  .home-banner p {
    font-size: 10px;
  }
  .banner-domain {
    font-size: 10px;
  }
  .banner-bottom {
    margin-top: 15px;
  }
  .banner-link {
    font-size: 10px;
    padding: 4px 8px;
  }
  .notice-line {
    font-size: 10px;
    padding: 9px 11px;
  }
  .lottery-tabs {
    padding: 11px 10px;
    gap: 7px;
  }
  .lottery-tab {
    padding: 9px 10px;
  }
  .lottery-tab strong {
    font-size: 14px;
  }
  .lottery-tab span {
    font-size: 10px;
  }
  .draw-section {
    padding: 0 10px 11px;
  }
  .draw-card {
    padding: 11px 7px;
  }
  .draw-heading {
    font-size: 10px;
    gap: 3px;
  }
  .draw-heading .text-link {
    font-size: 10px;
  }
  .countdown {
    font-size: 10px;
  }
  .balls {
    gap: 3px;
  }
  .ball {
    width: 29px;
    height: 29px;
    font-size: 18px;
    border-width: 2.5px;
  }
  .ball-label {
    font-size: 9px;
  }
  .ball-cell.special::before {
    left: -6px;
    top: 5px;
    font-size: 13px;
  }
  .next-draw {
    font-size: 10px;
    margin-top: 10px;
  }
  .section {
    padding: 14px 10px;
  }
  .forum-grid {
    gap: 6px;
  }
  .forum-link {
    font-size: 10px;
    min-height: 34px;
    padding: 6px 2px;
  }
  .tools-grid {
    gap: 14px 4px;
  }
  .tool-symbol {
    width: 35px;
    height: 35px;
    border-radius: 12px;
  }
  .tool-symbol svg {
    width: 21px;
    height: 21px;
  }
  .tool-label {
    font-size: 10px;
  }
  .year-link {
    font-size: 10px;
  }
  .year-symbol {
    width: 35px;
    height: 35px;
  }
  .chip {
    font-size: 11px;
    padding: 5px 10px;
  }
  .gallery-grid {
    --gallery-gap: 8px;
  }
  .gallery-caption {
    padding: 8px 6px 9px;
  }
  .gallery-caption strong {
    font-size: 12px;
  }
  .gallery-caption span {
    font-size: 9px;
  }
  .page-head {
    grid-template-columns: 55px minmax(0, 1fr) 55px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .page-head h1 {
    font-size: 16px;
  }
  .page-head .head-right,
  .back-link {
    font-size: 11px;
  }
  .catalog-head {
    padding: 12px 10px;
  }
  .search-form {
    gap: 6px;
  }
  .search-input {
    font-size: 12px;
  }
  .search-form .primary-button {
    font-size: 12px;
    padding: 9px 13px;
  }
  .filter-row {
    gap: 7px;
  }
  .filter-row input,
  .filter-row select {
    font-size: 11px;
    padding: 8px 7px;
  }
  .directory-row {
    padding: 11px 9px;
    gap: 6px;
  }
  .directory-name {
    font-size: 12px;
  }
  .issue-badge {
    font-size: 10px;
    min-width: 30px;
  }
  .directory-meta {
    gap: 3px;
  }
  .catalog-body {
    padding-left: 9px;
    padding-right: 9px;
  }
  .detail-top {
    padding: 11px 10px;
  }
  .favorite-button {
    font-size: 11px;
    padding: 5px 4px;
  }
  .detail-date {
    max-width: 150px;
    font-size: 11px;
  }
  .detail-images {
    padding: 10px 10px 0;
  }
  .day-navigation {
    padding: 14px 10px;
    gap: 10px;
  }
  .day-button {
    font-size: 11px;
  }
  .article-card {
    padding: 13px;
  }
  .article-card h2 {
    font-size: 14px;
  }
  .article-card .plain-copy {
    font-size: 12px;
  }
  .article-preview {
    font-size: 12px;
  }
  .recommendation-title {
    padding: 11px;
  }
  .recommendation-title h2 {
    font-size: 12px;
  }
  .status-tag {
    font-size: 9px;
  }
  .recommendation-row {
    padding: 10px 9px;
    grid-template-columns: 29px minmax(0, 1fr) 38px;
    font-size: 11px;
    gap: 4px;
  }
  .recommendation-row strong {
    font-size: 10px;
  }
  .result-tag {
    font-size: 9px;
  }
  .link-groups {
    gap: 8px;
  }
  .link-group {
    padding: 11px 10px;
  }
  .link-group h2 {
    font-size: 12px;
  }
  .domain-link {
    font-size: 10px;
  }
  .my-hero {
    padding: 20px 14px;
    gap: 11px;
  }
  .my-hero h1 {
    font-size: 20px;
  }
  .my-tools {
    gap: 20px 5px;
  }
  .my-tool {
    font-size: 10px;
  }
  .my-tool svg {
    width: 24px;
    height: 24px;
  }
  .brand-symbol {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
  .attributes-grid {
    gap: 6px;
  }
  .attribute-item {
    padding: 9px 5px;
    gap: 5px;
  }
  .attribute-item .ball {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .attribute-item span {
    font-size: 10px;
  }
  .number-query button {
    padding: 9px 12px;
  }
  .bottom-link {
    font-size: 10px;
  }
  .bottom-link svg {
    width: 22px;
    height: 22px;
  }
  .empty-state {
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* 控件可收缩，避免手机搜索与日期输入撑宽整个页面。 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.page-main,
.catalog-head,
.section,
.lottery-tabs {
  min-width: 0;
  max-width: 100%;
}
.search-input {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
}
.search-form > button {
  flex: 0 0 auto;
}
.lottery-tab {
  flex: 1 1 0%;
  width: 0;
}
input[type='date'] {
  appearance: none;
  -webkit-appearance: none;
  min-inline-size: 0;
  display: block;
}
input[type='date']::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}
.pagination {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) minmax(70px, auto);
  gap: 9px;
  margin: 12px 0 18px;
  text-align: center;
}
.pagination .page-link {
  min-height: 42px;
  padding: 7px 12px;
  font: inherit;
}
.pagination button:disabled {
  cursor: default;
  background: #f4f6f4;
  color: #a7b0a9;
  border-color: #e7ece8;
  opacity: 0.7;
}
.page-counter {
  white-space: nowrap;
  font-size: 12px;
}
.pagination-extra {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.page-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.page-jump .page-number {
  width: 65px;
  min-width: 0;
  min-height: 40px;
  text-align: center;
  padding: 6px;
}
.page-jump .soft-button {
  padding: 7px 12px;
  min-height: 40px;
}
.listing-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.series-filters {
  padding-bottom: 0;
}
.series-results {
  padding-top: 0;
}
.letter-group {
  scroll-margin-top: 70px;
}
@media all {
  input[type='search'],
  input[type='date'],
  input[type='number'],
  input[type='text'],
  .filter-row input,
  .filter-row select,
  .attribute-head select {
    font-size: 16px;
    min-height: 44px;
  }
  .search-form {
    align-items: stretch;
  }
  .filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .filter-row .full {
    grid-column: auto;
  }
  .filter-row input,
  .filter-row select {
    width: 100%;
    max-width: 100%;
  }
  .catalog-head {
    padding-left: 12px;
    padding-right: 12px;
  }
  .series-filters .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .series-filters .filter-row label:first-child,
  .series-filters .filter-row .full {
    grid-column: 1/-1;
  }
  .page-head {
    grid-template-columns: minmax(48px, 64px) minmax(0, 1fr) minmax(48px, 64px);
  }
  .page-head h1 {
    min-width: 0;
    max-width: 100%;
    font-size: 17px;
  }
  .page-head .head-right {
    min-width: 0;
  }
  .topbar {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
  .bottom-nav {
    padding-left: max(5px, env(safe-area-inset-left, 0px));
    padding-right: max(5px, env(safe-area-inset-right, 0px));
  }
}
@media (max-width: 359px) {
  .pagination {
    gap: 6px;
  }
  .pagination-extra {
    gap: 6px;
  }
  .page-counter {
    font-size: 11px;
  }
  .pagination .page-link {
    padding-left: 8px;
    padding-right: 8px;
  }
  .page-jump .page-number {
    width: 54px;
  }
}
.helper-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.helper-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}
.helper-filters select {
  width: 100%;
}
.helper-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.text-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.text-category-link {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-deep);
  overflow-wrap: anywhere;
}
.issue-navigation {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f1f8f3;
  flex-wrap: wrap;
}
.issue-navigation a {
  font-size: 12px;
  padding: 8px;
  color: var(--green-deep);
}
@media all {
  .helper-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .helper-filters select {
    font-size: 16px;
    min-height: 44px;
  }
}

/* 场次分三行。首页的亚洲占位使用第二行空位。 */
.channel-switcher {
  padding: 13px 14px 12px;
  background: #fff;
  min-width: 0;
}
.platform-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.platform-tab--row-start {
  grid-column-start: 1;
}
.platform-tab {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 61px;
  padding: 9px 4px;
  border: 1px solid #edf2ee;
  border-radius: 11px;
  background: #f2f6f3;
  color: #53675a;
  text-align: center;
}
.platform-tab strong {
  display: block;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
.platform-tab span {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: #91a095;
  font-variant-numeric: tabular-nums;
}
.platform-tab .platform-new-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d9a526;
  border-radius: 5px;
  background: #fff5ce;
  color: #d60c1b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  -webkit-text-stroke: 0.3px #e5aa28;
  paint-order: stroke fill;
  box-shadow: 0 0 3px #e7b83b66;
  animation: platform-badge-flash 0.65s ease-in-out infinite;
}
@keyframes platform-badge-flash {
  50% {
    background: #ffec9d;
    border-color: #d18d12;
    box-shadow: 0 0 7px 1px #e8b12699;
    transform: scale(1.09);
  }
}
@media (max-width: 440px) {
  .platform-tab .platform-new-badge {
    top: -5px;
    right: 2px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}
.platform-tab.active {
  background: linear-gradient(130deg, #05b75a, #10cd73);
  border-color: #07bd61;
  box-shadow: 0 3px 9px #07c16020;
  color: #fff;
}
.platform-tab.active .platform-time {
  color: #e4ffef;
}
.legacy-channels {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  min-width: 0;
}
.legacy-label {
  flex: none;
  font-size: 10px;
  color: #9aaba0;
  margin-right: 1px;
}
.legacy-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid #e5eee8;
  border-radius: 18px;
  background: #fbfdfb;
  color: #869a8d;
  font-size: 11px;
  line-height: 1.5;
}
.legacy-channel svg {
  width: 11px;
  height: 11px;
}
.legacy-channel.active {
  background: #eaf8ef;
  border-color: #bbe5cc;
  color: #16814a;
  font-weight: 650;
}
.data-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 14px 10px;
  padding: 9px 11px;
  border: 1px solid #e6efe8;
  border-radius: 9px;
  background: #f5faf6;
  color: #82998a;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.data-note svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: none;
  color: #91b39d;
}
.section .data-note,
.catalog-head .data-note {
  margin: 0 0 12px;
}
@media (hover: hover) {
  .platform-tab[data-href]:hover {
    border-color: #b4dfc4;
    background: #edf8f1;
  }
  .platform-tab.active:hover {
    background: linear-gradient(130deg, #04ad55, #0bc36c);
  }
  .legacy-channel:hover {
    border-color: #b8dfc5;
    color: #24945a;
  }
}

@media (max-width: 359px) {
  .channel-switcher {
    padding: 11px 10px 10px;
  }
  .platform-tabs {
    gap: 6px;
  }
  .platform-tab {
    min-height: 56px;
    padding: 8px 3px;
    border-radius: 9px;
    gap: 4px;
  }
  .platform-tab strong {
    font-size: 11px;
  }
  .platform-tab span {
    font-size: 9px;
  }
  .legacy-channels {
    gap: 5px;
    margin-top: 8px;
  }
  .legacy-label {
    font-size: 9px;
  }
  .legacy-channel {
    font-size: 10px;
    padding: 4px 8px;
    min-height: 28px;
    gap: 3px;
  }
  .data-note {
    font-size: 10px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 8px 9px;
  }
}
.live-entry {
  background: #fff;
  margin: 0;
  padding: 0 14px 12px;
  color: #6d8878;
  min-width: 0;
}
.live-entry > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #e4f0e8;
  border-radius: 10px;
  background: #f3faf5;
  cursor: pointer;
}
.live-entry > summary::-webkit-details-marker {
  display: none;
}
.live-entry > summary:focus-visible {
  outline: 3px solid #8edcab;
  outline-offset: 3px;
}
.live-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #91a697;
}
.live-caption svg {
  width: 16px;
  height: 16px;
  color: #40bb75;
}
.live-caption strong {
  font-size: 11px;
  color: #547c61;
  font-weight: 650;
}
.live-caption > span {
  font-variant-numeric: tabular-nums;
}
.live-toggle-button {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  color: #1c9b55;
}
.live-toggle-button svg {
  width: 13px;
  height: 13px;
  transform: rotate(90deg);
}
.live-entry[open] .live-toggle-button svg {
  transform: rotate(-90deg);
}
.live-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px 15px;
  border-radius: 10px;
  background: #080808;
  color: #ff5151;
  text-align: center;
}
.live-entry[open] > summary {
  border-radius: 10px 10px 0 0;
}
.live-entry .live-content {
  border-radius: 0 0 10px 10px;
}
.live-schedule {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.live-refresh {
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  font-size: 13px;
}
.live-refresh:hover {
  background: #2b1010;
}
.live-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.live-actions .text-link {
  font-size: 11px;
}

@media (max-width: 359px) {
  .live-entry {
    padding: 0 10px 10px;
  }
  .live-entry > summary {
    padding: 9px 8px;
    gap: 6px;
  }
  .live-caption {
    font-size: 9px;
    gap: 4px;
  }
  .live-caption strong {
    font-size: 10px;
  }
  .live-caption svg {
    width: 14px;
    height: 14px;
  }
  .live-toggle-button {
    font-size: 10px;
    gap: 1px;
  }
  .live-toggle-button svg {
    width: 11px;
    height: 11px;
  }
  .live-actions {
    gap: 9px;
  }
  .live-actions .text-link {
    font-size: 10px;
  }
}
.data-note > span {
  min-width: 0;
}
.homepage-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.homepage-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e0eee5;
  border-radius: 10px;
  background: #f4faf6;
  color: #5a8067;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.homepage-shortcut svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: #85b496;
}

@media (max-width: 359px) {
  .homepage-shortcuts {
    gap: 7px;
  }
  .homepage-shortcut {
    font-size: 11px;
    padding: 9px 10px;
    min-height: 39px;
    gap: 5px;
  }
  .homepage-shortcut svg {
    width: 11px;
    height: 11px;
  }
}
/* 手机横屏同样使用可直接阅读的表单字号。 */
:is(.app-shell, .copy-panel)
  input:is([type='search'], [type='date'], [type='number'], [type='text']),
.app-shell select {
  font-size: 16px;
}

/* 电脑也保持480像素手机面板，固定工具与正文共用面板宽度。 */
.app-shell {
  width: 100%;
  max-width: var(--panel-width);
  margin-inline: auto;
}
.topbar,
.page-head {
  max-width: var(--panel-width);
}

@media (max-width: 359px) {
  .catalog-results {
    column-gap: 2px;
    padding-right: 3px;
  }
}
/* 首页切场只更新开奖区域，原页面和已展开直播保留。 */
.home-draw-region {
  position: relative;
  min-width: 0;
}
.home-draw-region[aria-busy='true'] .draw-card {
  opacity: 0.76;
}
.draw-switch-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.platform-tab {
  position: relative;
}
.platform-tab.is-updating {
  border-color: #91d9ad;
}
.platform-tab.is-updating::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #69cb8e;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 粗弧与高光一起旋转，号码留在圆心。 */
.balls {
  --draw-ball-size: clamp(29px, 9.5vw, 46px);
}
.balls .ball {
  --ring-color: #0dca44;
  width: var(--draw-ball-size);
  height: var(--draw-ball-size);
  border: 0;
  color: #111;
  isolation: isolate;
}
.balls .ball.red {
  --ring-color: #ff292e;
}
.balls .ball.blue {
  --ring-color: #2d94ff;
}
.balls .ball::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ring-color);
  pointer-events: none;
  -webkit-mask: url('./draw-ring.svg') center / contain no-repeat;
  mask: url('./draw-ring.svg') center / contain no-repeat;
  animation: draw-ring-spin 2.8s linear infinite;
}
.balls .ball::after {
  display: none;
}
.balls .ball-cell.special::before {
  top: calc(var(--draw-ball-size) / 2);
  color: #ef252b;
  line-height: 1;
  transform: translateY(-50%);
}
.balls[data-draw-notice] .ball-cell.special::before {
  visibility: hidden;
}
@keyframes draw-ring-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 359px) {
  .balls {
    --draw-ball-size: 29px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .balls .ball::before {
    animation: none;
  }
}

/* 开奖逐球进度与号码属性 */
.ball-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 18px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #53695b;
  max-width: 100%;
  white-space: nowrap;
}
.ball-label-divider {
  font-weight: 400;
  color: #8a9b8e;
}
.ball-element {
  color: #52735e;
}
.ball-cell {
  gap: 6px;
}
.draw-current-meta,
.draw-next-meta {
  display: block;
}
.draw-next-meta {
  margin-top: 3px;
  color: #617869;
}
.pending-ball {
  color: transparent;
}
.draw-heading .countdown {
  min-width: 0;
}
@media (max-width: 350px) {
  .ball-label {
    font-size: 11px;
    line-height: 16px;
    min-height: 16px;
    gap: 0;
  }
  .ball-cell {
    gap: 5px;
  }
  .draw-next-meta {
    font-size: 10px;
  }
}

/* 首页轮播与金色广告 */
.homepage-carousel {
  margin: 13px 14px 10px;
  min-width: 0;
}
.banner-deck {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  box-shadow: 0 7px 18px rgb(7 193 96 / 12%);
  touch-action: pan-y pinch-zoom;
}
.banner-track {
  display: flex;
  min-width: 0;
  transition: transform 0.42s cubic-bezier(0.24, 0.75, 0.27, 1);
  will-change: transform;
}
.banner-track > .home-banner {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 44px;
  box-shadow: none;
  border-radius: 0;
}
.banner-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
}
.banner-arrow-prev {
  left: 0;
}
.banner-arrow-next {
  right: 0;
}
.banner-arrow svg {
  width: 29px;
  height: 29px;
  padding: 4px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #152a2399;
  box-shadow: 0 2px 6px #10251b45;
  stroke-width: 2.3;
}
.banner-arrow:hover svg,
.banner-arrow:focus-visible svg {
  background: #17291ee0;
}
.banner-arrow:focus-visible {
  outline-offset: -4px;
  border-radius: 12px;
}
.banner-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 20px;
  margin-top: 4px;
}
.banner-dot {
  padding: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #b5c9bc;
}
.banner-dot[aria-pressed='true'] {
  width: 16px;
  background: #08b765;
}
.banner-play {
  padding: 0 4px;
  min-width: 16px;
  font-size: 10px;
  color: #547462;
  line-height: 18px;
}
.advert-banner {
  --gold-shadow: #261407;
  display: flex;
  align-items: center;
  min-height: 178px;
  padding: 18px 19px;
  color: #fff0cc;
  background: radial-gradient(ellipse at 10% 95%, #714019, var(--gold-shadow) 63%);
}
.advert-rose {
  --gold-shadow: #412529;
}
.advert-banner::after {
  inset: 6px;
  z-index: 2;
  width: auto;
  height: auto;
  border: 1px solid #ffd687a8;
  border-radius: 11px;
  pointer-events: none;
  box-shadow:
    0 0 12px #d98b404d,
    inset 0 0 13px #ffc77930;
}
.advert-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% top;
}
.advert-banner::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, #ffc45a54, transparent 45%),
    radial-gradient(ellipse at 94% 100%, #f7a94d2c, transparent 42%),
    linear-gradient(90deg, var(--gold-shadow) 36%, transparent 78%),
    linear-gradient(0deg, #2f0c046e, transparent 30%, transparent 81%, #3110064d);
  pointer-events: none;
}
.advert-copy {
  min-width: 0;
  text-shadow: 0 2px 7px #180c04;
}
.advert-banner .banner-kicker {
  color: #ffd78d;
  opacity: 1;
  letter-spacing: 0.18em;
}
.advert-banner h2 {
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.11em;
  margin: 3px 0;
  color: #ffe6a8;
  background: linear-gradient(#fff2c5 10%, #ffdf91 51%, #efa745);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 3px #1e0e06);
}
.advert-banner p {
  font-size: 11px;
  opacity: 1;
  margin-top: 4px;
  color: #ffedc8;
}
.advert-contacts {
  display: flex;
  gap: 4px 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.advert-contact-label {
  flex: 0 0 100%;
  font-size: 10px;
  color: #f2cb8c;
}
.advert-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #eabb7180;
  background: #281507d9;
  color: #fff0cc;
  padding: 4px 7px;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.advert-contact strong {
  font-weight: 650;
}
.advert-empty {
  display: inline-block;
  width: 13px;
  border-bottom: 1px solid #f4ce8f80;
}
.advert-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.advert-effects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 33%,
    #ffcb5c25 47%,
    #fff8ce8f 50%,
    #ffcb5c20 53%,
    transparent 66%
  );
  transform: translateX(-110%);
  mix-blend-mode: screen;
}
.advert-spark {
  position: absolute;
  top: 18%;
  right: 11%;
  width: 17px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0.55;
  filter: drop-shadow(0 0 5px #ffe0a2);
}
.advert-spark::before,
.advert-spark::after {
  content: '';
  grid-area: 1/1;
  border-radius: 50%;
  background: #fff3c8;
}
.advert-spark::before {
  width: 100%;
  height: 2px;
}
.advert-spark::after {
  width: 2px;
  height: 100%;
}
.advert-spark:nth-child(2) {
  top: 68%;
  right: 26%;
  width: 11px;
  --spark-delay: 0.18s;
}
.advert-spark:nth-child(3) {
  top: 43%;
  right: 6%;
  width: 9px;
  --spark-delay: 0.35s;
}
.advert-spark:nth-child(4) {
  top: 8%;
  right: 40%;
  width: 8px;
  --spark-delay: 0.52s;
}
.advert-spark:nth-child(5) {
  top: 12%;
  right: 91%;
  width: 9px;
  --spark-delay: 0.68s;
}
.advert-spark:nth-child(6) {
  top: 78%;
  right: 8%;
  width: 12px;
  --spark-delay: 0.84s;
}
.advert-spark:nth-child(7) {
  top: 86%;
  right: 39%;
  width: 8px;
  --spark-delay: 1.04s;
}
.advert-spark:nth-child(8) {
  top: 84%;
  right: 91%;
  width: 10px;
  --spark-delay: 1.23s;
}
.is-playing .advert-banner[aria-hidden='false'] .advert-effects::before {
  animation: advert-sheen 2.8s 0.1s ease-out infinite;
}
.is-playing .advert-banner[aria-hidden='false'] .advert-spark {
  animation: advert-glint 2.1s var(--spark-delay, 0s) ease-in-out infinite;
}
@keyframes advert-sheen {
  0% {
    transform: translateX(-110%);
  }
  62%,
  100% {
    transform: translateX(110%);
  }
}
@keyframes advert-glint {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.65);
  }
  46% {
    opacity: 1;
    transform: scale(1.14);
  }
}
@media (max-width: 350px) {
  .homepage-carousel {
    margin: 10px 10px 9px;
  }
  .advert-banner {
    min-height: 164px;
    padding: 16px 14px;
  }
  .advert-contact {
    padding: 4px 6px;
  }
  .advert-empty {
    width: 9px;
  }
}
@media (max-width: 359px) {
  .banner-track h1 {
    font-size: clamp(17px, 6vw, 22px);
  }
}

.official-links {
  grid-template-columns: 1fr;
}
.official-links h2 {
  font-size: 15px;
}
.official-links .domain-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  color: #416651;
  font-size: 14px;
}
.official-links .domain-link svg {
  width: 16px;
  height: 16px;
  color: #248458;
}
.gallery-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.app-shell:has(.qx-page) {
  background: #f5f5f3;
}
.qx-page {
  --material-sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --material-serif: 'Songti SC', 'SimSun', 'Noto Serif CJK SC', serif;
  --material-title-font: var(--material-sans);
  --material-title-edge: #91a7af;
  --material-title-center: #d4cec0;
  --material-title-ink: #211f1c;
  --material-title-weight: 800;
  --material-title-spacing: 0.035em;
  --material-row-tint: #efefea;
  padding: 0 0 16px;
  color: #211f1c;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  container-type: inline-size;
}
[data-material-channel='cmzj-vietnam'] {
  --material-title-edge: #b8a271;
  --material-title-center: #f0e4c7;
  --material-title-ink: #513f27;
  --material-row-tint: #f4eee2;
  --material-title-font: var(--material-serif);
  --material-title-weight: 750;
}
[data-material-channel='cmzj-thailand'] {
  --material-title-edge: #a294be;
  --material-title-center: #e7e0f2;
  --material-title-ink: #443561;
  --material-row-tint: #f0edf7;
  --material-title-spacing: 0.06em;
}
[data-material-channel='cmzj-haitian'] {
  --material-title-edge: #87b1b5;
  --material-title-center: #d9ecec;
  --material-title-ink: #244d54;
  --material-row-tint: #e9f3f3;
  --material-title-weight: 700;
}
[data-material-channel='cmzj-paris'] {
  --material-title-edge: #bf9bab;
  --material-title-center: #f0e2e9;
  --material-title-ink: #633b50;
  --material-row-tint: #f5edf2;
  --material-title-font: var(--material-serif);
  --material-title-spacing: 0.06em;
}
[data-material-channel='cmzj-dubai'] {
  --material-title-edge: #b7a386;
  --material-title-center: #eee5d8;
  --material-title-ink: #594932;
  --material-row-tint: #f2eee7;
  --material-title-spacing: 0.07em;
}
[data-material-channel='cmzj-india'] {
  --material-title-edge: #c19a83;
  --material-title-center: #f1e1d6;
  --material-title-ink: #633f2f;
  --material-row-tint: #f7ede7;
  --material-title-font: var(--material-serif);
  --material-title-weight: 700;
}
[data-material-channel='ref-90001'],
[data-material-channel='hk'] {
  --material-title-edge: #93a5b9;
  --material-title-center: #dfe9f3;
  --material-title-ink: #344a62;
  --material-row-tint: #edf2f7;
  --material-title-spacing: 0.025em;
}
[data-material-channel='ref-90004'] {
  --material-title-edge: #91b49b;
  --material-title-center: #dfede1;
  --material-title-ink: #2c5339;
  --material-row-tint: #edf4ed;
  --material-title-weight: 750;
}
[data-material-channel='ref-90002'],
[data-material-channel='macau'] {
  --material-title-edge: #a6a093;
  --material-title-center: #ebe6da;
  --material-title-ink: #504639;
  --material-row-tint: #f1eee8;
  --material-title-font: var(--material-serif);
  --material-title-spacing: 0.05em;
}
[data-material-channel='ref-90011'] {
  --material-title-edge: #899ac4;
  --material-title-center: #e2e8f7;
  --material-title-ink: #334770;
  --material-row-tint: #edf0f9;
  --material-title-spacing: 0.08em;
}
[data-material-channel='ref-90008'] {
  --material-title-edge: #b9a56e;
  --material-title-center: #f0e7ca;
  --material-title-ink: #584921;
  --material-row-tint: #f5f0e2;
  --material-title-font: var(--material-serif);
  --material-title-spacing: 0.045em;
}
[data-material-channel='ref-90017'],
[data-material-channel='cmzj-asia'] {
  --material-title-edge: #8aa7a0;
  --material-title-center: #dceae3;
  --material-title-ink: #2c4e46;
  --material-row-tint: #edf4f1;
  --material-title-weight: 750;
  --material-title-spacing: 0.05em;
}
.qx-section > h2 {
  background: linear-gradient(
    90deg,
    var(--material-title-edge),
    var(--material-title-center) 25%,
    var(--material-title-center) 75%,
    var(--material-title-edge)
  );
  border-radius: 5px;
  text-align: center;
}
.qx-award {
  margin: 9px 0;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}
.qx-draw-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #eeeeeb;
  text-align: center;
}
.qx-tab {
  padding: 9px 3px;
  font-size: 13px;
}
.qx-tab-active {
  background: #fff;
  color: #a13222;
  font-weight: 750;
}
.qx-award-content {
  padding: 10px 8px;
}
.qx-award-title,
.qx-award-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.qx-award-title {
  margin-bottom: 10px;
}
.qx-award-title em,
.qx-award-title a,
.qx-result {
  color: #a73223;
  font-style: normal;
}
.qx-award-next {
  margin-top: 8px;
  font-size: 12px;
}
.qx-award .ball-label-divider,
.qx-award .ball-element {
  display: none;
}
.qx-refresh {
  padding: 5px 10px;
  border-radius: 4px;
  background: #b5482c;
  color: white;
  font-weight: 650;
}
.qx-section {
  margin: 10px 0;
}
.qx-section > h2 {
  padding: 6px 8px;
  color: var(--material-title-ink);
  font-family: var(--material-title-font);
  font-size: clamp(15px, 4vw, 23px);
  font-size: clamp(15px, 4cqw, 23px);
  font-weight: var(--material-title-weight);
  letter-spacing: var(--material-title-spacing);
  overflow-wrap: anywhere;
}
.qx-period {
  margin-top: 6px;
  padding: 3px 4px;
  background: #fff;
  border-radius: 5px;
}
.qx-period:nth-of-type(even) {
  background: var(--material-row-tint);
}
.qx-line {
  --material-side: clamp(54px, 20%, 88px);
  display: grid;
  grid-template-columns: var(--material-side) minmax(0, 1fr) var(--material-side);
  gap: 6px;
  align-items: center;
  padding: 5px;
  font-size: clamp(12px, 3.15vw, 17px);
  font-size: clamp(12px, 3.15cqw, 17px);
  font-weight: 650;
  min-height: 29px;
}
.qx-line + .qx-line {
  margin-top: 2px;
}
.qx-line:nth-child(even) {
  background: #e9f1f2;
  border-radius: 3px;
}
.qx-line-label,
.qx-result {
  font-size: 0.88em;
  min-width: 0;
  overflow-wrap: anywhere;
}
.qx-result {
  text-align: right;
}
.qx-line-content {
  min-width: 0;
  color: #26231c;
  text-align: center;
  overflow-wrap: anywhere;
}
/* 新澳文字资料：长诗句单独排版，不挤占推荐及结果列。 */
.xinao-text-project h2 {
  overflow-wrap: anywhere;
}
.xinao-text-project .xinao-text-note {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
.xinao-text-note .qx-line-content {
  text-align: left;
  line-height: 1.65;
}
.xinao-text-note .materials-token {
  white-space: normal;
  overflow-wrap: anywhere;
}
.xinao-text-project > .qx-refresh {
  display: block;
  margin: 12px auto;
}
.qx-compact-project .qx-line {
  grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1fr);
  white-space: nowrap;
}
.qx-long-number-project .qx-line {
  grid-template-columns: minmax(max-content, var(--material-side)) minmax(0, 1fr) minmax(
      max-content,
      var(--material-side)
    );
}
.qx-long-number-project :is(.qx-line-label, .qx-result) {
  white-space: nowrap;
}
.qx-multi-section .qx-multi-period {
  background: var(--qx-edition-bg);
  border-radius: 10px;
  margin-top: 10px;
  padding: 0 0 4px;
  overflow: hidden;
}
.qx-multi-period[data-tone='0'] {
  --qx-edition-bg: #e6f3ea;
  --qx-edition-head: #c5e4d0;
  --qx-edition-ink: #1d5437;
}
.qx-multi-period[data-tone='1'] {
  --qx-edition-bg: #e8effb;
  --qx-edition-head: #ceddf6;
  --qx-edition-ink: #2c4782;
}
.qx-multi-period[data-tone='2'] {
  --qx-edition-bg: #fbeddf;
  --qx-edition-head: #f3d7b9;
  --qx-edition-ink: #713e1d;
}
.qx-multi-period[data-tone='3'] {
  --qx-edition-bg: #f1eafa;
  --qx-edition-head: #e2d3f1;
  --qx-edition-ink: #573c73;
}
.qx-multi-period[data-tone='4'] {
  --qx-edition-bg: #e3f3f2;
  --qx-edition-head: #bfe5e1;
  --qx-edition-ink: #245752;
}
.qx-multi-period[data-tone='5'] {
  --qx-edition-bg: #fae8ec;
  --qx-edition-head: #f3ccd6;
  --qx-edition-ink: #79364c;
}
.qx-multi-period[data-tone='6'] {
  --qx-edition-bg: #faf3d8;
  --qx-edition-head: #f3e3a6;
  --qx-edition-ink: #644a15;
}
.qx-multi-period[data-tone='7'] {
  --qx-edition-bg: #e9ebf9;
  --qx-edition-head: #d5d9f2;
  --qx-edition-ink: #414778;
}
.qx-multi-period[data-tone='8'] {
  --qx-edition-bg: #edf2df;
  --qx-edition-head: #dce7bf;
  --qx-edition-ink: #455326;
}
.qx-multi-period[data-tone='9'] {
  --qx-edition-bg: #f8e9e4;
  --qx-edition-head: #efd0c3;
  --qx-edition-ink: #793f31;
}
.qx-period-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: var(--qx-edition-head);
  color: var(--qx-edition-ink);
}
.qx-period-heading h3 {
  font-size: 15px;
  line-height: 1.4;
}
.qx-period-heading time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.qx-multi-period .qx-line {
  margin: 0 4px;
  padding: 5px 6px;
}
.qx-multi-period .qx-line:nth-child(even) {
  background: transparent;
}
.qx-multi-period .qx-line:nth-child(odd) {
  background: #ffffff69;
  border-radius: 4px;
}
.qx-multi-period .qx-line-label {
  color: var(--qx-edition-ink);
}
.qx-line-content.qx-number-line {
  font-size: clamp(10px, 3vw, 13px);
  font-size: clamp(10px, 3cqw, 13px);
}
@container (max-width:480px) {
  .qx-line {
    gap: 4px;
  }
  .qx-multi-period .qx-line {
    padding-inline: 5px;
  }
  .qx-multi-period .qx-line-label,
  .qx-multi-period .qx-result {
    font-size: 12px;
  }
  .qx-multi-period .qx-line-content {
    font-size: clamp(10px, 3cqw, 14px);
    font-variant-numeric: tabular-nums;
  }
  .qx-multi-period .qx-line-content.qx-number-line {
    font-size: clamp(10px, 3cqw, 13px);
  }
}
@media (max-width: 360px) {
  .qx-line:has(.qx-number-line) {
    column-gap: 2px;
    padding-inline: 4px;
  }
}
.qx-number-line {
  font-variant-numeric: tabular-nums;
  color: #223f8e;
}
.qx-number-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.qx-number-token {
  flex: none;
  white-space: nowrap;
}
.qx-red {
  color: #b62c25;
}
.qx-blue {
  color: #1e4394;
}
.qx-green {
  color: #146a35;
}
.qx-bgyellow {
  background: #f9e373;
  border-radius: 2px;
}
.qx-empty {
  text-align: center;
  color: #706c62;
  padding: 8px;
}
.qx-attribute {
  background: #fff;
  border-radius: 5px;
  margin-top: 7px;
  padding: 8px 5px;
}
.qx-attribute h3 {
  text-align: center;
  font-size: 13px;
  margin-bottom: 7px;
  color: #292b27;
}
.qx-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  font-size: 12px;
  gap: 4px;
}
.qx-zodiac-grid > div {
  background: #f1f1ed;
  padding: 6px 2px;
  border-radius: 3px;
}
.qx-zodiac-grid .qx-pills {
  justify-content: center;
  margin-top: 4px;
}
.qx-attribute-row {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) minmax(0, 7fr);
  gap: 6px;
  align-items: center;
  padding: 4px;
  font-size: 12px;
}
.qx-attribute-row:nth-child(even),
.qx-property-grid p:nth-child(even) {
  background: #f2f2ee;
  border-radius: 3px;
}
.qx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.qx-pill {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  padding: 1px 2px;
  font-size: 11px;
  color: #fff;
  background: #596866;
  border-radius: 3px;
}
.qx-pill-red {
  background: #c23b32;
}
.qx-pill-blue {
  background: #315bbc;
}
.qx-pill-green {
  background: #23774e;
}
.qx-property-grid p {
  padding: 4px 7px;
  font-size: 12px;
}
.qx-property-grid strong {
  color: #214c85;
}
.materials-tabs {
  gap: 4px;
  padding: 5px;
}
.materials-tabs .qx-tab {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 6px 3px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.materials-tabs .qx-tab:hover {
  background: #f8f9f7;
}
.materials-tabs .qx-tab-active {
  background: var(--material-title-center);
  color: var(--material-title-ink);
}
.materials-page {
  padding: 0 8px 16px;
}
.page-head--materials {
  grid-template-columns: 88px minmax(0, 1fr) 88px;
}
.material-head-actions {
  display: flex;
  justify-self: end;
}
.material-head-actions .head-right,
.material-search-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
}
.material-search-toggle svg {
  width: 19px;
  height: 19px;
}
.material-search-toggle[aria-expanded='true'] {
  background: rgb(255 255 255 / 18%);
}
.material-search-panel {
  position: absolute;
  top: 100%;
  inset-inline: 8px;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgb(20 65 40 / 12%);
}
.materials-project {
  margin: 22px 0;
}
.materials-token {
  display: inline-block;
  max-width: 100%;
  margin-inline: 2px;
  vertical-align: baseline;
}
.materials-note .qx-line-content {
  white-space: pre-wrap;
}
.materials-paired-project .materials-pick-pair {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  align-items: baseline;
  gap: 6px;
  margin: 4px 5px 0;
  border-radius: 6px;
}
.materials-paired-project .qx-multi-period {
  padding-top: 1px;
}
.materials-paired-project .materials-pick-pair:nth-child(odd) {
  background: #ffffff73;
}
.materials-paired-project .materials-pick-pair .qx-line {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(3px, 1cqw, 5px);
  margin: 0;
  padding: 6px 2px;
  background: transparent;
  border: 0;
  min-width: 0;
}
.materials-paired-project .qx-line-label {
  color: #242620;
  font-size: clamp(10px, 2.65cqw, 13px);
  font-weight: 750;
  white-space: nowrap;
}
.materials-paired-project .qx-line-content {
  color: #b62c25;
  font-size: clamp(10px, 2.8cqw, 14px);
  line-height: 1.45;
  text-align: left;
  overflow-wrap: normal;
}
.materials-paired-project .qx-line-content.qx-number-line {
  font-size: clamp(10px, 2.65cqw, 13px);
  letter-spacing: clamp(-0.5px, calc(0.16cqw - 0.95px), -0.15px);
}
.materials-paired-project .qx-number-group {
  justify-content: flex-start;
}
.materials-paired-project .materials-token {
  margin: 0;
  white-space: nowrap;
}
.materials-paired-project .qx-line-content:not(.qx-number-line) {
  white-space: nowrap;
}
.materials-paired-project .materials-pick-empty {
  min-width: 0;
}
/* 窄屏将两组资料上下排，给生肖和长号码组留足宽度。 */
@container (max-width: 365px) {
  .materials-paired-project .materials-pick-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .materials-paired-project .qx-line-label,
  .materials-paired-project .qx-line-content,
  .materials-paired-project .qx-line-content.qx-number-line {
    font-size: 13px;
  }
  .materials-paired-project .qx-line-content:not(.qx-number-line) {
    white-space: normal;
  }
}
.materials-jinsha-kill > h2 {
  background: #00efa0;
  color: #132b22;
  font-family: var(--material-sans);
}
.jinsha-kill-period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: baseline;
  gap: clamp(4px, 1.4cqw, 8px);
  margin-top: 4px;
  padding: 2px 4px;
  background: #cef8f5;
}
.jinsha-kill-period:nth-of-type(even) {
  background: #e1fbf9;
}
.jinsha-kill-period .qx-line {
  grid-template-columns: max-content max-content minmax(0, max-content);
  justify-content: center;
  align-items: baseline;
  gap: clamp(2px, 0.75cqw, 4px);
  min-height: 32px;
  margin: 0;
  padding: 5px 0;
  background: transparent;
  color: #142b28;
  font-size: clamp(10px, 2.65cqw, 13px);
}
.jinsha-kill-period :is(.qx-line-label, .qx-result) {
  color: inherit;
  font-size: inherit;
}
.jinsha-kill-period .qx-line-label {
  font-weight: 750;
  white-space: nowrap;
}
.jinsha-kill-period .qx-line-content {
  color: #b62c25;
  white-space: nowrap;
}
.jinsha-kill-period .qx-result {
  text-align: left;
  overflow-wrap: normal;
}
.materials-cc-prefix .qx-single-number-row {
  /* 左右留出相同空间，号码与生肖共同对齐整行的中心线。 */
  grid-template-columns: 5.8em minmax(0, 1fr) 5.8em;
  column-gap: 3px;
}
.materials-cc-prefix .qx-single-number-row :is(.qx-line-label, .qx-result) {
  white-space: nowrap;
}
.materials-cc-prefix .qx-single-number-row .qx-line-content.qx-number-line {
  font-size: clamp(10px, 3cqw, 13px);
  line-height: 1.6;
  letter-spacing: -0.25px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.materials-cc-prefix .qx-single-number-row .qx-number-line {
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.materials-cc-prefix .qx-single-number-row .qx-number-group {
  /* 按实际号码组居中；窄屏放不下时换行，避免遮住结果列。 */
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}
@media (max-width: 360px) {
  .materials-page {
    padding-inline: 3px;
  }
  .materials-project .qx-line:has(.qx-number-line) {
    column-gap: 1px;
    padding-inline: 2px;
  }
  .materials-project .qx-number-line {
    letter-spacing: -0.2px;
  }
}
.gallery-result-count {
  color: #63766c;
  font-size: 0.72rem;
  white-space: nowrap;
}

a[data-href] {
  cursor: pointer;
}
.aoda-pair-heading {
  padding: 8px 12px;
  font-weight: 700;
  color: #315b47;
}
.aoda-four-pairs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 4px 12px;
  text-align: center;
  font-weight: 650;
}
.aoda-pair-numbers {
  white-space: nowrap;
  color: #244a98;
  font-size: clamp(11px, 3.1vw, 14px);
  margin-top: 5px;
}
.jinsha-three-two .qx-result {
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: clamp(10px, 2.6vw, 12px);
}
.jinsha-three-two .qx-line {
  grid-template-columns: 55px minmax(0, 1fr) 98px;
}

.materials-cc-prefix .cc-number-slot {
  display: inline-block;
  width: 2ch;
  text-align: center;
}
.materials-cc-prefix .cc-number-separator {
  display: inline-block;
  width: 0.6ch;
  text-align: center;
}

.asia-twelve-row .qx-number-group {
  flex-wrap: nowrap;
  letter-spacing: -0.2px;
}

.asia-fourteen-row .qx-line-content {
  container-type: inline-size;
  min-width: 0;
}
.asia-fourteen-row .qx-number-group {
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-content: center;
  font-size: min(13px, 3.8cqi);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.asia-fourteen-row .qx-number-token {
  flex: none;
}
@media (max-width: 600px) {
  .materials-project .asia-fourteen-row {
    grid-template-columns: 62px minmax(0, 1fr) 66px;
    column-gap: 2px;
    padding-inline: 4px;
  }
}

.asia-nine-zodiac .qx-line {
  grid-template-columns: 65px minmax(0, 1fr) 74px;
  align-items: center;
  column-gap: 3px;
}
.asia-nine-zodiac .qx-line-label,
.asia-nine-zodiac .qx-result {
  white-space: nowrap;
}
.asia-nine-zodiac .qx-line-content {
  white-space: nowrap;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  min-width: 0;
}
.asia-nine-zodiac .materials-token {
  flex: none;
}
@media (max-width: 360px) {
  .asia-nine-zodiac .qx-line {
    grid-template-columns: 58px minmax(0, 1fr) 66px;
  }
  .asia-nine-zodiac .qx-line-content {
    font-size: 11px;
  }
}

/* 顶部官方后增加图库联盟，四个入口保持一行。 */
.topbar .wordmark {
  min-width: 0;
  flex: 1;
  width: auto;
}
.topbar .header-actions {
  flex: none;
  gap: 2px;
}
.topbar .icon-action {
  min-width: 30px;
  padding: 3px 2px;
}
.topbar .alliance-action {
  min-width: 44px;
  white-space: nowrap;
}
.topbar .wordmark img {
  min-width: 0;
  max-width: calc(100% - 40px);
}
@media (max-width: 400px) {
  .topbar {
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .topbar .header-actions {
    gap: 0;
  }
  .topbar .icon-action {
    font-size: 9px;
    min-width: 27px;
  }
  .topbar .alliance-action {
    min-width: 40px;
  }
  .topbar .wordmark span {
    font-size: 20px;
  }
  .topbar .wordmark img {
    max-width: calc(100% - 34px);
  }
}

/* 首页原链接区域：场次头像导航 */
.scene-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px 8px;
}
.scene-shortcut {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: #344c3f;
  text-decoration: none;
  box-sizing: border-box;
}
.scene-shortcut img {
  width: min(62.4px, 100%);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  flex: none;
}
/* 动画文件四周留有特效空白；放大主体并裁去溢出，保持格子和文字位置不变。 */
.scene-shortcut img[src$='-motion.webp'] {
  transform: scale(1.5);
  clip-path: inset(16.667%);
}
.scene-shortcut span {
  font-size: clamp(11px, 2.9vw, 13px);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}
.scene-shortcut-long span {
  white-space: normal;
  max-width: 5em;
  font-size: clamp(10px, 2.65vw, 12px);
}
.scene-shortcut:focus-visible {
  outline: 2px solid #07c160;
  outline-offset: 3px;
  border-radius: 8px;
}
@media (max-width: 360px) {
  .scene-shortcut-grid {
    gap: 6px 5px;
  }
  .scene-shortcut span {
    font-size: 10px;
  }
  .scene-shortcut-long span {
    font-size: 10px;
  }
}

/* CC 第09款：钻切锋芒，透明金红标志 */
.scene-shortcut-cc {
  perspective: 700px;
}
.scene-shortcut-cc img {
  animation: cc-diamond-tilt 4.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 3px #63310922);
  will-change: transform;
}
@keyframes cc-diamond-tilt {
  0%,
  100% {
    transform: rotateY(0) rotate(0);
    filter: drop-shadow(0 3px 3px #63310922) brightness(1);
  }
  25% {
    transform: rotateY(20deg) rotate(-5deg);
  }
  75% {
    transform: rotateY(-20deg) rotate(5deg);
    filter: drop-shadow(0 3px 3px #63310922) brightness(1.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-shortcut-cc img {
    animation: none;
  }
}

/* 澳大风云榜：布局独立，不改变其他场次页面。 */
/* 亚洲高手详情保留原文及标黄；字号随栏目宽度调整，期号和结果保持一行。 */
.asia-treasure-expert {
  margin: 8px 0;
  border: 1px solid #d4d4d4;
  background: #fff;
  container-type: inline-size;
}
.asia-treasure-expert h2 {
  margin: 0;
  padding: 6px;
  color: #ffeb00;
  background: linear-gradient(#7259db, #c8b6f6);
  text-align: center;
  font-size: clamp(16px, 4vw, 22px);
}
.asia-treasure-expert .asia-treasure-expert-row {
  margin: 0;
  padding: 8px 4px;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: clamp(9px, 3.8cqi, 16px);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
/* 五尾中特保留原版紫色标题、三列布局及红色尾数。 */
.asia-treasure-one {
  margin: 8px 0;
}
.asia-treasure-one .asia-one-period {
  margin: 0;
  border: 1px solid #7761dc;
  border-radius: 0;
  background: #fff;
}
.asia-one-period h2 {
  margin: 0;
  padding: 5px;
  background: #7761dc;
  color: #fff;
  text-align: center;
  font-size: clamp(14px, 3.5vw, 16px);
}
.asia-one-row {
  display: grid;
  grid-template-columns: 25% 1fr 25%;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 700;
  line-height: 1.4;
}
.asia-one-label,
.asia-one-result {
  display: grid;
  align-items: center;
  padding: 5px 2px;
  background: #7761dc;
  color: #fff;
}
.asia-one-values {
  min-width: 0;
  padding: 5px 2px;
  color: #000;
  overflow-wrap: anywhere;
}
.asia-one-values span {
  display: inline-block;
}
.asia-treasure-three {
  margin: 8px 0;
  border: 1px solid #7560dc;
  background: #fff;
}
.asia-treasure-three h2 {
  margin: 0;
  padding: 5px;
  background: linear-gradient(#7259db, #c8b6f6);
  color: #ffeb00;
  text-align: center;
  font-size: clamp(16px, 4vw, 22px);
}
.asia-treasure-three .asia-treasure-three-period {
  margin: 0;
  padding: 5px 3px;
  border-bottom: 1px solid #111;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.asia-three-heading {
  color: #111;
  font-size: clamp(14px, 3.8vw, 18px);
}
.asia-three-decor {
  color: green;
}
.asia-three-size {
  color: red;
}
.asia-three-numbers {
  font-size: clamp(16px, 4.2vw, 24px);
  overflow-wrap: anywhere;
}
.asia-treasure-tail {
  margin: 8px 0;
  border: 1px solid #7560dc;
  background: #fff;
}
.asia-treasure-tail h2 {
  margin: 0;
  padding: 5px;
  background: linear-gradient(#7259db, #c8b6f6);
  color: #ffeb00;
  text-align: center;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 800;
}
.asia-treasure-tail .asia-treasure-tail-row {
  display: grid;
  grid-template-columns: 25% 1fr 22%;
  align-items: stretch;
  margin: 0;
  border-bottom: 1px solid #111;
  border-radius: 0;
  background: #fff;
  text-align: center;
}
.asia-tail-issue,
.asia-tail-result {
  display: grid;
  align-items: center;
  padding: 4px 1px;
  background: #f7f7f7;
  color: #111;
  font-size: clamp(11px, 2.8vw, 14px);
}
.asia-tail-values {
  padding: 3px 1px;
  color: red;
  font-size: clamp(17px, 4vw, 24px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
/* 亚洲宝库一肖六码沿用来源的紫色期号、白底红字和绿色分隔线。 */
.asia-treasure-six {
  margin: 8px 0;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
}
.asia-treasure-six .asia-treasure-six-period {
  margin: 0;
  border: 1px solid #9966ff;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}
.asia-treasure-six-period h2 {
  margin: 0;
  padding: 6px 4px;
  background: #9966ff;
  color: #fff;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 800;
  text-align: center;
}
.asia-treasure-six-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  padding: 5px 8px;
  border-bottom: 1px solid #00d800;
  color: #111;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 700;
  line-height: 1.55;
}
.asia-treasure-six-values {
  color: red;
  overflow-wrap: anywhere;
}
.asia-treasure-six-result {
  margin-left: auto;
  color: #b00000;
  white-space: nowrap;
  font-size: 0.85em;
}
.asia-treasure-six-note {
  padding: 5px 8px;
  background: #c0c0c0;
  color: #111;
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 700;
}
.masters-page {
  background: #fff;
  padding: 6px !important;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
}
.masters-heading {
  margin: 0;
  padding: 18px 12px;
  background: #70cbaa;
  color: #fff;
  font-size: 32px;
  text-align: left;
  text-shadow:
    2px 2px #e65d00,
    -1px -1px #e65d00;
  letter-spacing: 3px;
}
.masters-page > .text-link {
  display: block;
  padding: 8px;
  text-align: right;
}
.masters-page .draw-panel {
  margin: 0;
  border-radius: 0;
}
.masters-image {
  position: relative;
  overflow: hidden;
  margin: 0;
}
.masters-image img {
  width: 100%;
  height: auto;
  display: block;
}
.masters-image-domain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  padding: 4px 2px;
  background: #fff5cd;
  color: #b91914;
  text-align: center;
  font-weight: 800;
  font-size: clamp(10px, 3vw, 20px);
  line-height: 1.15;
}
.masters-image.compact .masters-image-domain {
  font-size: clamp(8px, 2.1vw, 13px);
  padding: 2px;
  background: #ffecae;
}
.masters-domains {
  background: red;
  color: #ff0;
  text-align: center;
  padding: 8px;
}
.masters-domains a {
  display: block;
  color: #ff0;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 900;
  padding: 4px;
}
.masters-section-title {
  margin: 0;
  padding: 9px 4px;
  background: #70cbaa;
  color: #fff;
  text-shadow: 1px 1px #666;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.masters-sites {
  margin: 6px 3px;
  padding: 2px;
  border-radius: 4px;
  background: linear-gradient(110deg, #169ae0, #78d146);
}
.masters-sites .masters-section-title {
  background: none;
  font-size: 24px;
}
.masters-sites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #111;
}
.masters-sites-grid > a {
  display: block;
  border: 1px solid #111;
  text-align: center;
  color: #222;
  min-width: 0;
}
.masters-sites-grid b {
  display: block;
  border-top: 1px solid #111;
  font-size: clamp(12px, 3.4vw, 19px);
  padding: 2px;
}
.masters-data-table {
  margin-top: 6px;
}
.masters-data-table table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  background: #000;
  color: #f00;
  font-weight: 800;
  font-size: clamp(13px, 3.1vw, 20px);
}
.masters-data-table td {
  border: 1px solid #eee;
  padding: 5px 3px;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: pre-wrap;
}
.masters-data-table tr:last-child td {
  color: #0f0;
  text-align: center;
}
.masters-data-table td:first-child {
  color: #0f0;
}
.masters-notice {
  margin: 8px 0;
  border: 1px solid #6bca9a;
}
.masters-notice p {
  padding: 10px;
  margin: 0;
  color: #514236;
  line-height: 1.8;
  white-space: pre-wrap;
}
.masters-posts {
  border: 1px solid #70cbaa;
  margin: 8px 0;
}
.masters-post-link {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 11px 6px;
  border-bottom: 1px solid #dcdcdc;
  font-weight: 700;
  font-size: clamp(13px, 3.3vw, 18px);
  line-height: 1.5;
  background: #fff;
}
.masters-post-link:nth-child(odd) {
  background: #f7fffa;
}
.masters-issue {
  color: #111;
  flex-shrink: 0;
}
.masters-post-link > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.masters-chevron {
  margin-left: auto;
  color: #999;
}
.masters-post-link.tone-0 {
  color: #df1717;
}
.masters-post-link.tone-1 {
  color: #174bc0;
}
.masters-post-link.tone-2 {
  color: #b01bb0;
}
.masters-post-link.tone-3 {
  color: #14791d;
}
.masters-pictures {
  margin: 8px 0;
}
.masters-picture-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #f1fff8;
}
.masters-picture-tabs button {
  flex: 1;
  min-width: 0;
  border: 1px solid #70cbaa;
  background: #fff;
  color: #237858;
  border-radius: 3px;
  padding: 7px 2px;
}
.masters-picture-tabs button.active {
  background: #70cbaa;
  color: #fff;
}
.masters-post-detail {
  border: 1px solid #70cbaa;
  margin: 8px 0;
}
.masters-post-detail p {
  margin: 0;
  padding: 12px 8px;
  border-bottom: 1px solid #d3e7db;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: #222;
  font-size: 16px;
}
.masters-footer {
  text-align: center;
  padding: 15px 5px;
  font-size: 13px;
  color: #537469;
}

.masters-hero-title {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 16%;
  width: 59%;
  background: linear-gradient(90deg, #f3a522 80%, #f3a52200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  color: #fff;
  gap: 5px;
}
.masters-hero-title b {
  font-size: clamp(22px, 6vw, 44px);
  text-shadow: 2px 2px #bf4b05;
  white-space: nowrap;
}
.masters-hero-title span {
  font-weight: bold;
  font-size: clamp(12px, 3vw, 22px);
  color: #fffa9c;
}
.masters-hero-title small {
  font-size: clamp(10px, 2.3vw, 16px);
  font-weight: bold;
}

.masters-image:not(.compact):not(.masters-hero) .masters-image-domain {
  position: static;
}

.masters-filter-note {
  font-size: 12px;
  color: #65756d;
  padding: 7px;
  margin: 0;
  background: #f1f8f4;
}
.masters-daily-record {
  border-bottom: 1px solid #90cbb0;
  background: #fff;
  color: #222;
}
.masters-daily-date {
  padding: 8px;
  background: #e3f4e9;
  font-weight: bold;
  font-size: 14px;
}
.masters-daily-line {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 85px;
  gap: 5px;
  align-items: center;
  padding: 10px 5px;
  border-bottom: 1px solid #e4eee7;
  font-size: 14px;
}
.masters-daily-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 7px;
  font-weight: bold;
}
.masters-daily-result {
  font-size: 12px;
  color: #a43820;
  text-align: right;
  overflow-wrap: anywhere;
}
.masters-page mark {
  background: #ffe34b;
  color: #111;
  padding: 1px 2px;
  border-radius: 2px;
}
.masters-data-table .masters-daily-record {
  background: #000;
  color: #0f0;
}
.masters-data-table .masters-daily-date {
  background: #70cbaa;
  color: #fff;
}
.masters-data-table .masters-daily-result {
  color: #ff7d60;
}
@media (max-width: 360px) {
  .masters-daily-line {
    grid-template-columns: 50px minmax(0, 1fr) 70px;
    font-size: 13px;
  }
}

/* 名站横幅：保留用户选定的动态效果。 */
.masters-banner {
  aspect-ratio: 3/1;
  position: relative;
  overflow: hidden;
  background: #122236;
  isolation: isolate;
}
.masters-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.masters-banner .masters-banner-beam {
  position: absolute;
  inset: -70% auto -70% -90%;
  width: 32%;
  background: linear-gradient(90deg, transparent, #fff7cf70, white, #fff7cf60, transparent);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: skewX(-22deg);
  animation: masters-banner-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
}
.masters-banner-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.masters-banner-star {
  position: absolute;
  width: 7%;
  aspect-ratio: 1;
  left: var(--x);
  top: var(--y);
  background: radial-gradient(ellipse, #fff 0 4%, #fff4b796 8%, transparent 52%);
  animation: masters-banner-twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}
.masters-banner-star:before,
.masters-banner-star:after {
  content: '';
  position: absolute;
  left: 49%;
  top: 0;
  width: 2%;
  height: 100%;
  background: linear-gradient(transparent, #fff, transparent);
}
.masters-banner-star:after {
  transform: rotate(90deg);
}
.masters-banner-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px #ffe5a6);
}
.masters-banner-edge rect {
  fill: none;
  stroke: #fff5c9;
  stroke-width: 3;
  stroke-dasharray: 150 1050;
  animation: masters-banner-orbit 4s linear infinite;
}
.masters-banner-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 100%, #ffce3270, transparent 40%),
    radial-gradient(ellipse at 100% 0%, #81e8ff55, transparent 35%);
  mix-blend-mode: screen;
  animation: masters-banner-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.masters-banner-effect-2 .masters-banner-beam {
  animation-duration: 4s;
  width: 20%;
  opacity: 0.35;
}
.masters-banner-effect-2 .masters-banner-glow {
  background:
    radial-gradient(ellipse at 25% 110%, #ffd35dc0, transparent 48%),
    radial-gradient(ellipse at 85% -10%, #ffffff88, transparent 38%);
  animation-duration: 2.3s;
}
.masters-banner-effect-2 .masters-banner-edge rect {
  stroke-dasharray: 250 950;
  animation-duration: 3s;
}
.masters-banner-effect-3 .masters-banner-beam {
  animation-duration: 5.5s;
  opacity: 0.38;
}
.masters-banner-effect-3 .masters-banner-star {
  width: 9%;
  animation-duration: 2s;
}
.masters-banner-effect-3 .masters-banner-glow {
  opacity: 0.3;
}
.masters-banner-effect-4 .masters-banner-beam {
  animation-duration: 4.5s;
  background: linear-gradient(90deg, transparent, #b6fbff88, transparent);
  width: 45%;
}
.masters-banner-effect-4 .masters-banner-edge rect {
  stroke: #a9fff1;
  stroke-dasharray: 330 870;
  animation-duration: 3.3s;
}
.masters-banner-effect-4 .masters-banner-glow {
  background:
    radial-gradient(ellipse at 0% 90%, #59e8dd90, transparent 45%),
    radial-gradient(ellipse at 100% 10%, #88afff70, transparent 40%);
}
.masters-banner-effect-5 .masters-banner-beam {
  opacity: 0.32;
  width: 22%;
  animation-duration: 3.8s;
}
.masters-banner-effect-5 .masters-banner-edge rect {
  stroke: #e8ba56;
  stroke-width: 4;
}
.masters-banner-effect-5 .masters-banner-star {
  filter: drop-shadow(0 0 2px #ceac51);
}
@keyframes masters-banner-sweep {
  0%,
  9% {
    left: -80%;
  }
  67%,
  100% {
    left: 155%;
  }
}
@keyframes masters-banner-twinkle {
  0%,
  100% {
    transform: scale(0.25) rotate(0);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.2) rotate(45deg);
    opacity: 1;
  }
}
@keyframes masters-banner-orbit {
  to {
    stroke-dashoffset: -1200;
  }
}
@keyframes masters-banner-glow {
  from {
    opacity: 0.18;
    transform: scale(1);
  }
  to {
    opacity: 0.8;
    transform: scale(1.12);
  }
}
.masters-banner-star-0 {
  --x: -1%;
  --y: 4%;
  --d: -0.6s;
}
.masters-banner-star-1 {
  --x: 20%;
  --y: 13%;
  --d: -1.2s;
}
.masters-banner-star-2 {
  --x: 55%;
  --y: 5%;
  --d: -1.8s;
}
.masters-banner-star-3 {
  --x: 85%;
  --y: 18%;
  --d: -2.5s;
}
.masters-banner-star-4 {
  --x: 10%;
  --y: 75%;
  --d: -0.9s;
}
.masters-banner-star-5 {
  --x: 91%;
  --y: 73%;
  --d: -2s;
}
.masters-sites-grid {
  background: transparent;
  border: 0;
  align-items: start;
}
.masters-sites-grid > a {
  background: #fff;
}
.masters-banner {
  aspect-ratio: 3/1;
}
.masters-banner img {
  height: 100%;
  object-fit: cover;
}
.masters-banner span {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .masters-banner * {
    animation: none !important;
  }
  .masters-banner-beam,
  .masters-banner-stars,
  .masters-banner-edge,
  .masters-banner-glow {
    display: none !important;
  }
}

/* 风云榜标题以下模块统一四角圆角。 */
.masters-page > .masters-image,
.masters-page > .masters-domains,
.masters-page > .masters-sites,
.masters-page > .masters-data-table,
.masters-page > .masters-notice,
.masters-page > .masters-posts,
.masters-page > .masters-pictures,
.masters-page > .masters-post-detail,
.masters-page > .masters-daily-record,
.masters-page > .masters-filter-note {
  border-radius: 12px;
  overflow: hidden;
}
.masters-page > .masters-domains,
.masters-page > .masters-daily-record {
  margin: 8px 0;
}
.masters-sites-grid {
  gap: 4px;
  padding: 3px;
}
.masters-sites-grid > a {
  border-radius: 10px;
  overflow: hidden;
}

/* 二级资料标题按可用宽度自适应，整行显示。 */
.masters-page .masters-detail-heading {
  text-align: center;
  font-size: clamp(18px, 5.4vw, 32px);
  letter-spacing: 0.3px;
  line-height: 1.3;
  white-space: nowrap;
  padding: 18px 10px;
}
.masters-detail-heading > span {
  display: inline-block;
  white-space: nowrap;
}

.masters-heading {
  border-radius: 12px;
  overflow: hidden;
}
.masters-sites-grid > .masters-ad-slot {
  display: block;
  border: 1px solid #111;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  min-width: 0;
}
.masters-sites-grid b {
  font-size: clamp(9px, 2.5vw, 14px);
  white-space: nowrap;
  line-height: 1.4;
  padding: 4px 1px;
}

/* 每个二级资料页：标题、期号标题、记录卡片独立四角圆角。 */
.masters-page .masters-heading,
.masters-page .masters-section-title,
.masters-page .masters-daily-date {
  border-radius: 12px;
  overflow: hidden;
}
.masters-page .masters-post-detail {
  border: 0;
  background: transparent;
  overflow: visible;
}
.masters-page .masters-post-detail > .masters-daily-record {
  border: 1px solid #cfe5d8;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}
.masters-page .masters-post-detail .masters-daily-date {
  margin: 4px;
}
.masters-page .masters-post-detail > .masters-section-title,
.masters-page .masters-post-detail > p {
  border: 1px solid #cfe5d8;
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}
.masters-page .masters-post-detail .masters-daily-line:last-child {
  border-bottom: 0;
}

.masters-page > .masters-heading {
  text-align: center;
}

.masters-page > .draw-section {
  padding-bottom: 8px;
  margin-bottom: 0;
}

/* 主页面资料标题、期号和号码区分别成框，消除圆角下露出的黑底。 */
.masters-page > .masters-data-table {
  background: transparent;
  overflow: visible;
}
.masters-page > .masters-data-table > .masters-section-title {
  margin-bottom: 8px;
}
.masters-data-table > .masters-daily-record {
  background: transparent;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}
.masters-data-table > .masters-daily-record > .masters-daily-date {
  margin: 0 0 8px;
  border-radius: 12px;
}
.masters-data-table > .masters-daily-record > .masters-daily-line {
  background: #000;
}
.masters-data-table > .masters-daily-record > .masters-daily-line:nth-child(2) {
  border-radius: 12px 12px 0 0;
}
.masters-data-table > .masters-daily-record > .masters-daily-line:last-child {
  border-radius: 0 0 12px 12px;
}
.masters-data-table > table {
  border-radius: 12px;
  overflow: hidden;
}

/* 用户选方案2：赤金粗宋，8处星光错峰闪动。 */
.masters-page > .masters-main-animated,
.xinao-treasure-logo > .masters-main-animated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c6753, #70cbaa);
  padding: 22px 20px;
  --a: #c82b13;
  --b: #ffd44c;
  text-align: center;
  line-height: 1;
}
.masters-main-animated > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  stroke: none;
  filter: drop-shadow(2px 3px 0 #803511);
  animation: masters-title-pulse 3.3s ease-in-out infinite;
}
.masters-main-animated > svg g {
  stroke: #fff7bd;
  stroke-width: 5;
  paint-order: stroke fill;
}
.masters-title-beam {
  position: absolute;
  inset: -120% auto -120% -60%;
  width: 28%;
  background: linear-gradient(90deg, transparent, #fff9, transparent);
  transform: rotate(25deg);
  mix-blend-mode: screen;
  animation: masters-title-sweep 3s ease-in-out infinite;
  animation-delay: -1s;
  pointer-events: none;
}
.masters-title-star {
  position: absolute;
  font-style: normal;
  color: #fff3a3;
  text-shadow: 0 0 7px white;
  font-size: clamp(12px, 4vw, 22px);
  line-height: 1;
  animation: masters-title-spark 2.1s ease-in-out infinite;
  pointer-events: none;
}
.masters-title-star-0 {
  left: 5%;
  top: 7%;
}
.masters-title-star-1 {
  right: 6%;
  bottom: 5%;
  animation-delay: -0.8s;
}
.masters-title-star-2 {
  right: 39%;
  top: 5%;
  animation-delay: -1.3s;
}
.masters-title-star-3 {
  left: 22%;
  top: 4%;
  animation-delay: -0.35s;
}
.masters-title-star-4 {
  right: 19%;
  top: 5%;
  animation-delay: -1.65s;
}
.masters-title-star-5 {
  left: 7%;
  bottom: 5%;
  animation-delay: -1.05s;
}
.masters-title-star-6 {
  left: 33%;
  bottom: 4%;
  animation-delay: -0.6s;
}
.masters-title-star-7 {
  right: 32%;
  bottom: 4%;
  animation-delay: -1.85s;
}
.masters-title-rim {
  position: absolute;
  inset: 0;
  border: 2px solid #fff9;
  border-radius: 12px;
  animation: masters-title-pulse 3s infinite;
  pointer-events: none;
}
@keyframes masters-title-pulse {
  50% {
    opacity: 0.8;
    filter: drop-shadow(0 0 10px #fff5aa);
  }
}
@keyframes masters-title-spark {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.4) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(45deg);
  }
}
@keyframes masters-title-sweep {
  0%,
  15% {
    left: -65%;
  }
  85%,
  100% {
    left: 140%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .masters-main-animated * {
    animation: none !important;
  }
  .masters-title-beam {
    display: none;
  }
}

/* 金沙论坛独立主题；复用场次路由和真实开奖核对。 */
.masters-jinsha {
  --jinsha-blue: #075780;
  --jinsha-gold: #f4d27b;
  background: #f4f9fc;
}
/* 方案 08。共用六字字体、镜头推进和两侧幕光，按容器宽度适配各入口。 */
@font-face {
  font-family: 'Jinsha Cinema';
  src: url('/assets/jinsha-cinema-xiaowei.ttf') format('truetype');
  font-display: swap;
}

.jinsha-cinema {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse, #4f2436, #13121f 68%);
  border-radius: 7px;
}

.jinsha-cinema::before,
.jinsha-cinema::after {
  position: absolute;
  content: '';
  z-index: -1;
  top: -30%;
  left: -12%;
  width: 64%;
  height: 180%;
  background: linear-gradient(#f9a17b70, transparent);
  clip-path: polygon(0 0, 100% 100%, 24% 100%);
  transform-origin: left top;
  transform: rotate(8deg);
  opacity: 0.36;
  pointer-events: none;
}

.jinsha-cinema::after {
  left: auto;
  right: -12%;
  scale: -1 1;
  transform-origin: right top;
}

.jinsha-cinema > .jinsha-cinema-title {
  color: #fff1bf;
  font-family: 'Jinsha Cinema', 'Songti SC', serif;
  font-size: clamp(22px, 8.7cqw, 55px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 0 15px #ffca9d7a;
}

.masters-jinsha > .jinsha-cinema-heading,
.xinao-treasure-logo > .jinsha-cinema-heading {
  min-height: 140px;
  padding: 8px;
  border: 1px solid #523549;
}

.jinsha-cinema-avatar {
  width: min(62.4px, 100%);
  aspect-ratio: 1;
  flex: none;
}

.jinsha-cinema-avatar > .jinsha-cinema-title {
  font-size: clamp(13px, 29cqw, 19px);
  letter-spacing: 0.1em;
}

.jinsha-cinema-banner {
  border-radius: 0;
  aspect-ratio: 3 / 1;
}

.jinsha-cinema-banner > .jinsha-cinema-title {
  font-size: min(12cqw, 25px);
  letter-spacing: 0.03em;
}

.jinsha-cinema-hero {
  width: min(100%, 360px);
  padding: 3px 0;
  min-height: 28px;
}

.masters-jinsha .jinsha-cinema-hero > .jinsha-cinema-title {
  font-size: clamp(15px, 10cqw, 38px);
}

/* 自动入场在五秒内结束，随后停在完整标题，避免长期分散资料阅读注意力。 */
@media (prefers-reduced-motion: no-preference) {
  .jinsha-cinema.is-in-view > .jinsha-cinema-title {
    animation: jinsha-cinema-dolly 4.8s ease-in-out;
  }

  .jinsha-cinema.is-in-view::before,
  .jinsha-cinema.is-in-view::after {
    animation: jinsha-cinema-beam 4.8s ease-in-out;
  }
}

@keyframes jinsha-cinema-dolly {
  0% {
    transform: scale(0.28) translateY(0.7em);
    opacity: 0.14;
  }
  36% {
    transform: scale(1.17);
    opacity: 1;
  }
  61%,
  100% {
    transform: none;
    opacity: 1;
  }
}

@keyframes jinsha-cinema-beam {
  0% {
    transform: rotate(-22deg);
    opacity: 0.09;
  }
  43%,
  70% {
    transform: rotate(16deg);
    opacity: 1;
  }
  100% {
    transform: rotate(8deg);
    opacity: 0.36;
  }
}

@media (max-width: 680px) {
  .masters-jinsha > .jinsha-cinema-heading,
  .xinao-treasure-logo > .jinsha-cinema-heading {
    min-height: 116px;
  }
}

.masters-jinsha .masters-section-title {
  background: linear-gradient(100deg, #054165, #087b9b);
  color: #fff4bf;
  text-shadow: 1px 1px #09364e;
}
.masters-jinsha .masters-hero-title {
  background: none;
  width: 78%;
  padding-left: 15%;
  color: #fff7cf;
  gap: 4px;
}
.masters-jinsha .masters-hero-title span {
  font-size: clamp(10px, 2.6vw, 18px);
}
.masters-jinsha .masters-hero-title small {
  font-size: clamp(9px, 2.3vw, 15px);
}
.masters-jinsha .masters-domains {
  background: linear-gradient(110deg, #063756, #086e8c);
  border: 1px solid #dfba5a;
}
.masters-jinsha .masters-domains a {
  font-size: clamp(18px, 4.8vw, 27px);
  color: #ffdf80;
}
.masters-category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0;
}
.masters-category-nav button {
  border: 1px solid #a5c9d6;
  border-radius: 12px;
  background: linear-gradient(#fff, #e6f4fb);
  padding: 10px 3px;
  color: #064d70;
  font-size: clamp(12px, 3.4vw, 17px);
  font-weight: bold;
  min-width: 0;
}
.masters-jinsha .masters-posts,
.masters-jinsha .masters-pictures {
  scroll-margin-top: 75px;
  border-color: #a5c9d6;
}
.masters-jinsha .masters-post-link:nth-child(odd) {
  background: #f1f8fc;
}
.masters-jinsha .masters-daily-date {
  background: #d8edf8;
  color: #064b72;
}
.masters-jinsha .masters-data-table > .masters-daily-record > .masters-daily-line {
  background: #fff;
  color: #16465f;
}
.masters-jinsha .masters-daily-result {
  color: #b72f14;
}
.masters-jinsha .masters-picture-tabs {
  background: #e9f4fa;
}
.masters-jinsha .masters-picture-tabs button {
  border-color: #7faec5;
  color: #075780;
}
.masters-jinsha .masters-picture-tabs button.active {
  background: #075780;
  color: #fff;
}
.masters-daily-body {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.8;
  color: #263c4c;
  background: #fff;
}
@media (min-width: 800px) {
  .masters-category-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.masters-home-records {
  scroll-margin-top: 75px;
}
.masters-home-card {
  margin: 10px 0;
  border: 1px solid #a5c9d6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.masters-home-card > .text-link {
  display: block;
  text-align: right;
  padding: 8px;
  font-size: 13px;
}
.masters-home-card > .masters-section-title {
  font-size: clamp(15px, 3.8vw, 20px);
}

/* 期号与行标题只占一行；不足时仅保留期号，隐藏部分由宽度观察器判断。 */
.xinao-text-project .qx-line-label {
  white-space: nowrap;
}
.xinao-issue-label.xinao-hide-label .xinao-optional-label {
  display: none;
}
.xinao-text-project > [hidden] {
  display: none !important;
}
.xinao-column-sentinel {
  padding: 16px;
  text-align: center;
  color: #66776c;
}

/* 新澳统计沿用绿色与圆角；两列卡片在窄屏也不挤压数字。 */
.xinao-statistics {
  margin: 12px 8px 20px;
  color: #254e3b;
}
.stats-scope,
.stats-description {
  margin: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #6a8174;
}
.stats-panel {
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #cde4d7;
  border-radius: 14px;
  background: #fff;
}
.stats-panel > h2 {
  margin: 0;
  padding: 11px 12px;
  background: linear-gradient(100deg, #a2c5ad, #e2f1e7, #a2c5ad);
  color: #315941;
  text-align: center;
  font-size: 18px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}
.stats-cold-card,
.stats-flat-card {
  min-width: 0;
  padding: 9px 6px;
  border: 1px solid #deede3;
  border-radius: 12px;
  background: #f7fbf8;
}
.stats-cold-card {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stats-number,
.stats-animal {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #16c878, #008e53);
  font-size: 18px;
}
.stats-animal {
  border-radius: 10px;
}
.stats-cold-card small,
.stats-miss {
  display: block;
}
.stats-cold-card small {
  color: #778a7d;
  font-size: 11px;
}
.stats-miss {
  color: #c24728;
  font-size: 14px;
  line-height: 1.6;
}
.stats-flat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.stats-flat-heading > strong {
  font-size: 19px;
  color: #15955b;
}
.stats-flat-heading > span {
  font-size: 10px;
  color: #627968;
}
.stats-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 5px;
}
.stats-metric {
  border-radius: 7px;
  background: #eaf5ee;
  text-align: center;
  padding: 5px 0;
}
.stats-metric strong {
  display: block;
  color: #00995d;
  font-size: 15px;
}
.stats-metric span {
  font-size: 10px;
  white-space: nowrap;
  color: #627968;
}
.stats-category {
  margin: 8px;
  border: 1px solid #deede3;
  border-radius: 10px;
  overflow: hidden;
}
.stats-category h3 {
  margin: 0;
  padding: 7px 11px;
  background: #459c73;
  color: #fff;
  font-size: 15px;
}
.stats-category-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 12px;
}
.stats-category-row + .stats-category-row {
  border-top: 1px dashed #dce9e0;
}
.stats-category-row p {
  margin: 3px 0;
  line-height: 1.5;
  color: #718578;
}
.stats-category-row b {
  color: #c24728;
  font-weight: 600;
}

/* 各场次长资料页只绘制临近视口的栏目，完整内容仍留在文档中。
   浏览器不支持此特性时沿用原布局；展开历史后使用浏览器记忆的实际高度。 */
@supports (content-visibility: auto) {
  .materials-page > .qx-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
  }
}

/* 我的图库账户入口：独立放大字号，窄屏允许自然换行，不挤压箭头。 */
.my-account-entry .section-title h2 {
  font-size: 18px;
}
.my-account-entry-link {
  font-size: 16px;
  line-height: 1.6;
  color: #526e5d;
}
.my-account-entry-link span {
  min-width: 0;
}
.my-account-entry-link svg {
  flex-shrink: 0;
}

/* 手机扩大可点区域，圆点和图标仍保持原视觉大小。 */
@media (max-width: 600px) {
  .page-head .head-right,
  .page-head .back-link,
  .forum-page .forum-tabs > a,
  .forum-page .forum-tabs > button {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .banner-pager {
    height: 44px;
    gap: 2px;
  }
  .banner-pager .banner-dot,
  .banner-pager .banner-play {
    width: 44px;
    height: 44px;
  }
  .banner-pager .banner-dot {
    background: radial-gradient(circle, #b5c9bc 3px, transparent 4px);
  }
  .banner-pager .banner-dot[aria-pressed='true'] {
    background: radial-gradient(circle, #08b765 4px, transparent 5px);
  }
}

/* 寻宝中的星座娱乐入口与页面，颜色沿用方案五的星云渐变。 */
/* 星座塔罗：保持既有生日和结果逻辑，只调整布局与可暂停流光。 */
.horoscope-page .horoscope-card {
  overflow: hidden;
  background: radial-gradient(circle at 50% 4%, #74335d, #230e31 65%);
  color: #f8e7cf;
  padding: 32px 22px;
  text-align: center;
}

.horoscope-page .horoscope-card h2 {
  margin: 7px 0;
  color: #f8e7cf;
  font-size: 27px;
  letter-spacing: 0.15em;
}

.horoscope-intro {
  margin: 8px 0;
  font-size: 14px;
}
.horoscope-page .horoscope-symbol {
  width: auto;
  height: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
  margin: 12px auto;
  font-size: 28px;
}

.horoscope-page .horoscope-result {
  display: flex;
  flex-direction: column;
}
.horoscope-page .horoscope-picks {
  order: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}
.horoscope-page .horoscope-picks > div {
  position: relative;
  overflow: hidden;
  flex: 1;
  max-width: 145px;
  min-height: 220px;
  padding: 30px 10px 14px;
  border: 1px solid #dbbc83;
  border-radius: 80px 80px 10px 10px;
  background: linear-gradient(160deg, #713466, #2e143c);
  box-shadow: 0 12px 28px #14071488;
}
.horoscope-page .horoscope-picks > div::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 230px;
  top: -30px;
  left: 40%;
  background: #fff9db;
  filter: blur(13px);
  pointer-events: none;
  animation: horoscope-tarot-glow 5s ease-in-out infinite;
}
.horoscope-tarot-icon {
  display: block;
  color: #f1d49c;
  font-size: 46px;
  line-height: 1.4;
}
.horoscope-page .horoscope-picks strong {
  color: #f9e1a4;
  font-size: 40px;
}
.horoscope-card-caption {
  letter-spacing: 0.12em;
  font-size: 10px;
}
.horoscope-page .horoscope-fortune {
  order: 1;
  border: 0;
  border-top: 1px solid #d9b78470;
  background: transparent;
  margin: 28px 8px 0;
  padding: 18px 0 0;
  text-align: left;
}
.horoscope-page .horoscope-fortune p {
  color: #f1e2ec;
  line-height: 1.85;
}
@keyframes horoscope-tarot-glow {
  0%,
  100% {
    transform: translateX(-80%) rotate(20deg);
    opacity: 0;
  }
  50% {
    transform: translateX(80%) rotate(20deg);
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .horoscope-page .horoscope-picks > div::before {
    animation: none;
    opacity: 0;
  }
}

.horoscope-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #a99aff;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #352577, #7850d7 65%, #b86ae4);
}
.horoscope-entry-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #ffffff24;
  font-size: 26px;
}
.horoscope-entry strong,
.horoscope-entry small {
  display: block;
}
.horoscope-entry small {
  margin-top: 4px;
  color: #ebe2ff;
}
.horoscope-entry-arrow {
  margin-left: auto;
  font-size: 28px;
}
.horoscope-page {
  padding: 14px;
}
.horoscope-card {
  padding: 24px 18px;
  overflow: hidden;
  border: 1px solid #a297ff;
  border-radius: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 18% 15%, #cd7ef9 0, transparent 28%),
    radial-gradient(circle at 90% 45%, #5f64d6 0, transparent 36%),
    linear-gradient(145deg, #171c55, #342774 58%, #6c43ad);
  box-shadow: 0 12px 30px #30235e33;
}
.horoscope-card h2 {
  margin: 8px 0;
  font-size: clamp(20px, 5vw, 27px);
}
.horoscope-eyebrow,
.horoscope-date,
.horoscope-note {
  color: #e2d5ff;
  font-size: 12px;
}
.horoscope-symbol {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 22px auto;
  border: 2px solid #d7c4ff;
  border-radius: 50%;
  background: #ffffff1a;
  box-shadow:
    0 0 26px #cf9dff99,
    inset 0 0 20px #ae8dff66;
  font-size: 62px;
  line-height: 1;
}
.horoscope-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.horoscope-select select {
  min-height: 44px;
  min-width: 130px;
  padding: 6px 10px;
  border: 1px solid #c9b9ff;
  border-radius: 10px;
  color: #34245c;
  background: #fff;
  font-size: 16px;
}
.horoscope-fortune,
.horoscope-picks > div {
  border: 1px solid #d3c7ff88;
  border-radius: 14px;
  background: #ffffff20;
}
.horoscope-fortune {
  margin-top: 20px;
  padding: 14px;
  text-align: left;
}
.horoscope-fortune p {
  margin: 8px 0;
  line-height: 1.6;
}
.horoscope-fortune small {
  color: #eee1ff;
}
.horoscope-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.horoscope-picks > div {
  padding: 13px 8px;
}
.horoscope-picks small,
.horoscope-picks strong {
  display: block;
}
.horoscope-picks strong {
  margin-top: 5px;
  font-size: 30px;
  color: #fff2ad;
}
.horoscope-change {
  min-height: 44px;
  margin: 18px auto 0;
  padding: 10px 32px;
  border: 1px solid #dfcaff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, #a855ef, #544bd7);
  font-size: 16px;
  font-weight: 700;
}
.horoscope-note {
  margin: 12px 0 0;
}
.horoscope-birthday {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.horoscope-birthday input {
  width: 64px;
  min-height: 44px;
  border: 1px solid #c9b9ff;
  border-radius: 10px;
  padding: 6px 8px;
  color: #34245c;
  background: #fff;
  font-size: 16px;
}
.horoscope-birthday button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #d3c7ff;
  border-radius: 10px;
  color: #fff;
  background: #ffffff20;
}
.horoscope-birthday-message {
  display: block;
  min-height: 18px;
  color: #f4e9ff;
}
@media (min-width: 760px) {
  .app-shell:has(.horoscope-page) {
    --panel-width: 760px;
  }
  .horoscope-card {
    padding: 32px 48px;
  }
  .horoscope-result {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* 图库分类随屏幕宽度自动换行，按钮保留足够的触控空间。 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.75rem;
}

.category-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #eef5f0;
  color: #315b44;
  text-align: center;
}

/* 图纸期号及日期需在手机上保持足够清晰和可点击。 */
.date-pill {
  color: #375447;
  border-color: #a9c6b4;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
}

.detail-issue-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  color: #254d37;
  font-size: 14px;
}

.detail-issue-select {
  min-height: 40px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #7aaa8a;
  border-radius: 8px;
  color: #214a33;
  background: #fff;
}

.detail-issue-message {
  color: #a33924;
}

/* 期号列表可横向滚动，右侧选择按钮在小屏仍可见。 */
.detail-issue-row {
  display: flex;
  align-items: center;
  min-width: 0;
  background: #fff;
}

.detail-issue-row .dates-strip {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 0;
}

.detail-issue-row .detail-issue-picker {
  flex: 0 0 auto;
  max-width: 45%;
  padding: 8px;
}

.detail-issue-row .detail-issue-select {
  min-height: 44px;
}

/* 每行恰好显示完整的三个期号或日期，其他项目仍可左右滑动。 */
.detail-issue-row .dates-strip,
.dates-strip[aria-label='往期图纸日期'] {
  scroll-snap-type: x mandatory;
  padding-inline: 0;
  margin-left: 14px;
}

.detail-issue-row .date-pill,
.dates-strip[aria-label='往期图纸日期'] .date-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 14px) / 3);
  min-width: 0;
  padding-inline: 3px;
  white-space: nowrap;
  scroll-snap-align: start;
}

.detail-issue-message:empty {
  display: none;
}
.my-forum-account .forum-card {
  margin: 12px 0;
}

.my-forum-account .forum-account {
  margin-top: 0;
}

.my-forum-account .forum-personal-links a {
  min-height: 44px;
}
.my-page .my-hero {
  margin: 12px 12px 0;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(125deg, #087b4e, #16a968);
}

.my-forum-account.forum-page {
  padding-top: 0;
}

.my-forum-account .forum-account {
  border-radius: 0 0 14px 14px;
}

.my-forum-account .forum-account-summary > .forum-between:first-child {
  display: none;
}

.my-forum-account .forum-account-balance {
  margin-top: 12px;
}

/* 我的页面保留清晰的主页点击区，避免与注册入口贴在一起。 */
.app-shell .page-head.my-account-head {
  grid-template-columns: 48px minmax(0, 1fr) auto 40px;
  column-gap: 8px;
}

.page-head.my-account-head .head-right {
  min-width: 40px;
  min-height: 40px;
  justify-content: flex-end;
}

@media (min-width: 760px) {
  .app-shell:has(.my-page) {
    --panel-width: 800px;
  }

  .my-forum-account.forum-page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .my-forum-account .forum-account {
    grid-column: 1 / -1;
  }
}
/* 寻宝方案三：栏目和场次在顶部，实际资料在本站框架中显示。 */
.treasure-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #dbece1;
}

.treasure-tabs a {
  flex: 1;
  padding: 12px;
  color: #60786b;
  text-align: center;
}

.treasure-tabs a.active {
  color: #008e53;
  font-weight: 700;
  border-bottom: 3px solid #00b966;
}

.treasure-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #e8f7ee;
}

.treasure-heading span {
  color: #5d7d6b;
  font-size: 12px;
}

.treasure-scenes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 10px;
  background: #fff;
}

.treasure-scene {
  display: flex;
  min-width: 0;
  min-height: 55px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f7f3;
  color: #345848;
  text-align: center;
}

.treasure-scene small {
  font-size: 10px;
}

.treasure-scene.active {
  color: #fff;
  background: #00a962;
}

.treasure-frame-heading {
  padding: 8px 12px;
  color: #63816f;
  background: #fff;
  font-size: 12px;
}

.treasure-frame {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  border: 0;
  background: #fff;
}

.treasure-empty {
  min-height: 240px;
  padding: 70px 20px;
  color: #758d7e;
  text-align: center;
}

.treasure-asia-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 118px;
  margin: 8px;
  padding: 16px 10%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #c9864d;
  border-radius: 10px;
  background: linear-gradient(110deg, #6c1020, #b92e28 52%, #6e1520);
  color: #ffe1a1;
}

.treasure-asia-heading::after {
  position: absolute;
  inset: -40% auto -40% -40%;
  width: 25%;
  content: '';
  background: linear-gradient(90deg, transparent, #ffffff80, transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}

.treasure-asia-seal {
  padding: 8px;
  border: 2px solid #e8b873;
  font-family: 'Songti SC', 'STSong', serif;
  font-size: 25px;
  line-height: 1;
}

.treasure-asia-heading-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Kaiti SC', 'STKaiti', serif;
  font-size: clamp(27px, 8vw, 41px);
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
}

.treasure-asia-heading-copy small {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.treasure-asia-sparkle {
  font-size: 28px;
}

/* 动画只改变合成属性，系统要求减少动态时保留完整静态标题。 */
@media (prefers-reduced-motion: no-preference) {
  .treasure-asia-heading::after {
    animation: treasure-asia-sweep 5s ease-in-out infinite;
  }

  .treasure-asia-seal,
  .treasure-asia-sparkle {
    animation: treasure-asia-glimmer 2.8s ease-in-out infinite alternate;
  }

  .treasure-asia-sparkle {
    animation-delay: 1s;
  }
}

@keyframes treasure-asia-sweep {
  to {
    transform: translateX(600%) skewX(-22deg);
  }
}

@keyframes treasure-asia-glimmer {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

.treasure-embedded .bottom-nav,
.treasure-embedded-home .page-head {
  display: none;
}

.treasure-embedded .app-shell {
  padding-bottom: 0;
}

.treasure-embedded-home .masters-page > .channel-switcher {
  display: none;
}
/* 挑码助手与站内全局快捷工具。 */
.pick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.pick-input-panel,
.pick-options-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dcebe2;
  border-radius: 12px;
  background: white;
}

.pick-layout h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.pick-layout textarea {
  width: 100%;
  min-height: 130px;
  padding: 10px;
  border: 1px solid #cde0d4;
  border-radius: 8px;
  resize: vertical;
}
.pick-actions,
.pick-stat-buttons,
.pick-range {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

/* 每类单独排列；空间不足时在本组内换行，所有条件都可见。 */
.pick-categories {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  min-width: 0;
}

.pick-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pick-category-row button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 四组常用条件按等宽列排列，保留适合点按的按钮高度。 */
.pick-category-row[aria-label='生肖'],
.pick-category-row[aria-label='波色'],
.pick-category-row[aria-label='大小单双'],
.pick-category-row[aria-label='尾'],
.pick-category-row[aria-label='合数'] {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(var(--pick-columns), minmax(0, 1fr));
}

.pick-category-row[aria-label='生肖'] {
  --pick-columns: 12;
}

.pick-category-row[aria-label='波色'] {
  --pick-columns: 9;
}

/* 合数共有 17 项，按九列排列为两行。 */
.pick-category-row[aria-label='合数'] {
  --pick-columns: 9;
}

.pick-category-row[aria-label='大小单双'],
.pick-category-row[aria-label='尾'] {
  --pick-columns: 10;
}

.pick-layout .pick-category-row[aria-label='生肖'] button,
.pick-layout .pick-category-row[aria-label='波色'] button,
.pick-layout .pick-category-row[aria-label='大小单双'] button,
.pick-layout .pick-category-row[aria-label='尾'] button,
.pick-layout .pick-category-row[aria-label='合数'] button {
  min-width: 0;
  padding-inline: 0;
  font-size: clamp(10px, 3vw, 14px);
}
.pick-layout button {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #cee3d7;
  border-radius: 7px;
  background: #f3f9f5;
  color: #245842;
  cursor: pointer;
}
.pick-layout .pick-category.is-selected {
  border-color: #008b54;
  background: #008b54;
  color: white;
}
.pick-layout .primary-button {
  background: #00b969;
  color: white;
}
.pick-layout p {
  color: #718579;
  font-size: 13px;
}
.pick-range {
  align-items: center;
}
.pick-range input {
  width: 65px;
  min-height: 40px;
  border: 1px solid #cee3d7;
  border-radius: 6px;
  padding: 6px;
}
/* 结果区初始保持紧凑，结果增多时自然撑开，不截断号码。 */
.pick-results {
  min-height: 70px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #cde0d4;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.pick-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2ef;
  overflow-wrap: anywhere;
}
.pick-play {
  padding: 14px;
}
.pick-play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pick-play-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.pick-play-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: white;
  border: 1px solid #dcebe2;
  border-radius: 8px;
}
.pick-play-row span {
  flex: 1;
}
.pick-play-row input[type='number'] {
  width: 55px;
  min-width: 0;
  padding: 6px;
}
.pick-play .pick-actions button {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #cde2d6;
  border-radius: 7px;
  background: white;
  color: #245842;
}
.pick-play .pick-actions .primary-button {
  background: #00b969;
  color: white;
}
.pick-play .pick-actions label input {
  width: 65px;
  margin-left: 6px;
}
.pick-play-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pick-play-results textarea {
  width: 100%;
  min-height: 180px;
  padding: 10px;
  border: 1px solid #cde0d4;
  border-radius: 8px;
}
.pick-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pick-zodiac-grid div {
  padding: 8px;
  border-radius: 8px;
  background: white;
  font-size: 13px;
}
@media (max-width: 680px) {
  .pick-play-list,
  .pick-zodiac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pick-play-results {
    grid-template-columns: 1fr;
  }
}
.floating-tools {
  position: fixed;
  z-index: 1000;
  width: 48px;
  height: 48px;
}
.floating-tools-trigger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #ffffffbb;
  border-radius: 14px;
  background: #202a26e8;
  color: white;
  font-size: 25px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 2px 8px #0003;
}
.floating-tools-menu {
  position: absolute;
  left: 0;
  top: 54px;
  width: 170px;
  padding: 6px;
  border-radius: 12px;
  background: #202a26ee;
  box-shadow: 0 4px 14px #0003;
}
.floating-tools-menu[hidden] {
  display: none;
}
.floating-tools-menu.opens-left {
  left: auto;
  right: 0;
}
.floating-tools-menu.opens-up {
  top: auto;
  bottom: 54px;
}
.floating-tools-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: white;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
}
.floating-tools-menu button:hover {
  background: #ffffff24;
}
@media (max-width: 680px) {
  .pick-layout {
    grid-template-columns: 1fr;
  }
  .pick-layout textarea {
    min-height: 90px;
  }
}
/* 方案二：珠光主球与三个缓慢环绕、文字正立的快捷入口。 */
:is(.floating-tools-trigger, .viewer-floating-trigger) {
  position: relative;
  z-index: 2;
  border: 2px solid #d2fff0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffffffd9, #64e2b68a 38%, #009e7b8a);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: orbit-ball-glow 1.7s ease-in-out infinite alternate;
}

:is(.floating-tools-trigger, .viewer-floating-trigger)::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px #fff;
}

:is(.floating-tools-menu, .viewer-floating-menu) {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

:is(.floating-tools-menu, .viewer-floating-menu)::before {
  content: '';
  position: absolute;
  width: 136px;
  height: 136px;
  left: -44px;
  top: -44px;
  border: 2px dotted #39bc9470;
  border-radius: 50%;
}

:is(.floating-tools-menu, .viewer-floating-menu) button {
  --angle: 0deg;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 2px;
  border: 2px solid #ffffffd9;
  border-radius: 50%;
  background: linear-gradient(145deg, #effffae8, #8fdfcbb8);
  color: #046c54;
  text-align: center;
  font-size: 9px;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--angle)) translateX(68px) rotate(calc(0deg - var(--angle)));
  animation: orbit-item 20s linear infinite;
}

:is(.floating-tools-menu, .viewer-floating-menu) button:nth-child(2) {
  --angle: 120deg;
}
:is(.floating-tools-menu, .viewer-floating-menu) button:nth-child(3) {
  --angle: 240deg;
}
:is(.floating-tools-menu, .viewer-floating-menu) .orbit-icon {
  font-size: 16px;
  line-height: 18px;
}

:is(.floating-tools-menu, .viewer-floating-menu) button:hover {
  background: linear-gradient(145deg, #effffaf5, #8fdfcbd9);
}

@keyframes orbit-ball-glow {
  from {
    opacity: 0.7;
    box-shadow:
      0 2px 7px #4b9f7b40,
      0 0 4px #ffffff70;
  }
  to {
    opacity: 1;
    box-shadow:
      0 2px 10px #4b9f7b70,
      0 0 19px #ffffffdf;
  }
}

@keyframes orbit-item {
  from {
    transform: rotate(var(--angle)) translateX(68px) rotate(calc(0deg - var(--angle)));
  }
  to {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(68px)
      rotate(calc(0deg - var(--angle) - 360deg));
  }
}

/* 鼠标或键盘定位入口时暂缓转动，方便操作；触屏仍保持慢速旋转。 */
@media (hover: hover) {
  :is(.floating-tools-menu, .viewer-floating-menu):hover button {
    animation-play-state: paused;
  }
}
:is(.floating-tools-menu, .viewer-floating-menu):focus-within button {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  :is(.floating-tools-trigger, .viewer-floating-trigger),
  :is(.floating-tools-menu, .viewer-floating-menu) button {
    animation: none;
  }
}
/* CC 金至尊方案 04：独立候选样式，接入网站前仍需完成真实页面验收。 */
.cc-jinzun-logo {
  position: relative;
  display: grid;
  min-height: 138px;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  border: 1px solid #aa75eb;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #45246b, #140f29 80%);
  text-align: center;
}

.cc-jinzun-logo::before {
  position: absolute;
  inset: 15px;
  border: 1px solid #cf91ff99;
  border-radius: 50px;
  box-shadow:
    0 0 15px #a65dff88,
    inset 0 0 15px #a65dff44;
  content: '';
  animation: cc-jinzun-glow 3s ease-in-out infinite;
}

.cc-jinzun-logo::after {
  position: absolute;
  inset: -60% auto -60% 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, #fff8, transparent);
  content: '';
  transform: translateX(-200%) rotate(20deg);
  animation: cc-jinzun-sweep 5s ease-in-out infinite;
}

.cc-jinzun-logo__text {
  z-index: 1;
  color: #fff4ff;
  font-size: clamp(27px, 6vw, 49px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 8px #ed8cff,
    0 0 24px #a53fff;
}

@keyframes cc-jinzun-glow {
  50% {
    opacity: 0.42;
    transform: scale(0.98);
  }
}

@keyframes cc-jinzun-sweep {
  0%,
  22% {
    transform: translateX(-200%) rotate(20deg);
  }
  70%,
  100% {
    transform: translateX(650%) rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-jinzun-logo::before,
  .cc-jinzun-logo::after {
    animation: none;
  }
}

.cc-jinzun-year {
  margin: 20px 0;
}

.cc-jinzun-year h2 {
  font-size: 18px;
  text-align: center;
}

.cc-jinzun-year img {
  display: block;
  width: 100%;
  height: auto;
}

/* CC 金至尊沿用参考页的白底、灰色分隔和红底黄字命中。 */
.materials-page:has(> .cc-jinzun-logo) {
  --cc-reference-row: #fff;
  --cc-reference-divider: #ccc;
  --cc-reference-title: #595959;
  --cc-reference-hit: #b00000;
  --cc-reference-yellow: #ff0;
}

.materials-page:has(> .cc-jinzun-logo) :is(.materials-project > h2, .cc-jinzun-year h2) {
  background: var(--cc-reference-title);
  color: var(--cc-reference-yellow);
}

.materials-page:has(> .cc-jinzun-logo) .materials-project .qx-period {
  --qx-edition-bg: var(--cc-reference-row);
  --qx-edition-head: var(--cc-reference-title);
  --qx-edition-ink: #272727;
  background: var(--cc-reference-row);
}

.materials-page:has(> .cc-jinzun-logo) .materials-project .qx-period-heading {
  color: var(--cc-reference-yellow);
}

.materials-page:has(> .cc-jinzun-logo) .materials-project .qx-line {
  background: var(--cc-reference-row);
  border-bottom: 1px solid var(--cc-reference-divider);
}

.materials-page:has(> .cc-jinzun-logo) .materials-project .qx-number-line {
  color: #242424;
}

.materials-page:has(> .cc-jinzun-logo) .materials-project .qx-bgyellow {
  background: var(--cc-reference-hit);
  color: var(--cc-reference-yellow);
}
/* 六道财神的推荐入口位于资料区块之间，整块原版动画标题都是链接。 */
.xinao-treasure-title {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 8px;
  background: #174738;
  color: #fff2cd;
  text-align: center;
  font-size: clamp(24px, 5vw, 34px);
}

.xinao-treasure-link {
  margin: 12px 0;
}

.xinao-treasure-link > a:not(.xinao-treasure-logo) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #c5ded2;
  border-radius: 8px;
  background: #f4faf7;
  color: #174738;
}

.xinao-treasure-logo {
  display: block;
  border-radius: 12px;
  text-decoration: none;
}

.xinao-treasure-logo > .treasure-asia-heading {
  margin: 0;
}

.xinao-treasure-link > a:focus-visible {
  outline: 2px solid #075780;
  outline-offset: 3px;
}
