
:root { color-scheme: light; --tool-ink:#13243c; --tool-blue:#194f78; --tool-line:#b8c7d6; --tool-paper:#f4f7fa; --tool-accent:#59e1b4; }
* { box-sizing:border-box; }
body.tool-page { margin:0; background:var(--tool-paper); color:var(--tool-ink); font-family:"Microsoft YaHei", sans-serif; line-height:1.75; }
.tool-header { padding:22px max(5vw,24px) 14px; display:flex; align-items:baseline; gap:22px; border-bottom:1px solid var(--tool-line); background:#fff; }
.tool-wordmark { color:var(--tool-blue); font-weight:800; font-size:1.8rem; text-decoration:none; letter-spacing:.04em; }
.tool-nav { display:flex; overflow:auto; gap:0; padding:0 5vw; background:#eaf0f5; border-bottom:2px solid var(--tool-blue); white-space:nowrap; }
.tool-nav a { padding:13px 14px; color:#193650; text-decoration:none; border-right:1px solid #cfdae3; font-size:.91rem; }
.tool-nav a:hover { background:#fff; }
.tool-main { max-width:1440px; margin:auto; padding:26px 5vw 60px; }
.tool-intro { border-left:6px solid var(--tool-accent); padding:12px 22px 18px; background:#fff; }
.tool-intro h1 { margin:0 0 12px; font-size:clamp(1.55rem,3vw,2.4rem); line-height:1.35; }
.tool-intro p { max-width:1000px; margin:0; }
.tool-stamp { margin-top:18px; color:#496178; font-size:.88rem; border-top:1px solid var(--tool-line); padding-top:9px; }
.tool-photo-band { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:8px; padding:15px 0 23px; }
.tool-photo-band img { width:100%; max-height:145px; object-fit:contain; background:white; border:1px solid var(--tool-line); padding:5px; }
.tool-home-columns { display:grid; grid-template-columns:minmax(0,1.42fr) minmax(320px,.78fr); gap:28px; align-items:start; }
.tool-section { margin:0 0 22px; border-top:2px solid var(--tool-blue); background:#fff; padding:16px 20px; }
.tool-section-cap { display:flex; justify-content:space-between; align-items:center; gap:20px; border-bottom:1px solid var(--tool-line); margin-bottom:10px; }
.tool-section h2,.tool-section-cap h2 { margin:0 0 8px; color:var(--tool-blue); font-size:1.2rem; }
.tool-section-cap a { color:#426b88; text-decoration:none; font-size:.86rem; }
.tool-news-row { display:grid; grid-template-columns:120px 1fr; gap:14px; border-bottom:1px solid #d8e1e9; padding:15px 0; }
.tool-news-row img { width:120px; max-height:108px; object-fit:contain; background:#eef2f6; }
.tool-news-row time,.tool-news-sheet time { color:#66798b; font-size:.8rem; }
.tool-news-row h3 { margin:3px 0 7px; font-size:1.04rem; line-height:1.45; }
.tool-news-row h3 a { color:#172f48; text-decoration:none; }
.tool-news-row p,.tool-news-sheet p { margin:0; }
.tool-home-columns aside { position:sticky; top:12px; max-height:86vh; overflow:auto; background:#e8eef4; padding:18px; border:1px solid var(--tool-line); }
.tool-inner-head { border-bottom:1px solid var(--tool-line); padding:10px 0 18px; }
.tool-inner-head h1 { margin:0 0 8px; font-size:2rem; }
.tool-inner-head p { max-width:1000px; margin:0; }
.tool-file-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.tool-file-card { background:white; border-top:4px solid #39739d; padding:18px; }
.tool-file-card h2 { margin:0 0 8px; font-size:1.1rem; }
.tool-file-card p { margin:0; }
.tool-news-stack { max-width:980px; margin:0 auto; }
.tool-news-sheet { padding:24px 0; border-bottom:1px dashed #9aafc0; }
.tool-news-sheet img { width:100%; max-height:190px; object-fit:contain; background:#fff; }
.tool-news-sheet h2 { margin:5px 0 10px; font-size:1.3rem; }
.tool-data-ledger { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr); gap:25px; }
.tool-data-row { display:grid; grid-template-columns:54px 1fr; gap:16px; padding:17px 12px; border-bottom:1px solid var(--tool-line); background:white; }
.tool-data-row h2 { margin:0 0 7px; font-size:1.1rem; }
.tool-data-row p { margin:0; }
.tool-index { font-family:Consolas,monospace; color:#4a7798; font-size:1.2rem; }
.tool-data-ledger aside { background:#e5f2ef; padding:20px; border-left:4px solid #2b8c79; }
.tool-language-columns { columns:2 310px; column-gap:24px; }
.tool-language-note { break-inside:avoid; margin:0 0 20px; padding:20px; background:white; border-bottom:3px solid #7cae9f; }
.tool-language-note h2,.tool-device-note h2 { margin:0 0 8px; font-size:1.1rem; }
.tool-language-note p,.tool-device-note p { margin:0; }
.tool-device-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.tool-device-note { background:#fff; padding:20px; border:1px solid var(--tool-line); box-shadow:5px 5px 0 #dce6ee; }
.tool-faq-ledger { margin-top:30px; padding:20px; background:#fff; border-left:4px solid var(--tool-accent); }
.tool-faq-ledger h2 { margin:0 0 12px; }
.tool-faq { border-top:1px solid var(--tool-line); padding:12px 2px; }
.tool-faq summary { cursor:pointer; font-weight:700; }
.tool-faq p { margin:10px 0 0; }
.tool-footer { background:#122c45; color:#eaf1f7; padding:28px 5vw; font-size:.9rem; }
.tool-footer a { color:#b8f6e4; }
@media(max-width:850px) { .tool-home-columns,.tool-data-ledger { grid-template-columns:1fr; } .tool-home-columns aside { position:static; max-height:none; } .tool-file-grid { grid-template-columns:1fr; } .tool-nav { padding:0 12px; } .tool-device-columns { grid-template-columns:1fr; } }

/* Homepage repair: tool-lottery.com.cn */

.tool-main { max-width: 1520px; margin-inline: auto; }
.tool-ledger-layout { display: grid; grid-template-columns: minmax(14rem, .9fr) minmax(18rem, 1.15fr) minmax(19rem, 1.3fr); align-items: start; gap: 1.15rem; }
.tool-ledger-layout > div { min-width: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.tool-ledger-results { padding-top: 0; }
.tool-ledger-history { border-inline: 1px solid rgba(30, 72, 117, .2); padding-inline: 1rem; }
.tool-ledger-current { position: relative; }
.tool-ledger-current > #news { order: -2; }
.tool-ledger-current > #gallery { order: -1; }
.tool-section { min-width: 0; }
.tool-section > .tool-image-plate { margin: .65rem 0 1rem; padding: .55rem; border: 1px solid rgba(19, 58, 101, .22); background: #f2f6fb; }
.tool-image-plate img { display: block; width: auto; max-width: 100%; height: auto; max-height: 9rem; object-fit: contain; margin-inline: auto; }
.tool-ledger-bulletins { display: grid; gap: .55rem; }
.tool-ledger-bulletins > .tool-news-row { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid rgba(30, 72, 117, .22); padding: .75rem 0; }
.tool-ledger-bulletins > .tool-news-row img { display: none; }
.tool-faq-list { margin-top: 2rem; border-top: 3px double #315a80; }
.tool-faq-stack { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.tool-faq-item { border-bottom: 1px solid rgba(30, 72, 117, .22); padding: .65rem 0; }
.tool-faq-item summary { cursor: pointer; font-weight: 700; }
.tool-faq-item p { line-height: 1.8; }
@media (max-width: 980px) { .tool-ledger-layout { grid-template-columns: 1fr 1fr; } .tool-ledger-current { grid-column: 1 / -1; } }
@media (max-width: 640px) { .tool-ledger-layout, .tool-faq-stack { grid-template-columns: 1fr; } .tool-ledger-history { border-inline: 0; padding-inline: 0; } }
