/* 全局样式 */
:root {
	--primary-color: #8B4513; /* 赭石色 */
	--secondary-color: #2E8B57; /* 青绿色 */
	--accent-color: #8B0000; /* 暗红色 */
	--light-color: #F5F5F5;
	--dark-color: #333333;
	--gray-color: #E0E0E0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
}

body {
	color: var(--dark-color);
	background-color: white;
	line-height: 1.6;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

section {
	padding: 80px 0;
}

h1, h2, h3, h4 {
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

h1 {
	font-size: 3rem;
}

h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
}

p {
	margin-bottom: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-weight: 600;
	border: none;
	cursor: pointer;
}

.btn:hover {
	background-color: var(--accent-color);
	transform: translateY(-3px);
}

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

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}
.logo a {
	text-decoration: none;
	color: var(--primary-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

.logo a:hover {
	color: var(--accent-color);
}
.logo-icon {
	margin-right: 10px;
	font-size: 1.8rem;
}

.nav-links {
	display: flex;
	list-style: none;
}

.nav-links li {
	margin-left: 30px;
}

.nav-links a {
	text-decoration: none;
	color: var(--dark-color);
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--primary-color);
}

.auth-buttons {
	display: flex;
	align-items: center;
	margin-left: 30px;
}

.auth-btn {
	background: none;
	border: none;
	color: var(--dark-color);
	cursor: pointer;
	font-weight: 500;
	padding: 8px 15px;
	border-radius: 4px;
	transition: all 0.3s ease;
	margin-left: 10px;
}

.auth-btn:hover {
	color: var(--primary-color);
}

.auth-btn.signup {
	background-color: var(--primary-color);
	color: white;
}

.auth-btn.signup:hover {
	background-color: var(--accent-color);
}

.language-switcher {
	margin-left: 30px;
}

.language-switcher button {
	background: none;
	border: none;
	color: var(--dark-color);
	cursor: pointer;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.language-switcher button.active {
	background-color: var(--primary-color);
	color: white;
}

.mobile-menu {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
}

/* 移动端顶部语言切换器样式 */
.mobile-language-top {
	display: none;
	margin-left: auto;
	margin-right: 15px;
}

.mobile-language-top button {
	background: none;
	border: none;
	color: var(--dark-color);
	cursor: pointer;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.mobile-language-top button.active {
	background-color: var(--primary-color);
	color: white;
}

/* 首页英雄区样式 */
.hero {
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	position: relative;
	overflow: hidden;
}

.hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.hero-content {
	max-width: 800px;
	padding: 0 20px;
}

.hero h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 核心摘要样式 */
.summary {
	background-color: var(--light-color);
	text-align: center;
}

.summary-content {
	max-width: 800px;
	margin: 0 auto;
}

/* 数据可视化样式 */
.data-visualization {
	background-color: white;
}

.stats-container {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	margin-top: 3rem;
}

.stat-item {
	text-align: center;
	margin: 20px;
	flex: 1;
	min-width: 200px;
}

.stat-number {
	font-size: 3rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.stat-label {
	font-size: 1.1rem;
	color: var(--dark-color);
}

/* 快速导航样式 */
.quick-nav {
	background-color: var(--light-color);
}

.nav-cards {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 3rem;
}

.nav-card {
	flex: 1;
	min-width: 250px;
	margin: 15px;
	padding: 30px;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: transform 0.3s ease;
}

.nav-card:hover {
	transform: translateY(-10px);
}

.nav-icon {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 20px;
}

/* 时间轴样式 */
.timeline {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.timeline::after {
	content: '';
	position: absolute;
	width: 6px;
	background-color: var(--gray-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -3px;
}

.timeline-item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
	box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
	left: 0;
}

.timeline-item:nth-child(even) {
	left: 50%;
}

.timeline-content {
	padding: 20px 30px;
	background-color: white;
	position: relative;
	border-radius: 6px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-date {
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 10px;
}

/* 价值卡片样式 */
.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 3rem;
}

.value-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.value-card:hover {
	transform: translateY(-10px);
}

.value-header {
	background-color: var(--primary-color);
	color: white;
	padding: 20px;
	text-align: center;
}

.value-body {
	padding: 20px;
}

/* 世界地图样式 */
.world-map {
	position: relative;
	max-width: 800px;
	margin: 3rem auto 0;
}

.map-container {
	position: relative;
}

.map-image {
	width: 100%;
	height: auto;
}

.map-point {
	position: absolute;
	width: 15px;
	height: 15px;
	background-color: var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
	transform: translate(-50%, -50%);
}

.map-point:hover::after {
	content: attr(data-location);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: var(--dark-color);
	color: white;
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
	font-size: 0.8rem;
	margin-bottom: 5px;
}

/* 探访指南样式 */
.visit-guide {
	background-color: var(--light-color);
}

.guide-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 3rem;
}

.guide-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.guide-header {
	background-color: var(--secondary-color);
	color: white;
	padding: 20px;
	text-align: center;
}

.guide-body {
	padding: 20px;
}

.guide-body ul {
	list-style-type: none;
	padding-left: 0;
}

.guide-body li {
	margin-bottom: 10px;
	padding-left: 20px;
	position: relative;
}

.guide-body li:before {
	content: "•";
	color: var(--primary-color);
	position: absolute;
	left: 0;
}

/* 家族名人样式 */
.famous-figures {
	background-color: white;
}

.figures-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 3rem;
}

.figure-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.figure-card:hover {
	transform: translateY(-10px);
}

.figure-header {
	background-color: var(--primary-color);
	color: white;
	padding: 20px;
	text-align: center;
}

.figure-body {
	padding: 20px;
}

/* 历史文献样式 */
.historical-documents {
	background-color: var(--light-color);
}

.documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 3rem;
}

.document-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.document-card:hover {
	transform: translateY(-10px);
}

.document-header {
	background-color: var(--secondary-color);
	color: white;
	padding: 20px;
	text-align: center;
}

.document-body {
	padding: 20px;
}

/* 虚拟导览样式 */
.virtual-tour {
	background-color: var(--light-color);
}

.tour-container {
	max-width: 800px;
	margin: 3rem auto 0;
	position: relative;
	height: 400px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tour-view {
	width: 100%;
	height: 100%;
	background-color: #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dark-color);
}

/* 支持我们样式 */
.support-options {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 3rem;
}

.support-option {
	flex: 1;
	min-width: 250px;
	margin: 15px;
	padding: 30px;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	text-align: center;
}

/* 页脚样式 */
footer {
	background-color: var(--dark-color);
	color: white;
	padding: 60px 0 30px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.footer-column {
	flex: 1;
	min-width: 200px;
	margin: 20px;
}

.footer-column h3 {
	margin-bottom: 20px;
	color: var(--light-color);
}

.footer-links {
	list-style: none;
}

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

.footer-links a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: white;
}

.social-links {
	display: flex;
	margin-top: 20px;
}

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

.social-links a:hover {
	background-color: var(--primary-color);
}

.copyright {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #aaa;
	font-size: 0.9rem;
}

/* 右下角按钮组样式 */
.floating-buttons {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

/* 投稿和纠错按钮样式 */
.feedback-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background-color: var(--secondary-color);
	color: white;
	border-radius: 50%;
	margin-bottom: 10px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	font-size: 1.2rem;
}

.feedback-btn.show {
	opacity: 1;
	visibility: visible;
}

.feedback-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feedback-btn.correction {
	background-color: var(--accent-color);
}

.feedback-btn.contribution {
	background-color: var(--secondary-color);
}

/* 返回顶部按钮样式 */
.back-to-top {
	width: 50px;
	height: 50px;
	background-color: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
	background-color: var(--accent-color);
	transform: translateY(-3px);
}

.back-to-top i {
	font-size: 1.5rem;
}

/* 模态框样式 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1001;
	align-items: center;
	justify-content: center;
}

.modal.active {
	display: flex;
}

.modal-content {
	background-color: white;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	position: relative;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--dark-color);
}

.modal-title {
	margin-bottom: 20px;
	text-align: center;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--gray-color);
	border-radius: 4px;
	font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
}

.form-group textarea {
	height: 150px;
	resize: vertical;
}

.form-actions {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}

.form-actions .btn {
	flex: 1;
	margin: 0 5px;
}

/* 移动端菜单样式 */
.mobile-nav-container {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: white;
	flex-direction: column;
	padding: 20px 0;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-container.active {
	display: flex;
}

.mobile-nav-links {
	list-style: none;
	width: 100%;
}

.mobile-nav-links li {
	text-align: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--gray-color);
}

.mobile-nav-links li:last-child {
	border-bottom: none;
}

.mobile-nav-links a {
	text-decoration: none;
	color: var(--dark-color);
	font-weight: 500;
	display: block;
	padding: 10px 0;
}

.mobile-auth-buttons {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	padding: 0 20px;
}

.mobile-auth-btn {
	flex: 1;
	margin: 0 5px;
	padding: 10px;
	border: 1px solid var(--primary-color);
	background: none;
	border-radius: 4px;
	color: var(--primary-color);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mobile-auth-btn.signup {
	background-color: var(--primary-color);
	color: white;
}

.mobile-auth-btn:hover {
	background-color: var(--primary-color);
	color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
	h1 {
		font-size: 2.5rem;
	}
	
	h2 {
		font-size: 2rem;
	}
	
	.timeline::after {
		left: 31px;
	}
	
	.timeline-item {
		width: 100%;
		padding-left: 70px;
		padding-right: 25px;
	}
	
	.timeline-item:nth-child(even) {
		left: 0;
	}
}

@media (max-width: 768px) {
	.nav-links, .auth-buttons, .language-switcher {
		display: none;
	}
	
	.mobile-menu {
		display: block;
	}
	
	.mobile-language-top {
		display: flex;
	}
	
	.hero h1 {
		font-size: 2.2rem;
	}
	
	.hero p {
		font-size: 1rem;
	}
	
	.floating-buttons {
		bottom: 20px;
		right: 20px;
	}
	
	.back-to-top, .feedback-btn {
		width: 45px;
		height: 45px;
	}
	
	.mobile-nav-container {
		display: none;
	}
	
	.mobile-nav-container.active {
		display: flex;
	}
}