/* lottery-archive.css - 日期归档页专用样式（完整版） */
.page-header {
    background: var(--white);
    margin: 0 12px 16px;
    padding: 16px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.page-header h1 {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-header p {
    font-size: 12px;
    color: var(--text-light);
}

/* 年份导航 */
.year-nav {
    background: var(--white);
    margin: 0 12px 16px;
    padding: 12px;
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.year-nav a {
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}
.year-nav a:hover {
    background: var(--primary);
    color: #fff;
}
.year-nav a.active {
    background: var(--primary);
    color: #fff;
}

/* 月份导航 */
.month-nav {
    background: var(--white);
    margin: 0 12px 16px;
    padding: 12px;
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.month-nav a {
    padding: 4px 10px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}
.month-nav a:hover {
    background: var(--primary);
    color: #fff;
}
.month-nav a.active {
    background: var(--primary);
    color: #fff;
}

/* 彩种分组 */
.lottery-group {
    margin-bottom: 20px;
}
.lottery-group h3 {
    background: var(--primary-light);
    padding: 8px 12px;
    margin: 0 12px 10px 12px;
    border-left: 3px solid var(--primary);
    font-size: 14px;
    border-radius: var(--radius);
}

.history-table {
    background: var(--white);
    margin: 0 12px 16px;
    border-radius: var(--radius);
    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: 8px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}
.history-table td {
    padding: 8px 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;
    text-decoration: none;
}
.history-link:hover {
    text-decoration: underline;
}
.weekday {
    font-size: 11px;
    color: var(--text-lighter);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-table th,
    .history-table td {
        font-size: 10px;
        padding: 6px 4px;
    }
    .mini-ball {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 9px;
    }
    .year-nav a,
    .month-nav a {
        padding: 3px 8px;
        font-size: 10px;
    }
}