/* 黄仙云岚：暖金宣纸、朱红印记与水墨蓝。 */
.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(--magenta); background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.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(--magenta); 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 #dcc39b; 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: #ffedc5; 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: huangxian-section; }
.index-feed > .masonry-card { border: 1px solid var(--line); counter-increment: huangxian-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: #235c46; }
.index-section-heading::before, .image-swiper-title::before { display: grid; width: 30px; min-width: 30px; place-items: center; content: counter(huangxian-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: #235c46; content: counter(recommendation-row, decimal-leading-zero); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.index-title-list a:hover { background: #ffedc5; 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 #d9b978; 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; }

/* Confirmed red and gold layout, retaining draw runtime hooks. */
.index-main { padding: 0 14px 18px; }
.index-draw-board { padding: 8px; border: 5px solid #b59446; border-radius: 5px; outline: 1px solid #e7b855; box-shadow: 0 5px 0 #d5a14040; background: #fffbef; }
.multi-draw-card { gap: 0 5px; }
.draw-tab-label { border: 1px solid #bd8b45; border-radius: 4px; background: #fff5df; color: #342719; min-height: 38px; font: 700 18px/1.4 var(--display-font); }
.draw-tab-control:checked + .draw-tab-label { background: #205d47; color: #fff8e6; }
.draw-lottery { padding: 0 8px; background: transparent; }
.draw-tab-control:checked + .draw-tab-label + .draw-lottery { display: grid; }
.draw-lottery-header { margin-top: 8px; padding-top: 12px; border-top: 1px solid #d5ac70; }
.draw-lottery-brand { gap: 12px; }
.draw-lottery-brand h3 { color: #205d47; font: 700 30px/1.3 var(--display-font); }
.draw-issue { border-left: 1px solid #205d47; padding-left: 12px; font-family: var(--display-font); font-size: 17px; }
.draw-countdown-label { display: grid; gap: 0; font-size: 11px; color: #76634a; }
.draw-countdown-label time { color: #33715c; font-size: 13px; }
.draw-next-line { margin: 0; font-family: var(--display-font); font-size: 15px; }
.draw-numbers { margin: 15px 0 0; gap: clamp(5px, 2vw, 18px); }
.draw-numbers > .ball > b { max-width: 68px; box-shadow: inset 0 2px 4px #ffffff60, inset 0 -4px 8px #00000018; font-family: Arial,sans-serif; font-size: clamp(21px,5vw,34px); }
.draw-numbers > .ball > small { width: auto; min-height: 22px; font-family: var(--display-font); font-size: 14px; white-space: nowrap; }
.draw-next-row { justify-content: space-between; flex-wrap: wrap; border-top: 0; padding: 8px 0 3px; gap: 4px 12px; }
.draw-next-line { flex: 1 1 220px; }
.draw-history-link { margin-left: auto; }
.draw-history-link { font-family: var(--display-font); min-height: 28px; display: inline-flex; align-items: center; }
.huangxian-section-title { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 20px 0 14px; }
.huangxian-section-title h2 { margin: 0; font: 700 28px/1.3 var(--display-font); border-bottom: 3px solid #bd923f; padding-bottom: 4px; }
.huangxian-section-title::before, .huangxian-section-title::after { content: "❖"; color: #ba8841; font-size: 22px; }
.huangxian-section-title > span { display: none; }
.huangxian-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.huangxian-feature { display: flex; min-width: 0; min-height: 130px; padding: 15px; align-items: center; justify-content: space-between; gap: 4px; border: 3px double #bc9348; border-radius: 5px; background: #fff1d9; }
.huangxian-feature h3 { margin: 0; color: #235c46; font: 700 28px/1.4 var(--display-font); white-space: nowrap; }
.huangxian-feature p { margin: 4px 0 0; font-family: var(--display-font); font-size: 13px; }
.huangxian-feature img { width: 72px; height: 90px; }
.huangxian-feature-gallery { border-color: #81a893; background: #e4eee4; }
.huangxian-feature-gallery h3 { color: #275d4c; }
.huangxian-book { flex: 0 0 50px; padding: 5px 9px; border: 3px double #9e793e; background: #ecd29a; color: #4c3822; font: 700 23px/1.1 var(--display-font); transform: rotate(12deg); box-shadow: 4px 3px #c5a267; }
.index-feed { gap: 16px; }
.index-feed > .masonry-card { border: 1px solid #d6b886; background: #fff9ed; }
.index-section-heading, .image-swiper-title { padding: 10px 12px; background: #eee8d3; color: #235c46; border-bottom: 1px solid #d6b886; }
.index-section-heading::before, .image-swiper-title::before { content: none; }
.index-section-heading h2, .index-section-heading > span { font: 700 23px/1.4 var(--display-font); }
.index-article { padding: 10px; }
.index-article .article-body * { font-weight: revert !important; }
.other-articles-card .index-section-heading { justify-content: center; }
.index-title-list { padding: 0 12px; }
.index-title-list a { min-height: 58px; padding: 10px 4px; gap: 14px; font-family: var(--display-font); font-size: 19px; }
.index-title-list a::before { align-self: center; flex: 0 0 34px; width: 34px; height: 34px; min-height: 0; border-radius: 50% 45% 48% 42%; background: #2b624c; color: #faf7e9; font: italic 19px/1 Georgia,serif; transform: rotate(-8deg); }
.index-title-list a:last-child { border: 0; }
.index-domain-links { margin: 20px 0 0; background: transparent; }
.index-domain-links a { display: flex; gap: 5px; font-size: 13px; }
.huangxian-directory-icon { width: 20px; height: 20px; fill: none; stroke: #416f52; stroke-width: 1.8; }
@media(max-width:680px) {
 .index-main { padding: 0 8px 12px; }
 .index-draw-board { border-width: 3px; padding: 5px; }
 .draw-lottery { padding-inline: 3px; }
 .draw-tab-label { min-height: 34px; font-size: 14px; }
 .draw-lottery-brand { gap: 6px; }
 .draw-lottery-brand h3 { font-size: 22px; }
 .draw-issue { padding-left: 6px; font-size: 13px; }
 .draw-countdown-label { font-size: 10px; }
 .draw-countdown-label time { font-size: 11px; }
 .draw-next-line { font-size: 13px; }
 .draw-numbers > .ball > small { font-size: 12px; }
 .huangxian-section-title h2 { font-size: 24px; }
 .huangxian-feature-grid { gap: 8px; }
 .huangxian-feature { min-height: 94px; padding: 8px; }
 .huangxian-feature h3 { font-size: 21px; }
 .huangxian-feature p { font-size: 11px; }
 .huangxian-feature img { width: 38px; height: 56px; }
 .huangxian-book { flex-basis: 29px; padding: 4px; font-size: 19px; }
 .index-title-list a { font-size: 17px; }
}

.huangxian-feature img { filter: sepia(.5) saturate(.8); }
@media (max-width:360px) { .draw-tab-label { font-size: 12px; } }

.index-draw-board { border-width: 2px; border-radius: 3px; outline: 1px solid #d5bd7f; outline-offset: -6px; padding: 10px; }
.draw-tab-label { border-color: #bca465; }
.draw-lottery-header { border-top-color: #cdbb8d; }
.huangxian-feature { background: #f5efda; }
.huangxian-feature-gallery { background: #e4eee4; }
.index-notice { background: #eff1df; }
@media(max-width:680px) { .index-draw-board { padding: 7px; } }
