:root {
  --ink: #173a34;
  --muted: #6f827d;
  --paper: #fffdf8;
  --cream: #f7f3e9;
  --line: #dce7e3;
  --green: #0b5d52;
  --green-2: #188b7b;
  --mint: #bdebdc;
  --mint-soft: #e9f7f2;
  --coral: #ff735f;
  --gold: #e4a93f;
  --shadow: 0 18px 55px rgba(18, 68, 60, .11);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

/* ---------- 公开活动页 ---------- */
.public-app {
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 5%, rgba(189,235,220,.48), transparent 25rem),
    radial-gradient(circle at 92% 30%, rgba(255,215,151,.22), transparent 26rem),
    var(--cream);
  padding-bottom: 92px;
}

.landing { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #0c2924; transition: opacity .55s ease, visibility .55s ease; }
.landing[hidden] { display: none; }
.landing-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.landing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.015); animation: landingZoom 9s ease-out both; }
.landing-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,38,34,.08) 0%, rgba(7,28,25,.03) 37%, rgba(7,27,24,.74) 76%, rgba(7,27,24,.96) 100%); }
.landing-content { position: relative; z-index: 1; min-height: 100%; width: min(620px, 100%); margin: 0 auto; padding: 55vh 28px 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; color: #fff; }
.landing-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: #c9f4e7; text-transform: uppercase; }
.landing-kicker::before { content: ""; width: 28px; height: 1px; background: #c9f4e7; }
.landing-title { max-width: 520px; margin-top: 12px; font-family: "Songti SC", "STSong", serif; font-size: clamp(34px, 8vw, 58px); line-height: 1.13; letter-spacing: 2px; text-shadow: 0 4px 25px rgba(0,0,0,.28); }
.landing-sub { margin-top: 14px; color: rgba(255,255,255,.77); font-size: 15px; letter-spacing: .5px; }
.enter-btn { position: relative; width: 100%; min-height: 76px; margin-top: 31px; padding: 8px 9px 8px 25px; border: 2px solid rgba(255,255,255,.96); border-radius: 22px; display: flex; align-items: center; justify-content: space-between; color: #173d36; background: linear-gradient(135deg, #fff3ad 0%, #f6c85f 100%); box-shadow: 0 18px 48px rgba(0,0,0,.32), 0 0 0 0 rgba(255,220,116,.62); font-weight: 800; font-size: 16px; animation: enterGlow 1.85s ease-in-out infinite; }
.enter-btn::before { content: "点这里进入"; position: absolute; left: 22px; top: -18px; padding: 4px 11px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #ff6f5d; box-shadow: 0 7px 18px rgba(0,0,0,.24); font-size: 11px; font-weight: 900; letter-spacing: .6px; animation: cueBounce 1.35s ease-in-out infinite; }
.enter-btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.enter-btn b { font-size: 19px; letter-spacing: .5px; }
.enter-btn small { margin-top: 5px; color: rgba(23,61,54,.64); font-size: 11px; font-weight: 700; }
.enter-btn i { width: 57px; height: 57px; flex: 0 0 57px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #0b5d52, #073f38); box-shadow: 0 9px 22px rgba(5,61,53,.3), inset 0 0 0 1px rgba(255,255,255,.18); font-style: normal; font-size: 30px; transition: transform .2s ease; animation: arrowNudge 1.25s ease-in-out infinite; }
.enter-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.enter-btn:active { transform: scale(.988); }
.enter-btn:active i { transform: translateX(4px); }
@keyframes enterGlow { 50% { box-shadow: 0 20px 54px rgba(0,0,0,.34), 0 0 0 9px rgba(255,220,116,0); } }
@keyframes cueBounce { 50% { transform: translateY(-4px); } }
@keyframes arrowNudge { 50% { transform: translateX(5px); } }
.landing-note { width: 100%; margin-top: 13px; text-align: center; color: rgba(255,255,255,.49); font-size: 11px; letter-spacing: 1.2px; }
@keyframes landingZoom { from { transform: scale(1.06); } to { transform: scale(1.015); } }

.topbar { position: relative; z-index: 10; width: min(1120px, calc(100% - 34px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark, .footer-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; font-family: Georgia, serif; font-size: 20px; font-weight: 800; box-shadow: 0 8px 20px rgba(11,93,82,.2); }
.brand b { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
.icon-btn { width: auto; padding: 8px 13px; border: 1px solid rgba(11,93,82,.18); border-radius: 12px; background: rgba(255,255,255,.58); color: var(--green); font-size: 12px; font-weight: 700; backdrop-filter: blur(10px); }
.icon-btn span { margin-right: 4px; font-size: 15px; }

.app-shell { width: min(1120px, calc(100% - 34px)); margin: 0 auto; }
.event-hero { position: relative; overflow: hidden; min-height: 390px; padding: 38px 42px; border-radius: 34px; color: #fff; background: linear-gradient(130deg, #073e37 0%, #0b5d52 48%, #13776a 100%); box-shadow: 0 26px 70px rgba(8,76,66,.24); }
.event-hero::before { content: "LUCK"; position: absolute; right: -32px; top: -55px; font-family: Georgia, serif; font-size: 230px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.035); letter-spacing: -20px; }
.event-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -110px; bottom: -210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018); }
.hero-glow { position: absolute; left: 24%; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(107,224,190,.17); filter: blur(15px); }
.hero-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #c8d4d1; }
.status-pill.status-1 i { background: #74efbf; box-shadow: 0 0 0 5px rgba(116,239,191,.11); animation: statusPulse 1.8s infinite; }
.status-pill.status-2 i { background: #ffcc78; }
.event-no { color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: 2px; }
.event-hero > h1 { position: relative; z-index: 1; max-width: 720px; margin-top: 32px; font-family: "Songti SC", "STSong", serif; font-size: clamp(35px, 5vw, 62px); line-height: 1.15; letter-spacing: 1px; }
.hero-desc { position: relative; z-index: 1; max-width: 640px; margin-top: 14px; color: rgba(255,255,255,.69); font-size: 14px; }
.countdown { position: relative; z-index: 1; width: min(560px, 100%); margin-top: 34px; padding: 15px 18px; border-radius: 20px; background: rgba(2,35,31,.3); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.countdown-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.countdown-label span { color: #bce9dd; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.countdown-label em { color: rgba(255,255,255,.54); font-style: normal; font-size: 11px; }
.countdown-grid { display: flex; align-items: center; }
.countdown-grid > div { display: flex; align-items: baseline; gap: 5px; }
.countdown-grid b { min-width: 49px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-grid span { color: rgba(255,255,255,.51); font-size: 11px; }
.countdown-grid > i { margin: 0 13px; color: rgba(255,255,255,.27); font-style: normal; font-size: 18px; }
.draw-ready { display: flex; align-items: center; gap: 14px; }
.draw-ready > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #d7f5ea; color: var(--green); font-size: 23px; }
.draw-ready b, .draw-ready small { display: block; }
.draw-ready small { color: rgba(255,255,255,.58); }
@keyframes statusPulse { 50% { opacity: .45; } }

.content-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.panel, .section-block, .steps-section, .register-section { border: 1px solid rgba(11,93,82,.11); border-radius: 28px; background: rgba(255,253,248,.84); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.panel { min-width: 0; padding: 28px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 12px; }
.eyebrow { display: block; margin-bottom: 3px; color: var(--green-2); font-size: 9px; font-weight: 900; letter-spacing: 2.1px; }
.section-heading h2, .venue-copy h2, .register-head h2 { font-family: "Songti SC", "STSong", serif; font-size: 25px; line-height: 1.25; }
.section-heading > p { color: var(--muted); font-size: 12px; }
.fair-tag, .people-count { padding: 6px 10px; border-radius: 10px; background: var(--mint-soft); color: var(--green); font-size: 11px; font-weight: 700; }
.people-count b { font-size: 18px; }

.lottery-stage { position: relative; height: 335px; display: grid; place-items: center; overflow: hidden; }
.lottery-stage::after { content: ""; position: absolute; left: 50%; bottom: 13px; width: 260px; height: 38px; border-radius: 50%; background: rgba(9,64,56,.12); filter: blur(11px); transform: translateX(-50%); }
.wheel-shell { position: relative; z-index: 2; width: 262px; height: 262px; padding: 10px; border-radius: 50%; background: #fef9eb; border: 1px solid #d6e2dd; box-shadow: 0 18px 46px rgba(19,77,67,.18), inset 0 0 0 5px #fff; }
.wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from -15deg, #0b5d52 0 30deg, #f4c96f 30deg 60deg, #f7ede0 60deg 90deg, #ff806d 90deg 120deg, #d4f0e6 120deg 150deg, #188b7b 150deg 180deg, #f4c96f 180deg 210deg, #f7ede0 210deg 240deg, #ff806d 240deg 270deg, #d4f0e6 270deg 300deg, #188b7b 300deg 330deg, #f4c96f 330deg 360deg); border: 6px solid #fff; box-shadow: inset 0 0 0 1px rgba(7,72,62,.1); animation: slowWheel 24s linear infinite; }
.wheel::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.67); }
.wheel-center { position: absolute; inset: 50%; width: 112px; height: 112px; padding-top: 20px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; color: #fff; background: linear-gradient(145deg, #0b5d52, #073c35); border: 7px solid #fffdf8; box-shadow: 0 7px 20px rgba(8,66,58,.25); transform: translate(-50%,-50%); animation: reverseWheel 24s linear infinite; }
.wheel-center span { font-size: 9px; letter-spacing: 2.5px; opacity: .6; }
.wheel-center b { margin-top: -1px; font-family: Georgia, serif; font-size: 25px; letter-spacing: 1px; }
.wheel-center small { font-size: 9px; color: #a9e5d5; }
.wheel-pointer { position: absolute; z-index: 5; top: 29px; left: calc(50% - 13px); width: 26px; height: 41px; border-radius: 15px 15px 6px 6px; background: var(--coral); border: 5px solid #fff; box-shadow: 0 5px 13px rgba(125,52,40,.22); }
.lotto-ball { position: absolute; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid rgba(11,93,82,.12); color: var(--green); font-family: Georgia, serif; font-weight: 800; box-shadow: 0 9px 20px rgba(18,80,70,.14); }
.ball-1 { left: 10%; top: 30%; animation: floatBall 3.2s ease-in-out infinite; }
.ball-2 { right: 8%; top: 23%; color: #b85c49; animation: floatBall 3.6s .4s ease-in-out infinite; }
.ball-3 { right: 13%; bottom: 13%; background: #fff7e8; color: #9b6c1e; animation: floatBall 3s .8s ease-in-out infinite; }
.lottery-caption { color: var(--muted); font-size: 11px; text-align: center; }
@keyframes slowWheel { to { transform: rotate(360deg); } }
@keyframes reverseWheel { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes floatBall { 50% { transform: translateY(-11px) rotate(8deg); } }

.people-panel { display: flex; flex-direction: column; }
.people-list { height: 342px; padding-right: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b7d1ca transparent; }
.person-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px solid #ebf0ed; }
.person-row:last-child { border: 0; }
.avatar { flex: 0 0 39px; width: 39px; height: 39px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; }
.tone-1 { background: #0b5d52; }.tone-2 { background: #da806e; }.tone-3 { background: #b18132; }.tone-4 { background: #4d7894; }.tone-5 { background: #7b668d; }
.person-row > div { min-width: 0; flex: 1; }
.person-row b, .person-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row b { font-size: 13px; }
.person-row small { margin-top: 1px; color: #91a09c; font-size: 10px; }
.person-row > i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--green-2); font-style: normal; font-size: 10px; }
.list-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); }
.list-empty > span { color: var(--green-2); font-size: 35px; }
.list-empty p { margin-top: 8px; font-size: 12px; }

.section-block, .steps-section, .register-section { margin-top: 18px; padding: 32px; }
.ticket-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prize-ticket { --ticket-accent:#0b5d52; position: relative; min-width: 0; min-height: 205px; display: grid; grid-template-columns: 1fr 82px; overflow: hidden; border-radius: 22px; color: #fff; background: var(--ticket-accent); box-shadow: 0 14px 35px rgba(14,76,67,.16); }
.prize-ticket.level-2 { --ticket-accent:#be715f; }.prize-ticket.level-3 { --ticket-accent:#9b762f; }
.ticket-main { min-width: 0; padding: 23px 17px 21px 20px; }
.ticket-rank { display: inline-block; padding: 4px 8px; border-radius: 7px; color: var(--ticket-accent); background: rgba(255,255,255,.91); font-size: 10px; font-weight: 900; }
.ticket-sponsor { display: block; margin-top: 24px; overflow: hidden; color: rgba(255,255,255,.6); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-main h3 { margin-top: 5px; font-family: "Songti SC", "STSong", serif; font-size: 22px; line-height: 1.25; }
.ticket-main small { display: block; margin-top: 17px; color: rgba(255,255,255,.52); font-size: 9px; }
.ticket-stub { position: relative; border-left: 1px dashed rgba(255,255,255,.38); display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.065); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.ticket-stub::before { top: -9px; }.ticket-stub::after { bottom: -9px; }
.ticket-stub span { font-size: 9px; opacity: .58; writing-mode: vertical-rl; letter-spacing: 2px; }
.ticket-stub b { margin: 8px 0 -5px; font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.ticket-stub em { font-style: normal; font-size: 10px; opacity: .6; }
.soft-empty { padding: 36px; border-radius: 18px; background: var(--mint-soft); color: var(--muted); text-align: center; font-size: 13px; }

.winner-section { background: #153d37; border-color: transparent; color: #fff; }
.winner-section .eyebrow { color: #7ed5bd; }
.winner-section .section-heading > p { color: rgba(255,255,255,.45); }
.winner-wall { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.winner-card { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; padding: 17px; border-radius: 18px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.09); }
.winner-crown { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #f5c96c; color: #604714; font-size: 19px; }
.winner-card.level-2 .winner-crown { background: #ef9887; color: #71382e; }.winner-card.level-3 .winner-crown { background: #b6d9cf; color: #23544a; }
.winner-card small, .winner-card h3, .winner-card p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-card small { color: rgba(255,255,255,.5); font-size: 9px; }
.winner-card h3 { font-size: 15px; }
.winner-card p { color: rgba(255,255,255,.42); font-size: 10px; }
.winner-card strong { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.08); color: #f7d58c; font-family: "Songti SC", serif; font-size: 15px; }
.sealed-result { grid-column: 1 / -1; min-height: 115px; display: flex; align-items: center; justify-content: center; gap: 18px; border: 1px dashed rgba(255,255,255,.18); border-radius: 19px; }
.seal { width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; display: grid; place-items: center; color: #8bcfbc; font-family: Georgia, serif; font-size: 13px; transform: rotate(-11deg); }
.sealed-result h3 { font-size: 15px; }.sealed-result p { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 11px; }

.history-section { background: rgba(255,253,248,.9); }
.history-list { display: grid; gap: 12px; }
.history-event { overflow: hidden; border: 1px solid #dfe9e5; border-radius: 19px; background: #fbfdfc; }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid #e8efec; }
.history-head > div { min-width: 0; }
.history-head span { color: var(--green-2); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.history-head h3 { overflow: hidden; margin-top: 2px; font-family: "Songti SC", "STSong", serif; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.history-head > b { flex: 0 0 auto; padding: 6px 10px; border-radius: 9px; color: var(--green); background: var(--mint-soft); font-size: 10px; }
.history-winners { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; padding: 8px 18px 13px; }
.history-winners > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px dashed #e0e8e5; }
.history-winners > div:nth-last-child(-n+2) { border-bottom: 0; }
.history-star { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: #7d5a18; background: #f6d88e; font-size: 12px; }
.history-winners p { min-width: 0; }
.history-winners p b, .history-winners p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-winners p b { font-size: 12px; }.history-winners p small { color: #92a09c; font-size: 9px; }
.history-winners em { overflow: hidden; max-width: 145px; color: #9b6a27; font-style: normal; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.history-latest-breathe .history-latest { border-color: rgba(196,157,83,.45); box-shadow: 0 12px 28px rgba(168,118,26,.13); }
.history-announcement { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; padding: 13px 16px; border: 1px solid rgba(197,148,47,.48); border-radius: 16px; color: #5e4214; background: linear-gradient(105deg, #fff1bf, #f8d36f 50%, #fff5ce); box-shadow: 0 8px 22px rgba(174,119,21,.16); animation: announcement-pulse 2.4s ease-in-out infinite; }
.history-announcement > span { flex: 0 0 auto; font-size: 25px; filter: drop-shadow(0 2px 3px rgba(111,75,14,.2)); }.history-announcement p { min-width: 0; flex: 1; }.history-announcement b, .history-announcement small { display: block; }.history-announcement b { font-size: 15px; letter-spacing: .3px; }.history-announcement small { margin-top: 2px; color: rgba(94,66,20,.76); font-size: 10px; }.history-announcement em { color: rgba(94,66,20,.65); font-size: 9px; font-style: normal; letter-spacing: 1.2px; white-space: nowrap; }
@keyframes announcement-pulse { 0%,100% { transform: translateY(0); box-shadow: 0 8px 22px rgba(174,119,21,.14); } 50% { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(174,119,21,.31); } }
.history-latest-breathe .history-latest { position: relative; overflow: hidden; animation: latest-card-breathe 2.8s ease-in-out infinite; }
.history-latest-breathe .history-latest .history-winners { display: grid !important; }
.history-latest-breathe .history-latest::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(239,193,87,.42); border-radius: inherit; box-shadow: 0 0 0 rgba(239,193,87,0); animation: latest-card-ring 2.8s ease-in-out infinite; pointer-events: none; }
.history-latest-breathe .history-latest::before { content: ""; position: absolute; z-index: 2; top: -12%; bottom: -12%; left: -30%; width: 24%; background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.25) 25%, rgba(255,255,255,.96) 50%, rgba(255,255,255,.25) 75%, transparent 100%); transform: skewX(-18deg); animation: latest-card-sweep 2.7s linear infinite; pointer-events: none; }
.history-latest-tag { display: inline-block; margin-right: 5px; padding: 3px 6px; border-radius: 6px; color: #fff8df; background: #0b5d52; font-size: 9px; font-style: normal; letter-spacing: .2px; vertical-align: 1px; }
@keyframes latest-card-breathe { 0%,100% { box-shadow: 0 9px 22px rgba(168,118,26,.10); } 50% { box-shadow: 0 12px 38px rgba(196,157,83,.30); } }
@keyframes latest-card-ring { 0%,100% { opacity: .45; box-shadow: 0 0 0 rgba(239,193,87,0); } 50% { opacity: 1; box-shadow: 0 0 22px rgba(239,193,87,.34); } }
@keyframes latest-card-sweep { 0% { left: -30%; opacity: .25; } 48% { opacity: .92; } 76% { left: 118%; opacity: .72; } 100% { left: 118%; opacity: .25; } }
.history-empty { min-height: 95px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #d8e5e0; border-radius: 17px; color: var(--muted); }
.history-empty span { color: var(--green-2); font-size: 28px; }.history-empty p { font-size: 11px; }

.venue-card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 18px; padding: 27px 30px; border-radius: 28px; background: #f0cc78; color: #3e3218; box-shadow: 0 18px 50px rgba(116,82,24,.13); }
.venue-card-link { border: 1px solid rgba(112,77,15,.13); text-decoration: none; cursor: pointer; transform: translateZ(0); animation: venueBreath 2.5s ease-in-out infinite; transition: transform .22s ease, filter .22s ease; }
.venue-card-link::before { content: "点击查看"; position: absolute; z-index: 2; right: 28px; top: 18px; padding: 4px 9px; border-radius: 999px; color: #fff8df; background: rgba(73,50,9,.76); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.venue-card-link:hover { filter: brightness(1.035); transform: translateY(-2px); }
.venue-card-link:active { transform: scale(.992); }
.venue-card::after { content: ""; position: absolute; right: -45px; top: -75px; width: 180px; height: 180px; border: 1px solid rgba(74,55,20,.11); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.08), 0 0 0 50px rgba(255,255,255,.05); }
.venue-icon { width: 57px; height: 57px; border-radius: 18px; display: grid; place-items: center; background: #fff4d5; font-size: 28px; }
.venue-card-link .venue-icon { animation: venueIconPulse 1.8s ease-in-out infinite; }
.venue-copy { min-width: 0; }.venue-copy .eyebrow { color: #85611f; }.venue-copy h2 { font-size: 22px; }
.venue-copy p { overflow: hidden; color: rgba(62,50,24,.65); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.venue-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 6px 10px; border-radius: 999px; color: #fff9e8; background: #5f4616; font-size: 10px; font-weight: 900; letter-spacing: .3px; }
.venue-cta i { font-style: normal; font-size: 15px; line-height: 1; animation: arrowNudge 1.25s ease-in-out infinite; }
.validity { position: relative; z-index: 1; min-width: 83px; text-align: center; }
.validity span { display: block; font-size: 9px; letter-spacing: 1px; }.validity b { font-family: Georgia, serif; font-size: 39px; line-height: 1; }.validity em { font-style: normal; font-size: 11px; }
@keyframes venueBreath { 50% { box-shadow: 0 22px 62px rgba(189,132,31,.29), 0 0 0 7px rgba(240,204,120,.14); } }
@keyframes venueIconPulse { 50% { transform: scale(1.08); box-shadow: 0 8px 24px rgba(91,63,13,.18); } }
@media (prefers-reduced-motion: reduce) { .venue-card-link, .venue-card-link .venue-icon, .venue-cta i { animation: none; } }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps-grid > div { padding: 19px; border-radius: 18px; background: #f4f7f4; border: 1px solid #e8eeeb; }
.steps-grid span { color: #b4c1bd; font-family: Georgia, serif; font-size: 23px; }.steps-grid b { display: block; margin-top: 17px; font-size: 14px; }.steps-grid p { color: var(--muted); font-size: 10px; }
.coupon-note { margin-top: 14px; padding: 13px 16px; border-left: 3px solid #ebbf64; background: #fff9e9; color: #7e704d; font-size: 11px; }

.register-section { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0b5d52, #0e7163); border-color: transparent; }
.register-section::after { content: "FREE"; position: absolute; right: -25px; bottom: -48px; color: rgba(255,255,255,.035); font-family: Georgia, serif; font-size: 140px; font-weight: 900; }
.register-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-bottom: 23px; }
.register-number { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 21px; display: grid; place-items: center; color: var(--green); background: #d7f5ea; font-family: Georgia, serif; font-weight: 900; font-size: 13px; transform: rotate(-5deg); }
.register-head .eyebrow { color: #82d9c1; }.register-head h2 { font-size: 26px; }.register-head p { color: rgba(255,255,255,.56); font-size: 11px; }
#reg-form { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#reg-form > label { min-width: 0; }
#reg-form label > span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.66); font-size: 10px; }
#reg-form input[type="text"], #reg-form input[type="email"] { width: 100%; height: 51px; padding: 0 14px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; outline: none; color: #fff; background: rgba(1,42,37,.27); }
#reg-form input::placeholder { color: rgba(255,255,255,.33); }
#reg-form input:focus { border-color: #9ce4d1; box-shadow: 0 0 0 3px rgba(156,228,209,.13); }
.consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.consent input { width: 16px; height: 16px; accent-color: #d7f5ea; }.consent span { margin: 0 !important; }
.anti-abuse-note { grid-column: 1 / -1; margin-top: -3px; padding: 10px 12px; border-radius: 11px; color: #c8e8df; background: rgba(0,35,31,.21); font-size: 10px; }
.primary-btn { grid-column: 1 / -1; min-height: 55px; padding: 0 9px 0 20px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; color: #123f38; background: #d7f5ea; font-weight: 900; }
.primary-btn i { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; font-size: 20px; }
.primary-btn:disabled { opacity: .62; cursor: wait; }
.form-message { grid-column: 1 / -1; min-height: 20px; font-size: 12px; }.form-message.ok { color: #baf2df; }.form-message.err { color: #ffd0c7; }
.register-section.closed { background: #536560; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.site-footer { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--muted); }
.site-footer p { font-size: 12px; font-weight: 800; }.site-footer small { display: block; color: #9eaaa6; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.footer-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.empty-state { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.empty-icon { color: var(--green-2); font-size: 55px; }.empty-state h1 { margin-top: 12px; font-family: "Songti SC", serif; }.empty-state p { color: var(--muted); }

.bottom-action { position: fixed; z-index: 45; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(610px, calc(100% - 24px)); min-height: 58px; padding: 6px 7px 6px 15px; border: 1px solid rgba(255,255,255,.7); border-radius: 19px; display: flex; align-items: center; gap: 13px; background: rgba(255,253,248,.92); box-shadow: 0 18px 55px rgba(8,52,45,.22); backdrop-filter: blur(18px); transform: translateX(-50%); }
.bottom-action a { color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bottom-action .join-now { min-height: 44px; margin-left: auto; padding: 0 9px 0 17px; border-radius: 14px; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--green); font-size: 13px; }
.join-now span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 17px; }
.toast { position: fixed; z-index: 120; left: 50%; top: 25px; max-width: calc(100% - 30px); padding: 10px 15px; border-radius: 12px; color: #fff; background: #173f39; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 12px; opacity: 0; visibility: hidden; transform: translate(-50%, -12px); transition: .22s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

.share-open { overflow: hidden; }
.share-modal[hidden] { display: none; }
.share-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; }
.share-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5,31,27,.64); backdrop-filter: blur(9px); }
.share-card { position: relative; z-index: 1; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 31px; border: 1px solid rgba(255,255,255,.75); border-radius: 28px; color: var(--ink); background: rgba(255,253,248,.98); box-shadow: 0 28px 90px rgba(2,34,29,.34); }
.share-close { position: absolute; right: 17px; top: 15px; width: 38px; height: 38px; border: 0; border-radius: 13px; color: #66807a; background: var(--mint-soft); font-size: 25px; line-height: 1; }
.share-kicker { color: var(--green-2); font-size: 9px; font-weight: 900; letter-spacing: 2.2px; }
.share-card h2 { margin-top: 5px; padding-right: 42px; font-family: "Songti SC", "STSong", serif; font-size: 27px; line-height: 1.25; }
.share-intro { margin-top: 7px; color: var(--muted); font-size: 12px; }
.mobile-copy, .wechat-guide { display: none; }
.share-qr-wrap { margin-top: 20px; padding: 17px; border: 1px solid #e0e9e6; border-radius: 20px; display: flex; align-items: center; gap: 17px; background: #fff; }
.share-qr { flex: 0 0 208px; width: 208px; height: 208px; padding: 7px; border-radius: 13px; background: #fff; }
.share-qr canvas, .share-qr img { width: 194px !important; height: 194px !important; display: block; }
.share-qr-caption { min-width: 0; }
.share-qr-caption b, .share-qr-caption span { display: block; }
.share-qr-caption b { font-size: 15px; line-height: 1.45; }
.share-qr-caption span { margin-top: 7px; color: var(--muted); font-size: 10px; }
.share-link { margin-top: 12px; padding: 10px 12px; border-radius: 11px; overflow: hidden; background: #eef5f2; color: #66807a; font: 10px/1.4 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.share-action { min-height: 45px; padding: 0 12px; border: 1px solid #d3e3de; border-radius: 13px; color: var(--green); background: #fff; font-size: 12px; font-weight: 800; }
.share-action.primary { grid-column: 1 / -1; border-color: var(--green); color: #fff; background: var(--green); }
.desktop-mode .share-action.primary { display: none; }
.share-tip { margin-top: 13px; color: #8d9d98; font-size: 9px; text-align: center; }
.wechat-guide { position: relative; margin-top: 19px; padding: 17px 55px 17px 18px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #0b5d52, #188b7b); }
.wechat-guide i { position: absolute; right: 18px; top: 9px; font-style: normal; font-size: 37px; }
.wechat-guide b, .wechat-guide span { display: block; }.wechat-guide b { font-size: 15px; }.wechat-guide span { margin-top: 3px; color: rgba(255,255,255,.69); font-size: 10px; }
.wechat-mode .wechat-guide { display: block; }
.wechat-mode .desktop-copy { display: none; }
.wechat-mode .mobile-copy { display: block; }
.wechat-mode .share-action.primary { display: none; }

/* ---------- 后台 ---------- */
.admin-body { color: #263b37; line-height: 1.55; background: #edf3f1; }
.admin-body .wrap { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 60px; }
.admin-nav { position: sticky; z-index: 30; top: 0; min-height: 64px; padding: 9px max(18px, calc((100% - 980px)/2)); display: flex; align-items: center; gap: 5px; overflow-x: auto; background: rgba(255,255,255,.92); border-bottom: 1px solid #dbe7e3; backdrop-filter: blur(15px); }
.admin-nav::before { content: "公益团抽奖后台"; margin-right: auto; color: var(--green); font-weight: 900; white-space: nowrap; }
.admin-nav a { padding: 8px 11px; border-radius: 9px; color: #62746f; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-nav a:hover { color: var(--green); background: var(--mint-soft); }
.admin-body .card { margin-bottom: 16px; padding: 24px; border: 1px solid #dce7e3; border-radius: 20px; background: #fff; box-shadow: 0 9px 30px rgba(27,77,68,.055); }
.admin-body .card h2 { margin-bottom: 15px; color: var(--ink); font-size: 19px; }
.admin-body .card p { margin-bottom: 11px; font-size: 13px; }
.admin-body label { display: block; margin: 12px 0 5px; color: #667772; font-size: 12px; font-weight: 700; }
.admin-body input, .admin-body select, .admin-body textarea { width: 100%; padding: 11px 12px; border: 1px solid #d6e2de; border-radius: 11px; outline: none; color: #263b37; background: #fbfdfc; }
.admin-body input:focus, .admin-body select:focus, .admin-body textarea:focus { border-color: #66bba7; box-shadow: 0 0 0 3px rgba(102,187,167,.12); }
.admin-body .btn { width: 100%; margin-top: 10px; padding: 11px 15px; border: 0; border-radius: 11px; color: #fff; background: var(--green); font-weight: 800; }
.admin-body .btn:hover { background: #074d44; }
.admin-body .btn.danger { background: #8c5952; }.admin-body .btn.sm { width: auto; margin: 0; padding: 6px 9px; font-size: 11px; }
.admin-body .btn.secondary { color: var(--green); background: var(--mint-soft); border: 1px solid #cde4dc; }
.admin-body .btn.action-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.admin-body .hint { color: #84938f; font-size: 11px !important; }.admin-body .msg { padding: 10px 13px; border-radius: 10px; background: #fff; font-size: 12px; }.admin-body .msg.ok { color: #14725f; }.admin-body .msg.err { color: #b34d3e; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid #e7eeeb; text-align: left; vertical-align: middle; }
.tbl th { color: #71817d; background: #f7faf9; }
.prize-row { display: grid; grid-template-columns: auto 150px minmax(150px,1fr) auto 75px; align-items: center; gap: 8px; margin-bottom: 9px; }
.prize-row input { margin: 0; }.prize-medal { font-size: 21px; }.prize-row span { font-size: 11px; white-space: nowrap; }
.admin-body a { color: var(--green-2); }
.admin-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 14px 0 18px; }
.admin-actions .btn { height: 44px; margin: 0; }
.admin-actions form { margin: 0; }
.redemption-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 15px; }
.redemption-summary > div { min-width: 0; padding: 12px; border: 1px solid #dfebe7; border-radius: 12px; background: #f6faf8; }
.redemption-summary span, .redemption-summary b { display: block; overflow: hidden; text-overflow: ellipsis; }
.redemption-summary span { color: #82928e; font-size: 10px; }
.redemption-summary b { margin-top: 4px; color: #29423c; font-size: 12px; white-space: nowrap; }
.redeem-code { display: inline-block; padding: 5px 7px; border: 1px dashed #b4cfc7; border-radius: 7px; color: #075c50; background: #edf8f4; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 800; white-space: nowrap; }
.print-only { display: none; }

@media (max-width: 760px) {
  /* 手机竖屏重新取景：放大并上移泳池主体，减少封面顶部的虚化留白。 */
  .landing-bg { object-position: 50% 50%; animation: landingZoomMobile 9s ease-out both; }
  @keyframes landingZoomMobile {
    from { transform: scale(1.52) translateY(-1.5%); }
    to { transform: scale(1.44) translateY(-1.5%); }
  }
  .public-app { padding-bottom: 88px; }
  .topbar, .app-shell { width: min(100% - 24px, 650px); }
  .topbar { height: 66px; }
  .brand b { max-width: 190px; font-size: 13px; }
  .event-hero { min-height: 0; padding: 25px 20px 23px; border-radius: 25px; }
  .event-hero::before { right: -18px; top: -5px; font-size: 110px; letter-spacing: -10px; }
  .event-hero > h1 { margin-top: 24px; font-size: clamp(31px, 9vw, 44px); }
  .hero-desc { font-size: 12px; }
  .countdown { margin-top: 25px; padding: 13px; }
  .countdown-grid { justify-content: space-between; }
  .countdown-grid b { min-width: 35px; font-size: 25px; }
  .countdown-grid > i { margin: 0 4px; }
  .content-grid { grid-template-columns: 1fr; }
  .panel, .section-block, .steps-section, .register-section { border-radius: 23px; }
  .panel, .section-block, .steps-section, .register-section { padding: 21px 18px; }
  .lottery-stage { height: 300px; }
  .wheel-shell { width: 235px; height: 235px; }
  .wheel-center { width: 101px; height: 101px; padding-top: 17px; }
  .wheel-center b { font-size: 22px; }
  .wheel-pointer { top: 23px; }
  .people-list { height: 325px; }
  .section-heading { align-items: flex-start; margin-bottom: 17px; }
  .section-heading h2 { font-size: 23px; }.section-heading > p { max-width: 105px; text-align: right; }
  .ticket-stack { grid-template-columns: 1fr; }
  .prize-ticket { min-height: 172px; grid-template-columns: 1fr 82px; }
  .ticket-sponsor { margin-top: 18px; }.ticket-main h3 { font-size: 21px; }.ticket-main small { margin-top: 12px; }
  .winner-wall { grid-template-columns: 1fr; }
  .history-winners { grid-template-columns: 1fr; }
  .history-winners > div:nth-last-child(-n+2) { border-bottom: 1px dashed #e0e8e5; }
  .history-winners > div:last-child { border-bottom: 0; }
  .history-winners em { max-width: 108px; }
  .venue-card { grid-template-columns: auto 1fr; padding: 21px 18px; gap: 13px; border-radius: 23px; }
  .venue-card-link::before { right: 17px; top: 13px; }
  .venue-icon { width: 48px; height: 48px; border-radius: 15px; }
  .validity { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(62,50,24,.15); display: flex; align-items: baseline; justify-content: center; gap: 5px; }
  .validity span { margin-right: 5px; }.validity b { font-size: 31px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid > div { display: grid; grid-template-columns: 45px 1fr; align-items: center; padding: 13px 15px; }
  .steps-grid span { grid-row: 1 / 3; }.steps-grid b { margin: 0; }.steps-grid p { grid-column: 2; }
  .register-head { align-items: flex-start; }.register-number { width: 58px; height: 58px; flex-basis: 58px; border-radius: 18px; }
  .register-head h2 { font-size: 22px; }
  #reg-form { grid-template-columns: 1fr; }.consent, .primary-btn, .form-message, .anti-abuse-note { grid-column: auto; }
  .bottom-action { gap: 10px; }.bottom-action a { font-size: 10px; }.bottom-action .join-now { font-size: 12px; }
  .prize-row { grid-template-columns: auto 1fr 1fr; align-items: center; }
  .prize-row span:not(.prize-medal) { display: none; }.prize-row input[type=number] { width: 100% !important; }.prize-row .prize-sponsor { grid-column: 2; }
  .admin-nav::before { display: none; }
  .admin-body .card { overflow-x: auto; padding: 18px; }
  .tbl { min-width: 650px; }
  .admin-actions { grid-template-columns: 1fr; }
  .redemption-summary { grid-template-columns: 1fr 1fr; }
  .share-modal { align-items: end; padding: 0; }
  .share-card { width: 100%; max-height: 92vh; padding: 26px 20px max(22px, env(safe-area-inset-bottom)); border-radius: 27px 27px 0 0; }
  .share-card h2 { font-size: 25px; }
  .desktop-copy { display: none; }.mobile-copy { display: block; }
  .share-qr-wrap { padding: 13px; }
  .share-qr { flex-basis: 150px; width: 150px; height: 150px; }
  .share-qr canvas, .share-qr img { width: 136px !important; height: 136px !important; }
}

@media print {
  @page { size: landscape; margin: 12mm; }
  .admin-body { background: #fff; }
  .admin-nav, .print-hide { display: none !important; }
  .admin-body .wrap { width: 100%; padding: 0; }
  .admin-body .card { border: 0; box-shadow: none; padding: 0; }
  .admin-body .card:not(:has(.winner-table)) { display: none; }
  .print-only { display: block; color: #555; font-size: 11px; }
  .redemption-summary { grid-template-columns: repeat(4, 1fr); }
  .tbl { min-width: 0; font-size: 9px; }
  .tbl th, .tbl td { padding: 6px 4px; }
  .redeem-code { border-color: #999; color: #111; background: #fff; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* 往期历史折叠展开 */
.history-list .history-more { display: none; }
.history-list.history-expanded .history-more { display: block; }
.history-toggle-wrap { margin-top: 18px; text-align: center; }
.history-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid #d7e5e0; border-radius: 999px;
  background: #f4faf8; color: #0b5d52; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.history-toggle:hover { background: #e6f3ef; border-color: #b5d5cc; }
.history-toggle i { font-style: normal; font-size: 12px; transition: transform .2s ease; }
.history-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* 未开奖时隐藏中奖公示，开奖后自动显示 */
.winner-section.sealed { display: none; }
body.result-ready .winner-section.sealed { display: block; }

/* 历史档案按钮（往期记录右上角） */
.history-archive-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px; border-radius: 999px;
  color: #0b5d52; background: #e6f3ef;
  border: 1px solid #cfe3dd; text-decoration: none;
  transition: all .2s ease; flex: 0 0 auto;
}
.history-archive-btn:hover { background: #d5ece5; border-color: #a8cfc5; }
.history-archive-btn .archive-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.history-archive-btn b { font-size: 12px; font-weight: 800; }
.history-archive-btn small { color: #7c9890; font-size: 9px; }
.history-archive-btn i { font-style: normal; font-size: 14px; }

/* 历史中奖档案页 */
.archive-page .archive-head { padding: 24px 0 4px; }
.archive-page .archive-head .eyebrow { color: #0d7d6b; }
.archive-page .archive-head h1 { margin-top: 6px; font-family: "Songti SC", "STSong", serif; font-size: 28px; line-height: 1.25; }
.archive-page .archive-head p { margin-top: 8px; color: #7c9890; font-size: 13px; }
.archive-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 20px; padding: 9px 16px; border-radius: 999px;
  color: #fff; background: #0b5d52; text-decoration: none;
  font-size: 13px; font-weight: 700; box-shadow: 0 4px 14px rgba(11,93,82,.2);
}
.archive-back:hover { background: #0a5047; }
.archive-event { margin-bottom: 16px; }
@media (max-width:600px){ .history-archive-btn small { display: none; } }

/* 往期记录兑奖提示 */
.history-tip {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid #e8d9b8; border-radius: 13px;
  background: #fffaf0; color: #8a6a2a;
  font-size: 12px; line-height: 1.8; text-align: center;
}

/* 兑奖提示居左 */
.history-tip { text-align: left; }

/* 中奖公示名单（表单样式） */
.winner-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; padding: 4px 2px; }
.winner-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px 2px; border-bottom: 1px dashed rgba(255,255,255,.16); }
.winner-row:nth-last-child(-n+2) { border-bottom: 0; }
.winner-star { color: #f0cf82; font-size: 12px; }
.winner-row p { min-width: 0; }
.winner-row p b, .winner-row p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-row p b { color: #fff; font-size: 12px; }
.winner-row p small { color: rgba(255,255,255,.5); font-size: 9px; margin-top: 1px; }
.winner-row em { overflow: hidden; max-width: 145px; color: #f0cf82; font-style: normal; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width:600px){ .winner-list { grid-template-columns: 1fr; } }

/* 中奖公示呼吸特效 */
.winner-section { position: relative; }
.winner-section::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 24px rgba(240,207,130,.18);
  animation: winner-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}
.winner-section > * { position: relative; }
@keyframes winner-breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(240,207,130,.12); }
  50% { box-shadow: 0 0 46px rgba(240,207,130,.42); }
}

/* 中奖公示区呼吸特效（浅色卡片版） */
.winner-breathe { position: relative; }
.winner-breathe::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 20px rgba(196,157,83,.2);
  animation: winner-breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}
.winner-breathe > * { position: relative; }
@keyframes winner-breathe {
  0%, 100% { box-shadow: 0 0 10px rgba(196,157,83,.12); }
  50% { box-shadow: 0 0 34px rgba(196,157,83,.36); }
}

/* 开奖揭晓：结果横幅、逐位亮相和一次性彩带 */
.winner-breathe.is-published { overflow: hidden; border-color: rgba(195,150,67,.38); background: linear-gradient(145deg, #fffdf8 0%, #fff9e9 100%); }
.winner-breathe.is-published::after { content: ""; position: absolute; top: 0; left: -38%; width: 30%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); animation: winner-shine 5.5s ease-in-out infinite; pointer-events: none; }
.winner-reveal-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(196,157,83,.3); border-radius: 15px; color: #65491a; background: linear-gradient(110deg, #fff5cf, #f6d27b 48%, #fff1bd); box-shadow: 0 8px 18px rgba(168,118,26,.12); }
.winner-reveal-icon { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #fff8df; background: #0b5d52; font-size: 17px; animation: winner-icon-pop 1.8s ease-in-out infinite; }
.winner-public-alert { border-width: 2px; box-shadow: 0 10px 28px rgba(168,118,26,.22); animation: public-alert-pulse 2.2s ease-in-out infinite; }
.winner-public-alert b { font-size: 15px; letter-spacing: .4px; }
.winner-reveal-banner p { min-width: 0; flex: 1; }.winner-reveal-banner b, .winner-reveal-banner small { display: block; }.winner-reveal-banner b { font-size: 13px; }.winner-reveal-banner small { margin-top: 2px; color: rgba(101,73,26,.72); font-size: 10px; }.winner-reveal-banner i { color: rgba(101,73,26,.65); font-size: 9px; font-style: normal; letter-spacing: 1px; white-space: nowrap; }
.winner-breathe.is-published .history-event { border-color: rgba(196,157,83,.34); box-shadow: 0 11px 24px rgba(113,81,22,.08); animation: winner-card-enter .68s cubic-bezier(.17,.83,.32,1.2) both; }
.winner-breathe.is-published .history-winners > div { opacity: 0; transform: translateY(12px) scale(.98); animation: winner-row-enter .52s ease-out forwards; }
.winner-breathe.is-published .history-winners > div:nth-child(1) { animation-delay: .22s; }.winner-breathe.is-published .history-winners > div:nth-child(2) { animation-delay: .33s; }.winner-breathe.is-published .history-winners > div:nth-child(3) { animation-delay: .44s; }.winner-breathe.is-published .history-winners > div:nth-child(4) { animation-delay: .55s; }.winner-breathe.is-published .history-winners > div:nth-child(5) { animation-delay: .66s; }.winner-breathe.is-published .history-winners > div:nth-child(6) { animation-delay: .77s; }.winner-breathe.is-published .history-winners > div:nth-child(n+7) { animation-delay: .88s; }
.winner-confetti { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }.winner-confetti i { position: absolute; top: -18px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; background: #f0c85c; animation: winner-confetti-fall var(--duration) var(--delay) cubic-bezier(.15,.65,.35,1) forwards; }.winner-confetti i:nth-child(3n) { background: #ff7563; }.winner-confetti i:nth-child(3n+1) { background: #15917d; }
@keyframes winner-shine { 0%,70%,100% { left: -38%; } 82% { left: 115%; } }
@keyframes winner-icon-pop { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }
@keyframes public-alert-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
@keyframes winner-card-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes winner-row-enter { to { opacity: 1; transform: none; } }
@keyframes winner-confetti-fall { to { transform: translateY(300px) rotate(var(--turn)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .winner-breathe *, .winner-breathe::before, .winner-breathe::after { animation: none !important; } }
@media (max-width: 600px) { .winner-reveal-banner { padding: 10px 11px; }.winner-reveal-banner i { display: none; }.winner-reveal-banner small { font-size: 9px; } }
@media (max-width: 600px) { .history-announcement { padding: 11px 12px; }.history-announcement b { font-size: 13px; }.history-announcement em { display: none; } }

/* 本期未开奖时隐藏中奖公示，开奖后自动显示 */
.winner-breathe.sealed { display: none; }
body.result-ready .winner-breathe.sealed { display: block; }
