/* lottery-detail.css - 开奖详情页专用样式 */
/* 开奖详情卡片 */
.lottery-detail-card {
    background: var(--white);
    margin: 0 12px 16px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.lottery-detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 16px;
    text-align: center;
    color: #fff;
}
.lottery-detail-header h1 {
    font-size: 20px;
    margin-bottom: 5px;
}
.lottery-detail-header .issue {
    font-size: 14px;
    opacity: 0.9;
}
.lottery-detail-header .date {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}
.lottery-numbers-area {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.lottery-numbers-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.lottery-numbers-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}
.lottery-number-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}
.lottery-number-ball.red {
    background: #f2dede;
    color: #d4380d;
    border: 2px solid #d4380d;
}
.lottery-number-ball.blue {
    background: #d9edf7;
    color: #17a2b8;
    border: 2px solid #17a2b8;
}
.prize-pool {
    background: var(--primary-light);
    padding: 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    display: inline-block;
}
.week-day {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-lighter);
}

/* 历史记录表格 */
.history-section {
    background: var(--white);
    margin: 0 12px 16px;
    border-radius: var(--radius);
    overflow: hidden;
}
.history-section-header {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 10px 16px;
}
.history-section-header h3 {
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.history-table {
    overflow-x: auto;
}
.history-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 500px;
}
.history-table th {
    background: var(--primary-light);
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}
.history-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.history-table tr:hover {
    background: var(--primary-light);
}
.mini-ball {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    margin: 1px;
}
.mini-ball.red {
    background: #f2dede;
    color: #d4380d;
    border: 1px solid #d4380d;
}
.mini-ball.blue {
    background: #d9edf7;
    color: #17a2b8;
    border: 1px solid #17a2b8;
}
.history-link {
    color: var(--primary);
    font-weight: 500;
}
.history-link:hover {
    text-decoration: underline;
}

/* 上下期导航 */
.nav-pagination {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 12px 16px;
}
.nav-btn {
    flex: 1;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: var(--primary);
    color: #fff;
}
.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.nav-label {
    font-size: 11px;
    color: var(--text-lighter);
    margin-bottom: 4px;
}
.nav-title {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-btn:hover .nav-label,
.nav-btn:hover .nav-title {
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lottery-number-ball {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .history-table th,
    .history-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    .mini-ball {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 9px;
    }
}