:root{color-scheme:dark;--accent:#dfbb7c;--accent-dark:#f0d5a3;--gold-fill:linear-gradient(135deg,#f0d39b,#d2a55e);--page:#141414;--ink:#f2ecdf;--muted:#a9a399;--border:#38342d;--large:#a77a33;--small:#66543c;--odd:#3b7359;--even:#3e5f70;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none;background:var(--page);color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 50% 0,#30291f55,transparent 650px)}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;color:inherit;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent-dark);outline-offset:3px}
button:active{transform:translateY(1px)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page{max-width:1120px;margin:0 auto;padding:26px 24px 0}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:20px}
.site-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #edcb8b;color:#f4d59c;font:750 24px/1 Arial,sans-serif;background:radial-gradient(circle at 30% 20%,#4b4438,#1b1c1a 70%);box-shadow:inset 0 0 0 4px #181a18,inset 0 0 0 5px #83704e,0 4px 14px #0004}
.site-brand h1{font-size:24px;letter-spacing:1px;margin:0;line-height:1.25}
.site-brand p{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:5px 0 0}
.categories{display:flex;padding:4px;border:1px solid var(--border);background:#1d1d1d;border-radius:8px;min-width:440px}
.categories button{position:relative;flex:1 0 auto;white-space:nowrap;border:0;border-radius:5px;background:transparent;color:#c8c3ba;min-height:40px;padding:8px 16px;font-size:14px}
.categories button+button::before{content:"";position:absolute;left:-1px;top:12px;bottom:12px;width:1px;background:#3e3932}
.categories button.active{background:var(--gold-fill);color:#241c10;font-weight:700;box-shadow:inset 0 0 0 1px #ffe3ad66,0 2px 8px #0003}
.categories button.active::before,.categories button.active+button::before{display:none}
.panel{background:linear-gradient(125deg,#252422,#1c1c1c);border:1px solid var(--border);border-radius:12px}
.banner{position:relative;height:188px;overflow:hidden;border:1px solid #655236;border-radius:12px;margin-bottom:16px;background:#191714;touch-action:pan-y}
.banner a,.banner img{display:block;width:100%;height:100%}
.banner img{object-fit:cover}
.banner-arrow{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:42px;padding:0;border:1px solid #c7a26733;border-radius:7px;color:#f4e9d6;background:#0c0c0c50;font-size:29px;line-height:1}
.banner-arrow:active{transform:translateY(-50%)}
.banner-arrow.prev{left:12px}.banner-arrow.next{right:12px}
.banner-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:2px}
.banner-dots button{display:grid;place-items:center;width:22px;height:20px;padding:0;background:transparent;border:0}
.banner-dots button::after{content:"";display:block;width:6px;height:6px;background:#bbb5aa70;border-radius:10px}
.banner-dots button.active::after{width:18px;background:#ebc784;box-shadow:0 0 9px #e5b86644}
.lottery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:10px;border:0;background:none;margin-bottom:16px}
.lottery-grid button{min-height:44px;border:1px solid #4b4132;border-radius:7px;background:linear-gradient(130deg,#292825,#20201f);font-size:14px;padding:9px 5px}
.lottery-grid button.active{color:#21190e;background:var(--gold-fill);border-color:#edcd91;font-weight:700;box-shadow:0 3px 10px #0003,inset 0 1px #fff3}
.draw-panel{padding:20px}
.draw-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.draw-info{display:flex;align-items:center;gap:13px;min-width:0}
.draw-logo{width:58px;height:58px;object-fit:contain;border-radius:50%;border:1px solid #d8b576;box-shadow:0 3px 12px #0003}
.draw-name{font-size:21px;line-height:1.4;font-weight:700;margin-bottom:4px}
.draw-expect{font-size:13px;color:var(--muted)}
.draw-expect strong{color:#d9c9af;font-weight:500;font-variant-numeric:tabular-nums;padding:0 3px}
.tools{display:flex;flex-shrink:0;gap:8px}
.icon-button{display:grid;place-items:center;width:38px;height:38px;background:#18181855;border:1px solid #574936;border-radius:50%;color:#d8cbb5;padding:8px}
.icon-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.icon-button.hidden-result{color:#f5d38e;background:#8a682a33;border-color:var(--accent)}
.draw-body{display:flex;align-items:center;gap:28px;padding:18px 24px;margin-top:18px;border:1px solid #4b4132;border-radius:9px;background:linear-gradient(120deg,#16161690,#1b1a18)}
.countdown-wrap{flex:0 0 30%;min-width:0}
.countdown{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:67px;gap:6px;font-size:13px;color:var(--muted)}
.clock-title{color:#d0c6b5;font-size:12px;letter-spacing:1px}
.clock-value{display:flex;align-items:baseline;justify-content:center;gap:4px;white-space:nowrap;color:#f6e9d0}
.clock-part{display:inline-flex;align-items:baseline;gap:3px}
.clock-number,.clock-separator{font:700 36px/1.15 "SFMono-Regular",Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums;letter-spacing:1px}
.clock-unit{color:#c5b99f;font-size:11px}
.long-countdown .clock-number{font-size:26px;letter-spacing:0}
.long-countdown .clock-value{gap:7px}
.progress-track{height:4px;overflow:hidden;border-radius:5px;background:#49463f;margin:9px auto 0;max-width:250px}
.progress{width:100%;height:100%;border-radius:inherit;background:var(--gold-fill);transform-origin:left}
.result-area{flex:1;min-width:0;border-left:1px solid #4a4135;padding-left:26px}
.draw-result{position:relative;min-height:54px;display:flex;align-items:center;justify-content:center}
.number-line{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:48px;font-variant-numeric:tabular-nums}
.ball{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:40px;height:40px;padding:0 5px;color:#281e0e;background:var(--gold-fill);border:1px solid #f3d59a;border-radius:50%;box-shadow:inset 0 1px 1px #fff5,0 3px 9px #0003;font:650 21px/1 Arial,sans-serif}
.pc28-line .ball{min-width:48px;height:48px;font-size:27px}
.sum-ball{background:linear-gradient(145deg,#ffe2a1,#e6b34c);border-color:#ffe6ad;box-shadow:0 0 14px #ecbf5b25,inset 0 1px 1px #fff7}
.operator{color:#ded3be;font-size:20px}
.label-ball{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;margin-left:2px;border-radius:7px;border:1px solid #a27d3e;background:#8a682322;color:#ebc37e;font-weight:600;font-size:18px}
.label-ball:last-child{border-color:#6c675e;background:#ffffff06;color:#e8e1d5}
.ball-unit{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.zodiac{color:#c8c0b3;font-size:12px}
.ball.lhc{min-width:35px;height:35px;border-color:#fff8;color:#242424;background:radial-gradient(circle at 35% 26%,#fff 0 35%,#e7e4dc 52%,var(--ball-color) 73%,var(--ball-color) 85%,#eee 93%);font-size:16px}
.ball.red{--ball-color:#d24949}.ball.blue{--ball-color:#3c94d6}.ball.green{--ball-color:#379862}
.number-line.compact{gap:6px}
.compact .ball{min-width:30px;height:33px;border-radius:6px;font-size:17px;color:#fff;border-color:#fff2;text-shadow:0 1px 2px #0005}
.rank-1{background:#cbb620;color:#1b1b16!important}.rank-2{background:#388ed1}.rank-3{background:#505052}.rank-4{background:#d8782d}.rank-5{background:#43b9c1;color:#152e30!important}.rank-6{background:#6d55da}.rank-7{background:#b6b6b8;color:#29292b!important}.rank-8{background:#d84c39}.rank-9{background:#923b2b}.rank-10{background:#59a840}
.scratch-cover{position:absolute;inset:0;width:100%;height:100%;border-radius:8px;touch-action:none;cursor:crosshair}
.waiting{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;font-size:12px;color:var(--accent)}
.spinner{display:inline-block;width:15px;height:15px;border-radius:50%;border:2px solid #71614466;border-top-color:var(--accent);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.status{min-height:32px;padding:8px 3px 10px;color:#aaa294;font-size:11px;line-height:1.6}
.status.error{color:#f1a18c}
.status button{background:none;border:0;padding:0 5px;margin-left:5px;color:var(--accent-dark);text-decoration:underline;font-size:inherit}
.view-tabs{display:flex;padding:3px;border:1px solid #4c4131;border-radius:8px;background:#20201e;margin-bottom:10px}
.view-tabs button{position:relative;flex:1;min-width:0;min-height:40px;border:0;background:transparent;border-radius:5px;padding:7px 3px;font-size:13px;color:#c8c0b3}
.view-tabs button+button::before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:1px;background:#423c32}
.view-tabs button.active{background:var(--gold-fill);color:#261c0e;font-weight:700;box-shadow:inset 0 0 0 1px #ffe3ad55}
.view-tabs button.active::before,.view-tabs button.active+button::before{display:none}
.history{overflow-x:auto;background:#1b1b1a;border:1px solid #423b30;border-radius:10px;min-height:100px}
.history.blurred{filter:blur(8px);user-select:none}
.history table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.history th,.history td{border-bottom:1px solid #35312a;padding:11px 7px;text-align:center;font-weight:400;overflow-wrap:anywhere}
.history th+th,.history td+td{border-left:1px solid #35312a}
.history th{height:46px;background:linear-gradient(#2d2b27,#252421);color:#ded5c4;font-size:12px}
.history tbody tr:nth-child(even){background:#ffffff03}
.history tbody tr:last-child td{border-bottom:0}
.history .sum-cell{font-weight:650;color:#edc477;font-size:15px}
.pc28-table th:nth-child(1){width:24%}.pc28-table th:nth-child(2){width:32%}.pc28-table th:nth-child(4){width:13%}
.ssc-table th:nth-child(1){width:23%}.ssc-table th:nth-child(2){width:20%}
.history-time{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-style:normal;color:#c4beb2}
.history-date{color:#9e988d}
.history-numbers{display:flex;align-items:center;justify-content:center;gap:6px}
.mini-ball{display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:var(--gold-fill);color:#271e10;font-size:13px;font-weight:600}
.mode-picker{display:flex;align-items:center;justify-content:center;gap:3px}
.mode-picker button{min-height:28px;border:0;border-radius:4px;background:transparent;color:#aaa295;font-size:11px;padding:4px 7px;white-space:nowrap}
.mode-picker button.active{color:#f1d19a;background:#d2ad6b20}
.history .number-line{min-height:28px;gap:5px}
.history .ball{min-width:27px;height:27px;padding:0 3px;box-shadow:none;font-size:14px}
.history .label-ball{width:27px;height:27px;font-size:13px}
.history .ball-unit{gap:5px}
.history .wide-row td{padding:16px 18px}
.history .wide-row .number-line{justify-content:space-around}
.history .wide-row .ball{min-width:33px;height:33px;font-size:16px}
.history .row-meta{display:flex;justify-content:space-between;gap:10px;margin-top:13px;color:#aaa294;font-size:11px}
.history .trend th:first-child{width:26%}.history .trend th:nth-child(2){width:14%}
.trend .large{background:var(--large);color:#fff5df}.trend .small{background:var(--small);color:#fff5df}.trend .odd{background:var(--odd);color:#effff5}.trend .even{background:var(--even);color:#f1faff}.trend .tie{background:#735a90;color:#fff}
.prediction th:first-child{width:26%}
.prediction td.hit{color:#e6bd75}
.prediction .wrong{color:#ed9d86;font-size:20px;font-weight:600}
.prediction .success{color:#a5cca5;font-size:20px}
.empty{padding:32px 16px;color:var(--muted);text-align:center;font-size:13px}
.page footer{text-align:center;padding:23px 12px;color:#8f877b;font-size:11px;letter-spacing:2px}
@media(hover:hover){
  .categories button:not(.active):hover,.view-tabs button:not(.active):hover,.mode-picker button:hover{background-color:#d8b67515;color:#f1d6a9}
  .lottery-grid button:not(.active):hover,.icon-button:hover{border-color:#b79259;background-color:#bf98591a;color:#f1d6a9}
  .history tbody tr:hover{background:#d8b67509}
  .banner-arrow:hover{background:#0c0c0ca0;border-color:#c7a26788}
}
@media(max-width:899px){
  .page{max-width:760px;padding:16px 18px 0}.site-header{gap:16px}
  .categories{min-width:350px}.categories button{padding-inline:10px;font-size:13px}
  .site-brand h1{font-size:21px}.site-brand p{font-size:10px;letter-spacing:.5px}
  .banner{height:166px}.draw-body{padding:16px;gap:15px}.result-area{padding-left:15px}
  .pc28-line .ball{min-width:38px;height:38px;font-size:22px}.number-line{gap:5px}
  .operator{font-size:16px}.label-ball{width:29px;height:29px;font-size:15px;margin-left:0}
  .number-line.compact{gap:3px}.compact .ball{min-width:26px;height:29px;padding:0 3px;font-size:15px}
  .long-countdown .clock-number{font-size:20px}.long-countdown .clock-value{gap:4px}
}
@media(max-width:639px){
  .page{padding:14px 12px 0}.site-header{display:block;margin-bottom:12px}
  .site-brand{gap:10px;margin:0 2px 14px}.brand-symbol{width:39px;height:39px;font-size:21px}
  .site-brand h1{font-size:21px}.site-brand p{font-size:10px;letter-spacing:1px;margin-top:3px}
  .categories{width:100%;min-width:0;padding:3px;border-radius:7px}
  .categories button{flex:1 1 0;min-width:0;min-height:38px;padding:8px 2px;font-size:13px}
  .banner{height:auto;aspect-ratio:3/1;border-radius:9px;margin-bottom:12px}
  .banner-arrow{width:24px;height:32px;font-size:24px;border:0;background:#10101044}
  .banner-arrow.prev{left:5px}.banner-arrow.next{right:5px}.banner-dots{bottom:1px}
  .lottery-grid{gap:7px;margin-bottom:12px}.lottery-grid button{min-height:42px;font-size:12px;border-radius:6px}
  .draw-panel{padding:14px;border-radius:10px}.draw-info{gap:10px}.draw-logo{width:46px;height:46px}
  .draw-name{font-size:18px;margin-bottom:3px}.draw-expect{font-size:11px}
  .tools{gap:6px}.icon-button{width:34px;height:34px;padding:7px}
  .draw-body{display:block;padding:0;border:0;background:none;margin-top:14px}
  .countdown-wrap{border:1px solid #4c4132;border-radius:7px;background:linear-gradient(135deg,#14141488,#1c1b19);padding:10px 14px 11px}
  .countdown{min-height:0;gap:5px}.clock-title{font-size:11px}.clock-number,.clock-separator{font-size:30px}
  .long-countdown .clock-number{font-size:25px}.long-countdown .clock-value{gap:7px}
  .progress-track{max-width:210px;margin-top:8px}.result-area{border:0;padding:12px 0 0}
  .draw-result{min-height:42px}.number-line{gap:6px;min-height:42px}
  .pc28-line .ball{min-width:37px;height:37px;font-size:22px}
  .label-ball{width:29px;height:29px;font-size:15px}.operator{font-size:15px}
  .ball{min-width:38px;height:38px;font-size:22px}
  .number-line.compact{gap:4px}.compact .ball{min-width:25px;height:29px;font-size:15px}
  .ball.lhc{min-width:32px;height:32px;font-size:15px}.zodiac{font-size:11px}
  .status{font-size:10px;min-height:29px;padding:6px 2px 8px}
  .view-tabs{padding:3px;margin-bottom:9px;border-radius:7px}.view-tabs button{font-size:12px;min-height:36px}
  .history{border-radius:8px}.history table{font-size:11px}
  .history th,.history td{padding:10px 4px}.history th{height:40px;font-size:11px}
  .pc28-table th:first-child{width:25%}.pc28-table th:nth-child(2){width:27%}.pc28-table th:nth-child(4){width:13%}
  .history-time{display:flex;flex-direction:column;gap:3px;font-size:11px;line-height:1.25}.history-date{font-size:9px}
  .history-numbers{gap:4px}.mini-ball{min-width:21px;height:21px;font-size:11px}.history .sum-cell{font-size:13px}
  .mode-picker{gap:0}.mode-picker button{font-size:10px;padding:4px}
  .history .number-line{gap:3px;min-height:25px}.history .ball{min-width:21px;height:24px;font-size:12px;padding:0 2px}
  .history .wide-row td{padding:13px 10px}.history .wide-row .ball{min-width:26px;height:28px;font-size:14px}
  .history .row-meta{gap:4px;font-size:9px;margin-top:10px}
  .history .trend th:first-child,.prediction th:first-child{width:27%}.history .trend th:nth-child(2){width:13%}
  .history .trend td{padding:12px 3px}.page footer{padding:22px 10px;font-size:10px}
}
@media(max-width:359px){
  .page{padding-inline:9px}.draw-panel{padding:12px}.draw-name{font-size:16px}.draw-logo{width:40px;height:40px}
  .tools{gap:4px}.icon-button{width:31px;height:31px}.number-line{gap:4px}
  .pc28-line .ball{min-width:33px;height:33px;font-size:20px}.label-ball{width:26px;height:27px;font-size:14px}
  .number-line.compact{gap:3px}.compact .ball{min-width:23px;height:27px;font-size:13px}
  .ball.lhc{min-width:29px;height:29px;font-size:13px}
  .history th,.history td{padding-inline:3px}.mode-picker button{padding-inline:2px}
  .mini-ball{min-width:19px;height:19px}.history .ball{min-width:19px;height:22px;font-size:11px}
  .history .wide-row .compact .ball{min-width:22px;height:26px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

