/* ========== 全局重置 ========== */
*{margin:0;padding:0;box-sizing:border-box;}
img{border:none;max-width:100%;height:auto;}
a{text-decoration:none;color:#4e302e;}
a:hover{text-decoration:none;color:#9b020e;}
li{list-style:none outside none;}

/* ========== 基础样式 ========== */
body{
	font-size:16px;
	line-height:34px;
	font-family:"微软雅黑","Microsoft YaHei",sans-serif;
	background:#ffcc99;
	color:#4d3c3c;
	margin:0 auto;
	overflow-x:hidden;
}

p{text-indent:2em;color:#666;}
p a{color:#ff1a1c;}
p a:hover{color:#e85555;}

/* ========== 顶部头图 ========== */
.g-head{
	width:100%;
	background:url("../images/bg.jpg") top center no-repeat;
	background-size:cover;
	height:1050px;
}

/* ========== 主容器 ========== */
.center{
	width:100%;
	background:#ffcc99;
	height:100%;
}

.page{
	max-width:1280px;
	width:100%;
	margin:0 auto;
	overflow:hidden;
	padding:60px 0 0 0;
}

/* ========== 导语区 ========== */
.dy{
	max-width:1280px;
	width:100%;
	margin:0 auto 30px;
	overflow:hidden;
	background:url("../images/dy_bg.png") top center no-repeat;
	background-size:cover;
	min-height:222px;
	padding:40px 20px;
}

.dy p{
	color:#414141;
	max-width:1200px;
	width:100%;
	margin:0 auto;
	overflow:hidden;
	font-size:18px;
	line-height:40px;
	text-align:justify;
}

/* ========== 好少年卡片区域 ========== */
.s_box{
	max-width:1280px;
	width:100%;
	overflow:hidden;
	margin:0 auto 60px;
}

/* Flex 布局替代 float */
.s_box ul{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:14px;
}

.s_box li{
	width:242px;
	height:490px;
	overflow:hidden;
	background:url("../images/m_bg.png") top center no-repeat;
	background-size:100% 100%;
	text-align:center;
	border-radius:10px;
	transition:transform 0.3s ease;
}

.s_box li:hover{
	transform:translateY(-5px);
}

.s_box li img{
	width:199px;
	height:279px;
	margin:20px auto 0;
	object-fit:cover;
	border-radius:6px;
}

.s_box li h1{
	background:#d43736;
	color:#fff;
	font-size:20px;
	width:82%;
	margin:0 auto 20px;
	border-radius:4px;
	padding:2px 0;
}

.s_box li p{
	font-size:14px;
	width:82%;
	margin:0 auto;
	text-align:left;
	line-height:26px;
	height:105px;
	overflow:hidden;
}

/* ========== 底部版权 ========== */
.foot{
	max-width:1280px;
	width:100%;
	padding:30px 15px 40px;
	margin:0 auto;
}

.foot p{
	color:#ab0706;
	text-align:center;
	font-weight:bold;
	line-height:30px;
}

/* ======================================== */
/* ========== 平板端 (768px - 1023px) ========== */
/* ======================================== */
@media screen and (max-width:1023px){

	/* 头图高度缩减 */
	.g-head{
		height:600px;
		background-size:cover;
	}

	/* 页面内边距 */
	.page{
		padding:40px 12px 0 12px;
	}

	/* 导语区 */
	.dy{
		min-height:auto;
		padding:30px 15px;
		margin-bottom:25px;
	}

	.dy p{
		font-size:16px;
		line-height:32px;
	}

	/* 卡片：3列布局 */
	.s_box ul{
		gap:10px;
		justify-content:center;
	}

	.s_box li{
		width:calc(33.333% - 14px);
		min-width:200px;
		max-width:242px;
		height:auto;
		padding-bottom:15px;
	}

	.s_box li img{
		width:80%;
		height:auto;
		aspect-ratio:199/279;
		margin:15px auto 0;
	}

	.s_box li h1{
		font-size:18px;
		margin-bottom:12px;
	}

	.s_box li p{
		font-size:13px;
		line-height:24px;
		height:auto;
		max-height:100px;
	}
}

/* ======================================== */
/* ========== 手机端 (480px - 767px) ========== */
/* ======================================== */
@media screen and (max-width:767px){

	body{
		font-size:14px;
		line-height:28px;
	}

	/* 头图进一步缩减 */
	.g-head{
		height:380px;
		background-size:cover;
	}

	/* 页面内边距 */
	.page{
		padding:30px 8px 0 8px;
	}

	/* 导语区 */
	.dy{
		padding:20px 12px;
		margin-bottom:20px;
		background-size:cover;
	}

	.dy p{
		font-size:14px;
		line-height:28px;
		text-indent:1.5em;
	}

	/* 卡片：2列布局 */
	.s_box ul{
		gap:8px;
		justify-content:center;
	}

	.s_box li{
		width:calc(50% - 8px);
		min-width:150px;
		max-width:220px;
		height:auto;
		padding-bottom:12px;
		border-radius:8px;
	}

	.s_box li img{
		width:75%;
		height:auto;
		aspect-ratio:199/279;
		margin:12px auto 0;
	}

	.s_box li h1{
		font-size:16px;
		width:88%;
		margin-bottom:8px;
	}

	.s_box li p{
		font-size:12px;
		line-height:22px;
		width:88%;
		height:auto;
		max-height:90px;
	}

	/* 底部 */
	.foot{
		padding:20px 10px 30px;
	}

	.foot p{
		font-size:13px;
		line-height:26px;
	}
}

/* ======================================== */
/* ========== 小屏手机 (< 480px) ========== */
/* ======================================== */
@media screen and (max-width:479px){

	/* 头图最小化 */
	.g-head{
		height:250px;
	}

	/* 导语区 */
	.dy{
		padding:15px 10px;
		margin-bottom:15px;
	}

	.dy p{
		font-size:13px;
		line-height:24px;
		text-indent:1.2em;
	}

	/* 卡片：仍为2列但更紧凑 */
	.s_box ul{
		gap:6px;
	}

	.s_box li{
		width:calc(50% - 6px);
		min-width:135px;
		max-width:180px;
		padding-bottom:10px;
		border-radius:6px;
	}

	.s_box li img{
		width:70%;
		margin:10px auto 0;
	}

	.s_box li h1{
		font-size:14px;
		width:92%;
		margin-bottom:6px;
		padding:1px 0;
	}

	.s_box li p{
		font-size:11px;
		line-height:20px;
		width:92%;
		max-height:80px;
	}

	/* 底部 */
	.foot p{
		font-size:12px;
		line-height:24px;
	}
}

/* ======================================== */
/* ========== 大屏桌面端优化 (> 1280px) ======== */
/* ======================================== */
@media screen and (min-width:1281px){

	.s_box ul{
		justify-content:flex-start;
		gap:0;
	}

	.s_box li{
		margin:0 7px 20px 7px;
	}
}
