.index-main { padding: 4px 16px 12px; }
.index-draw-board { margin-bottom: 8px; }
.multi-draw-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; background: transparent; }
.draw-tab-control { position: absolute; width: 1px; height: 1px; opacity: 0; }
.draw-tab-label { display: grid; grid-row: 1; min-width: 0; min-height: 62px; padding: 8px 4px; place-items: center; border-block: 1px solid var(--gold); border-right: 1px solid var(--gold); background-color: var(--paper); background-image: var(--paper-texture, none); box-shadow: inset 0 2px #fff9, inset 0 -3px #c6a26577; font-size: clamp(16px, 3vw, 28px); cursor: pointer; }
.draw-tab-label:first-of-type { border-left: 1px solid var(--gold); }
.draw-tab-control:checked + .draw-tab-label { background: linear-gradient(105deg, #791511, #a91d18 60%, #861511); color: #ffe2a0; box-shadow: inset 0 1px #e3b465, inset 0 -4px #caa051; text-shadow: 0 1px #54100d; }
.draw-tab-control:focus-visible + .draw-tab-label { outline: 2px solid var(--gold); outline-offset: -5px; }
.draw-lottery { display: none; grid-row: 2; grid-column: 1 / -1; min-width: 0; padding: 0 22px; border: 3px double var(--gold); background-color: var(--paper); background-image: var(--paper-texture, none); }
.draw-tab-control:checked + .draw-tab-label + .draw-lottery { display: block; }
.draw-lottery-header, .draw-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-top: 15px; }
.draw-lottery-brand, .draw-card-brand { display: flex; align-items: center; min-width: 0; gap: 7px; }
.draw-lottery-brand .eyebrow, .draw-card-brand .eyebrow { display: none; }
.draw-lottery-brand h3, .draw-card-brand h2, .draw-issue, .draw-countdown-label { margin: 0; font-size: clamp(13px, 2.2vw, 21px); font-weight: 400; }
.draw-lottery-brand h3, .draw-card-brand h2 { font-family: "Golden Brush", "KaiTi", serif; font-size: clamp(18px, 3.1vw, 30px); }
.draw-issue { color: var(--ink); white-space: nowrap; }
.draw-countdown-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.draw-countdown-label time { color: var(--cinnabar); font-family: Georgia, "Times New Roman", serif; font-size: clamp(17px, 3.2vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; }
.draw-numbers { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(5px, 2.2vw, 26px); margin: 22px 0 17px; }
.draw-numbers > .ball { --sphere-light: #e6ddc8; --sphere-mid: #b8a98c; --sphere-dark: #8c7b60; --sphere-edge: #867456; display: grid; justify-items: center; align-content: start; min-width: 0; line-height: 1; }
.draw-numbers > .ball-red { --sphere-light: #e04a42; --sphere-mid: #c21d20; --sphere-dark: #8a0c11; --sphere-edge: #9b2420; }
.draw-numbers > .ball-blue { --sphere-light: #4e94dd; --sphere-mid: #0760b9; --sphere-dark: #064180; --sphere-edge: #245d96; }
.draw-numbers > .ball-green { --sphere-light: #47a96a; --sphere-mid: #07894a; --sphere-dark: #035832; --sphere-edge: #267549; }
.draw-numbers > .ball > b { position: relative; display: grid; place-items: center; width: 100%; max-width: 86px; aspect-ratio: 1; border: 1px solid var(--sphere-edge); border-radius: 50%; background: radial-gradient(circle at 32% 20%, var(--sphere-light), var(--sphere-mid) 48%, var(--sphere-dark)); box-shadow: inset 0 1px 1px #ffffffb3, inset 0 -2px 3px #00000026, 0 2px 2px #45291333; color: #fff; font-family: "Arial Narrow", Arial, sans-serif; font-stretch: condensed; font-size: clamp(22px, 5.4vw, 48px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.035em; text-shadow: 0 1px #0002; }
.draw-numbers > .ball > b::after, .draw-numbers > .ball-sealed::after { position: absolute; inset: 3px; border: 1px solid #ffffff70; border-radius: 50%; pointer-events: none; content: ""; }
.draw-numbers > .ball > small { margin-top: 9px; color: var(--ink); font-size: clamp(12px, 2.15vw, 20px); white-space: nowrap; }
.draw-numbers > .ball-pending { --sphere-light: #f0eadc; --sphere-mid: #d1c5ae; --sphere-dark: #b5a589; --sphere-edge: #aa9775; }
.draw-pending { grid-column: 1 / -1; padding: 22px 0; color: var(--muted); text-align: center; }
.draw-sealed-message { display: none; }
.draw-numbers > .ball-sealed { position: relative; width: 100%; max-width: 86px; aspect-ratio: 1; border: 1px solid #aa9775; border-radius: 50%; background: radial-gradient(circle at 32% 20%, #faf4e7, #e0d3b9 48%, #beac89); box-shadow: inset 0 1px #fffc, inset 0 -2px 3px #68512922, 0 2px 2px #45291326; }
.draw-numbers > .ball-sealed::before { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; content: var(--sealed-character, "等"); color: #6f5537; font-family: "Golden Serif", "Microsoft YaHei", serif; font-size: clamp(16px, 3.6vw, 30px); font-weight: 700; }
.draw-numbers > .ball-sealed:nth-child(2) { --sealed-character: "待"; }
.draw-numbers > .ball-sealed:nth-child(3) { --sealed-character: "正"; }
.draw-numbers > .ball-sealed:nth-child(4) { --sealed-character: "在"; }
.draw-numbers > .ball-sealed:nth-child(5) { --sealed-character: "搅"; }
.draw-numbers > .ball-sealed:nth-child(6) { --sealed-character: "球"; }
.draw-numbers > .ball-sealed:nth-child(7) { --sealed-character: "中"; }
.draw-numbers > .ball-sealed > b, .draw-numbers > .ball-sealed > small { display: none; }
.draw-next-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 10px; padding: 12px 0; border-top: 1px solid var(--gold); font-size: clamp(12px, 2.1vw, 20px); }
.draw-next-line { margin: 0; min-width: 0; }
.draw-next-line time { white-space: nowrap; }
.draw-history-link { flex: none; color: var(--cinnabar); }
.draw-history-link::after { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); content: ""; }
.index-feed { display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); }
.index-section-heading, .image-swiper-title { display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 14px; color: var(--ink); }
.index-section-heading::before, .image-swiper-title::before { flex: none; width: 48px; height: 36px; background: url("../images/cloud-emblem.svg") center / contain no-repeat; content: ""; }
.current-articles-card > .index-section-heading::before { width: 68px; height: 42px; background-image: url("../images/coin-pair.svg"); }
.index-section-heading h2, .index-section-heading > span, .image-swiper-title { font-family: "Golden Brush", "KaiTi", serif; font-weight: 400; font-size: clamp(22px, 4.2vw, 38px); line-height: 1.25; }
.index-section-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.index-section-heading > span + span { margin-left: auto; font-family: inherit; font-size: 12px; }
.index-title-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 14px 10px; border-top: 1px solid var(--gold); }
.index-title-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 48px; padding: 10px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: #202c53; font-size: clamp(14px, 2.3vw, 21px); line-height: 1.5; overflow-wrap: anywhere; }
.index-title-list a::after { flex: none; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); content: ""; }
.index-title-list a:nth-child(even) { border-right: 0; }
.index-title-list a:hover { color: var(--cinnabar); background: #f7e9c8; }
.index-article { min-width: 0; }
.image-swipers-heading { display: none; }
.image-swiper { min-width: 0; }
.image-swiper-heading { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 8px; padding: 4px 14px; }
.image-swiper-heading .image-swiper-title { min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
.image-swiper-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; width: 100%; padding: 0; border-bottom: 1px solid var(--line); }
.image-swiper-tabs button { min-width: 0; min-height: 44px; padding: 8px 2px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--ink); font-size: clamp(12px, 2.1vw, 20px); white-space: nowrap; }
.image-swiper-tabs button[aria-selected="true"] { border-bottom-color: var(--cinnabar); color: var(--cinnabar); font-weight: 700; }
.image-swiper-tabs button:hover { background: #dbc39133; }
.image-swiper-tabs .is-long-period { font-size: 11px; }
.image-swiper-frame { position: relative; margin: 0 12px 12px; background: var(--paper); }
.image-swiper-slide, .image-swiper-link { display: block; min-height: 0; }
.image-swiper-slide img { width: 100%; height: auto; object-fit: contain; }
.image-swiper-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; transform: translateY(-50%); border: 1px solid #fff5; border-radius: 50%; background: #5f533e80; color: #fff9eb; }
.image-swiper-arrow svg { width: 18px; height: 18px; }
.image-swiper-arrow.is-prev { left: 7px; }
.image-swiper-arrow.is-next { right: 7px; }
.image-swiper-arrow:hover { background: var(--cinnabar); }
.index-document-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.index-document-list a { display: grid; min-height: 44px; padding: 10px 6px; align-items: center; border: 1px solid #e5d2ab; text-align: center; font-size: 14px; overflow-wrap: anywhere; }
.article-app-header, .document-app-header { position: sticky; z-index: 20; top: 0; }
.article-app-header-inner, .document-app-header-inner { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; width: min(var(--page-width), 100%); min-height: 56px; margin-inline: auto; padding: 4px 12px; border-bottom: 2px solid var(--gold); background: var(--wood); color: #f9e5bb; }
.article-app-header strong, .document-app-header strong { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.article-back, .document-back { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
.article-page-shell, .document-page-shell { min-height: calc(100vh - 170px); }
.article-list { display: grid; gap: 12px; }
.article-item h3 { padding-inline: 12px; }
.article-links { display: grid; gap: 8px; padding: 12px; }
@media (max-width: 680px) {
  .index-main { padding: 3px 8px 12px; }
  .draw-tab-label { min-height: 44px; font-size: 16px; }
  .draw-lottery { padding-inline: 10px; }
  .draw-lottery-brand h3, .draw-card-brand h2 { font-size: 18px; }
  .draw-issue, .draw-countdown-label { font-size: 11px; }
  .draw-lottery-header { gap: 3px; }
  .draw-lottery-brand { gap: 4px; }
  .draw-numbers { gap: 6px; margin-block: 15px 13px; }
  .draw-numbers > .ball > small { margin-top: 7px; font-size: 12px; }
  .draw-next-row { padding-block: 10px; font-size: 11px; gap: 4px; }
  .index-section-heading { gap: 6px; padding: 10px 8px; }
  .index-section-heading::before, .image-swiper-title::before { width: 29px; height: 24px; }
  .current-articles-card > .index-section-heading::before { width: 40px; height: 29px; }
  .index-section-heading h2, .index-section-heading > span, .image-swiper-title { font-size: 22px; }
  .index-title-list { margin: 0 8px 8px; }
  .index-title-list a { padding: 8px 10px; font-size: 14px; }
  .image-swiper-heading { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; padding: 2px 8px; }
  .image-swiper-heading .image-swiper-title { gap: 5px; font-size: 20px; }
  .image-swiper-tabs button { min-height: 40px; padding-inline: 0; font-size: 12px; }
  .image-swiper-tabs .is-long-period { font-size: 10px; }
  .image-swiper-frame { margin: 0 7px 7px; }
  .image-swiper-arrow { width: 32px; height: 32px; padding: 7px; }
  .image-swiper-arrow svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) { .draw-tab-label { font-size: 13px; } .draw-numbers { gap: 5px; } .draw-lottery-header { flex-wrap: wrap; } }
