/* 新增样式 */
.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;
    border: 2pt solid blue;   /* 添加蓝色边框，线宽2pt */
	border-radius: 18px;
}

.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;
}




/* IAL Pure 分类专用：行式布局 */
	.category-box[data-category="Pure"] .exam-list {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}
	/* 每个考季的行容器：四列网格 */
	.exam-row {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 15px;
	}
	/* IAL 中 Statistics, Mechanics, FurtherPure 使用三列布局 */
	.category-box[data-category="Statistics"] .exam-list,
	.category-box[data-category="Mechanics"] .exam-list,
	.category-box[data-category="FurtherPure"] .exam-list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 15px;
	}
	/* 占位卡片完全透明不可见，但保留占位 */
	.card.placeholder {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}
	/* 响应式：窄屏时所有分类变为一列 */
	@media (max-width: 768px) {
		.category-box .exam-list {
			grid-template-columns: 1fr !important;
		}
		.exam-row {
			grid-template-columns: 1fr !important;
		}
	}









/* 确保链接在所有状态下都与普通文本外观完全相同：
   无下划线、颜色与父文本一致、鼠标指针保持默认、无聚焦轮廓等 */
.stealth-link,
.stealth-link:link,
.stealth-link:visited,
.stealth-link:hover,
.stealth-link:active,
.stealth-link:focus {
	color: #666;           /* 与原段落文字颜色完全一致 */
	text-decoration: none; /* 去除所有下划线（包括悬停、激活时） */
	cursor: default;       /* 鼠标指针保持默认箭头，不变成手形，与普通文本行为一致 */
	outline: none;         /* 去除聚焦时的虚线轮廓，避免显示变化 */
	background-color: transparent; /* 确保无背景色变化 */
	-webkit-tap-highlight-color: transparent; /* 移动端点击时去除高亮背景 */
}



