/* 新增样式 */
.category-box[data-category="Statistics"] .exam-list,
.category-box[data-category="Mechanics"] .exam-list,
.category-box[data-category="FurtherPure"] .exam-list {
    grid-template-columns: repeat(3, 1fr);
}

.category-box[data-category="Pure"] .exam-list {
    grid-template-columns: repeat(4, 1fr);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 98%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f0f4f8;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.main-site-link {
    padding: 12px 24px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #bae6fd;
}

.main-site-link:hover {
    background: #bae6fd;
    color: #075985;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #e0e7ff;
    color: #4f46e5;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.tab-btn.active {
    background: #4f46e5;
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.code {
    color: #64748b;
    margin-bottom: 8px;
}

.timer {
    font-size: 1.8em;
    color: #1e293b;
    margin: 10px 0;
    font-weight: bold;
}

.details {
    color: #64748b;
    font-size: 0.9em;
}

/* 时间图标样式 */
.time-icon {
    margin-left: 5px;
    font-size: 1em;
}

.sun-icon {
    color: #f59e0b; /* 橙色代表太阳 */
}

.moon-icon {
    color: #4f46e5; /* 蓝色代表月亮 */
}

.resources-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.resources-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e3a8a;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #bfdbfe;
    padding-bottom: 8px;
}

/* 新增代码块样式 */
.website {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #2d3748;
    transition: all 0.2s;
    margin-left: 15px;
    text-decoration: none !important;
    color: #2d3748 !important;
}

.website:hover {
    background: #cbd5e1;
    color: #1e3a8a !important; /* 悬停颜色加深 */
}

/* 新增点击效果 */
.website:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resources-item {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    transition: 0.3s;
    background: #f8fafc;
}

.resources-item:hover {
    background: #eff6ff;
    transform: translateX(5px);
}

.resource-link {
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-link::before {
    content: "🔗";
    font-size: 0.9em;
}

/* 原有样式保持不变，新增以下类别样式 */
.category-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.category-header {
    padding: 16px 24px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.1em;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #64748b;
    transition: 0.3s;
}

.exam-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
}