* { box-sizing: border-box; }

:root {
    --bg: #f4f7fb;
    --card: #fff;
    --text: #162235;
    --muted: #738096;
    --line: #e7ecf3;
    --blue: #2f6bea;
    --red: #ef4548;
    --green: #22a47a;
    --orange: #d47a17;
    --shadow: 0 5px 20px rgba(35, 55, 85, .045);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.dark {
    --bg: #101521;
    --card: #171e2c;
    --text: #f2f5fb;
    --muted: #9aa6b9;
    --line: #283244;
    --shadow: 0 5px 20px rgba(0, 0, 0, .18);
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    height: 72px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    width: min(1180px, calc(100% - 28px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.menu-btn {
    width: 42px;
    height: 42px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex: 0 0 auto;
}
.menu-btn span { width: 30px; height: 3px; border-radius: 4px; background: var(--text); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(145deg, #3b8cf5, #1767db);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -1px;
    border: 2px solid #e8f1ff;
    box-shadow: 0 3px 9px rgba(47, 107, 234, .16);
}
.brand-logo span { color: #ffe45e; }
.brand-name { font-size: 22px; font-weight: 800; white-space: nowrap; letter-spacing: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.theme-btn, .header-btn {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.theme-btn { width: 42px; font-size: 25px; line-height: 1; }
.header-btn { padding: 0 13px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.login-btn { min-width: 54px; }
.register-btn { min-width: 58px; background: var(--blue); color: #fff; border-color: var(--blue); }

.mobile-menu {
    position: fixed;
    inset: 72px auto 0 0;
    width: min(300px, 82vw);
    z-index: 45;
    background: var(--card);
    border-right: 1px solid var(--line);
    box-shadow: 8px 0 28px rgba(20,35,60,.12);
    transform: translateX(-105%);
    transition: transform .22s ease;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-inner { width: 100%; margin: 0; padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 5px; }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 16px; }
.mobile-menu a:hover { background: var(--bg); }

.page { width: min(1120px, calc(100% - 28px)); margin: 14px auto 35px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

.countdown-card { padding: 26px 30px 20px; }
.countdown-top, .countdown-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 18px; }
.countdown-top strong { color: var(--muted); font-size: 20px; font-weight: 600; }
.countdown-value { margin: 20px 0 17px; text-align: center; font-size: 58px; line-height: 1; font-weight: 800; letter-spacing: 1px; }
.countdown-bottom { font-size: 16px; }
.countdown-bottom b { font-weight: 500; color: var(--muted); }
.progress-track { height: 7px; margin-top: 18px; background: #edf1f7; border-radius: 8px; overflow: hidden; }
body.dark .progress-track { background: #293244; }
.progress-bar { width: 0; height: 100%; background: var(--blue); border-radius: inherit; transition: width .35s linear; }

.latest-card { margin-top: 14px; padding: 25px 30px 22px; }
.section-heading { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 18px; font-weight: 500; white-space: nowrap; }
.section-heading strong { color: var(--muted); font-weight: 600; }
.latest-main { margin-top: 24px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; flex-wrap: nowrap; min-width: 0; }
.numbers { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; flex: 0 0 auto; }
.number, .sum-box {
    width: 68px;
    height: 68px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    font-size: 34px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(30, 50, 80, .035);
    flex: 0 0 auto;
}
body.dark .number, body.dark .sum-box { background: #1d2636; border-color: #2b3546; }
.plus, .equals { font-size: 20px; color: #8b97aa; font-weight: 600; flex: 0 0 auto; }
.sum-box { width: 78px; background: var(--red); border-color: var(--red); color: #fff; }
.result-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; flex: 0 0 auto; }
.tag { min-width: 64px; height: 58px; padding: 0 12px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 800; flex: 0 0 auto; }
.tag-red { background: var(--red); }
.tag-blue { background: var(--blue); }

.latest-meta {
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.meta-item { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 15px; }
.meta-item + .meta-item { border-left: 1px solid var(--line); }
.meta-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 9px; font-size: 14px; font-weight: 800; }
.meta-shape.meta-orange { background: #fff4df; color: var(--orange); }
.meta-shape.meta-green { background: #e8f8f2; color: var(--green); }
.meta-shape.meta-gray { background: #eef1f5; color: #68758a; }
.meta-span { background: #edf4ff; color: var(--blue); }
.meta-dragon.meta-red { background: #fff0f0; color: var(--red); }
.meta-dragon.meta-blue { background: #edf4ff; color: var(--blue); }
.meta-dragon.meta-gray { background: #eef1f5; color: #68758a; }
body.dark .meta-shape.meta-orange, body.dark .meta-shape.meta-green, body.dark .meta-shape.meta-gray, body.dark .meta-span, body.dark .meta-dragon.meta-red, body.dark .meta-dragon.meta-blue, body.dark .meta-dragon.meta-gray { background: #263143; }

.history-card { margin-top: 14px; padding: 28px 18px 22px; }
.history-title { display: flex; justify-content: space-between; align-items: center; padding: 0 3px 18px; }
.history-title h2 { margin: 0; font-size: 27px; }
.history-title p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.refresh-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 11px; padding: 10px 18px; cursor: pointer; font-size: 15px; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.col-issue { width: 17%; }
.col-time { width: 15%; }
.col-number { width: 31%; }
.col-combo { width: 15%; }
.col-shape { width: 12%; }
.col-dragon { width: 10%; }
th, td { height: 70px; padding: 0 5px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
th { background: #f8fafc; color: #68758a; font-size: 15px; font-weight: 700; }
body.dark th { background: #1d2636; }
tbody tr:last-child td { border-bottom: 0; }
td { font-size: 15px; font-weight: 600; }
.issue { font-weight: 800; }
.draw-number { font-weight: 800; letter-spacing: 0; }
.table-tag { display: inline-block; padding: 7px 8px; border-radius: 8px; font-weight: 800; margin: 0 1px; font-size: 13px; }
.table-red { background: #ef4548; color: #fff; }
.table-blue { background: #2f6bea; color: #fff; }
.table-green { background: #22a47a; color: #fff; }
.table-orange { background: #d47a17; color: #fff; }
.table-gray { background: #718096; color: #fff; }
body.dark .table-red { background: #ef4548; color: #fff; }
body.dark .table-blue { background: #2f6bea; color: #fff; }
body.dark .table-green { background: #22a47a; color: #fff; }
body.dark .table-orange { background: #d47a17; color: #fff; }
body.dark .table-gray { background: #718096; color: #fff; }
.loading, .error { color: var(--muted); padding: 24px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 17px; }
.pagination button { min-width: 84px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); font-size: 14px; cursor: pointer; }
.pagination button:disabled { opacity: .42; cursor: default; }
.pagination span { min-width: 65px; text-align: center; color: var(--muted); font-size: 14px; }
.site-footer { width: min(1120px, calc(100% - 28px)); margin: 0 auto 28px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 760px) {
    .site-header { height: 64px; }
    .header-inner { width: calc(100% - 18px); gap: 6px; }
    .menu-btn { width: 38px; height: 38px; }
    .menu-btn span { width: 27px; height: 3px; }
    .brand { gap: 7px; }
    .brand-logo { width: 40px; height: 40px; font-size: 13px; }
    .brand-name { font-size: 19px; }
    .header-actions { gap: 5px; }
    .theme-btn, .header-btn { height: 40px; border-radius: 12px; }
    .theme-btn { width: 40px; font-size: 23px; }
    .header-btn { padding: 0 10px; font-size: 15px; }
    .login-btn { min-width: 49px; }
    .register-btn { min-width: 51px; }
    .mobile-menu { inset: 64px auto 0 0; width: min(290px, 82vw); }
    .mobile-menu-inner { width: 100%; padding: 12px 10px 18px; }
    .mobile-menu a { padding: 13px 14px; font-size: 15px; }
    .page { width: calc(100% - 18px); margin-top: 9px; }
    .countdown-card { padding: 22px 16px 17px; border-radius: 20px; }
    .countdown-top { font-size: 16px; }
    .countdown-top strong { font-size: 17px; }
    .countdown-value { margin: 20px 0 18px; font-size: 52px; }
    .countdown-bottom { font-size: 14px; }
    .progress-track { margin-top: 15px; height: 6px; }
    .latest-card { padding: 21px 12px 17px; border-radius: 20px; }
    .section-heading { gap: 5px; font-size: 16px; }
    .latest-main { margin-top: 20px; gap: 9px; width: 100%; }
    .numbers { gap: 5px; width: auto; }
    .number, .sum-box { width: 52px; height: 52px; border-radius: 12px; font-size: 27px; }
    .sum-box { width: 60px; }
    .plus, .equals { font-size: 16px; }
    .result-tags { gap: 5px; }
    .tag { min-width: 54px; height: 44px; border-radius: 11px; font-size: 19px; }
    .latest-meta { margin-top: 16px; padding-top: 13px; }
    .meta-item { gap: 5px; font-size: 13px; }
    .meta-badge { min-width: 34px; height: 29px; padding: 0 7px; font-size: 13px; }
    .history-card { padding: 25px 5px 18px; border-radius: 20px; }
    .history-title { padding: 0 7px 17px; }
    .history-title h2 { font-size: 26px; }
    .history-title p { font-size: 14px; }
    .refresh-btn { padding: 9px 16px; font-size: 14px; }
    .table-wrap { border-radius: 14px; }
    th, td { height: 70px; padding: 0 2px; }
    th { font-size: 14px; }
    td { font-size: 14px; }
    .table-tag { padding: 6px 5px; font-size: 12px; border-radius: 7px; }
    .draw-number { font-size: 14px; letter-spacing: 0; }
    .pagination { gap: 12px; padding-top: 15px; }
    .pagination button { min-width: 78px; height: 36px; }
}

@media (max-width: 430px) {
    .brand-name { font-size: 17px; }
    .header-actions { gap: 3px; }
    .theme-btn { width: 36px; }
    .header-btn { padding: 0 7px; font-size: 14px; }
    .login-btn { min-width: 44px; }
    .register-btn { min-width: 47px; }
    .latest-card { padding-left: 9px; padding-right: 9px; }
    .latest-main { gap: 4px; }
    .numbers { gap: 2px; }
    .number, .sum-box { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
    .sum-box { width: 46px; }
    .plus, .equals { font-size: 12px; }
    .result-tags { gap: 3px; }
    .tag { min-width: 45px; height: 40px; padding: 0 7px; font-size: 17px; border-radius: 10px; }
    .meta-item { gap: 3px; font-size: 12px; }
    .meta-badge { min-width: 31px; padding: 0 6px; font-size: 12px; }
    .col-issue { width: 18%; }
    .col-time { width: 15%; }
    .col-number { width: 31%; }
    .col-combo { width: 15%; }
    .col-shape { width: 12%; }
    .col-dragon { width: 10%; }
    th, td { font-size: 12px; }
    .table-tag { font-size: 11px; padding: 5px 4px; }
    .draw-number { font-size: 12px; }
}

/* 实时分析大厅 */
.analysis-card { margin-top: 14px; padding: 25px 18px 20px; }
.analysis-title { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 17px; }
.analysis-title h2 { margin: 0; font-size: 27px; }
.analysis-title p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.analysis-tabs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.analysis-tab-group { display: grid; grid-template-columns: 90px repeat(5, 1fr); gap: 8px; align-items: center; }
.analysis-tab-group b { color: var(--muted); font-size: 13px; text-align: center; }
.analysis-tabs button { height: 42px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.analysis-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.analysis-list { display: grid; gap: 10px; }
.analysis-item { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: var(--card); }
.analysis-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.analysis-algorithm { font-size: 16px; font-weight: 800; }
.analysis-issue { color: var(--muted); font-size: 13px; }
.analysis-main { display: flex; align-items: center; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.analysis-label { color: var(--muted); font-size: 13px; }
.analysis-value { display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; border-radius: 8px; background: #edf4ff; color: var(--blue); font-size: 14px; font-weight: 800; }
.analysis-value.red { background: #fff0f0; color: var(--red); }
.analysis-value.orange { background: #fff6ea; color: var(--orange); }
.analysis-value.green { background: #ebfaf5; color: var(--green); }
.analysis-exclude { color: var(--red); background: #fff0f0; }
.analysis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 13px; }
.analysis-baseline,.detail-baseline { margin-top: 8px; color: var(--muted); font-size: 11px; }
.analysis-stat { min-width: 0; padding: 9px 5px; border-radius: 9px; background: #f7f9fc; text-align: center; }
body.dark .analysis-stat { background: #1d2636; }
.analysis-stat span { display: block; color: var(--muted); font-size: 11px; }
.analysis-stat b { display: block; margin-top: 3px; font-size: 14px; }
.analysis-method { margin-top: 10px; color: var(--muted); font-size: 12px; }
.analysis-status { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.analysis-status.pending { background: #edf4ff; color: var(--blue); }
.analysis-status.hit { background: #ebfaf5; color: var(--green); }
.analysis-status.miss { background: #fff0f0; color: var(--red); }
.analysis-loading, .analysis-empty { color: var(--muted); text-align: center; padding: 28px 10px; }
.analysis-note { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
.analysis-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px 0 2px}.analysis-pagination button{min-width:76px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font-size:13px;font-weight:700;cursor:pointer}.analysis-pagination button:disabled{opacity:.4;cursor:default}.analysis-pagination span{min-width:82px;text-align:center;color:var(--muted);font-size:13px}

@media (max-width: 760px) {
    .analysis-card { padding: 24px 8px 18px; border-radius: 20px; }
    .analysis-title { padding: 0 6px 16px; }
    .analysis-title h2 { font-size: 26px; }
    .analysis-title p { font-size: 13px; }
    .analysis-tabs { gap: 7px; }
    .analysis-tab-group { grid-template-columns: 72px repeat(5, 1fr); gap: 5px; }
    .analysis-tabs button { height: 40px; font-size: 14px; }
    .analysis-item { padding: 14px 12px; }
    .analysis-algorithm { font-size: 15px; }
    .analysis-stats { gap: 5px; }
}

.analysis-page-card { margin-top: 0; min-height: 60vh; }
@media (max-width: 760px) { .analysis-page-card { margin-top: 0; } }

/* 算法大厅 v2 */
.analysis-sort{margin:-5px 2px 13px;color:var(--muted);font-size:12px}
.analysis-item{padding:15px 16px}
.analysis-item.top-algo{border-color:#dce7fb;box-shadow:0 4px 16px rgba(47,107,234,.06)}
.analysis-code-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.analysis-rank{width:26px;height:26px;border-radius:8px;background:#f0f3f8;color:#64738a;display:grid;place-items:center;font-size:12px;font-weight:800;flex:0 0 auto}
.analysis-item.top-algo .analysis-rank{background:var(--blue);color:#fff}
.analysis-name{margin-top:3px;color:var(--muted);font-size:11px}
.favorite-btn{width:36px;height:36px;padding:0;border:1px solid var(--line);background:var(--card);color:#8a96a8;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;line-height:1;flex:0 0 auto}.favorite-btn.active{color:#e3a11b;border-color:#f0d28a;background:#fff9e9}.favorite-btn:active{transform:scale(.96)}
body.dark .favorite-btn.active{background:#2d291f;border-color:#66501f}
.analysis-issue-row{display:flex;justify-content:space-between;align-items:center;margin-top:9px;color:var(--muted);font-size:12px}
.rate-bars{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}
.rate-line{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.rate-line b{font-size:15px;color:var(--text);margin-left:auto}.rate-line em{font-style:normal;font-size:10px;color:var(--muted)}
.rate-track{height:6px;background:#edf1f6;border-radius:99px;overflow:hidden;margin-top:6px}.rate-track i{display:block;height:100%;background:var(--blue);border-radius:99px}
.analysis-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}
.detail-btn{height:33px;padding:0 13px;border:0;border-radius:9px;background:var(--blue);color:#fff;font-size:12px;font-weight:700;cursor:pointer}.detail-btn.secondary{background:#f1f4f8;color:#506077}.analysis-exclude{background:#fff0f0;color:var(--red)}
body.dark .detail-btn.secondary{background:#252e3e;color:#aeb8c8}
.rate-number{font-size:15px!important}.rate-number.excellent{color:#2f6bea!important}.rate-number.good{color:#3b78d8!important}.rate-number.normal{color:var(--text)!important}.rate-number.low{color:#d17a17!important}.rate-number.neutral{color:var(--muted)!important}.analysis-stat.stat-positive{background:#edf9f4}.analysis-stat.stat-positive b{color:#229c78}.analysis-stat.stat-warning{background:#fff4ee}.analysis-stat.stat-warning b{color:#d46f31}.analysis-stat.stat-highlight{background:#fff8e8}.analysis-stat.stat-highlight b{color:#c58a18}.analysis-stat.stat-neutral b{color:var(--text)}body.dark .analysis-stat.stat-positive{background:#20352f}body.dark .analysis-stat.stat-warning{background:#392b25}body.dark .analysis-stat.stat-highlight{background:#39321f}.analysis-pagination{display:flex;align-items:center;justify-content:center;gap:7px;padding:16px 0 3px;flex-wrap:wrap}.analysis-pagination button{height:34px;min-width:38px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font-size:12px;font-weight:700;cursor:pointer}.analysis-pagination .page-arrow{padding:0 11px}.analysis-pagination button:disabled{opacity:.38;cursor:default}.analysis-pagination .page-number.active{background:var(--blue);border-color:var(--blue);color:#fff}.page-numbers{display:flex;gap:5px}
.algo-modal{position:fixed;inset:0;background:rgba(13,22,36,.52);z-index:100;display:none;align-items:center;justify-content:center;padding:16px}.algo-modal.open{display:flex}
.algo-modal-box{width:min(760px,100%);max-height:min(88vh,760px);overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.algo-modal-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--card);z-index:2}.algo-modal-head h3{margin:0;font-size:18px}.algo-modal-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.algo-modal-close{width:34px;height:34px;border:0;border-radius:9px;background:#f0f3f7;color:#66748a;font-size:23px;cursor:pointer}
.detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:15px 18px}.detail-summary>div{background:#f7f9fc;border-radius:10px;text-align:center;padding:10px 5px}.detail-summary span,.detail-summary em{display:block;color:var(--muted);font-size:10px;font-style:normal}.detail-summary b{display:block;font-size:18px;margin:3px 0}
body.dark .detail-summary>div{background:#1d2636}
.detail-table-wrap{padding:0 18px 18px;overflow:auto}.detail-table{width:100%;border-collapse:collapse}.detail-table th,.detail-table td{height:46px;border-bottom:1px solid var(--line);text-align:center;padding:0 7px;white-space:nowrap;font-size:12px}.detail-table th{background:#f7f9fc;color:var(--muted)}body.dark .detail-table th{background:#1d2636}
@media(max-width:760px){.analysis-item-head{align-items:flex-start}.favorite-btn{width:36px;height:36px;font-size:19px}.rate-bars{gap:10px}.detail-summary{grid-template-columns:repeat(2,1fr)}.algo-modal{padding:8px}.algo-modal-box{max-height:92vh;border-radius:15px}.detail-table-wrap{padding-left:10px;padding-right:10px}.analysis-actions{margin-top:10px}.analysis-page-card{padding-left:9px;padding-right:9px}}
/* 详情弹窗与卡片统一统计色彩 */
.detail-summary>div.excellent b,.detail-summary>div.good b{color:#2f6bea}
.detail-summary>div.low b{color:#d17a17}
.detail-summary>div.stat-positive{background:#edf9f4}
.detail-summary>div.stat-positive b{color:#229c78}
.detail-summary>div.stat-warning{background:#fff4ee}
.detail-summary>div.stat-warning b{color:#d46f31}
.detail-summary>div.stat-highlight{background:#fff8e8}
.detail-summary>div.stat-highlight b{color:#c58a18}
body.dark .detail-summary>div.stat-positive{background:#20352f}
body.dark .detail-summary>div.stat-warning{background:#392b25}
body.dark .detail-summary>div.stat-highlight{background:#39321f}
.detail-summary>div.excellent,.detail-summary>div.good{background:#f1f6ff}
.detail-summary>div.low{background:#fff7ed}
body.dark .detail-summary>div.excellent,body.dark .detail-summary>div.good{background:#202d45}
body.dark .detail-summary>div.low{background:#382c23}

.analysis-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap;flex:0 0 auto}.favorite-page-btn{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 13px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);text-decoration:none;font-size:13px;font-weight:700}.favorite-page-btn:hover{border-color:#c9d2ff;color:#4f46e5;background:#f7f8ff}@media(max-width:560px){.analysis-head-actions{gap:8px;flex-wrap:nowrap}.favorite-page-btn{height:34px;padding:0 10px;font-size:12px;white-space:nowrap}.analysis-title{gap:8px}.analysis-title>div:first-child{min-width:0}.analysis-title h2{white-space:nowrap}}/* 新澳门六合彩：沿用 PC28 V8 组件体系，只新增号码球/特码表现层 */
.marksix-balls{display:flex;align-items:flex-end;justify-content:center;gap:9px;margin:24px auto 8px;flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 8px}.ms-ball{width:68px;min-width:68px;height:78px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:7px 5px 5px;color:#fff;box-shadow:0 5px 12px rgba(30,50,80,.08);position:relative}.ms-ball b{font-size:31px;line-height:1;font-weight:850}.ms-ball span{width:100%;height:28px;border-radius:9px;background:rgba(255,255,255,.9);color:#4c5666;display:grid;place-items:center;font-size:16px;font-weight:800}.ball-red{background:#ef4548!important;color:#fff}.ball-blue{background:#2f6bea!important;color:#fff}.ball-green{background:#22a447!important;color:#fff}.ms-ball.special{box-shadow:0 0 0 4px #ffe5e5,0 7px 16px rgba(239,69,72,.15)}.ms-plus{font-style:normal;color:#8a94a5;font-weight:800;font-size:20px;padding-bottom:27px}.meta-five{background:#fff7df;color:#b98500}.meta-odd{background:#fff0f0;color:var(--red)}.table-ball{display:inline-grid;place-items:center;width:31px;height:31px;border-radius:8px;color:#fff;font-weight:850;font-size:13px;margin:0 2px}.table-ball.ball-red{background:#ef4548}.table-ball.ball-blue{background:#2f6bea}.table-ball.ball-green{background:#22a447}.table-plus{margin:0 4px;color:#7c8799}.table-red{background:#ef4548!important}.table-blue{background:#2f6bea!important}.table-green{background:#22a447!important}.table-gray{background:#718096!important}
@media(max-width:760px){.marksix-balls{justify-content:flex-start;gap:5px;margin-top:18px}.ms-ball{width:48px;min-width:48px;height:61px;border-radius:12px;padding:5px 3px 4px}.ms-ball b{font-size:22px}.ms-ball span{height:22px;border-radius:7px;font-size:13px}.ms-plus{font-size:16px;padding-bottom:21px}.latest-card{padding-left:10px;padding-right:10px}.table-ball{width:26px;height:26px;font-size:11px;margin:0 1px}.table-plus{margin:0 2px}.history-card{overflow:hidden}.history-card .table-wrap{overflow:hidden}.history-card table{min-width:0}}
.analysis-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.analysis-detail{line-height:1.9;color:var(--text)}
/* ===== 新澳门六合彩 V4 审计修复：开奖记录 / 预测大厅 ===== */
.home-history-table,.records-table{width:100%;border-collapse:collapse;table-layout:fixed}.home-history-table th,.home-history-table td,.records-table th,.records-table td{border-bottom:1px solid var(--line);height:72px;padding:8px 10px;text-align:center;vertical-align:middle}.home-history-table th,.records-table th{background:#f7f9fc;color:var(--muted);font-size:12px}.issue-date b{display:block;font-size:15px;color:var(--text)}.issue-date small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.history-balls-cell{white-space:nowrap;display:flex;align-items:center;justify-content:flex-start;gap:2px;overflow:hidden}.history-balls-cell .table-ball{position:relative;vertical-align:middle}.history-balls-cell .table-ball small{display:block;font-size:8px;line-height:1;margin-top:1px;font-weight:700}.history-balls-cell .table-plus{vertical-align:middle}.records-table .history-balls-cell{text-align:left;padding-left:14px}
@media(max-width:760px){.home-history-table th,.home-history-table td,.records-table th,.records-table td{height:70px;padding:6px 3px}.home-history-table col:first-child{width:21%!important}.home-history-table col:last-child{width:79%!important}.issue-date b{font-size:12px}.issue-date small{font-size:10px}.history-balls-cell{overflow:hidden;padding-left:1px!important;padding-right:1px!important}.history-balls-cell .table-ball{width:33px;height:42px;border-radius:10px;font-size:14px;margin:0}.history-balls-cell .table-ball small{font-size:8px;line-height:1.1}.history-balls-cell .table-plus{margin:0 1px;font-size:14px}}
/* 移动端最新开奖：7个号码完整落在卡片内，不横向截断 */
@media(max-width:760px){.marksix-balls{width:100%;justify-content:space-between;gap:0;overflow:hidden;padding:4px 0 8px}.ms-ball{width:40px;min-width:40px;height:56px;border-radius:11px;padding:5px 2px 4px}.ms-ball b{font-size:19px}.ms-ball span{height:20px;border-radius:6px;font-size:12px}.ms-plus{width:7px;min-width:7px;text-align:center;font-size:13px;padding-bottom:20px}.latest-card .section-heading{font-size:14px;white-space:nowrap}.latest-card .latest-meta{margin-top:10px}}
@media(min-width:761px){.marksix-balls{overflow:hidden}.ms-plus{width:14px;min-width:14px;text-align:center}}
/* PC28 风格预测大厅 */
.analysis-tabs{grid-template-columns:repeat(4,1fr)}.analysis-item{padding:17px 18px;border-radius:16px}.analysis-code-wrap{gap:10px}.analysis-rank{width:28px;height:28px}.analysis-algorithm{font-size:17px}.analysis-name{font-size:12px}.analysis-issue-row{margin-top:10px}.analysis-main{margin-top:13px}.rate-bars{gap:18px}.rate-track{height:7px}.analysis-stats{gap:8px}.analysis-stat{padding:11px 5px;border-radius:11px}.analysis-stat b{font-size:16px}.analysis-actions{margin-top:13px}.detail-btn{height:38px;padding:0 18px;font-size:13px}.favorite-btn{width:38px;height:38px}.favorite-btn.active{color:#e0a21a;border-color:#ecd18b;background:#fff9e9}.detail-current{margin:0 18px 12px;padding:13px;border-radius:12px;background:#f7f9fc}.detail-current .analysis-main{margin-top:8px}.detail-draw{min-width:0;width:100%}.detail-draw-issue{font-weight:800}.detail-draw-issue small{margin-left:6px;color:var(--muted);font-weight:500}.detail-balls{display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px;margin-top:7px;min-width:0}.detail-ball-wrap{display:inline-flex;flex-direction:column;align-items:center;gap:2px}.detail-ball{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:8px;color:#fff;font-size:11px;font-weight:800}.detail-ball.special{box-shadow:0 0 0 2px #e0a21a}.detail-special-label{font-size:8px;color:#d08a12;line-height:1}.detail-ball.red,.bt-ball.red{background:#ef4548}.detail-ball.blue,.bt-ball.blue{background:#2f6bea}.detail-ball.green,.bt-ball.green{background:#22a447}.detail-row-five{margin-top:7px;padding-top:6px;border-top:1px dashed var(--line);font-size:11px;color:var(--muted)}.detail-row-five b{color:#b67a17;font-size:13px}.detail-draw-sub{margin-top:6px;color:var(--muted);font-size:10px}.detail-table td{height:70px}.detail-table small{color:var(--muted);font-size:9px}.detail-table .analysis-status{white-space:nowrap}.detail-special-only{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:7px;min-width:0}.detail-special-ball{width:44px;height:50px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px 4px 4px;color:#fff;box-shadow:0 3px 8px rgba(30,50,80,.08);box-sizing:border-box}.detail-special-ball b{font-size:20px;line-height:1;font-weight:850}.detail-special-ball span{width:100%;height:17px;border-radius:6px;background:rgba(255,255,255,.9);color:#4c5666;display:grid;place-items:center;font-size:10px;font-weight:800}.detail-special-ball.red{background:#ef4548}.detail-special-ball.blue{background:#2f6bea}.detail-special-ball.green{background:#22a447}.detail-special-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.detail-special-meta strong{font-size:10px;color:var(--muted);font-weight:700}.detail-special-five{font-size:10px;color:var(--muted);white-space:nowrap}.detail-special-five b{color:#b67a17;font-size:12px}
@media(max-width:760px){.analysis-tab-group{grid-template-columns:1fr 1fr 1fr}.analysis-tab-group b{grid-column:1/-1;text-align:left;padding-left:2px}.analysis-item{padding:15px 12px}.rate-bars{gap:10px}.analysis-stats{gap:5px}.analysis-stat{padding:9px 3px}.analysis-stat span{font-size:10px}.analysis-stat b{font-size:14px}.analysis-actions .detail-btn{height:36px;padding:0 15px}.detail-summary{grid-template-columns:repeat(2,1fr)}.detail-table-wrap{padding-left:9px;padding-right:9px}.detail-table th,.detail-table td{padding:0 4px;font-size:10px}.detail-balls{gap:4px}.detail-ball{width:25px;height:25px;font-size:9px}}

/* 20260930 detail/prediction compact mobile refinement */
.analysis-prediction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,auto));gap:6px;align-items:center;justify-content:start;min-width:0}
.analysis-prediction-grid .analysis-value{min-width:31px;justify-content:center}
.detail-special-only{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:0;min-width:0}
.detail-special-ball{width:38px;height:43px;border-radius:9px;padding:4px 3px 3px;box-shadow:none}
.detail-special-ball b{font-size:17px}
.detail-special-ball span{height:14px;border-radius:5px;font-size:9px}
.detail-five-ball{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:14px;font-weight:850;box-shadow:none}
.detail-five-ball.metal{background:#d5a52a}
.detail-five-ball.wood{background:#2e9b63}
.detail-five-ball.water{background:#3978c9}
.detail-five-ball.fire{background:#e05a45}
.detail-five-ball.earth{background:#a87945}
.detail-table td{height:58px}
@media(max-width:760px){.analysis-prediction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:max-content;max-width:100%}.analysis-prediction-grid .analysis-value{min-width:28px;padding:0 8px}.detail-special-ball{width:36px;height:41px}.detail-special-ball b{font-size:16px}.detail-five-ball{width:30px;height:30px;font-size:13px}.detail-table td{height:54px}}
/* 20260930：仅模型详情历史期数的6肖/9肖按3个一行；主界面预测卡片保持原样 */
.detail-history-prediction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 4px;align-items:center;justify-items:center;width:100%;max-width:108px;margin:0 auto}
.detail-history-prediction-grid .analysis-value{min-width:28px;justify-content:center;white-space:nowrap}
@media(max-width:760px){.detail-history-prediction-grid{max-width:96px;gap:3px}.detail-history-prediction-grid .analysis-value{min-width:25px;padding:0 5px;font-size:11px}}


/* 20260930 v11：详情历史预测排版与波色/五行标签 */
.analysis-value.prediction-value{border-radius:8px;min-width:32px;justify-content:center;white-space:nowrap}
.analysis-value.wave-red,.analysis-value.wave-blue,.analysis-value.wave-green,.analysis-value.five-metal,.analysis-value.five-wood,.analysis-value.five-water,.analysis-value.five-fire,.analysis-value.five-earth{color:#fff!important;border:0!important}
.analysis-value.wave-red{background:#ef4548!important}.analysis-value.wave-blue{background:#2f6bea!important}.analysis-value.wave-green{background:#22a447!important}
.analysis-value.five-metal{background:#d5a52a!important}.analysis-value.five-wood{background:#2e9b63!important}.analysis-value.five-water{background:#3978c9!important}.analysis-value.five-fire{background:#e05a45!important}.analysis-value.five-earth{background:#a87945!important}
.detail-history-prediction-grid{grid-template-columns:repeat(3,28px);gap:5px;max-width:96px;justify-content:center;align-content:center}
.detail-history-prediction-grid.sx4{grid-template-columns:repeat(2,32px);max-width:70px;gap:5px}
.detail-history-prediction-grid.head3,.detail-history-prediction-grid.kill_sx3{grid-template-columns:repeat(3,28px);max-width:96px}
.detail-history-prediction-grid .analysis-value{margin:0;min-width:0;padding:0 5px}
.detail-table td:nth-child(2){vertical-align:middle;white-space:normal}
.detail-table tr.history-row.sx6 td,.detail-table tr.history-row.sx9 td{height:92px}
.detail-table tr.history-row.sx4 td,.detail-table tr.history-row.head3 td,.detail-table tr.history-row.kill_sx3 td{height:66px}
@media(max-width:760px){.detail-history-prediction-grid{grid-template-columns:repeat(3,25px);gap:5px;max-width:90px}.detail-history-prediction-grid.sx4{grid-template-columns:repeat(2,30px);max-width:66px}.detail-history-prediction-grid.head3,.detail-history-prediction-grid.kill_sx3{grid-template-columns:repeat(3,25px);max-width:90px}.detail-history-prediction-grid .analysis-value{min-width:0;padding:0 4px;font-size:11px}.detail-table tr.history-row.sx6 td,.detail-table tr.history-row.sx9 td{height:94px}.detail-table tr.history-row.sx4 td,.detail-table tr.history-row.head3 td,.detail-table tr.history-row.kill_sx3 td{height:68px}}

/* 20260930 v12：模型详情手机端最终排版优化，仅作用于详情弹窗 */
.detail-table{table-layout:fixed;width:100%}
.detail-table .detail-col-issue{width:22%}
.detail-table .detail-col-prediction{width:43%}
.detail-table .detail-col-actual{width:21%}
.detail-table .detail-col-result{width:14%}
.detail-table th,.detail-table td{padding:4px 3px;overflow:hidden}
.detail-table td:nth-child(2){overflow:visible}
.detail-history-prediction-grid{width:100%;max-width:none;margin:0;display:grid;align-items:center;justify-content:center;justify-items:center;gap:5px}
.detail-history-prediction-grid.sx4{grid-template-columns:repeat(4,minmax(24px,1fr));max-width:150px}
.detail-history-prediction-grid.sx6{grid-template-columns:repeat(3,minmax(25px,1fr));max-width:112px}
.detail-history-prediction-grid.sx9{grid-template-columns:repeat(3,minmax(25px,1fr));max-width:112px;row-gap:5px}
.detail-history-prediction-grid.head3,.detail-history-prediction-grid.kill_sx3{grid-template-columns:repeat(3,minmax(25px,1fr));max-width:112px}
.detail-history-prediction-grid .analysis-value{min-width:0;padding:0 5px;white-space:nowrap}
.detail-special-only{gap:5px;justify-content:center}
.detail-special-ball,.detail-five-ball{width:36px;height:41px;border-radius:9px;box-sizing:border-box}
.detail-special-ball{padding:4px 3px 3px}
.detail-special-ball b{font-size:16px}
.detail-special-ball span{height:14px;border-radius:5px;font-size:9px}
.detail-five-ball{display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:850}
.detail-table tr.history-row.sx4 td{height:58px}
.detail-table tr.history-row.sx6 td{height:82px}
.detail-table tr.history-row.sx9 td{height:112px}
.detail-table tr.history-row.head3 td,.detail-table tr.history-row.kill_sx3 td{height:66px}
@media(max-width:760px){
  .detail-table-wrap{padding-left:8px;padding-right:8px}
  .detail-table th,.detail-table td{padding:4px 2px;font-size:10px}
  .detail-table .detail-col-issue{width:21%}
  .detail-table .detail-col-prediction{width:46%}
  .detail-table .detail-col-actual{width:20%}
  .detail-table .detail-col-result{width:13%}
  .detail-history-prediction-grid.sx4{grid-template-columns:repeat(4,1fr);max-width:144px;gap:4px}
  .detail-history-prediction-grid.sx6,.detail-history-prediction-grid.sx9{grid-template-columns:repeat(3,1fr);max-width:108px;gap:4px}
  .detail-history-prediction-grid.head3,.detail-history-prediction-grid.kill_sx3{grid-template-columns:repeat(3,1fr);max-width:108px;gap:4px}
  .detail-history-prediction-grid .analysis-value{font-size:11px;padding:0 4px;min-width:0}
  .detail-special-ball,.detail-five-ball{width:34px;height:39px}
  .detail-special-ball b{font-size:16px}
  .detail-five-ball{font-size:13px}
  .detail-table tr.history-row.sx4 td{height:56px}
  .detail-table tr.history-row.sx6 td{height:80px}
  .detail-table tr.history-row.sx9 td{height:112px}
}

/* ===== 4949 风格开奖球：最新开奖 + 首页开奖记录统一 ===== */
.marksix-balls{align-items:center;gap:10px;margin:22px auto 10px;padding:6px 2px 10px;overflow:hidden}
.ms-ball{width:52px;min-width:52px;height:52px;border-radius:50%;padding:0;display:grid;place-items:center;background:#ef4548;color:#fff;box-shadow:0 2px 6px rgba(30,50,80,.12);border:2px solid rgba(255,255,255,.9);position:relative}
.ms-ball b{font-size:22px;line-height:1;font-weight:850;text-shadow:0 1px 1px rgba(0,0,0,.08)}
.ms-ball span{display:none}
.ms-ball.special{box-shadow:0 0 0 3px #fff,0 0 0 5px #e0a21a,0 3px 9px rgba(30,50,80,.15)}
.ms-plus{width:auto;min-width:auto;padding:0;font-size:17px;color:#9aa4b3;line-height:1}
.history-balls-cell{align-items:center;gap:5px}
.history-balls-cell .table-ball{width:34px;height:34px;border-radius:50%;margin:0;display:inline-grid;place-items:center;font-size:13px;font-weight:850;border:1px solid rgba(255,255,255,.85);box-shadow:0 1px 4px rgba(30,50,80,.1)}
.history-balls-cell .table-ball small{display:none}
.history-balls-cell .table-plus{margin:0 2px;font-size:14px;color:#8b96a8}

@media(max-width:760px){
  .marksix-balls{justify-content:space-between;gap:0;margin-top:18px;padding:5px 1px 9px}
  .ms-ball{width:40px;min-width:40px;height:40px;border-radius:50%;border-width:1.5px}
  .ms-ball b{font-size:17px}
  .ms-ball.special{box-shadow:0 0 0 2px #fff,0 0 0 3.5px #e0a21a,0 2px 6px rgba(30,50,80,.12)}
  .ms-plus{font-size:13px}
  .history-balls-cell{gap:3px}
  .history-balls-cell .table-ball{width:29px;height:29px;border-radius:50%;font-size:11px}
  .history-balls-cell .table-plus{margin:0 1px;font-size:12px}
}

/* ===== 20261003：按 4949lt 开奖页参考图重做首页开奖区 ===== */
.latest-4949-card{margin-top:0;padding:27px 20px 22px;border:3px solid #2489d9;border-radius:25px;box-shadow:0 4px 14px rgba(36,137,217,.06)}
.latest-brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 19px}
.latest-brand-title{font-size:22px;font-weight:850;color:#173b68}
.live-status{display:flex;align-items:center;gap:7px;color:#2aa866;font-size:13px;font-weight:800}
.live-status i{width:12px;height:12px;border-radius:50%;background:#22c66d;box-shadow:0 0 0 5px #e9f9ef}
.latest-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 23px}
.latest-issue-title{font-size:21px;font-weight:850;color:#17283d}.latest-issue-title strong{color:#2175cf}.latest-issue-title span{color:#162235;margin-left:4px}
.latest-head-actions{display:flex;align-items:center;gap:8px}.latest-mini-btn{height:42px;padding:0 14px;border:1px solid #d5e7f7;border-radius:13px;background:#eaf5fd;color:#155da5;font-size:14px;font-weight:800;white-space:nowrap}
.marksix-balls{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0;padding:0 4px 20px;overflow:visible}
.ms-ball{width:68px;min-width:68px;height:68px;border-radius:50%;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff!important;color:#18212d;border:7px solid #2d91e8;box-shadow:none;position:relative}
.ms-ball.blue{border-color:#238fe5}.ms-ball.red{border-color:#ef4147}.ms-ball.green{border-color:#16c553}
.ms-ball b{font-size:27px;line-height:1;font-weight:900;text-shadow:none}.ms-ball span{display:block;margin-top:5px;font-size:11px;line-height:1;font-weight:850;color:#18212d;white-space:nowrap}
.ms-ball.special{box-shadow:none;border-width:7px}.ms-plus{width:17px;min-width:17px;margin-top:22px;padding:0;color:#1e2734;font-size:22px;line-height:1;font-style:normal;font-weight:850}
.next-draw-panel{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 19px;padding:18px 22px;border-radius:20px;background:#e7f4fd;border:1px solid #d5eafa;color:#2169aa}
.next-draw-panel>div:first-child{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:10px;row-gap:6px}.next-draw-panel small{font-size:14px;color:#62778e}.next-draw-panel strong{font-size:22px;color:#1f6fc0}.next-draw-panel strong b{font-size:25px}.next-draw-panel span{grid-column:1/-1;font-size:13px;color:#708398}.next-countdown{padding-left:22px;border-left:1px solid #bfd9ed}.next-countdown b{font-size:31px;color:#1968b5;letter-spacing:.5px}
.latest-action-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.latest-action-btn{height:52px;border:1px solid #d1e5f5;border-radius:17px;background:#e9f5fd;color:#1762a9;font-size:18px;font-weight:850}
.history-card{margin-top:14px;padding:25px 9px 20px;border-radius:24px}.history-title{padding:0 10px 19px}.history-title h2{font-size:28px;font-weight:850}.history-title p{font-size:15px}.refresh-btn{border-radius:15px;padding:11px 20px;font-size:16px}
.table-wrap{border-radius:18px;border:1px solid #e4eaf1}.home-history-table th{height:64px;background:#f7f9fc;color:#65758a;font-size:16px}.home-history-table td{height:78px}.issue-date{text-align:left!important;padding-left:19px!important}.issue-date b{display:block;font-size:16px;font-weight:850}.issue-date small{display:block;margin-top:5px;color:#7a8798;font-size:13px;font-weight:600}.history-balls-cell{display:flex;align-items:center;justify-content:flex-start;gap:6px;padding-left:8px!important;overflow:visible!important}
.history-balls-cell .table-ball{width:37px;height:37px;border-radius:50%;margin:0;display:grid;place-items:center;background:#fff!important;color:#18212d;font-size:14px;font-weight:900;border:4px solid #238fe5;box-shadow:none}.history-balls-cell .table-ball.red{border-color:#ef4147}.history-balls-cell .table-ball.blue{border-color:#238fe5}.history-balls-cell .table-ball.green{border-color:#16c553}.history-balls-cell .table-plus{margin:0 2px;font-size:15px;color:#1f2733}
@media(max-width:760px){
 .latest-4949-card{padding:23px 17px 20px;border-width:2px;border-radius:24px}.latest-brand-row{margin-bottom:18px}.latest-brand-title{font-size:21px}.live-status{font-size:12px}.latest-head-row{margin-bottom:21px}.latest-issue-title{font-size:19px}.latest-head-actions{gap:5px}.latest-mini-btn{height:38px;padding:0 9px;font-size:12px;border-radius:11px}.marksix-balls{gap:4px;padding:0 0 19px}.ms-ball{width:56px;min-width:56px;height:56px;border-width:6px}.ms-ball b{font-size:22px}.ms-ball span{font-size:9px;margin-top:4px}.ms-ball.special{border-width:6px}.ms-plus{width:12px;min-width:12px;margin-top:19px;font-size:18px}.next-draw-panel{padding:16px 16px;margin-bottom:16px;border-radius:17px}.next-draw-panel strong{font-size:18px}.next-draw-panel strong b{font-size:21px}.next-draw-panel span{font-size:11px}.next-countdown{padding-left:15px}.next-countdown b{font-size:22px}.latest-action-btn{height:48px;border-radius:15px;font-size:16px}.history-card{padding:23px 4px 18px}.history-title{padding:0 8px 17px}.history-title h2{font-size:27px}.home-history-table th{height:60px;font-size:14px}.home-history-table td{height:72px}.issue-date{padding-left:13px!important}.issue-date b{font-size:14px}.issue-date small{font-size:11px}.history-balls-cell{gap:4px;padding-left:3px!important}.history-balls-cell .table-ball{width:31px;height:31px;border-width:3px;font-size:11px}.history-balls-cell .table-plus{font-size:12px;margin:0}
}
@media(max-width:430px){
 .latest-4949-card{padding-left:12px;padding-right:12px}.latest-brand-title{font-size:19px}.latest-head-actions .latest-mini-btn:first-child{display:none}.latest-issue-title{font-size:17px}.marksix-balls{gap:1px}.ms-ball{width:43px;min-width:43px;height:43px;border-width:5px}.ms-ball b{font-size:17px}.ms-ball span{font-size:7px;margin-top:2px}.ms-ball.special{border-width:5px}.ms-plus{font-size:15px;margin-top:14px;width:9px;min-width:9px}.next-draw-panel{padding:14px 12px}.next-draw-panel small{font-size:12px}.next-draw-panel strong{font-size:16px}.next-draw-panel strong b{font-size:19px}.next-countdown b{font-size:18px}.latest-action-btn{height:45px;font-size:15px}.history-balls-cell .table-ball{width:27px;height:27px;border-width:3px;font-size:10px}.history-balls-cell{gap:2px}
}
.history-balls-cell .table-ball.ball-red{border-color:#ef4147;background:#fff!important;color:#18212d}.history-balls-cell .table-ball.ball-blue{border-color:#238fe5;background:#fff!important;color:#18212d}.history-balls-cell .table-ball.ball-green{border-color:#16c553;background:#fff!important;color:#18212d}

/* ===== 20261003 R3：最新开奖与开奖记录统一号码球；生肖/五行移到球下方 ===== */
.latest-4949-card .marksix-balls{align-items:flex-start;justify-content:space-between;gap:6px;padding:0 2px 20px;overflow:visible}
.ms-ball-wrap{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;flex:1}
.latest-4949-card .ms-ball{width:64px;min-width:64px;height:64px;border-radius:50%;box-sizing:border-box;background:#fff!important;color:#18212d;border:5px solid #238fe5;box-shadow:none;display:grid;place-items:center;padding:0}
.latest-4949-card .ms-ball.red{border-color:#ef4147}.latest-4949-card .ms-ball.blue{border-color:#238fe5}.latest-4949-card .ms-ball.green{border-color:#16c553}
.latest-4949-card .ms-ball b{font-size:26px;color:#18212d;text-shadow:none}
.latest-4949-card .ms-ball.special{box-shadow:none;border-width:5px}
.ms-ball-meta{display:flex;align-items:center;justify-content:center;gap:2px;margin-top:5px;min-height:16px;color:#18212d;font-size:10px;font-weight:850;line-height:1;white-space:nowrap}
.ms-ball-meta i{font-style:normal;color:#65758a;font-weight:700}
.latest-4949-card .ms-plus{flex:0 0 15px;width:15px;min-width:15px;margin-top:25px;font-size:21px;color:#1f2733}
.history-balls-cell{justify-content:space-between!important;gap:4px!important;padding-left:8px!important;padding-right:8px!important}
.history-balls-cell .table-ball{width:43px;height:43px;min-width:43px;border-radius:50%;border:4px solid #238fe5;background:#fff!important;color:#18212d!important;font-size:15px;font-weight:900;box-sizing:border-box;box-shadow:none}
.history-balls-cell .table-ball.red{border-color:#ef4147}.history-balls-cell .table-ball.blue{border-color:#238fe5}.history-balls-cell .table-ball.green{border-color:#16c553}
.history-balls-cell .table-plus{flex:0 0 13px;margin:0!important;font-size:17px;color:#1f2733}
.home-history-pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 0 2px}.home-history-pagination button{height:38px;min-width:76px;border:1px solid #d9e2ea;border-radius:10px;background:#fff;color:#1e5f9d;font-size:14px;font-weight:800;cursor:pointer}.home-history-pagination button:disabled{opacity:.38;cursor:default}.home-history-pagination span{min-width:52px;text-align:center;color:#69788a;font-size:13px;font-weight:700}
.scratch-modal{display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:18px}.scratch-modal.open{display:flex}.scratch-backdrop{position:absolute;inset:0;background:rgba(12,24,40,.58)}.scratch-card{position:relative;z-index:1;width:min(420px,calc(100vw - 36px));padding:25px 20px 20px;border-radius:22px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.25);text-align:center}.scratch-close{position:absolute;right:10px;top:8px;width:36px;height:36px;border:0;border-radius:50%;background:#f3f6f9;color:#536174;font-size:25px;line-height:1;cursor:pointer}.scratch-title{font-size:21px;font-weight:900;color:#173b68}.scratch-subtitle{margin-top:6px;color:#758497;font-size:13px}.scratch-board{position:relative;margin:18px auto 10px;width:100%;height:150px;border-radius:16px;overflow:hidden;background:#f7f9fc;border:1px solid #e1e7ee}.scratch-reveal{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f7fbff}.scratch-result-title{font-size:15px;font-weight:900;color:#1f6fc0;margin-bottom:14px}.scratch-result-balls{display:flex;align-items:center;justify-content:center;gap:6px}.scratch-result-balls>b{color:#273344;font-size:18px}.scratch-result-ball{width:40px;height:40px;border-radius:50%;border:4px solid #238fe5;background:#fff;display:flex;align-items:center;justify-content:center;color:#18212d;font-size:13px;font-weight:900;position:relative}.scratch-result-ball.red{border-color:#ef4147}.scratch-result-ball.blue{border-color:#238fe5}.scratch-result-ball.green{border-color:#16c553}.scratch-result-ball small{position:absolute;top:43px;white-space:nowrap;font-size:8px;font-weight:800;color:#566576}.scratch-hint{font-size:12px;color:#8794a3}
@media(max-width:760px){
 .latest-4949-card .marksix-balls{gap:3px}.latest-4949-card .ms-ball{width:56px;min-width:56px;height:56px;border-width:5px}.latest-4949-card .ms-ball b{font-size:22px}.ms-ball-meta{font-size:9px;margin-top:5px}.latest-4949-card .ms-plus{flex-basis:11px;width:11px;min-width:11px;margin-top:22px;font-size:18px}
 .history-balls-cell{gap:3px!important;padding-left:5px!important;padding-right:5px!important}.history-balls-cell .table-ball{width:39px;height:39px;min-width:39px;border-width:3px;font-size:13px}.history-balls-cell .table-plus{flex-basis:10px;font-size:15px}
}
@media(max-width:430px){
 .latest-4949-card .marksix-balls{gap:1px}.latest-4949-card .ms-ball{width:48px;min-width:48px;height:48px;border-width:4px}.latest-4949-card .ms-ball b{font-size:19px}.ms-ball-meta{font-size:8px;margin-top:4px;gap:1px}.latest-4949-card .ms-plus{flex-basis:9px;width:9px;min-width:9px;margin-top:18px;font-size:16px}
 .history-balls-cell{gap:2px!important;padding-left:4px!important;padding-right:4px!important}.history-balls-cell .table-ball{width:36px;height:36px;min-width:36px;border-width:3px;font-size:12px}.history-balls-cell .table-plus{font-size:14px}
 .home-history-pagination{padding-top:14px}.scratch-card{padding:23px 12px 18px}.scratch-result-balls{gap:3px}.scratch-result-ball{width:34px;height:34px;border-width:3px;font-size:11px}.scratch-result-ball small{top:37px;font-size:7px}
}

/* ===== 20261003 R4：开奖记录与最新开奖统一信息层；刮码直接覆盖在开奖区域 ===== */
.latest-scratch-area{position:relative;width:100%;min-height:96px}
.latest-scratch-area .marksix-balls{position:relative;z-index:1}
#latestScratchCanvas{display:none;position:absolute;z-index:5;left:0;top:0;width:100%;height:100%;border-radius:12px;touch-action:none;cursor:crosshair}
.latest-scratch-area.scratch-active #latestScratchCanvas{display:block}
.table-ball-wrap{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;flex:0 0 auto;min-width:0}
.history-balls-cell .table-ball-wrap .table-ball{display:grid;margin:0}
.table-ball-meta{display:block;color:#465466;font-size:9px;font-weight:800;line-height:1;white-space:nowrap;text-align:center}
.home-history-table .history-balls-cell{align-items:flex-start}
.home-history-table .table-ball{flex:0 0 auto}
@media(max-width:760px){
  .latest-scratch-area{min-height:84px}
  .history-balls-cell{gap:2px!important}
  .table-ball-wrap{gap:3px}
  .table-ball-meta{font-size:8px}
  .history-balls-cell .table-ball{width:34px;height:34px;min-width:34px;border-width:3px;font-size:12px}
  .history-balls-cell .table-plus{flex:0 0 9px;font-size:14px;margin-top:10px!important}
}
@media(max-width:430px){
  .latest-scratch-area{min-height:78px}
  .history-balls-cell{justify-content:space-between!important;padding-left:3px!important;padding-right:3px!important}
  .history-balls-cell .table-ball{width:33px;height:33px;min-width:33px;border-width:3px;font-size:11px}
  .table-ball-meta{font-size:7px;letter-spacing:-.2px}
  .history-balls-cell .table-plus{font-size:13px;flex-basis:8px;margin-top:9px!important}
}


/* ===== 20261003 R5：开奖刮码、间距与模型详情统一修正 ===== */
.latest-scratch-area{min-height:108px}
.latest-scratch-area .marksix-balls{gap:10px;justify-content:center;overflow:visible}
.ms-ball-wrap{position:relative;display:flex;flex-direction:column;align-items:center;flex:0 0 auto}
.ms-ball{position:relative;overflow:hidden}
.ms-ball-scratch{position:absolute;inset:0;width:100%;height:100%;display:none;border-radius:50%;z-index:3;touch-action:none;cursor:crosshair}
.ms-ball-scratch[style*="display: block"]{display:block!important}
@media(max-width:760px){
 .latest-scratch-area{min-height:96px}
 .latest-scratch-area .marksix-balls{gap:7px;justify-content:center}
 .latest-4949-card .ms-ball{width:48px;min-width:48px;height:48px;border-width:5px}
 .latest-4949-card .ms-ball b{font-size:19px}
 .latest-4949-card .ms-ball-meta{font-size:8px;margin-top:5px}
 .latest-4949-card .ms-plus{width:10px;min-width:10px;flex-basis:10px;margin-top:18px;font-size:17px}
}
@media(max-width:430px){
 .latest-scratch-area{min-height:88px}
 .latest-scratch-area .marksix-balls{gap:5px;padding-left:0;padding-right:0}
 .latest-4949-card .ms-ball{width:44px;min-width:44px;height:44px;border-width:4px}
 .latest-4949-card .ms-ball b{font-size:18px}
 .latest-4949-card .ms-ball-meta{font-size:7px;margin-top:4px;letter-spacing:-.2px}
 .latest-4949-card .ms-plus{width:9px;min-width:9px;flex-basis:9px;margin-top:16px;font-size:16px}
}
/* 模型详情：实际开奖使用与首页特别号一致的彩环号码球；预测值整体居中 */
.detail-special-only{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin-top:7px;min-width:0}
.detail-special-ball{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;background:#fff!important;color:#18212d!important;border:5px solid #238fe5;box-shadow:none;position:relative;box-sizing:border-box}
.detail-special-ball.red{border-color:#ef4147}.detail-special-ball.blue{border-color:#238fe5}.detail-special-ball.green{border-color:#16c553}
.detail-special-ball b{font-size:18px;line-height:1;font-weight:900;color:#18212d}
.detail-special-ball span{position:absolute;top:52px;left:50%;transform:translateX(-50%);white-space:nowrap;width:auto;height:auto;background:none;color:#465466;font-size:9px;font-weight:800}
.detail-five-ball{position:absolute;top:52px;left:calc(50% + 13px);width:auto;height:auto;background:none!important;color:#b67a17;font-size:9px;font-weight:800;white-space:nowrap;border:0;box-shadow:none}
.detail-table .detail-col-actual{width:22%}
.detail-table td:nth-child(3){vertical-align:middle;text-align:center}
.detail-current{text-align:center}
.detail-current .analysis-main{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;text-align:center}
.detail-current .analysis-label{width:100%;text-align:center}
.detail-history-prediction-grid{margin:0 auto!important;justify-content:center;justify-items:center}
.detail-table td:nth-child(2){text-align:center!important;vertical-align:middle}
@media(max-width:760px){
 .detail-special-ball{width:40px;height:40px;border-width:4px}.detail-special-ball b{font-size:15px}.detail-special-ball span{top:43px;font-size:8px}.detail-five-ball{top:43px;font-size:8px}
 .detail-current .analysis-main{gap:4px}
 .detail-table .detail-col-actual{width:22%}
}

/* ===== 20261003 R6：最终交互与移动端间距校正 ===== */
.latest-4949-card .latest-scratch-area .marksix-balls{gap:12px;overflow:visible}
.latest-4949-card .ms-ball-scratch{pointer-events:auto}
@media(max-width:760px){
  .latest-4949-card .latest-scratch-area .marksix-balls{gap:8px;justify-content:center}
  .latest-4949-card .ms-ball{width:46px;min-width:46px;height:46px}
  .latest-4949-card .ms-plus{width:10px;min-width:10px;flex-basis:10px}
  .detail-current .analysis-main{width:100%;justify-content:center;align-items:center}
}
@media(max-width:430px){
  .latest-4949-card .latest-scratch-area .marksix-balls{gap:8px;justify-content:center}
  .latest-4949-card .ms-ball{width:43px;min-width:43px;height:43px}
  .latest-4949-card .ms-ball b{font-size:18px}
  .latest-4949-card .ms-plus{width:10px;min-width:10px;flex-basis:10px}
}

/* ===== 20261003 R7：最终审计修复 ===== */
.latest-4949-card .latest-scratch-area .marksix-balls{gap:8px;align-items:flex-start}
.latest-4949-card .ms-ball-wrap{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 auto;min-width:0}
.latest-4949-card .ms-ball-scratch{position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:20;display:none;border-radius:10px;touch-action:none;cursor:crosshair;pointer-events:auto}
.latest-4949-card .ms-ball-wrap:has(.ms-ball-scratch[style*="display: block"]) .ms-ball-scratch{display:block}
.latest-4949-card .ms-ball-meta{position:relative;z-index:1;margin-top:5px;color:#18212d;font-size:8px;font-weight:800;line-height:1;white-space:nowrap;text-align:center}
@media(max-width:760px){
  .latest-4949-card .latest-scratch-area .marksix-balls{gap:6px;justify-content:center}
  .latest-4949-card .ms-ball{width:42px;min-width:42px;height:42px}
  .latest-4949-card .ms-ball b{font-size:18px}
  .latest-4949-card .ms-ball-meta{font-size:7px;margin-top:5px}
  .latest-4949-card .ms-plus{width:9px;min-width:9px;flex-basis:9px;margin-top:15px;font-size:15px}
}
@media(max-width:430px){
  .latest-4949-card .latest-scratch-area .marksix-balls{gap:6px;padding-left:0;padding-right:0}
  .latest-4949-card .ms-ball{width:39px;min-width:39px;height:39px;border-width:4px}
  .latest-4949-card .ms-ball b{font-size:17px}
  .latest-4949-card .ms-ball-meta{font-size:7px;margin-top:5px;letter-spacing:-.15px}
  .latest-4949-card .ms-plus{width:8px;min-width:8px;flex-basis:8px;margin-top:14px;font-size:14px}
}
/* 模型详情：预测框内数据居中；不改变预测大厅主卡片布局 */
.detail-current .analysis-main,.detail-table td:nth-child(2){text-align:center!important}
.detail-history-prediction-grid{margin-left:auto!important;margin-right:auto!important;justify-content:center!important;justify-items:center!important;align-items:center!important}
.detail-special-only{justify-content:center!important}

/* PTX history displays all seven draw numbers and their zodiac labels. */
.detail-ptx-numbers{display:grid;grid-template-columns:repeat(4,minmax(25px,1fr));gap:3px;max-width:150px}.detail-ptx-number{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--border-color,#ddd);border-radius:6px;padding:3px 1px;font-size:11px;line-height:1.2}.detail-ptx-number small{font-size:10px;opacity:.8}
