/* 3D分析师 前台展示与号球 UI 样式 */

.lottery-analyst-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1E222D;
    max-width: 800px;
    margin: 20px auto;
}

.lottery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lottery-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1E222D;
    margin-top: 0;
    margin-bottom: 14px;
    border-bottom: 2px solid #D9363E;
    padding-bottom: 6px;
    display: inline-block;
}

.summary-text {
    line-height: 1.6;
    color: #4a5568;
}

.filter-steps {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.filter-steps li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #E6A23C;
    margin-bottom: 6px;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
}

/* 推荐号框 */
.recommend-box {
    background: #fafafa;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge {
    background: #1E222D;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.copy-btn {
    background: #D9363E;
    color: #ffffff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: #b92b32;
}

.pos-num {
    font-size: 1.1rem;
    font-weight: bold;
    color: #D9363E;
    letter-spacing: 1px;
    margin: 0;
}

/* 红球样式 */
.ball-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
}

.red-ball {
    background: radial-gradient(circle at 30% 30%, #ff525b, #D9363E);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(217, 54, 62, 0.3);
}

.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.numbers-grid span {
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    color: #2d3748;
}

/* 风险卡片 */
.risk-card {
    border-left: 4px solid #E6A23C;
    background: #fffdf5;
}

.risk-title {
    color: #d69e2e;
    margin-top: 0;
    margin-bottom: 8px;
}

.risk-text {
    font-size: 0.9rem;
    color: #744210;
    margin: 0;
}

/* Toast 提示 */
.lottery-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 34, 45, 0.9);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
}

/* 开奖回看追加块 */
.lottery-review-container {
    background: #ffffff;
    border: 2px solid #67C23A;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.review-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.status-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    color: #fff;
}

.tag-hit { background: #67C23A; }
.tag-miss { background: #909399; }

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.review-table th, .review-table td {
    padding: 8px 12px;
    border: 1px solid #edf2f7;
    text-align: left;
}

.review-table th {
    background: #f7fafc;
}

.text-success {
    color: #67C23A;
    font-weight: bold;
}

.ai-review-box {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
}

.ai-review-box h4 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #276749;
}

/* 前台专业走势图样式支持 */
.lottery-chart-toolbar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.lottery-chart-container {
    position: relative;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 20px;
}

.lottery-chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.lottery-chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.lottery-chart-table th,
.lottery-chart-table td {
    border: 1px solid #e2e8f0;
    padding: 4px 2px;
    height: 28px;
    box-sizing: border-box;
    white-space: nowrap;
}

.col-group-bg { background-color: #ffffff; }
.col-pos1-bg  { background-color: #fefce8; }
.col-pos2-bg  { background-color: #ffffff; }
.col-pos3-bg  { background-color: #fefce8; }

.chart-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
}

.ball-group, .ball-pos-1, .ball-pos-2, .ball-pos-3 {
    background: #D9363E;
    color: #ffffff;
}

.omission-num { color: #94a3b8; font-size: 11px; }
.hide-omissions .omission-num { visibility: hidden; }
.hide-lines .lottery-chart-svg { display: none; }
