/* 主体内容 */
main {
	flex: 1;
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	width: 100%;
}
.section-title {
	text-align: center;
	font-size: 1.8rem;
	margin: 2rem 0 1.5rem;
	color: #1a2980;
	position: relative;
	padding-bottom: 0.5rem;
}
.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, #1a2980, #26d0ce);
	border-radius: 2px;
}

/* 小说列表样式 */
.novel-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.novel-item {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	flex: 1 1 calc(16.666% - 1.5rem); /* 一行6个，减去gap */
	max-width: calc(20.666% - 1.5rem);
	min-width: 180px; /* 确保最小宽度适应封面 */
	text-decoration: none;
}
.novel-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.novel-cover {
	width: 100%;
	height: 300px;
	overflow: hidden;
}
.novel-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.novel-item:hover .novel-cover img {
	transform: scale(1.05);
}
.novel-info {
	padding: 1rem;
}
.novel-title {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #1a2980;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.novel-author {
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}
.novel-summary {
	color: #555;
	font-size: 0.85rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 分页控件 */
.pagination {
	display: flex;
	justify-content: center;
	margin: 3rem 0 2rem;
	gap: 0.5rem;
}
.pagination a,
.pagination span {
	display: inline-block;
	padding: 0.6rem 1rem;
	border-radius: 6px;
	background: white;
	color: #1a2980;
	text-decoration: none;
	border: 1px solid #ddd;
	transition: all 0.3s ease;
}
.pagination a:hover {
	background: #1a2980;
	color: white;
}
.pagination .active {
	background: #1a2980;
	color: white;
	border-color: #1a2980;
	font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1200px) {
	.novel-item {
		flex: 1 1 calc(20% - 1.5rem);
		max-width: calc(20% - 1.5rem);
	}
}
@media (max-width: 992px) {
	.novel-item {
		flex: 1 1 calc(25% - 1.5rem);
		max-width: calc(25% - 1.5rem);
	}
}
@media (max-width: 768px) {
	.novel-item {
		flex: 1 1 calc(33.333% - 1.5rem);
		max-width: calc(33.333% - 1.5rem);
	}
}
@media (max-width: 480px) {
	.novel-item {
		flex: 1 1 100%;
		max-width: 100%;
	}
}