/* 双色球分析页 — 彩种专属（需先加载 analysis-common.css） */

.analysis-page.ssq-analysis-page .last-draw-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-page.ssq-analysis-page .last-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.analysis-page.ssq-analysis-page .balls-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.analysis-page.ssq-analysis-page .ball {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.88rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.analysis-page.ssq-analysis-page .ball-red {
    background: linear-gradient(135deg, #ff4757, #c0392b);
}

.analysis-page.ssq-analysis-page .ball-blue {
    background: linear-gradient(135deg, #3742fa, #1e3799);
}

.analysis-page.ssq-analysis-page .ball-plus {
    color: #999;
    font-size: 1rem;
    font-weight: 300;
    box-shadow: none;
    width: auto;
    height: auto;
}

.analysis-page.ssq-analysis-page .period-badge {
    background: rgba(139, 26, 26, 0.08);
    border: 1px solid rgba(139, 26, 26, 0.2);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.analysis-page.ssq-analysis-page .rec-11-box {
    display: none;
    margin: 10px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.08), rgba(55, 66, 250, 0.06));
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.analysis-page.ssq-analysis-page .rec-11-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #666;
}

.analysis-page.ssq-analysis-page .rec-11-head .red-label { color: #c0392b; }
.analysis-page.ssq-analysis-page .rec-11-head .blue-label { color: #2f5fd4; }

.analysis-page.ssq-analysis-page .rec-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.analysis-page.ssq-analysis-page .rec-ball.red {
    background: linear-gradient(145deg, #ff375f, #c4112b);
    box-shadow: 0 2px 6px rgba(255, 55, 95, 0.35);
}

.analysis-page.ssq-analysis-page .rec-ball.blue {
    background: linear-gradient(145deg, #4a90d9, #1a5faa);
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.35);
}

.analysis-page.ssq-analysis-page .recommend-ball {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: bold;
    color: #fff;
}

.analysis-page.ssq-analysis-page .recommend-ball.red {
    background: linear-gradient(135deg, #ff4757, #c0392b);
}

.analysis-page.ssq-analysis-page .recommend-ball.blue {
    background: linear-gradient(135deg, #3742fa, #1e3799);
}

.analysis-page.ssq-analysis-page .recommend-ball.kill {
    background: #e8e8e8;
    color: #999;
    text-decoration: line-through;
    position: relative;
}

.analysis-page.ssq-analysis-page .recommend-ball.kill::after {
    content: '杀';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.55rem;
    background: #666;
    color: #fff;
    padding: 1px 3px;
    border-radius: 4px;
    text-decoration: none;
}

.analysis-page.ssq-analysis-page .recommend-ball.dan {
    border: 2px solid var(--accent);
    box-shadow: 0 0 6px rgba(245, 166, 35, 0.5);
}

/* 推荐摘要迷你球 */
.analysis-page.ssq-analysis-page .summary-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.analysis-page.ssq-analysis-page .summary-ball.red {
    background: linear-gradient(145deg, #ff4757, #c0392b);
    box-shadow: 0 1px 4px rgba(192, 57, 43, 0.35);
}

.analysis-page.ssq-analysis-page .summary-ball.blue {
    background: linear-gradient(145deg, #4a90d9, #1e5faa);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.analysis-page.ssq-analysis-page .summary-ball.dan {
    border: 1.5px solid var(--accent, #f5a623);
    box-shadow: 0 0 5px rgba(245, 166, 35, 0.45);
}

.analysis-page.ssq-analysis-page .summary-ball.kill {
    background: #ececec;
    color: #aaa;
    text-decoration: line-through;
    box-shadow: none;
    position: relative;
}

.analysis-page.ssq-analysis-page .summary-ball.kill::after {
    content: '杀';
    position: absolute;
    top: -5px;
    right: -4px;
    font-size: 0.5rem;
    background: #888;
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.2;
}

.analysis-page.ssq-analysis-page .dantiao-box {
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    margin-top: 12px;
}

.analysis-page.ssq-analysis-page .dantiao-label {
    font-size: 0.78rem;
    color: #8b5a00;
    margin-bottom: 8px;
    font-weight: 600;
}

.analysis-page.ssq-analysis-page .dantiao-balls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.analysis-page.ssq-analysis-page .dantiao-ball-red {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757, #c0392b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.analysis-page.ssq-analysis-page .dantiao-ball-blue {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3742fa, #1e3799);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.analysis-page.ssq-analysis-page .dantiao-plus {
    color: #999;
    font-size: 1.1rem;
}

.analysis-page.ssq-analysis-page .history-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: bold;
    color: #fff;
}

.analysis-page.ssq-analysis-page .history-ball.red {
    background: linear-gradient(135deg, #ff4757, #c0392b);
}

.analysis-page.ssq-analysis-page .history-ball.blue {
    background: linear-gradient(135deg, #3742fa, #1e3799);
}

.analysis-page.ssq-analysis-page .miss-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.analysis-page.ssq-analysis-page .miss-num.red {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.analysis-page.ssq-analysis-page .miss-num.blue {
    background: rgba(47, 95, 212, 0.15);
    color: #2f5fd4;
}

.analysis-page.ssq-analysis-page .zone-bar.red-bar {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
}

.analysis-page.ssq-analysis-page .zone-bar.blue-bar {
    background: linear-gradient(90deg, #3742fa, #74b9ff);
}

.analysis-page.ssq-analysis-page .miss-bar.red {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
}

.analysis-page.ssq-analysis-page .miss-bar.blue {
    background: linear-gradient(90deg, #3742fa, #74b9ff);
}

.analysis-page.ssq-analysis-page .backtest-ball {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.analysis-page.ssq-analysis-page .backtest-ball.red {
    background: linear-gradient(135deg, #ff4757, #c0392b);
}

.analysis-page.ssq-analysis-page .backtest-ball.blue {
    background: linear-gradient(135deg, #3742fa, #1e3799);
}

.analysis-page.ssq-analysis-page .backtest-ball.plus {
    width: auto;
    height: auto;
    color: #bbb;
    font-weight: 400;
    font-size: 0.85rem;
    background: none;
    box-shadow: none;
}

/* 移动端：上期开奖 & 精选单挑 红蓝球单行排布 */
@media (max-width: 768px) {
    .analysis-page.ssq-analysis-page .last-draw-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .analysis-page.ssq-analysis-page .balls-row,
    .analysis-page.ssq-analysis-page .dantiao-balls {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 3px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .analysis-page.ssq-analysis-page .balls-row::-webkit-scrollbar,
    .analysis-page.ssq-analysis-page .dantiao-balls::-webkit-scrollbar {
        display: none;
    }

    .analysis-page.ssq-analysis-page .balls-row .ball:not(.ball-plus) {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .analysis-page.ssq-analysis-page .balls-row .ball-plus {
        flex-shrink: 0;
        font-size: 0.85rem;
        margin: 0 1px;
    }

    .analysis-page.ssq-analysis-page .dantiao-ball-red,
    .analysis-page.ssq-analysis-page .dantiao-ball-blue {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }

    .analysis-page.ssq-analysis-page .dantiao-plus {
        flex-shrink: 0;
        font-size: 0.9rem;
        margin: 0 1px;
    }

    .analysis-page.ssq-analysis-page .dantiao-box {
        padding: 10px 12px;
    }

    .analysis-page.ssq-analysis-page .dantiao-balls {
        justify-content: flex-start;
    }
}

/* 分享海报（跨平台导出：固定 px + Noto Sans SC，避免 Linux Headless 字体/emoji 不一致） */
.ssq-poster {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(45deg, #60d6cb 20%, #ffb680 70%);
    border: 4px solid #c00;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    font-family: 'Microsoft YaHei', 'SimHei', -apple-system, 'PingFang SC', sans-serif;
    position: relative;
    color: #333;
    font-size: 17px;
}

.ssq-poster-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 23px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ssq-poster-ball.is-red {
    background: linear-gradient(145deg, #ff375f, #c4112b);
    box-shadow: 0 4px 12px rgba(196, 17, 43, 0.35);
}

.ssq-poster-ball.is-blue {
    background: linear-gradient(145deg, #4a90d9, #1a5faa);
    box-shadow: 0 4px 12px rgba(47, 95, 212, 0.35);
}

.ssq-poster-ball.is-lg {
    width: 46px;
    height: 46px;
    font-size: 25px;
}

.ssq-poster-balls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ssq-poster-balls.is-center {
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ssq-poster-plus {
    color: #c4112b;
    font-size: 26px;
    font-weight: 800;
    line-height: 46px;
}

.ssq-poster-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.ssq-poster-card.is-red {
    border-left: 3px solid #c4112b;
}

.ssq-poster-card.is-blue {
    border-left: 3px solid #2f5fd4;
}

.ssq-poster-pool {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 248px;
    z-index: 20;
    white-space: nowrap;
}

.ssq-poster-pool-inner {
    background: rgba(255, 255, 255, 0.55);
    border: 2px solid rgba(200, 0, 0, 0.22);
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ssq-poster-pool-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 170, 0, 0.35);
    flex-shrink: 0;
}

.ssq-poster-pool-medal {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.ssq-poster.is-export,
.ssq-poster.is-export .ssq-poster-card {
    box-shadow: none !important;
}

.ssq-poster.is-export .ssq-poster-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.42) !important;
}

.ssq-poster.is-export .ssq-poster-ball,
.ssq-poster.is-export .ssq-poster-pool-inner,
.ssq-poster.is-export .ssq-poster-pool-icon {
    box-shadow: none !important;
}
