* {
	margin: 0;
	box-sizing: border-box;
}

body {
	background-color: #faf4e8;
	color: #333;
	line-height: 1.8;
}

/* 导航栏样式 */
nav {
	background-color: #8b2323;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
}

/* 左边导航链接样式 */
.left-nav {
	display: flex;
}

.left-nav a {
	color: white;
	text-decoration: none;
	margin-right: 20px;
}

/* 右边导航链接样式 */
.right-nav {
	display: flex;
}

.right-nav a {
	color: white;
	text-decoration: none;
	margin-left: 20px;
}

/* 鼠标悬停效果 */
.left-nav a:hover,
.right-nav a:hover {
	text-decoration: underline;
}

/* 图片并排展播 */
.carousel-container {
	width: 100%;
	height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: visible;
}

.carousel {
	height: 400px;
	display: flex;
	flex-wrap: nowrap;
	justify-content: start;
	transition: none;
}

.carousel-card {
	width: 80px;
	border-radius: .75rem;
	background-size: cover;
	cursor: pointer;
	overflow: hidden;
	border-radius: 2rem;
	margin: 0 10px;
	display: flex;
	align-items: flex-end;
	transition: .6s cubic-bezier(.28, -0.03, 0, .99);
	box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
	/* 移除原有的 flex 和宽度高度设置 */
	flex: none;
	width: 80px;
	height: auto;
}

.carousel-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 2rem;
	/* 移除原有的边框圆角 */
}

/* 移除原有的奇数偶数卡片偏移和悬停放大样式 */
.carousel-card:nth-child(odd),
.carousel-card:nth-child(even) {
	transform: none;
	z-index: auto;
}

.carousel-card:hover {
	width: 600px;
	/* 新增样式，模拟卡片展开效果 */
}

/* 移除原有的按钮和指示器样式 */
.carousel-button1,
.carousel-indicators,
.carousel-indicator {
	display: none;
}

/* 原有的其他样式保持不变 */
.header {
	background: linear-gradient(135deg, #be0000 0%, #960000 100%);
	color: #ffd700;
	text-align: center;
	position: relative;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
	height: 420px;
	overflow: hidden;
	border-radius: 12px
}

.header img {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out
}

.header img.active {
	opacity: 1;
}

.header h1 {
	font-size: 3rem;
	margin: 1.5rem 0;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 1;
	animation: fadeInDown 1s ease-out;
}

.header a {
	position: absolute;
	left: 2.5rem;
	top: 2.5rem;
	color: #ffd700;
	text-decoration: none;
	font-size: 1.2rem;
	padding: 0.6rem 1.2rem;
	border: 1px solid #ffd700;
	border-radius: 5px;
	transition: all 0.3s;
	z-index: 1;
	animation: fadeInLeft 1s ease-out;
}

.header a:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

/* 通用图片轮播样式 */
.slide-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slide-image.active {
	opacity: 1;
}

.header .slide-image {
	filter: brightness(0.7);
}

.card-image {
	height: 220px;
	overflow: hidden;
	position: relative;
}

.card-image .slide-image {
	transition: transform 0.5s, opacity 1s ease-in-out;
}

.category-card:hover .card-image .slide-image {
	transform: scale(1.1);
}

.category-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2.5rem;
	padding: 3rem;
	max-width: 1500px;
	margin: 0 auto;
}

.category-card {
	background: #f5ebe0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	perspective: 1000px;
}

.category-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card-content {
	padding: 2rem;
}

.card-content h3 {
	color: #be0000;
	margin-bottom: 0.8rem;
	font-size: 1.7rem;
}

.card-content p:first-of-type {
	color: #666;
	font-weight: bold;
	margin-bottom: 1.2rem;
}

/* 页脚样式 */
footer {
	background-color: #8b2323;
	color: white;
	text-align: center;
	padding: 1rem 0;
	margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
	header h1 {
		font-size: 2rem;
	}

	.banner h2 {
		font-size: 1.5rem;
	}

	/* 如果有网格布局的功能区 */
	.features {
		grid-template-columns: 1fr;
	}
}

/* 底部容器 */
.footer-container {
	background-color: #333;
	/* 深色背景，贴合设计 */
	color: #fff;
	padding: 40px 20px;
}

.footer-inner {
	max-width: 1200px;
	/* 限制内容宽度，适配不同屏幕 */
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	/* 屏幕缩小时自动换行 */
	justify-content: space-between;
	gap: 30px;
	/* 列之间的间距 */
}

/* 每一块区域（左侧介绍、快速链接等） */
.footer-section {
	flex: 1;
	min-width: 220px;
	/* 保证缩小时不会太窄 */
}

.footer-section h3 {
	font-size: 18px;
	margin-bottom: 15px;
	color: #fff;
	font-weight: 600;
}

/* 左侧logo区域 */
.logo {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.logo-icon {
	width: 40px;
	height: 40px;
	background-color: #c72e2e;
	/* 模拟红色圆形背景 */
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
	font-size: 20px;
	margin-right: 10px;
}

.logo-text {
	font-size: 22px;
	font-weight: bold;
}

.desc {
	line-height: 1.6;
	color: #ccc;
}

/* 链接列表 */
.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 8px;
}

.footer-section ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-section ul li a:hover {
	color: #fff;
}

/* 订阅表单 */
.subscribe-form {
	display: flex;
	margin-top: 10px;
}

.subscribe-form input {
	flex: 1;
	padding: 8px 12px;
	border: none;
	outline: none;
	font-size: 14px;
}

.subscribe-form button {
	padding: 0 18px;
	background-color: #c72e2e;
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background-color 0.3s;
}

.subscribe-form button:hover {
	background-color: #a52525;
}

/* 底部版权 & 政策区域 */
.footer-bottom {
	max-width: 1200px;
	margin: 20px auto 0;
	padding-top: 20px;
	border-top: 1px solid #555;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.footer-bottom p {
	color: #999;
}

.policy-links a {
	color: #999;
	text-decoration: none;
	margin-left: 15px;
	transition: color 0.3s;
}

.policy-links a:hover {
	color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.navbar {
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
	}

	.navbar .left-nav,
	.navbar .right-nav {
		flex-direction: column;
		width: 100%;
	}

	.navbar a {
		margin: 0.5rem 0;
		padding: 0.5rem 0;
		width: 100%;
		text-align: left;
	}

	.header h1 {
		font-size: 2.2rem;
	}

	.header a {
		position: static;
		display: inline-block;
		margin-bottom: 1.5rem;
	}

	.category-container {
		grid-template-columns: 1fr;
		padding: 1.5rem;
	}
}

/* 动画 */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}