:root{--paper:#f2f4ef;--ink:#142a24;--muted:#53665d;--line:#d8e2d9;--green:#165741;--gold:#f0ca7d;--card:#fff;--tone:#165741;--soft:#e9f3eb;--radius:16px;color-scheme:light;font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button{border:0}a{color:var(--tone);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b85d16;outline-offset:3px}p,h1,h2,h3{margin:0}img{max-width:100%;height:auto}.shell{width:min(1120px,calc(100% - 48px));margin-inline:auto}.masthead{background:#102c25;color:#fff;border-bottom:1px solid #2c4e43}.masthead-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;gap:11px;align-items:center;color:#fff;line-height:1.2;min-width:0}.brand:hover{text-decoration:none}.brand strong,.brand small{display:block}.brand strong{font-size:1.12rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand small{font-size:.76rem;color:#becdc2;margin-top:4px}.brand-icon{display:grid;place-items:center;background:#f1d08c;color:#16392d;border-radius:13px;width:39px;height:39px;font-weight:850;flex-shrink:0;font-size:1.15rem}.top-nav{display:flex;gap:26px}.top-nav a{color:#d5e4db;font-weight:650;white-space:nowrap}.top-nav a[aria-current]{color:#f5d08a}.masthead-zone{color:#cadad0;font-size:.85rem;white-space:nowrap}.masthead-zone b{margin-left:5px;color:#ffe0a2}.loading{padding-block:50px;color:var(--muted)}.presentations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:22px 0 15px}.presentations a{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 14px;color:#334b41;min-width:0}.presentations a:hover{border-color:var(--tone);text-decoration:none}.presentations strong,.presentations small{display:block}.presentations small{font-size:.76rem;margin-top:4px;color:#52665c}.presentations a[aria-current]{background:var(--tone);border-color:var(--tone);color:white}.presentations a[aria-current] small{color:#eef9f3}.hero{min-height:220px;display:flex;align-items:center;border-radius:18px;overflow:hidden;background:#12372d;color:#fff;margin-bottom:18px;position:relative}.hero-content{padding:26px 39px;position:relative;z-index:1}.hero h1{font-size:clamp(2rem,4.7vw,3.7rem);font-weight:850;letter-spacing:.03em;line-height:1.1;margin:10px 0 13px}.hero p{color:#f7d48f;font-weight:700;font-size:.93rem;letter-spacing:.065em}.hero span{color:#deeae4;font-size:1rem}.hero:after{content:"";position:absolute;inset:0;pointer-events:none}.hall .hero,[data-view=hall] .hero{background:#122e25 url('/draw-hall.jpg') center 53%/cover no-repeat}.hall .hero:after,[data-view=hall] .hero:after{background:linear-gradient(90deg,#102c25b8,transparent 75%)}[data-view=news]{--tone:#8c3430;--soft:#fbefeb}[data-view=topics]{--tone:#2c527c;--soft:#eaf1fa}[data-view=index]{--tone:#67501d;--soft:#f5efde}[data-view=news] .hero{background:linear-gradient(110deg,#732623,#a8423d);min-height:157px;border-radius:10px}[data-view=topics] .hero{background:linear-gradient(110deg,#132c47,#305c83);min-height:177px}[data-view=index] .hero{background:linear-gradient(105deg,#292b23,#695526);min-height:151px}[data-view=news] .hero h1,[data-view=index] .hero h1,[data-view=topics] .hero h1{font-size:clamp(1.65rem,4vw,2.9rem)}[data-view=news] .announcements{margin-bottom:17px}.feature-slide{position:relative;background:var(--soft);border-radius:var(--radius);overflow:hidden;margin:0 0 8px;min-height:106px}.feature-slide img{width:100%;height:clamp(125px,22vw,225px);object-fit:cover;display:block}.feature-slide>div{padding:16px 20px}.feature-slide p,.notice-list p,.topic-article p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:7px}.carousel-dots{display:flex;justify-content:center;gap:4px;margin-bottom:13px}.carousel-dots button{height:30px;width:30px;background:transparent;border-radius:8px;display:grid;place-items:center}.carousel-dots button:before{content:"";width:8px;height:8px;border-radius:50%;background:#b2c0b7}.carousel-dots button[aria-pressed=true]:before{background:var(--tone);width:13px;border-radius:5px}.game-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:9px}.game-tabs button{background:#e3ebe3;color:#354c42;min-height:46px;border-radius:9px;font-weight:750}.game-tabs button[aria-pressed=true]{background:var(--tone);color:white}.draw-card,.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);min-width:0}.draw-card{padding:21px 25px 16px}.draw-top,.draw-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.eyeline,.meta-label{color:var(--muted);font-size:.83rem;font-weight:650;display:block}.draw-top h2{font-size:clamp(1.5rem,3.15vw,2.35rem);line-height:1.25;margin-top:3px}.draw-top-aside,.draw-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.draw-top-aside>a{font-size:.9rem;font-weight:700;white-space:nowrap}.status-pill{display:inline-flex;gap:6px;align-items:center;border-radius:999px;padding:6px 10px;font-size:.82rem;font-weight:760;color:#235c42;background:#edf5ee;white-space:nowrap}.status-pill.live{color:#831e28;background:#ffebe8}.status-pill.live:before{content:"";width:7px;height:7px;background:#ba3233;border-radius:50%}.status-pill.pending{color:#744b20;background:#fbefdc}.draw-notice{margin-top:12px;background:#fbf4df;color:#644818;padding:9px 12px;border-radius:7px;font-size:.9rem}.balls{display:flex;align-items:flex-start;justify-content:space-between;gap:clamp(3px,1.3vw,15px);margin:20px auto;max-width:800px}.ball-pair{flex:1 1 0;display:grid;justify-items:center;min-width:0;gap:7px}.ball{width:min(100%,78px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-weight:850;font-size:clamp(1rem,3.2vw,2.05rem);color:white;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 3px #ffffff2b,inset 0 -7px 16px #0003}.ball-red{background:#b83040}.ball-blue{background:#246bb3}.ball-green{background:#198257}.ball-empty{background:#edf2ed;color:#668275;border:1px solid #d5e1d7;box-shadow:none}.special .ball{outline:2px solid #c69549;outline-offset:2px}.ball-pair small{color:#506359;font-size:.79rem;white-space:nowrap;font-weight:620}.ball-plus{align-self:center;color:#6a7d71;font-weight:800;margin-top:-20px}.draw-bottom{border-top:1px solid var(--line);padding-top:13px}.draw-bottom strong{display:block;margin-top:3px;font-size:.93rem}.countdown{font-variant-numeric:tabular-nums;font-weight:850;color:var(--tone);font-size:1.15rem}.neutral-button,.inline-button{border-radius:8px;background:var(--soft);padding:8px 11px;min-height:36px;color:var(--tone);font-weight:730}.inline-button{background:none;padding:3px 0;min-height:26px;text-decoration:underline}.source{margin:10px 0 0;color:var(--muted);font-size:.85rem}.tools-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0}.tools-panel a{background:#fff;border:1px solid var(--line);border-radius:11px;display:flex;justify-content:center;align-items:center;gap:9px;padding:10px 6px;min-height:56px;white-space:nowrap;color:var(--ink)}.tool-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:#fff;background:#3775a0}.tool-trend{background:#b9484d}.tool-frequency{background:#337e56}.tool-missing{background:#a26329}.updates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:15px;margin:16px 0}.topic-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:15px;margin-top:16px}.topic-layout .tools-panel{margin-top:0;grid-template-columns:repeat(2,1fr)}.topic-layout aside>.panel{margin-bottom:13px}[data-view=index] .live-region{margin-bottom:16px}[data-view=index] .updates{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}[data-view=news] #subject-section{margin-block:16px}.section-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.83rem;color:var(--muted)}.section-head h2{font-size:1.04rem;color:var(--ink)}.notice-list{padding:12px 15px}.notice-list details{padding:10px 0;border-bottom:1px solid var(--line)}.notice-list details:last-child{border-bottom:0}.notice-list summary{cursor:pointer;font-weight:700}.notice-list summary time{color:var(--muted);font-size:.8rem}.notice-list img,.topic-article img{max-height:520px;object-fit:contain;border-radius:8px;margin-top:8px}.empty{margin:0;padding:24px 15px;color:var(--muted);line-height:1.6}.muted{color:var(--muted);font-size:.9rem}.categories,.metrics,.reference-links{display:flex;flex-wrap:wrap;gap:7px;padding:12px 15px}.categories button,.metrics button,.table-tools button{padding:7px 10px;min-height:36px;border-radius:7px;background:var(--soft);color:var(--tone);font-weight:650}.categories button[aria-pressed=true],.metrics button[aria-pressed=true],.table-tools button[aria-pressed=true]{background:var(--tone);color:white}.topic-articles{margin:0 15px 14px;border-top:1px solid var(--line)}.topic-article{padding:14px 0;border-bottom:1px solid var(--line)}.topic-article:last-child{border-bottom:0}.topic-article h3{font-size:1rem;margin-bottom:4px}.article-meta{color:var(--muted);font-size:.84rem;display:flex;gap:8px}.article-verdict{color:var(--tone)}.references{margin:16px 0}.reference-links a{border:1px solid var(--line);border-radius:7px;padding:7px 10px;font-weight:650;display:grid;place-items:center}.footer{display:flex;justify-content:space-between;padding:22px 0 28px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted);margin-top:20px}.history-heading{display:flex;justify-content:space-between;align-items:center;margin:17px 0;gap:9px}.history-heading h1{font-size:clamp(1.45rem,4vw,2.2rem)}.history-heading a{font-size:.9rem;white-space:nowrap}.history-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0 9px;gap:6px}.history-tabs button{min-height:48px;border-radius:8px;background:#fff;border:1px solid var(--line);font-weight:720}.history-tabs button[aria-pressed=true]{background:var(--green);color:#fff}.history-panel{overflow:hidden}.history-controls,.analysis-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line)}.history-controls label,.analysis-tools label{font-weight:650;display:grid;gap:4px;font-size:.85rem}.history-controls select,.analysis-tools select{border:1px solid var(--line);border-radius:8px;background:white;padding:7px 11px;min-height:38px}.history-controls .sort-label{display:flex;align-items:center;min-height:38px}.history-row{display:flex;align-items:center;gap:16px;padding:10px 15px;border-bottom:1px solid var(--line);min-width:0}.history-row:last-child{border-bottom:0}.history-meta{width:124px;flex-shrink:0;font-size:.84rem}.history-meta time,.history-meta strong{display:block;white-space:nowrap}.history-meta time{color:var(--muted);margin-top:3px}.balls.compact{margin:2px 0;max-width:500px;flex:1;gap:4px}.compact .ball{width:min(100%,42px);font-size:1rem}.compact .ball-pair{gap:4px}.compact .ball-pair small{font-size:.73rem}.compact .ball-plus{margin-top:-14px}.compact .special .ball{outline-width:1px;outline-offset:1px}.analysis-tools{align-items:center}.metrics{padding:0}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:.91rem;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding:9px 11px;border-bottom:1px solid var(--line)}.data-table thead th{background:#ebf3ee;color:#234737;white-space:nowrap}.data-table tbody th{color:#195b40}.data-table button{background:transparent;font-weight:730;padding:2px}.data-table button[aria-pressed=true]{text-decoration:underline;text-underline-offset:4px}.table-tools{display:flex;gap:8px;padding:10px 14px}.chart-scroll{max-width:100%;overflow:auto;margin:10px}.chart-scroll canvas{display:block;max-width:none}.version{border-bottom:1px solid var(--line);padding:11px 0}.version p{margin-top:4px;overflow-wrap:anywhere}dialog{border:1px solid var(--line);border-radius:13px;width:min(600px,calc(100% - 24px));max-height:86vh;padding:16px;color:var(--ink)}dialog::backdrop{background:#10261faa}dialog h2{margin-bottom:11px}dialog form{position:sticky;bottom:-16px;background:#fff;padding:10px 0 2px}
@media(max-width:730px){.shell{width:calc(100% - 24px)}.masthead-inner{gap:10px;min-height:61px}.masthead-zone{display:none}.top-nav{gap:11px;font-size:.86rem}.brand-icon{height:34px;width:34px;border-radius:10px}.brand strong{font-size:1rem}.brand small{font-size:.68rem}.presentations{gap:5px;margin:13px 0 11px}.presentations a{padding:8px 3px;text-align:center;font-size:.87rem;min-height:40px;display:grid;place-items:center;border-radius:8px}.presentations small{display:none}.hero{min-height:156px;border-radius:13px;margin-bottom:11px}.hero-content{padding:18px 16px}.hero h1{font-size:2.05rem}.hero p,.hero span{font-size:.8rem}.game-tabs{gap:4px;margin-bottom:6px}.game-tabs button{font-size:.87rem;min-height:41px}.draw-card{padding:13px 11px 11px;border-radius:12px}.draw-top-aside{gap:6px}.draw-top-aside>a{font-size:.78rem}.status-pill{font-size:.72rem;padding:5px 7px}.balls{gap:4px;margin:17px 1px;}.ball{font-size:clamp(.9rem,4.3vw,1.45rem)}.ball-pair small{font-size:.61rem}.ball-plus{margin-top:-16px;font-size:.8rem}.draw-bottom strong{font-size:.79rem}.draw-actions{gap:5px}.countdown{font-size:.96rem}.neutral-button{padding:6px 8px;min-height:34px;font-size:.85rem}.tools-panel{gap:5px;margin:11px 0}.tools-panel a{flex-direction:column;gap:5px;padding:8px 3px;font-size:.78rem;min-height:57px;border-radius:8px}.tool-icon{width:26px;height:26px;border-radius:7px}.updates,.topic-layout,[data-view=index] .updates{grid-template-columns:1fr;gap:10px;margin:11px 0}.topic-layout .tools-panel{grid-template-columns:repeat(4,minmax(0,1fr))}.section-head{padding:11px}.notice-list,.categories,.reference-links{padding:10px 11px}.history-row{gap:6px;padding:9px 5px}.history-meta{width:66px;font-size:.67rem}.history-meta strong{font-size:.72rem}.compact .ball{font-size:.82rem;}.balls.compact{gap:2px}.compact .ball-pair small{font-size:.58rem}.history-controls,.analysis-tools{padding:8px;gap:6px}.history-controls label,.analysis-tools label{font-size:.75rem}.history-controls select,.analysis-tools select{padding:6px;min-height:34px}.history-tabs button{font-size:.84rem;min-height:41px}.data-table th,.data-table td{padding:8px 4px;font-size:.74rem}.categories button,.metrics button{font-size:.80rem;padding:6px 8px}.hero:after{background:linear-gradient(90deg,#102c25a0,transparent)!important}.topic-articles{margin:0 11px 11px}}
@media(max-width:370px){.shell{width:calc(100% - 16px)}.brand small{display:none}.top-nav{gap:7px;font-size:.8rem}.draw-top h2{font-size:1.18rem}.draw-top-aside>a{font-size:.69rem}.balls.compact .ball-pair small{font-size:.5rem}.history-meta{width:61px;font-size:.61rem}.history-meta strong{font-size:.66rem}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s,color .15s,border-color .15s}}
.record-options{border-bottom:1px solid var(--line);padding:9px 14px;font-size:.86rem;color:#415b4f}.record-options summary{cursor:pointer;font-weight:650}.record-options>div{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:6px}.record-options label{display:flex;align-items:center;min-height:31px;gap:5px}.record-options input{accent-color:var(--green)}.history-meta>span{display:block;color:var(--muted);margin-top:4px}
.page-intro { padding:16px; overflow-wrap:anywhere; }
.page-intro img { display:block; max-width:100%; max-height:400px; margin:0 auto 12px; object-fit:contain; }
.page-intro p { white-space:pre-line; margin:8px 0; }
.page-intro a { display:inline-block; margin-top:5px; text-decoration:underline; }
.brand-icon img { width:100%; height:100%; object-fit:contain; }
