/*
 * 公共样式文件 - 包含Header和Footer的通用样式
 * 适用于所有页面的顶部导航和底部页脚
 */

/* ==================== 头部导航样式 ==================== */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: all 0.3s ease;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
	position: relative;
}

.logo img {
	height: 40px;
}

nav {
	display: flex;
	align-items: center;
	justify-content: center; /* 居中对齐 */
	height: 100%;
}

.nav-menu {
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-menu li {
	margin-left: 30px;
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-menu a {
	color: #0d234d;
	font-weight: 500;
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
	color: #fe5b00;
}

.nav-menu a:after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #fe5b00;
	transition: width 0.3s ease;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
	width: 100%;
}

.hamburger {
	display: none;
	cursor: pointer;
}

.hamburger .bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: #0d234d;
	transition: all 0.3s ease;
	/* 确保不被其他样式覆盖 */
	animation: none !important;
	transform-origin: center;
}

/* ==================== 页脚样式 ==================== */
footer {
	background-color: #0d234d;
	color: white;
	padding: 60px 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-logo img {
	height: 50px;
	margin-bottom: 20px;
}

.footer-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-about p {
	margin-bottom: 20px;
	color: #ccc;
	line-height: 1.8;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background-color: #fe5b00;
	transform: translateY(-3px);
}

/* 页脚社交媒体图标样式 */
.social-icons {
	display: flex;
	gap: 20px;
	margin-top: 10px;
}

.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 18px;
	transition: all 0.3s ease;
}

.social-icons a:hover {
	color: #fe5b00;
	transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
	font-size: 1.2rem;
	margin-bottom: 20px;
	position: relative;
	padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: #fe5b00;
}

.footer-links ul li,
.footer-contact ul li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #ccc;
}

.footer-links a:hover {
	color: #fe5b00;
	padding-left: 5px;
}

.footer-contact ul li {
	display: flex;
	align-items: flex-start;
	color: #ccc;
}

.footer-contact ul li i {
	margin-right: 10px;
	color: #fe5b00;
	margin-top: 5px;
}

/* 修复footer中contact-info的背景色问题 */
.footer .contact-info {
	background-color: transparent !important;
}

.footer .contact-info li {
	background-color: transparent !important;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
}

.footer-bottom p {
	color: #ccc;
}

.footer-legal {
	display: flex;
	gap: 20px;
}

.footer-legal a {
	color: #ccc;
}

.footer-legal a:hover {
	color: #fe5b00;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-links {
		grid-template-columns: repeat(3, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-about {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	header .container {
		height: 70px;
	}

	.hamburger {
		display: block;
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: white;
		width: 100%;
		text-align: center;
		transition: 0.3s;
		box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
		padding: 20px 0;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-menu li {
		margin: 15px 0;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-links {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.footer-links-column {
		margin-bottom: 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.footer-about {
		grid-column: span 1;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
}
