/* 页面加载动画 */
.loader-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: all 0.5s ease;
}

.loader {
	width: 50px;
	height: 50px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #9d1f2c;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loader-wrapper.hide {
	opacity: 0;
	visibility: hidden;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: '微软雅黑', 'Microsoft YaHei', Arial, sans-serif;
	background: #f5f5f5;
	color: #333;
	line-height: 1.5;
	overflow-x: hidden;
}

a {
	text-decoration: none!important;
	color: inherit;
}

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ========== 顶部红底栏（PC端显示） ========== */
.top-bar {
	background: #9d1f2c;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	padding: 8px 0;
}

.top-bar .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
}

.top-bar .welcome {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.top-bar .links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.top-bar a {
	color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
	color: #fff;
}

/* ========== 头部 ========== */
.header {
	background: #fff;
	padding: 15px 0;
	border-bottom: 1px solid #e0e0e0;
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
}

.logo {
	flex-shrink: 0;
}

.logo h1 {
	font-size: 31px;
	font-weight: 600;
	color: #9d1f2c;
	letter-spacing: 2px;
	white-space: nowrap;
}

.logo p {
	font-size: 9px;
	color: #999;
	margin-top: 3px;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

/* PC端搜索框 */
.search-box {
	display: flex;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
}

.search-box input {
	width: 180px;
	padding: 6px 12px;
	border: none;
	outline: none;
	font-size: 12px;
}

.search-box button {
	background: #9d1f2c;
	border: none;
	padding: 0 18px;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	white-space: nowrap;
}

/* ========== 红色导航栏（PC端显示） ========== */
.nav {
	background: #9d1f2c;
	position: relative;
}

.nav-container {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	
}

.nav ul li {
	text-align: center;
}

.nav ul li a {
	display: block;
	padding: 12px 30px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.3s;
}

.nav ul li a:hover {
	background: #7a1620;
}
.nav ul li a.active {
	background: #7a1620;
}

/* 手机端专用头部（默认隐藏） */
.mobile-header {
	display: none;
	background: #9d1f2c;
	padding: 12px 20px;
	align-items: center;
	justify-content: space-between;
}

.mobile-logo h2 {
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.mobile-logo p {
	font-size: 8px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 2px;
}

.menu-toggle {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 5px;
}

.mobile-nav {
	display: none;
	background: #9d1f2c;
	width: 100%;
	display: none;
	position: fixed;
	top: 70px;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
}

.mobile-nav ul {
	list-style: none;
	padding: 10px 0;
}

.mobile-nav ul li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
	display: block;
	padding: 12px 20px;
	color: #fff;
	font-size: 14px;
}

.mobile-nav ul li a:hover {
	background: #7a1620;
}

.mobile-nav.show {
	display: block;
}
/* ========== 底部 ========== */
.footer {
	background: #1a1a2e;
	color: #aaa;
}

.footer-bottom {
	background: #13132a;
	padding: 20px 0;
	text-align: center;
	font-size: 11px;
}

.footer-bottom p {
	margin-bottom: 5px;
}

.footer-links-bottom {
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}

.footer-links-bottom a {
	color: #aaa;
}

.footer-links-bottom a:hover {
	color: #9d1f2c;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: #9d1f2c;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 20px;
}

.back-to-top.show {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	background: #7a1620;
	transform: translateY(-3px);
}
/* 手机端 */
@media (max-width: 768px) {
	/* 隐藏PC端元素 */
	.top-bar {
		display: none;
	}

	.header {
		display: none;
	}

	.nav {
		display: none;
	}

	/* 显示手机端专用头部 */
	.mobile-header {
		display: flex;
	}

	.footer-bottom {
		padding: 16px 0;
	}

	.footer-links-bottom {
		gap: 12px;
		margin-bottom: 10px;
	}
}
/* 小手机 */
@media (max-width: 480px) {
	.footer-bottom {
		padding: 14px 0;
	}

	.footer-links-bottom {
		gap: 10px;
		font-size: 10px;
	}

	.footer-bottom p {
		font-size: 10px;
	}
}