@charset "UTF-8";

/* ==================================================================
   主题：澳門十點半（lhc2230 UI 复刻）
   纯展示层：只消费与默认前台完全相同的数据数组。
   设计令牌取自目标站计算样式，未改动任何 HTML 契约。
   ================================================================== */

:root {
    --red: #cf1322;
    --red-deep: #a8071a;
    --red-bright: #c8102e;
    --gold: #ffd700;
    --gold-deep: #faad14;
    --gold-soft: #ffe08a;
    --cream: #fff5e6;
    --cream-2: #ffe0b8;
    --cream-3: #fdf3e0;
    --paper: #fffdf5;
    --wood: #8b2500;
    --wood-2: #6b1a00;
    --ink: #1b1108;
    --ink-2: #4a3a28;
    --ball-red: #cf1322;
    --ball-green: #17843c;
    --ball-blue: #1060b0;
    --shell: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
    min-height: 100%;
    background: url("../img/b-g.jpg") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
}
body {
    max-width: var(--shell);
    margin: 0 auto;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    background: rgba(255, 252, 246, .92);
    box-shadow: 0 0 26px rgba(80, 30, 0, .22);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; border: 0; }
button { font-family: inherit; }

/* ---------------- 顶部横幅 ---------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: url("../img/1.jpg") repeat-x center / auto 100%;
}
.logo-box { position: relative; overflow: hidden; }
.logo-box > img,
.logo-box > a > img { width: 100%; height: auto; }
.logo-box .logo-link { display: block; }
.header .bank {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}
.header .bank a {
    display: block;
    padding: 6px 10px;
    color: #fff8d6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(60, 10, 0, .8);
    border: 1px solid rgba(255, 215, 0, .75);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(207, 19, 34, .92), rgba(168, 7, 26, .92));
    box-shadow: 0 2px 8px rgba(60, 10, 0, .38);
}

/* ---------------- 彩种切换 ---------------- */
.select-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(145deg, rgba(139, 37, 0, .92) 0%, rgba(107, 26, 0, .92) 100%);
    border-bottom: 2px solid var(--gold-deep);
}
.select-top li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 34px;
    padding: 3px 2px;
    overflow: hidden;
    color: #ffeccc;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(250, 173, 20, .45);
    border-radius: 6px;
    background: linear-gradient(145deg, #a03020 0%, #8b2500 100%);
}
.select-top li span { overflow: hidden; text-overflow: ellipsis; }
.select-top li.tab-active {
    color: #fff6c4;
    border: 2px solid var(--gold);
    background: linear-gradient(-45deg, #cf1322, #a8071a, #cf1322, #a8071a);
    background-size: 200% 200%;
    box-shadow: 0 0 18px rgba(250, 173, 20, .45), 0 3px 10px rgba(168, 7, 26, .45), inset 0 2px 4px rgba(255, 255, 255, .22);
    animation: themeGradientShift 3s ease infinite;
}
@keyframes themeGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------------- 快捷栏目导航 ---------------- */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    background: linear-gradient(135deg, #fef0e0 0%, #fde0c0 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(168, 7, 26, .12);
}
.quick-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 4px;
    overflow: hidden;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 2px rgba(207, 19, 34, .15);
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: linear-gradient(145deg, #fff5e6, #ffe0b8);
    box-shadow: 0 2px 8px rgba(212, 162, 78, .22);
    transition: color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #cf1322 0%, #a8071a 100%);
    opacity: 0;
    transition: opacity .25s ease;
}
.quick-nav-item > span { position: relative; z-index: 1; display: block; }
.quick-nav-item:hover { color: var(--gold-soft); border-color: var(--gold-deep); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(168, 7, 26, .3); }
.quick-nav-item:hover::before { opacity: 1; }
.quick-nav-item:active { transform: translateY(-1px); }
.quick-nav-item.is-wide { grid-column: 1 / 6; }

/* ---------------- 广告 / 公告 ---------------- */
.banner2 { margin: 6px 0 0; background: #fff; }
.banner2 img { width: 100%; height: auto; }

.tips {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    margin: 6px 8px;
    padding: 0 12px;
    overflow: hidden;
    color: var(--red-deep);
    font-size: 13px;
    font-weight: 700;
    line-height: 38px;
    background: linear-gradient(135deg, #fff8e2, #ffeec4);
    border: 1px solid rgba(250, 173, 20, .55);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(200, 148, 30, .16);
}
.tips::before {
    content: "公告";
    flex: 0 0 auto;
    padding: 2px 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 18px;
    background: linear-gradient(145deg, #cf1322, #a8071a);
    border-radius: 4px;
}
.tips-track { flex: 1; overflow: hidden; }
.tips-track span { display: inline-block; padding-left: 100%; white-space: nowrap; animation: themeMarquee 22s linear infinite; }
@keyframes themeMarquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------------- 开奖卡 ---------------- */
.kjq { margin: 8px; }
.kj-box {
    position: relative;
    padding: 10px;
    background: linear-gradient(180deg, #fdf3e0 0%, #fbe9cd 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(168, 7, 26, .18), inset 0 0 0 1px rgba(255, 255, 255, .65);
}
.kj-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}
.kj-tabs button {
    min-height: 34px;
    padding: 3px 2px;
    overflow: hidden;
    color: #8b3a1a;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(250, 173, 20, .6);
    border-radius: 6px;
    background: linear-gradient(180deg, #fffaf0, #fdeed6);
    box-shadow: inset 0 1px 0 #fff;
    cursor: pointer;
}
.kj-tabs button.active {
    color: #ffe98a;
    border: 2px solid var(--gold);
    background: linear-gradient(-45deg, #cf1322, #a8071a, #cf1322, #a8071a);
    background-size: 200% 200%;
    text-shadow: 0 1px 3px rgba(80, 6, 0, .65);
    box-shadow: 0 0 14px rgba(250, 173, 20, .4), inset 0 2px 4px rgba(255, 255, 255, .2);
    animation: themeGradientShift 3s ease infinite;
}

.kj-panel { display: none; }
.kj-panel.active { display: block; }

.kj-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 2px 8px;
    color: var(--red);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}
.kj-head .kj-name { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kj-head .kj-label { flex: 0 0 auto; }
.kj-head .kj-issue {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 1px 8px;
    color: var(--gold-soft);
    font-size: 17px;
    line-height: 24px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(80, 6, 0, .6);
    border: 1px solid rgba(255, 215, 0, .8);
    border-radius: 5px;
    background: linear-gradient(145deg, #a30f1c, #7d0712);
}
.kj-clock { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.kj-clock b {
    min-width: 34px;
    padding: 2px 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
    border-radius: 5px;
    background: linear-gradient(145deg, #c2172b, #8d0a16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 6px rgba(120, 10, 20, .35);
}
.kj-clock i { color: var(--red); font-style: normal; font-size: 15px; font-weight: 900; }
.kj-diamond { flex: 0 0 auto; width: 9px; height: 9px; background: var(--gold-deep); transform: rotate(45deg); }

.kj-balls { display: flex; align-items: stretch; gap: 4px; }
.kj-ball {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #b9b1a6;
}
/* site.js 会把内层 class 覆写为 ball <color>，颜色必须挂在内层 */
.kj-ball > .ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1.1;
    color: #fff;
    text-align: center;
    background: inherit;
}
.kj-ball > .ball strong {
    display: block;
    font-size: clamp(19px, 5.4vw, 33px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.kj-ball > .ball small { display: block; font-size: clamp(10px, 2.9vw, 15px); font-weight: 900; line-height: 1.25; white-space: nowrap; }
.kj-ball > .ball.red { background: linear-gradient(180deg, #d81b2c, #b00d1c); }
.kj-ball > .ball.green { background: linear-gradient(180deg, #1c9b47, #106c2d); }
.kj-ball > .ball.blue { background: linear-gradient(180deg, #1a70c9, #0c4c92); }
.kj-ball > .ball.waiting { background: linear-gradient(180deg, #c9c1b6, #a89f93); }
.kj-ball > .ball.waiting strong { color: #fffdf5; }
.kj-plus { display: flex; flex: 0 0 14px; align-items: center; justify-content: center; color: var(--red); font-size: 22px; font-weight: 900; }

.kj-next {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 8px;
    background: #fffaf0;
    border: 1px solid rgba(250, 173, 20, .55);
    border-radius: 6px;
}
.kj-next-text { flex: 1; min-width: 0; color: #3a2a16; font-size: 13px; font-weight: 900; line-height: 1.5; }
.kj-next-text b { color: var(--red); }
.kj-next-text span { color: #6b4a1c; }
.kj-history-btn {
    flex: 0 0 auto;
    padding: 4px 10px;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 900;
    line-height: 24px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(80, 6, 0, .6);
    border: 2px solid rgba(255, 215, 0, .85);
    border-radius: 6px;
    background: linear-gradient(145deg, #cf1322, #a8071a);
    box-shadow: 0 3px 10px rgba(168, 7, 26, .3);
}
.kj-empty { padding: 22px 12px; color: #9a7a4a; font-size: 14px; text-align: center; }

/* ---------------- 区块分隔 ---------------- */
.wall-divider { height: 22px; margin: 8px 0; background: url("../img/15.jpg") repeat-x center / auto 100%; opacity: .92; }

/* ---------------- 资料栏目 ---------------- */
.center-1 { padding: 4px 0 14px; }
.conbiao { padding: 6px 8px; }
.biaotext {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 8px 12px;
    overflow: hidden;
    color: var(--gold);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(80, 6, 0, .7), 0 0 10px rgba(255, 215, 0, .35);
    border: 2px solid var(--gold-deep);
    border-radius: 8px;
    background: url("../img/biao.jpg") repeat-x center / auto 100%;
    box-shadow: 0 4px 14px rgba(120, 20, 10, .28), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.biaotext::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 215, 0, .07) 8px 9px);
    pointer-events: none;
}

.data-table-wrap { padding: 0 8px; }
.code-table {
    width: 100%;
    overflow: hidden;
    border: 3px solid var(--gold);
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    table-layout: fixed;
    background: var(--paper);
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(168, 7, 26, .12);
}
.code-table thead th {
    padding: 8px 4px;
    color: #2b1a00;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff7e4, #ffeccb);
    border-bottom: 2px solid rgba(250, 173, 20, .7);
}
.code-table td {
    padding: 7px 5px;
    color: #1b1108;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    vertical-align: middle;
    border-bottom: 1px solid rgba(250, 173, 20, .28);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.code-table tr:last-child td { border-bottom: 0; }
.code-table td:nth-child(1) { width: 26%; color: #2b1a00; }
.code-table td:nth-child(2) { width: 48%; color: #14100a; letter-spacing: .5px; }
.code-table td:nth-child(3) { width: 26%; color: var(--red); }
.code-table td:nth-child(2) mark,
.code-table td:nth-child(2) .hit-chip {
    display: inline-block;
    min-width: 26px;
    padding: 0 6px;
    color: var(--gold-soft);
    font-size: 15px;
    line-height: 24px;
    text-shadow: 0 1px 2px rgba(70, 4, 0, .7);
    border: 2px solid var(--gold);
    border-radius: 5px;
    background: linear-gradient(145deg, #cf1322, #a8071a);
    box-shadow: 0 2px 6px rgba(168, 7, 26, .35);
}
.code-table .result-hit { color: #0f8a3c; }
.code-table .result-miss { color: var(--red); }
.code-table .result-pending { color: var(--red); }
.table-footnote {
    padding: 8px 12px 2px;
    color: #9b8a72;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .5px;
}
.source-image-period { padding: 6px; color: var(--red); font-size: 14px; text-align: center; background: #fffaf0; border-bottom: 1px solid rgba(250, 173, 20, .35); }
.source-material-image { width: 100%; height: auto; }
.section-note { margin: 6px 10px 0; padding: 7px 10px; color: #6b4a1c; font-size: 12px; text-align: center; background: #fffaf0; border: 1px dashed rgba(250, 173, 20, .6); border-radius: 8px; }

/* ---------- 列表型（非表格）栏目 ---------- */
.prediction-history { padding: 8px; background: var(--paper); border: 3px solid var(--gold); border-radius: 10px; box-shadow: 0 4px 14px rgba(168, 7, 26, .12); }
.prediction-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 1px solid rgba(250, 173, 20, .3);
}
.prediction-row:last-child { border-bottom: 0; }
.prediction-meta { color: #3a2a16; font-size: 13px; font-weight: 900; }
.prediction-content { color: #14100a; overflow-wrap: anywhere; }
.prediction-content mark { padding: 0 4px; color: var(--gold-soft); background: linear-gradient(145deg, #cf1322, #a8071a); border-radius: 4px; }
.prediction-outcome { color: var(--red); font-size: 13px; font-weight: 900; text-align: right; white-space: nowrap; }
.prediction-row.hit .prediction-outcome { color: #0f8a3c; }
.prediction-row.miss .prediction-outcome { color: var(--red); }
.source-period-heading { margin: 6px 8px; padding: 5px; color: var(--gold); font-size: 14px; text-align: center; border: 1px solid rgba(255, 215, 0, .6); border-radius: 6px; background: linear-gradient(145deg, rgba(139, 37, 0, .9), rgba(107, 26, 0, .9)); }

/* ---------------- 广告位 ---------------- */
.wide-ad { display: block; margin: 8px; overflow: hidden; border: 2px solid var(--gold); border-radius: 8px; background: #fff; }
.wide-ad img { width: 100%; }
.square-ad { display: flex; align-items: center; justify-content: center; margin: 8px; padding: 8px; background: var(--paper); border: 2px solid var(--gold); border-radius: 8px; }
.square-ad img { width: 200px; height: 200px; object-fit: cover; border-radius: 6px; }

/* ---------------- 高手帖 ---------------- */
.bbs { padding: 4px 0 12px; }
.bbs-box { margin: 0 8px 8px; overflow: hidden; background: var(--paper); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 4px 14px rgba(168, 7, 26, .12); }
.bbs-box a.bbs-link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; padding: 9px 10px; border-bottom: 1px solid rgba(250, 173, 20, .3); }
.bbs-box a.bbs-link:last-child { border-bottom: 0; }
.bbs-box .author { color: #7a4a12; font-size: 12px; font-weight: 900; }
.bbs-box .badge { display: inline-block; padding: 1px 7px; color: var(--gold-soft); font-size: 11px; font-weight: 900; line-height: 18px; text-shadow: 0 1px 2px rgba(70, 4, 0, .6); border: 1px solid rgba(255, 215, 0, .8); border-radius: 4px; background: linear-gradient(145deg, #cf1322, #a8071a); }
.bbs-box strong { display: block; grid-column: 1 / -1; color: #14100a; font-size: 14px; font-weight: 900; line-height: 1.5; }
.bbs-box .bbs-meta { display: flex; align-items: center; gap: 6px; }

/* ---------------- 生肖属性图 ---------------- */
.property-chart { margin: 8px; padding: 8px; background: var(--paper); border: 2px solid var(--gold); border-radius: 10px; }
.property-chart img { width: 100%; border-radius: 6px; }

/* ---------------- 页脚 / 悬浮 / 底部导航 ---------------- */
.site-footer { padding: 14px 10px 8px; color: #7a6450; font-size: 12px; font-weight: 700; text-align: center; background: rgba(255, 250, 240, .8); border-top: 1px solid rgba(250, 173, 20, .45); }
.site-footer div + div { margin-top: 3px; color: #9b8a72; }

.floating-ad { position: fixed; z-index: 1200; right: max(10px, calc(50% - 484px)); top: 44%; width: 96px; overflow: hidden; border: 2px solid var(--gold); border-radius: 8px; box-shadow: 0 8px 20px rgba(60, 20, 0, .35); background: #fff; }
.floating-ad button { display: block; width: 100%; height: 22px; padding: 0; color: #fff3d0; font-size: 11px; font-weight: 700; line-height: 22px; text-align: center; border: 0; background: linear-gradient(145deg, #a30f1c, #7d0712); cursor: pointer; }
.floating-ad img { width: 96px; max-height: 230px; object-fit: cover; }

.bottom-nav {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--shell);
    max-width: 100%;
    height: 64px;
    margin: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 2px solid var(--gold-deep);
    background: linear-gradient(180deg, #7d2c08 0%, #5d1b04 100%);
    box-shadow: 0 -4px 16px rgba(50, 12, 0, .35);
}
.bottom-nav > a,
.bottom-nav > button { position: relative; flex: 1; min-width: 0; padding: 0; color: #ffe0a8; font: inherit; text-align: center; border: 0; background: transparent; cursor: pointer; }
.bottom-nav .nav-icon { display: block; height: 26px; color: var(--gold); font-size: 19px; line-height: 28px; }
.bottom-nav em { display: block; font-style: normal; font-size: 11px; font-weight: 900; line-height: 16px; letter-spacing: .3px; }
.bottom-nav .more span { position: absolute; left: 50%; bottom: 8px; width: 50px; height: 50px; margin-left: -25px; color: #fffbe2; font-size: 13px; font-weight: 900; line-height: 50px; text-indent: 0; border: 2px solid var(--gold); border-radius: 50%; background: linear-gradient(145deg, #cf1322, #a8071a); box-shadow: 0 6px 16px rgba(120, 10, 20, .55); }
.bottom-nav .more span::after { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(255, 215, 0, .35); border-radius: 50%; }

.bottom-more-menu {
    position: fixed;
    z-index: 1090;
    right: 0;
    bottom: 64px;
    left: 0;
    width: var(--shell);
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 24px rgba(50, 12, 0, .3);
    transform: translateY(14px);
    transition: opacity .2s, transform .2s;
}
.bottom-more-menu.open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.more-menu-link { display: block; height: 42px; color: #fff6d0; font-size: 14px; font-weight: 900; line-height: 42px; text-align: center; border-bottom: 1px solid rgba(255, 215, 0, .35); background: linear-gradient(145deg, #8b2500, #6b1a00); }
.more-menu-link.color-green { background: linear-gradient(145deg, #17843c, #0f632c); }
.more-menu-link.color-red { background: linear-gradient(145deg, #cf1322, #a8071a); }
.more-menu-link.color-blue { background: linear-gradient(145deg, #1060b0, #0b467f); }
.more-menu-link.color-orange { background: linear-gradient(145deg, #d2691e, #a04e12); }
.more-menu-link.color-navy { background: linear-gradient(145deg, #33486e, #22314b); }

.modal-open { overflow: hidden; }
.property-modal { position: fixed; z-index: 3000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 46px 14px 20px; visibility: hidden; background: rgba(30, 10, 0, .88); opacity: 0; transition: opacity .2s, visibility .2s; }
.property-modal.open { visibility: visible; opacity: 1; }
.property-modal-close { position: absolute; z-index: 1; top: 12px; right: max(14px, calc(50% - 350px)); padding: 6px 12px; color: #fff6d0; font-size: 13px; font-weight: 700; border: 1px solid rgba(255, 215, 0, .6); border-radius: 5px; background: linear-gradient(145deg, #a30f1c, #7d0712); cursor: pointer; }
.property-modal-stage { width: 680px; max-width: 100%; max-height: calc(100vh - 80px); overflow: auto; background: #fff; border: 2px solid var(--gold); border-radius: 10px; }
.property-modal-stage img { display: block; width: 100%; height: auto; }

/* ---------------- 开奖历史页 ---------------- */
.history-body { min-height: 100vh; margin: 0; background: url("../img/b-g.jpg") no-repeat center top / cover fixed; }
.history-shell { position: relative; width: var(--shell); max-width: 100%; min-height: 100vh; margin: auto; background: rgba(255, 252, 246, .94); box-shadow: 0 0 24px rgba(80, 30, 0, .22); padding-bottom: 20px; }
.history-topbar { position: relative; z-index: 20; display: flex; align-items: center; justify-content: center; height: 52px; background: url("../img/biao.jpg") repeat-x center / auto 100%; border-bottom: 2px solid var(--gold-deep); }
.history-topbar h1 { margin: 0; padding: 0 54px; color: #fff8d6; font-size: 17px; font-weight: 900; line-height: 52px; text-align: center; text-shadow: 0 2px 4px rgba(60, 10, 0, .8); }
.history-back, .history-menu-button { position: absolute; top: 8px; width: 38px; height: 36px; padding: 0; color: #fff6c4; font-size: 20px; line-height: 34px; text-align: center; border: 1px solid rgba(255, 215, 0, .65); border-radius: 6px; background: linear-gradient(145deg, rgba(207, 19, 34, .9), rgba(168, 7, 26, .9)); cursor: pointer; }
.history-back { left: 10px; }
.history-menu-button { right: 10px; font-size: 16px; }
.history-quick-menu { position: absolute; top: 54px; right: 8px; display: none; width: 150px; overflow: hidden; padding: 4px 0; border: 2px solid var(--gold); border-radius: 8px; background: rgba(70, 24, 4, .97); box-shadow: 0 10px 26px rgba(40, 10, 0, .45); }
.history-quick-menu.open { display: block; }
.history-quick-menu a, .history-quick-menu button { display: block; width: 100%; height: 38px; padding: 0 14px; color: #fff3d0; font: inherit; font-size: 13px; line-height: 38px; text-align: left; border: 0; border-bottom: 1px solid rgba(255, 215, 0, .22); background: transparent; cursor: pointer; }
.history-quick-menu a:last-child, .history-quick-menu button:last-child { border-bottom: 0; }
.history-quick-menu a:hover, .history-quick-menu button:hover { background: rgba(207, 19, 34, .8); }

.history-game-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px; background: linear-gradient(145deg, rgba(139, 37, 0, .92), rgba(107, 26, 0, .92)); border-bottom: 2px solid var(--gold-deep); }
.history-game-tabs a { overflow: hidden; color: #ffeccc; font-size: 12px; font-weight: 900; line-height: 32px; text-align: center; white-space: nowrap; text-overflow: ellipsis; border: 1px solid rgba(250, 173, 20, .45); border-radius: 6px; background: linear-gradient(145deg, #a03020, #8b2500); }
.history-game-tabs a.active { color: #fff6c4; border: 2px solid var(--gold); background: linear-gradient(-45deg, #cf1322, #a8071a, #cf1322, #a8071a); background-size: 200% 200%; box-shadow: 0 0 16px rgba(250, 173, 20, .4); animation: themeGradientShift 3s ease infinite; }
.history-year-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 7px 8px; background: #fff8e8; border-bottom: 1px solid rgba(250, 173, 20, .45); }
.history-year-tabs a { padding: 2px 12px; color: #7a4a12; font-size: 12px; font-weight: 900; line-height: 24px; border: 1px solid rgba(250, 173, 20, .55); border-radius: 5px; background: #fffdf5; }
.history-year-tabs a.active { color: #fff6c4; border-color: var(--gold); background: linear-gradient(145deg, #cf1322, #a8071a); }

.history-filter-panel { padding: 8px; background: #fff8e8; border-bottom: 1px solid rgba(250, 173, 20, .45); }
.history-filter-row { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.history-filter-row:last-child { margin-bottom: 0; }
.history-filter-row > strong { flex: 0 0 34px; padding-top: 3px; color: var(--red); font-size: 12px; font-weight: 900; line-height: 22px; text-align: center; }
.history-filter-options { display: grid; flex: 1; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.history-filter-options.animal-options { grid-template-columns: repeat(8, 1fr); }
.history-filter-options button { height: 26px; padding: 0; color: #6b4a1c; font-size: 12px; font-weight: 700; border: 1px solid rgba(250, 173, 20, .6); border-radius: 5px; background: #fffdf5; cursor: pointer; }
.history-filter-options button.active { color: #fff6c4; border-color: var(--gold); background: linear-gradient(145deg, #cf1322, #a8071a); }
.history-filter-options button.reset { color: #fff; border-color: #17843c; background: #17843c; }

.history-list { padding: 6px 0; }
.history-item { margin: 6px 8px; padding: 8px 6px 6px; background: var(--paper); border: 2px solid var(--gold); border-radius: 8px; box-shadow: 0 3px 10px rgba(168, 7, 26, .1); }
.history-item h2 { min-height: 24px; margin: 0 0 5px; padding-left: 7px; color: #2b1a00; font-size: 13px; font-weight: 900; line-height: 24px; border-left: 3px solid var(--red); }
.history-item h2 small { color: #9b8a72; font-size: 11px; font-weight: 700; }
.history-balls { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.history-ball { flex: 1; min-width: 0; text-align: center; transition: opacity .2s; }
.history-ball strong { display: block; width: 94%; margin: auto; color: #fff; font-size: 14px; font-weight: 900; line-height: 26px; border-radius: 4px; background: #b9b1a6; }
.history-ball.red strong { background: linear-gradient(180deg, #d81b2c, #b00d1c); }
.history-ball.blue strong { background: linear-gradient(180deg, #1a70c9, #0c4c92); }
.history-ball.green strong { background: linear-gradient(180deg, #1c9b47, #106c2d); }
.history-ball small { display: block; height: 16px; color: #6b4a1c; font-size: 11px; font-weight: 900; line-height: 16px; }
.history-ball.dimmed { opacity: .12; }
.special-label { flex: 0 0 26px; color: var(--red); font-size: 12px; font-weight: 900; text-align: center; }
.history-empty { padding: 60px 20px; color: #9b8a72; font-size: 14px; text-align: center; }

/* ---------------- 挑码助手 ---------------- */
.picker-body { min-height: 100vh; margin: 0; background: url("../img/b-g.jpg") no-repeat center top / cover fixed; }
.picker-shell { width: var(--shell); max-width: 100%; min-height: 100vh; margin: auto; padding-bottom: 20px; background: rgba(255, 252, 246, .94); box-shadow: 0 0 24px rgba(80, 30, 0, .22); }
.picker-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 10px; background: url("../img/biao.jpg") repeat-x center / auto 100%; border-bottom: 2px solid var(--gold-deep); }
.picker-topbar h1 { position: absolute; right: 84px; left: 84px; margin: 0; color: #fff8d6; font-size: 16px; font-weight: 900; text-align: center; text-shadow: 0 2px 4px rgba(60, 10, 0, .8); }
.picker-topbar button, .picker-topbar a { padding: 5px 11px; color: #fff6c4; font-size: 12px; font-weight: 900; border: 1px solid rgba(255, 215, 0, .65); border-radius: 6px; background: linear-gradient(145deg, rgba(207, 19, 34, .92), rgba(168, 7, 26, .92)); cursor: pointer; }
.picker-result { margin: 8px; padding: 10px; text-align: center; background: var(--paper); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 4px 14px rgba(168, 7, 26, .12); }
.picker-result-placeholder { padding: 28px 8px 14px; color: #9b8a72; font-size: 12px; }
.picker-result-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.picker-number { width: 46px; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 2px 6px rgba(120, 60, 20, .15); }
.picker-number b { display: block; height: 28px; color: #fff; font-size: 16px; font-weight: 900; line-height: 28px; }
.picker-number small { display: block; height: 20px; color: #6b4a1c; font-size: 10px; font-weight: 900; line-height: 20px; }
.picker-number.red b { background: linear-gradient(180deg, #d81b2c, #b00d1c); }
.picker-number.blue b { background: linear-gradient(180deg, #1a70c9, #0c4c92); }
.picker-number.green b { background: linear-gradient(180deg, #1c9b47, #106c2d); }
.picker-result p { margin: 8px 0 0; color: #7a6450; font-size: 12px; }
.picker-result p b { color: var(--red); font-size: 15px; }

.picker-controls { padding: 0 8px 14px; }
.picker-group { overflow: hidden; margin-bottom: 7px; border: 2px solid rgba(250, 173, 20, .55); border-radius: 8px; background: #fffdf5; }
.picker-group h2 { display: flex; align-items: center; justify-content: center; min-height: 28px; margin: 0; padding: 4px; color: var(--gold); font-size: 12px; font-weight: 900; text-align: center; border-bottom: 1px solid rgba(250, 173, 20, .5); background: linear-gradient(145deg, rgba(139, 37, 0, .92), rgba(107, 26, 0, .92)); }
.picker-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 6px; }
.picker-options.dense { grid-template-columns: repeat(6, 1fr); }
.picker-options button { min-height: 30px; padding: 2px; color: #6b4a1c; font-size: 12px; font-weight: 700; border: 1px solid rgba(250, 173, 20, .55); border-radius: 5px; background: #fffaf0; cursor: pointer; }
.picker-options button.active { color: #fff6c4; border-color: var(--gold); background: linear-gradient(145deg, #cf1322, #a8071a); }
.picker-note { padding: 0 10px 18px; color: #9b8a72; font-size: 11px; text-align: center; }

/* ---------------- 帖子页 ---------------- */
.post-page { margin: 8px; padding-bottom: 10px; background: var(--paper); border: 2px solid var(--gold); border-radius: 10px; box-shadow: 0 4px 14px rgba(168, 7, 26, .12); }
.post-page > header { border-bottom: 2px solid var(--gold-deep); background: url("../img/biao.jpg") repeat-x center / auto 100%; border-radius: 8px 8px 0 0; }
.post-page > header h1 { margin: 0; padding: 12px; color: var(--gold); font-size: 18px; font-weight: 900; text-align: center; text-shadow: 0 2px 4px rgba(80, 6, 0, .7); }
.post-page > h2 { margin: 0; padding: 12px 10px; color: var(--red); font-size: 16px; font-weight: 900; text-align: center; border-bottom: 1px solid rgba(250, 173, 20, .4); }
.post-meta { display: flex; justify-content: space-between; padding: 7px 12px; color: #6b4a1c; font-size: 12px; border-bottom: 1px solid rgba(250, 173, 20, .3); }
.post-meta b { color: #2b1a00; }
.stars { color: var(--red); letter-spacing: 1px; }
.warm-tip { margin: 8px; padding: 7px 10px; color: #a15c00; font-size: 12px; font-weight: 900; text-align: center; background: #fff6e0; border: 1px solid rgba(250, 173, 20, .55); border-radius: 6px; }
.expert-prediction-history { padding: 8px; }
.expert-prediction-row { padding: 8px 6px; color: #1b1108; font-size: 14px; font-weight: 700; line-height: 1.7; border-bottom: 1px dashed rgba(250, 173, 20, .45); }
.expert-prediction-row:last-child { border-bottom: 0; }
.prediction-issue { color: #7a4a12; font-weight: 900; }
.prediction-category { margin: 0 6px; color: var(--red); }
.prediction-values { color: #14100a; overflow-wrap: anywhere; }
.prediction-values mark { padding: 0 4px; color: var(--gold-soft); background: linear-gradient(145deg, #cf1322, #a8071a); border-radius: 4px; }
.prediction-result { margin-left: 5px; color: var(--red); font-weight: 900; white-space: nowrap; }
.result-hit .prediction-result { color: #0f8a3c; }
.result-miss .prediction-result { color: var(--red); }
.result-pending .prediction-result { color: var(--red); }
.corrected-badge { display: inline-block; margin-left: 5px; padding: 1px 6px; color: #8a5a10; font-size: 10px; line-height: 16px; border: 1px solid rgba(250, 173, 20, .6); border-radius: 4px; background: #fff8dc; vertical-align: 1px; }
.post-page blockquote { min-height: 320px; margin: 0; padding: 16px; color: #1b1108; font-size: 15px; font-weight: 700; line-height: 2; }
.post-commitment { margin: 8px 10px 0; padding: 10px; color: #7a6450; font-size: 12px; text-align: center; border: 1px dashed rgba(250, 173, 20, .6); border-radius: 8px; background: #fffaf0; }
.back-home { display: block; width: 150px; margin: 10px auto 4px; color: var(--gold-soft); font-size: 14px; font-weight: 900; line-height: 38px; text-align: center; text-shadow: 0 1px 2px rgba(80, 6, 0, .6); border: 2px solid var(--gold); border-radius: 8px; background: linear-gradient(145deg, #cf1322, #a8071a); box-shadow: 0 4px 12px rgba(168, 7, 26, .3); }

/* ---------------- 窄屏微调 ---------------- */
@media (max-width: 768px) {
    .floating-ad { display: none; }
}

@media (max-width: 420px) {
    .quick-nav { gap: 4px; padding: 6px; }
    .quick-nav-item { min-height: 40px; font-size: 11px; padding: 4px 2px; border-width: 1px; }
    .select-top li { font-size: 11px; }
    .kj-head { font-size: 13px; gap: 4px; }
    .kj-head .kj-issue { min-width: 44px; font-size: 14px; line-height: 21px; }
    .kj-clock b { min-width: 28px; font-size: 13px; line-height: 19px; }
    .kj-clock i { font-size: 12px; }
    .biaotext { font-size: 15px; min-height: 52px; letter-spacing: .5px; }
    .code-table td { font-size: 13px; padding: 6px 3px; }
    .code-table thead th { font-size: 13px; padding: 6px 2px; }
    .prediction-row { grid-template-columns: 66px minmax(0, 1fr) 76px; font-size: 12px; gap: 4px; }
    .kj-tabs button { font-size: 11px; }
    .bottom-nav em { font-size: 10px; }
}

@media (min-width: 721px) {
    body { box-shadow: 0 0 40px rgba(80, 30, 0, .28); }
}
