/* 海沫茶花：细线宋体版式与双色渐变；号码保留固定三色。 */
.index-main { padding: 10px 12px 0; }
.index-draw-board { padding: 0; background: var(--surface); color: var(--ink); }
.multi-draw-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.draw-tab-control { position: absolute; width: 1px; height: 1px; opacity: 0; }
.draw-tab-label { position: relative; display: flex; grid-row: 1; min-width: 0; min-height: 38px; padding: 6px 2px; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--camellia); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.draw-tab-label:last-of-type { border-right: 0; }
.draw-tab-control:checked + .draw-tab-label { background: var(--red-wash); color: var(--paper); }
.draw-tab-control:focus-visible + .draw-tab-label { outline: 2px solid var(--ink); outline-offset: -5px; }
.draw-lottery { display: none; grid-row: 2; grid-column: 1 / -1; min-width: 0; padding: 0 4px; background: var(--surface); }
.draw-tab-control:checked + .draw-tab-label + .draw-lottery { display: block; }
.draw-lottery-header, .draw-card-header { display: flex; padding-top: 12px; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 4px; }
.draw-lottery-brand, .draw-card-brand { display: flex; min-width: 0; align-items: center; gap: 6px; }
.draw-lottery-brand h3, .draw-card-brand h2, .draw-issue, .draw-countdown-label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.draw-lottery-brand .eyebrow, .draw-card-brand .eyebrow { display: none !important; }
.draw-countdown-label { display: flex; align-items: center; gap: 4px; }
.draw-countdown-label time { color: var(--ink); font-family: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.draw-numbers { display: grid; width: 100%; margin: 14px 0 12px; align-items: start; gap: clamp(6px, 2.4vw, 22px); grid-template-columns: repeat(7, minmax(0, 1fr)); }
.draw-numbers > .ball { display: grid; min-width: 0; justify-items: center; align-content: start; line-height: 1; }
.draw-numbers > .ball > b { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 0; border-radius: 50%; color: #fff; font-family: inherit; font-size: clamp(20px, 4.8vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; }
.draw-numbers > .ball-red > b { background: #ed1c24; }
.draw-numbers > .ball-blue > b { background: #1677d2; }
.draw-numbers > .ball-green > b { background: #1ca65b; }
.draw-numbers > .ball > small { display: block; width: 1em; min-height: 40px; margin-top: 7px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; text-align: center; white-space: normal; }
.draw-numbers > .ball-pending > b { background: #d7c8bc; }
.draw-numbers > .ball-sealed { position: relative; }
.draw-numbers > .ball-sealed::before { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #d7c8bc; content: ""; }
.draw-numbers > .ball-sealed > b, .draw-numbers > .ball-sealed > small { position: absolute; visibility: hidden; }
.draw-sealed-message { display: none; }
.draw-numbers:has(.ball-sealed) + .draw-sealed-message { display: block; }
.draw-pending { grid-column: 1 / -1; padding-block: 18px; text-align: center; }
.draw-next-row { display: flex; padding: 8px 0 10px; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 6px; border-top: 1px solid var(--camellia); font-size: 14px; line-height: 1.5; }
.draw-next-line { min-width: 0; margin: 0; }
.draw-next-label, .draw-next-line time { white-space: nowrap; }
.draw-history-link { flex: none; color: var(--ink); text-decoration: underline; white-space: nowrap; }
.index-domain-links { display: grid; margin-bottom: 10px; padding-block: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #eea58e; background: var(--paper); }
.index-domain-links a { display: grid; min-width: 0; min-height: 44px; padding: 8px 2px; place-items: center; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; text-align: center; white-space: nowrap; }
.index-domain-links a:hover { background: #ffe0c4; text-decoration: underline; }
.index-domain-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; box-shadow: none; }
.index-feed { display: grid; padding: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: seafoam-section; }
.index-feed > .masonry-card { border: 1px solid var(--line); counter-increment: seafoam-section; }
.index-section-heading, .image-swiper-title { display: flex; min-height: 36px; margin: 0; padding: 4px 8px; align-items: center; justify-content: flex-start; gap: 5px; border-bottom: 1px solid var(--line); background: var(--heading-wash); color: #a52335; }
.index-section-heading::before, .image-swiper-title::before { display: grid; width: 30px; min-width: 30px; place-items: center; content: counter(seafoam-section, decimal-leading-zero); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; line-height: 1; }
.index-section-heading h2, .index-section-heading > span, .image-swiper-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.index-section-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.index-section-heading > span + span { margin-left: auto; color: var(--ink); font-size: 13px; }
.index-article { padding: 0; background: var(--surface); }
.index-article .article-body { --article-size: 15px; font-weight: 700; }
.index-article .article-body * { font-weight: 700 !important; }
.index-article .article-body :is(th, td) { padding: 5px; border-color: var(--line); text-align: center !important; }
.other-articles-card { counter-reset: recommendation-row; background: var(--surface); }
.index-title-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.index-title-list a { display: flex; min-height: 30px; padding: 2px 10px 2px 0; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--article-size); line-height: 1.5; overflow-wrap: anywhere; counter-increment: recommendation-row; }
.index-title-list a::before { display: grid; align-self: stretch; flex: 0 0 40px; min-height: 26px; align-items: center; justify-items: center; color: #a52335; content: counter(recommendation-row, decimal-leading-zero); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.index-title-list a:hover { background: #ffe0c4; text-decoration: underline; }
.image-swipers-heading { display: none; }
.image-swiper { min-width: 0; }
.image-swiper-title { background: var(--red-wash); color: var(--paper); }
.image-swiper-title::before { color: inherit; }
.image-swiper-tabs { display: grid; width: 100%; padding: 3px 4px; background: var(--red-wash); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.image-swiper-tabs button { min-width: 0; min-height: 36px; padding: 6px 2px; border: 0; border-right: 1px solid #e17977; background: transparent; color: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.image-swiper-tabs button:last-child { border-right: 0; }
.image-swiper-tabs .is-long-period { font-size: clamp(11px, 3vw, 14px); }
.image-swiper-tabs button[aria-selected="true"] { border-radius: 2px; background: var(--paper); color: var(--ink); }
.image-swiper-tabs button:hover { box-shadow: inset 0 -3px var(--ink); }
.image-swiper-frame { position: relative; margin: 0; background: var(--paper); }
.image-swiper-slide, .image-swiper-link { display: block; min-height: 0; }
.image-swiper-slide img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.image-swiper-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 38px; height: 38px; padding: 10px; place-items: center; border: 0; border-radius: 2px; background: rgb(116 38 51 / 65%); color: #fff; transform: translateY(-50%); }
.image-swiper-arrow svg { width: 18px; height: 18px; }
.image-swiper-arrow.is-prev { left: 0; }
.image-swiper-arrow.is-next { right: 0; }
.image-swiper-arrow:hover { background: rgb(116 38 51 / 85%); }
.index-image-list { background: var(--paper); }
.index-image-flow { padding: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.index-document-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); }
.index-document-list a { display: grid; min-height: 48px; padding: 8px 5px; align-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: var(--article-size); overflow-wrap: anywhere; }
.index-document-list strong { font-weight: 600; }
@media (min-width: 681px) {
  .draw-tab-label { min-height: 44px; font-size: 20px; }
  .draw-lottery { padding-inline: 8px; }
  .draw-lottery-header { padding-top: 18px; }
  .draw-numbers { margin-top: 22px; }
  .draw-next-row { padding-block: 10px; }
  .index-domain-links a { min-height: 48px; font-size: 18px; }
  .index-section-heading, .image-swiper-title { min-height: 42px; padding-inline: 12px; }
  .index-section-heading h2, .index-section-heading > span, .image-swiper-title { font-size: 26px; }
  .index-section-heading::before, .image-swiper-title::before { width: 36px; min-width: 36px; font-size: 28px; }
  .index-article .article-body :is(th, td) { padding-block: 6px; }
  .index-title-list a, .index-title-list a::before { min-height: 30px; }
}
@media (max-width: 360px) {
  .index-main { padding-inline: 6px; }
  .draw-lottery { padding-inline: 0; }
  .draw-lottery-brand { gap: 3px; }
  .draw-countdown-label { gap: 2px; }
  .draw-numbers { gap: 4px; }
  .index-section-heading, .image-swiper-title { padding-inline: 8px; }
  .index-section-heading h2, .index-section-heading > span, .image-swiper-title { font-size: 20px; }
}

/* 封盘统一显示：兼容首次渲染及现有实时脚本生成的七个 ball-sealed。 */
body[data-layout] [data-field="numbers"].draw-numbers:has(> .ball-sealed) {
  padding-bottom: 0;
}
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 1px solid #e8bd55 !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, #fffef7 0%, #f5f5f2 52%, #e5e7eb 100%) !important;
  box-shadow: none !important;
  overflow: hidden;
}
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed::before {
  content: var(--sealed-character, "等") !important;
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  color: #70757a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: clamp(18px, 4.8vw, 26px);
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
  transform: none;
}
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(2) { --sealed-character: "待"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(3) { --sealed-character: "正"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(4) { --sealed-character: "在"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(5) { --sealed-character: "搅"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(6) { --sealed-character: "球"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed:nth-child(7) { --sealed-character: "中"; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed::after { content: none !important; }
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed > b,
body[data-layout] [data-field="numbers"].draw-numbers > .ball-sealed > small { display: none !important; }
