:root{--navy:#102d46;--ink:#18364b;--muted:#7a8a97;--teal:#008975;--line:#e5ebef;--bg:#f3f6f8}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{transition:background .18s,color .18s,box-shadow .18s}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #51bfb2;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.35}.header{background:white;border-bottom:1px solid var(--line)}.header-inner{max-width:1240px;margin:auto;min-height:90px;display:flex;align-items:center;gap:64px;padding:0 32px}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:21px;letter-spacing:1px}.brand-icon{display:flex;align-items:center;justify-content:center;background:var(--navy);color:white;border-radius:12px;width:44px;height:47px;font-size:32px;font-weight:800;position:relative;letter-spacing:-3px}.brand-icon span{color:#52c8b4;font-size:30px;position:absolute;right:6px;top:-8px}.brand-sub{display:block;font-size:9px;letter-spacing:2px;color:var(--muted);font-weight:500;margin-top:4px}nav{display:flex;align-self:stretch;align-items:center;gap:32px}nav>a,nav>button{height:90px;display:flex;align-items:center;position:relative;font-weight:600}nav .active{color:var(--teal)}nav .active:after{content:"";height:3px;background:var(--teal);position:absolute;bottom:0;left:0;right:0}.nav-rule{border:0;background:none;color:var(--ink);padding:0;gap:8px}.header-note{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}i,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--teal);margin-right:6px}.header-note i{background:#a5b0b9}main{max-width:1240px;padding:44px 32px 0;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--teal)}h1{font-size:32px;letter-spacing:1px;margin:10px 0 11px;font-weight:750}h1>span{color:var(--teal)}.page-heading p{color:var(--muted);margin:0;letter-spacing:1px;font-size:13px}.local-clock{text-align:right;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:11px}.local-clock strong{font-family:Consolas,monospace;font-size:25px;font-weight:500;letter-spacing:2px;color:var(--ink)}.local-clock small{font-size:10px}.notice{border:1px solid #dbe7e9;border-radius:10px;padding:15px 20px;display:flex;align-items:center;gap:13px;background:#edf4f4;margin-bottom:24px}.notice-icon{height:21px;width:21px;text-align:center;border:1.5px solid #6b9497;border-radius:50%;color:#587f82;font-family:Georgia;font-weight:bold}.notice p{margin:0;flex:1;font-size:12px;color:#647f86}.notice p strong{display:inline-block;margin-right:14px;color:#345d65}.button{border-radius:6px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:17px;font-size:12px;font-weight:600;border:1px solid transparent;white-space:nowrap}.outline{background:transparent;border-color:#bacfd1;color:#345d65}.outline:hover{background:#dcebea}.primary{background:var(--navy);color:white}.primary:hover{background:#20516d}.quiet{background:white;border-color:var(--line);color:#617684}.quiet:hover{background:#f0f5f7}.hero-grid{display:grid;grid-template-columns:1fr 330px;gap:24px}.card{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 7px #162d4411}.result-card{padding:26px 30px 0;overflow:hidden}.card-top{display:flex;align-items:center;justify-content:space-between}.section-kicker{font-size:13px;font-weight:600;letter-spacing:.5px}.pill{font-size:10px;background:#f0f3f5;color:#72828e;padding:5px 10px;border-radius:4px}.issue-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px}.issue-line h2{font-size:12px;color:var(--muted);font-weight:400;margin:0}.issue-line h2 span{display:inline-block;color:var(--ink);font-family:Consolas,monospace;font-weight:600;font-size:19px;margin-left:10px}.issue-line>span{font-size:11px;color:var(--muted)}.balls{display:flex;justify-content:space-between;gap:15px;margin:25px 5px 27px}.balls>div{text-align:center;flex:1}.balls b{height:76px;width:76px;max-width:100%;background:#102d46;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:auto;color:#ffffff;font-size:33px;font-family:Consolas,monospace;box-shadow:inset 0 -4px 0 rgba(0,0,0,.3),0 7px 16px rgba(16,45,70,.26);font-weight:700;letter-spacing:0}
/* 无结果时退回静默态，避免深色球暗示已有号码 */
.balls.is-empty b{background:#eef3f6;color:#a8b5bf;box-shadow:inset 0 -4px 0 #dfe7ec;font-weight:600}.balls span{display:block;color:#9aa6b0;font-size:10px;letter-spacing:3px;margin:12px 0 0 3px}.result-bottom{margin:0 -30px;padding:17px 30px;background:#fcfdfe;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.result-bottom a{color:var(--teal);font-weight:600}.countdown-card{border-radius:12px;background:var(--navy);color:white;padding:27px 28px;position:relative;overflow:hidden}.countdown-card:after{content:"";position:absolute;right:-65px;top:85px;width:190px;height:190px;border:1px solid #ffffff09;border-radius:50%;pointer-events:none}.countdown-card .section-kicker{font-size:12px;color:#ccdce4}.live-dot{background:#53cfb9;box-shadow:0 0 0 4px #53cfb915;margin:0}.countdown-card h2{font-family:Consolas,monospace;font-size:19px;font-weight:500;letter-spacing:1px;margin:22px 0}.countdown-card>p{font-size:11px;color:#9db1c1;margin-bottom:10px}.countdown{font-family:Consolas,monospace;display:flex;gap:13px;align-items:center;font-size:48px;line-height:1.2;letter-spacing:3px}.countdown>b{font-weight:300;font-size:30px;color:#718b9d}.countdown span{min-width:70px}.count-label{display:flex;gap:65px;font-size:9px;color:#9db1c1;margin-left:24px;margin-top:6px}.next-bottom{border-top:1px solid #ffffff19;padding-top:16px;margin-top:21px;font-size:11px;color:#c2d3df}.next-bottom small{font-size:10px;color:#8da6b9;display:block;margin-top:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0 32px}.stat{background:white;border:1px solid var(--line);border-radius:9px;padding:21px 17px;display:flex;gap:13px;align-items:center;position:relative}.stat-icon{width:36px;height:36px;border-radius:9px;background:#f1f5f7;color:#627e91;font-size:20px;display:flex;align-items:center;justify-content:center}.stat p{font-size:11px;color:var(--muted);margin:0 0 8px}.stat strong{font-size:24px;font-family:Consolas,monospace;font-weight:500}.stat strong small{font-size:10px;font-family:inherit;color:var(--muted)}.stat-tip{font-size:9px;color:#9ba7b0;margin-left:auto;align-self:flex-end;padding-bottom:5px}.history-card{scroll-margin-top:20px;overflow:hidden}.history-heading{display:flex;justify-content:space-between;align-items:center;padding:26px 27px 22px}.history-heading h2{margin:8px 0 0;font-size:19px;font-weight:650}.history-heading h2 span{font-size:10px;font-weight:400;color:var(--muted);margin-left:15px}.filters{padding:18px 27px;background:#fbfcfd;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:flex-end;gap:12px}.filters label{display:flex;flex-direction:column;gap:8px;font-size:10px;color:#617584}.filters input{border:1px solid #dce4ea;background:white;border-radius:5px;color:var(--ink);padding:10px 12px;min-height:37px;font-size:12px;width:175px}.issue-filter input{width:225px}.filters>span{color:#9ba7b0;font-size:10px;margin-left:auto;align-self:center}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#f7f9fb;color:#7a8c99;font-size:11px;font-weight:400}th{font-weight:500;padding:15px 28px}th span{font-size:9px}td{padding:15px 28px;border-top:1px solid #edf1f4;font-size:12px}td:first-child{font-family:Consolas,monospace;font-size:13px;font-weight:600}td:nth-child(2){color:#82919d;font-size:11px}.mini-balls{display:flex;gap:7px}.mini-balls b{background:#102d46;color:#ffffff;border-radius:50%;width:27px;height:27px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-family:Consolas,monospace;font-weight:700;box-shadow:inset 0 -2px 0 rgba(0,0,0,.28)}.demo-badge{background:#fff4df;color:#98690f;border:1px solid #f4e3bd;border-radius:4px;padding:4px 8px;font-size:10px}.empty-state{text-align:center;padding:48px 20px 51px}.empty-icon{width:50px;height:50px;display:flex;align-items:center;justify-content:center;margin:auto;border:1px solid #e5ecf0;background:#f6f9fa;border-radius:13px;font-size:28px;color:#9eb1bd}.empty-state h3{font-size:14px;font-weight:500;margin:17px 0 10px}.empty-state p{color:var(--muted);font-size:12px;margin:0 0 9px}.empty-state>span{color:#a2aeb7;font-size:10px}.pagination{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:17px 27px;font-size:10px;color:#83939f}.pagination>div{display:flex;align-items:center;gap:17px}.page-button{background:white;border:1px solid #dde5ea;border-radius:5px;width:30px;height:30px;color:#617c8f}.page-button:hover:not(:disabled){background:#ecf4f5}.info-strip{display:flex;align-items:center;gap:16px;padding:28px 0;border-bottom:1px solid #dce4e9;margin-top:12px}.info-symbol{font-size:24px;color:#8b9eac}.info-strip h3{font-size:12px;margin:0 0 7px;font-weight:500}.info-strip p{font-size:10px;color:#8b9aa6;margin:0;line-height:1.8}.info-strip button{margin-left:auto;white-space:nowrap;border:0;background:none;color:var(--teal);font-size:11px}footer{padding:27px 0 32px;display:flex;align-items:center;justify-content:space-between;color:#9aa8b2;font-size:10px}footer b{font-size:13px;color:#6c8393;margin-right:7px}footer p{letter-spacing:2px}dialog{border:0;border-radius:15px;padding:28px;width:540px;max-width:calc(100% - 32px);color:var(--ink);box-shadow:0 25px 100px #102d4655}dialog::backdrop{background:#0c243a99;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}dialog h2{font-size:23px}dt{font-size:13px;font-weight:650;color:var(--teal);margin-top:20px}dd{font-size:12px;color:#6e8291;line-height:1.9;margin:7px 0 0}dialog>.button{width:100%;margin-top:18px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:12px 22px;box-shadow:0 5px 25px #102d4633;border-radius:7px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}#toast.visible{opacity:1}.demo-mode .notice{background:#fff8eb;border-color:#ebd7ac}.demo-mode .notice p strong,.demo-mode .notice-icon{color:#956b1d}.demo-mode .notice p{color:#967b48}.demo-mode .pill{background:#fff2d9;color:#9b701e}.demo-mode .balls b{background:#f0f8f7;color:#087d72;border-color:#dbece8;box-shadow:inset 0 -4px 0 #dceee9}.demo-mode .result-caption{color:#976918}.demo-mode #history-mode{color:#a07829}
@media(min-width:1100px){.balls b{height:83px;width:83px;font-size:35px}}
@media(max-width:1050px){.header-inner{gap:30px}nav{gap:22px}.hero-grid{grid-template-columns:1fr 290px}.result-card{padding:24px 23px 0}.balls{gap:10px;margin-left:0;margin-right:0}.balls b{width:65px;height:65px}.issue-line{align-items:flex-start;flex-direction:column}.result-bottom{margin:0 -23px;padding:15px 23px}.stat-tip{display:none}.filters>span{display:none}.stat{padding:18px 13px}.countdown-card{padding:26px}.countdown-card h2{margin:22px 0}.notice p span{display:block;margin-top:5px}}
@media(max-width:760px){.header-inner{padding:0 20px;min-height:76px;flex-wrap:wrap;gap:0;justify-content:space-between}.brand{font-size:18px}.brand-sub{font-size:8px}.brand-icon{width:38px;height:41px;font-size:28px}.header-note{font-size:10px;margin-left:0}nav{order:3;width:100%;gap:27px;height:48px}nav>a,nav>button{height:48px;font-size:12px}main{padding:28px 18px 0}.page-heading{align-items:flex-start;margin-bottom:23px}.page-heading .eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:25px;letter-spacing:0}.page-heading p{font-size:10px;letter-spacing:0}.local-clock{font-size:8px;max-width:118px;gap:5px}.local-clock strong{font-size:18px}.local-clock small{font-size:8px;line-height:1.6}.notice{padding:13px;gap:9px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.notice p{font-size:10px;line-height:1.7}.notice p strong{font-size:11px}.notice-icon{width:18px;height:18px;font-size:12px}.notice p{flex-basis:calc(100% - 30px)}.notice-icon{flex-shrink:0}.notice .button{margin-left:27px;font-size:10px;padding:7px 11px}.hero-grid{grid-template-columns:1fr;gap:16px}.result-card{padding:21px 20px 0}.issue-line{flex-direction:row;align-items:center;margin-top:23px}.issue-line h2 span{display:block;margin:7px 0 0;font-size:19px}.issue-line>span{font-size:9px;text-align:right;max-width:115px;line-height:1.6}.balls{gap:8px;margin:25px 0}.balls>div{flex:1;min-width:0}.balls b{width:min(54px,100%);height:auto;aspect-ratio:1;font-size:clamp(20px,6vw,27px)}.balls span{font-size:9px}.result-bottom{padding:15px 20px;margin:0 -20px;font-size:9px;gap:8px}.countdown-card{padding:22px 24px;display:grid;grid-template-columns:1fr 140px;column-gap:10px}.countdown-card .card-top{grid-column:1/-1}.countdown-card h2{font-size:17px;margin:22px 0 0}.countdown-card>p{grid-column:1;margin:10px 0;color:#9db1c1}.countdown{grid-row:2/4;grid-column:2;align-self:center;font-size:36px;gap:7px;justify-content:flex-end}.countdown span{min-width:48px}.countdown b{font-size:24px}.count-label{display:none}.next-bottom{grid-column:1/-1;margin-top:17px;padding-top:13px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px}.next-bottom small{font-size:8px;margin:0;max-width:142px;text-align:right;line-height:1.7}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 24px}.stat{padding:16px 12px;gap:10px}.stat-icon{width:31px;height:34px;font-size:18px}.stat p{font-size:10px}.stat strong{font-size:22px}.history-heading{padding:22px 18px}.history-heading h2{font-size:17px}.history-heading h2 span{display:block;font-size:9px;margin:8px 0 0}.history-heading .button{font-size:10px;padding:8px 10px}.history-heading .eyebrow{font-size:8px}.filters{padding:16px 18px;gap:10px;flex-wrap:wrap}.filters label{width:calc(50% - 5px);font-size:9px}.filters input,.issue-filter input{width:100%;min-width:0;font-size:10px;padding:10px 7px}.filters>.button{font-size:10px;padding:9px 12px}.table-wrap{overflow-x:auto}table{min-width:550px}th,td{padding:14px 18px}th{font-size:10px}.empty-state{padding:38px 17px}.empty-state h3{font-size:13px}.empty-state p{font-size:11px}.empty-state>span{font-size:9px}.pagination{padding:15px 18px}.pagination>span:last-child{display:none}.info-strip{gap:11px;flex-wrap:wrap;padding:22px 0}.info-strip>div{flex:1}.info-strip p{font-size:9px}.info-strip button{font-size:10px;margin-left:35px;padding:0}.info-symbol{font-size:21px}footer{padding:23px 0;flex-wrap:wrap;gap:10px;font-size:9px}footer p{display:none}dialog{padding:22px}dialog h2{font-size:21px}#toast{max-width:90%;width:max-content;font-size:11px}}
/* ---------- 开奖引擎面板 ---------- */
.engine-card{margin-top:18px;padding:26px 28px 24px}
.engine-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.engine-head h2{margin:6px 0 0;font-size:19px;letter-spacing:.5px}
.engine-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0}
.engine-grid>div{border-left:2px solid var(--line);padding-left:14px}
.engine-grid dt{font-size:11px;color:var(--muted);margin-bottom:8px}
.engine-grid dd{margin:0;font-size:13px;font-weight:600;word-break:break-all}
.engine-grid .mono{font-family:Consolas,"SFMono-Regular",monospace;font-size:12px;font-weight:500;color:#2d5a72}
.engine-note{margin:20px 0 0;font-size:11px;line-height:1.8;color:var(--muted);background:#f7fafb;border-left:2px solid #cfe0e8;padding:10px 13px;border-radius:0 4px 4px 0}
.engine-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;list-style:none;counter-reset:step;margin:18px 0 0;padding:0}
.engine-steps li{counter-increment:step;position:relative;padding:13px 13px 13px 38px;background:#f6f9fa;border-radius:6px}
.engine-steps li:before{content:counter(step);position:absolute;left:12px;top:12px;width:18px;height:18px;border-radius:50%;background:var(--navy);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.engine-steps b{display:block;font-size:11px;margin-bottom:5px}
.engine-steps span{font-size:10px;color:var(--muted);line-height:1.6;display:block}

/* ---------- 结果卡与表格里的引擎元素 ---------- */
.result-links{display:inline-flex;align-items:center;gap:18px}
.link-button{border:0;background:none;padding:0;color:var(--teal);font-size:11px;font-weight:600}
.link-button:hover{text-decoration:underline}
.engine-badge{background:#e8f4f2;color:#0a6f60;border:1px solid #cbe7e2;border-radius:4px;padding:4px 8px;font-size:10px;margin-right:10px}
.row-detail{border:1px solid var(--line);background:#fff;border-radius:4px;padding:4px 9px;font-size:10px;color:var(--ink)}
.row-detail:hover{border-color:var(--teal);color:var(--teal)}

/* ---------- 验证弹窗 ---------- */
.detail-hero{display:flex;align-items:center;gap:14px;margin:18px 0 20px;padding:16px 18px;background:#f6f9fa;border-radius:8px;flex-wrap:wrap}
.detail-hero .mono{font-family:Consolas,monospace;font-size:13px;color:#2d5a72}
.detail-number{font-family:Consolas,monospace;font-size:30px;letter-spacing:6px;color:var(--navy)}
.detail-hero span:last-child{font-size:11px;color:var(--muted);margin-left:auto}
.detail-list{margin:0}
.detail-list dt{font-size:11px;color:var(--muted);margin-bottom:4px}
.detail-list dd{margin:0 0 13px;font-size:11px;line-height:1.7;word-break:break-all}
.detail-list .mono{font-family:Consolas,monospace;font-size:10.5px;color:#2d5a72}
.verdict{margin:0;padding:11px 13px;border-radius:6px;font-size:12px;font-weight:600}
.verdict.ok{background:#e8f4f2;color:#0a6f60}
.verdict.bad{background:#fdeceb;color:#b4231a}
.detail-foot{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:11px;color:var(--muted)}

@media(max-width:1050px){
  .engine-grid{grid-template-columns:repeat(2,1fr);gap:16px}
  .engine-steps{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .engine-card{padding:21px 20px}
  .engine-head{flex-wrap:wrap;gap:12px}
  .engine-head .button{font-size:10px;padding:8px 12px}
  .engine-grid{grid-template-columns:1fr;gap:13px}
  .engine-steps{grid-template-columns:1fr;gap:8px}
  .detail-hero .detail-number{font-size:24px;letter-spacing:4px}
  .detail-hero span:last-child{margin-left:0;width:100%}
  .result-links{gap:12px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
