/* ===== 数字彩开奖/预测页面样式 ===== */

.lottery-tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
}

.lottery-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.lottery-tab:hover {
    background: rgba(10, 74, 122, 0.06);
    color: var(--primary);
}

.lottery-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

/* 开奖号码球 */
.num-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(10, 74, 122, 0.3);
    vertical-align: middle;
}

.num-ball.mini {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin: 0 2px;
}

.pl5-nums .num-ball {
    background: linear-gradient(135deg, #7b8794 0%, #9aa5b1 100%);
    box-shadow: 0 2px 6px rgba(123, 135, 148, 0.3);
}

.empty-cell {
    text-align: center;
    color: var(--gray);
    padding: 40px 0;
}

/* ===== 预测页 ===== */
.predict-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid #e8eaed;
}

.predict-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.predict-card-header .fas {
    color: var(--accent);
}

.predict-current {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 22px 20px;
    border-bottom: 2px solid rgba(10, 74, 122, 0.1);
}

.predict-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.predict-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.predict-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.predict-ball.kill {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.predict-ball.dan {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.predict-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.predict-status {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
}

.predict-status.ok { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.predict-status.miss { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.predict-status.part { background: rgba(255, 152, 0, 0.15); color: #e65100; }
.predict-status.pending { background: rgba(10, 74, 122, 0.08); color: var(--gray); }

.predict-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.predict-history {
    width: 100%;
    border-collapse: collapse;
}

.predict-history th {
    background: rgba(10, 74, 122, 0.06);
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid rgba(10, 74, 122, 0.15);
    font-size: 13px;
    white-space: nowrap;
}

.predict-history td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

.predict-history tbody tr:hover td {
    background-color: rgba(10, 74, 122, 0.04);
}

.predict-history tbody tr:last-child td {
    border-bottom: none;
}

.result-correct { color: #28a745; font-weight: 700; }
.result-wrong { color: #dc3545; font-weight: 700; }
.result-pending { color: var(--gray); }

@media (max-width: 768px) {
    .predict-current {
        flex-direction: column;
        gap: 14px;
    }

    .predict-history {
        display: block;
        overflow-x: auto;
    }
}

/* ===== 全奇全偶两码清单 ===== */
.pair-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 22px 20px;
}

.pair-group {
    flex: 1;
    min-width: 260px;
}

.pair-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
}

.pair-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pair-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 8px;
    border-radius: 17px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.pair-ball.even {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 2px 6px rgba(10, 74, 122, 0.3);
}

.pair-ball.odd {
    background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

.pair-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.9;
    letter-spacing: 1px;
    word-break: break-all;
}

/* ===== 走势图（大表格） ===== */
.trend-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid #e8eaed;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.trend-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.trend-title .fas {
    color: var(--accent);
}

.trend-filter {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
    white-space: nowrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 16px;
    background: rgba(10, 74, 122, 0.08);
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.trend-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-range input {
    width: 96px;
    padding: 6px 10px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.trend-range input:focus {
    border-color: var(--secondary);
}

.range-sep {
    color: var(--gray);
}

.trend-range button {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #e65100 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.trend-range button:hover {
    opacity: 0.9;
}

/* ===== 专家预测页 ===== */
.predict-issue-tag {
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #e65100 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pred-kill, .pred-dan {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0 4px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.pred-kill { background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%); }
.pred-dan { background: linear-gradient(135deg, #34c759 0%, #248a3d 100%); }

.rate {
    font-weight: 600;
    color: var(--dark);
}

.rate-good {
    color: #28a745;
    font-weight: 700;
}

/* 大底查看/复制 */
.op-cell {
    white-space: nowrap;
}

.base-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(10, 74, 122, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 2px;
    white-space: nowrap;
    transition: var(--transition);
}

.base-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.base-btn.copied {
    background: #28a745;
    color: #fff;
}

/* 大底弹窗 */
.base-modal-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.base-modal {
    width: 100%;
    max-width: 620px;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.base-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.base-modal-close {
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    opacity: 0.85;
}

.base-modal-close:hover {
    opacity: 1;
}

.base-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--dark);
    word-break: break-all;
    user-select: text;
    cursor: text;
    max-height: 55vh;
}

.base-modal-foot {
    padding: 12px 20px;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.base-copy-btn {
    padding: 8px 32px;
    font-size: 14px;
    border-radius: 18px;
}

/* ===== 专家详情页 ===== */
.expert-name-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.expert-name-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.expert-title-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.12);
    color: #e65100;
    font-size: 12px;
    font-weight: 600;
}

.expert-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #e8eaed;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.expert-info-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.expert-info-main {
    flex: 1;
    min-width: 0;
}

.expert-info-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.expert-info-desc {
    font-size: 13px;
    color: var(--gray);
    margin-top: 6px;
    line-height: 1.6;
}

.expert-info-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.info-stat {
    text-align: center;
}

.info-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

.info-stat-label {
    font-size: 12px;
    color: var(--gray);
}

.game-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(10, 74, 122, 0.08);
    color: var(--primary);
}

@media (max-width: 768px) {
    .expert-info-card {
        flex-direction: column;
        text-align: center;
    }

    .expert-info-stats {
        gap: 16px;
    }
}

.trend-scroll {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid #e8eaed;
}

.trend-canvas {
    position: relative;
}

.trend-table {
    border-collapse: collapse;
    font-size: 12px;
    color: var(--dark);
}

.trend-table th,
.trend-table td {
    border: 1px solid #e3e6ea;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.trend-table thead th {
    background: linear-gradient(135deg, #0a4a7a 0%, #1a6db3 100%);
    color: #fff;
    font-weight: 600;
}

.trend-table thead tr:first-child th {
    height: 34px;
}

.trend-table thead tr:last-child th {
    height: 26px;
}

.th-seq { width: 30px; }
.th-issue { width: 60px; }
.th-code { width: 66px; }
.th-type { width: 42px; }
.th-sum { width: 36px; }
.th-span { width: 36px; }
.th-d { width: 24px; }

.trend-table tbody td {
    height: 24px;
}

.td-seq { color: var(--gray); }
.td-issue { color: var(--primary); font-weight: 600; }
.td-sum, .td-span { color: var(--accent); font-weight: 700; }

.code-red {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    margin: 0 1px;
    border-radius: 50%;
    background: #c00;
    color: #fff;
    font-weight: 700;
}

.cell { color: #aab2bd; }

.cell.hit {
    font-weight: 700;
}

.hit-fbu { background: #fde8e8; color: #c00; }
.hit-bai { background: #e3f0fd; color: #1565c0; }
.hit-shi { background: #e6f6ec; color: #1e7e34; }
.hit-ge { background: #fff3e8; color: #e65100; }

/* 彩色号码球 */
.tball {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tb-fbu { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c00); }
.tb-bai { background: radial-gradient(circle at 30% 30%, #5aa7e8, #1565c0); }
.tb-shi { background: radial-gradient(circle at 30% 30%, #6fc47a, #2e7d32); }
.tb-ge { background: radial-gradient(circle at 30% 30%, #ffb066, #e65100); }

/* ===== 数字彩首页（排列三/福彩3D 两大模块） ===== */
.home-modules {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-module {
    flex: 1;
    min-width: 320px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid #e8eaed;
    padding: 20px 22px;
    animation: fadeIn 0.5s ease forwards;
}

.game-module-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(10, 74, 122, 0.1);
    margin-bottom: 14px;
}

.game-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
}

.game-name .fas {
    color: var(--accent);
}

.draw-issue {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.draw-balls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 14px 0;
}

.draw-balls .tball {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 20px;
}

.draw-date {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}

.game-predict {
    text-align: center;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 14px;
    min-height: 22px;
}

.pred-kill, .pred-dan {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    margin: 0 3px;
    vertical-align: middle;
}

.pred-kill { background: linear-gradient(135deg, #ff6b00 0%, #e65100 100%); }
.pred-dan { background: linear-gradient(135deg, #34c759 0%, #248a3d 100%); }

.game-links {
    display: flex;
    gap: 8px;
}

.game-links a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 18px;
    background: rgba(10, 74, 122, 0.08);
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.game-links a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.expert-avatar {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(10, 74, 122, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .home-modules {
        flex-direction: column;
    }
}

.stat-row td {
    background: #f4f7fb;
    font-weight: 600;
    border-top: 2px solid #d9e2ee;
}

.stat-name { color: var(--primary); }
.stat-v { color: var(--gray); }

.trend-lines {
    z-index: 5;
}

.trend-lines .tline {
    stroke: #898989;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
