:root {
	--bg-color-main: #11091c;    
	--bg-color-sec: #1f1135;     
	--text-primary: #e0e0e0;     
	--accent-gold: #d4af37;      
	--nav-bg: rgba(17, 9, 28, 0.95); 

	/* 恢复圆角设计 */
	--radius-full: 50px;       
	--radius-lg: 16px;         
	--radius-sm: 8px;          
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
a { outline: none; text-decoration: none; color: inherit; }
button { font-family: inherit; }

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, var(--bg-color-main) 0%, var(--bg-color-sec) 100%);
	background-attachment: fixed; 
	color: var(--text-primary);
	line-height: 1.6;
	overflow: hidden; 
}

body.unlocked { overflow-x: hidden; overflow-y: auto; }
.lang-text { transition: opacity 0.3s ease-in-out; }
.lang-text.fade-out { opacity: 0.1; }

/* 导航栏：缩小内边距，去除底边框，改为纯阴影和圆角 */
header {
	position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
	padding: 15px 40px; background-color: var(--nav-bg); 
	border-bottom: none; /* 移除边框 */
	z-index: 9999; 
	box-shadow: 0 4px 15px rgba(0,0,0,0.6);
	border-bottom-left-radius: var(--radius-sm);
	border-bottom-right-radius: var(--radius-sm);
}

.logo { font-size: 1.5rem; font-weight: bold; color: var(--accent-gold); letter-spacing: 1px; }
.logo i { margin-right: 5px; }
.nav-controls { display: flex; align-items: center; gap: 15px; }

/* 按钮整体变小 */
.lang-btn {
	background: transparent; border: none; /* 移除按钮边框 */
	box-shadow: inset 0 0 0 1px var(--accent-gold); /* 用内阴影代替边框，更柔和 */
	color: var(--accent-gold);
	padding: 4px 12px; cursor: pointer; border-radius: var(--radius-full); font-weight: bold; font-size: 0.85rem; transition: 0.3s ease;
}
.lang-btn:hover { background: var(--accent-gold); color: var(--bg-color-main); }

.menu-icon-wrapper {
	display: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: 0.3s;
}
.menu-line { width: 22px; height: 2px; background-color: var(--accent-gold); margin: 5px 0; border-radius: var(--radius-full); }
.nav-links { list-style: none; display: flex; gap: 15px; }
.nav-links a { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; padding: 6px 10px; transition: all 0.3s ease; }
.nav-links a i { margin-right: 5px; color: var(--accent-gold); opacity: 0.8; }
.nav-links a:hover { color: var(--accent-gold); }

/* 封面区：文字变小 */
.hero-cover {
	position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 100; 
	background: radial-gradient(circle at center, var(--bg-color-sec) 0%, var(--bg-color-main) 100%);
	display: flex; justify-content: center; align-items: center; text-align: center;
	transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1); overflow: hidden;
}
.cover-texture {
	position: absolute; width: 100%; height: 100%; top: 0; left: 0;
	background-image: repeating-radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0px, rgba(17, 9, 28, 0.1) 4px, transparent 10px);
	opacity: 0.7; z-index: -1; 
}
.hero-cover.slide-up { transform: translateY(-100%); }

.hero-content { max-width: 700px; padding: 30px; z-index: 2; }
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; color: var(--accent-gold); text-shadow: 0 5px 15px rgba(0,0,0,0.8); letter-spacing: 3px; }
.hero-content p { font-size: 1rem; margin-bottom: 25px; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }

.primary-btn {
	padding: 12px 35px; font-size: 1.05rem; font-weight: bold; letter-spacing: 1px;
	background-color: rgba(0,0,0,0.4); 
	color: #f1c40f; 
	border: none; box-shadow: 0 0 0 2px #f1c40f, 0 5px 15px rgba(0,0,0,0.5); /* 用 box-shadow 代替纯 border */
	cursor: pointer; border-radius: var(--radius-full); transition: all 0.3s ease;
}
.primary-btn i { margin-left: 8px; }
.primary-btn:hover { background-color: #f1c40f; color: #000; box-shadow: 0 0 20px rgba(241, 196, 15, 0.6); }

.scroll-arrow {
	position: absolute; bottom: 40px; width: 20px; height: 20px;
	border-bottom: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold);
	transform: rotate(45deg); cursor: pointer; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); } 40% { transform: translateY(-15px) rotate(45deg); } 60% { transform: translateY(-7px) rotate(45deg); } }

/* 底层内容区：整体间距缩小，去除边框 */
.under-content { min-height: 100vh; padding-top: 80px; padding-bottom: 40px; position: relative; z-index: 1; }
.section-block { padding: 50px 20px; max-width: 900px; margin: 0 auto; text-align: center; }
.section-title { color: var(--accent-gold); font-size: 1.8rem; margin-bottom: 30px; letter-spacing: 2px; border-bottom: none; }
.section-title i { margin-right: 10px; font-size: 1.5rem; opacity: 0.8; }

.content-box {
	background-color: rgba(15, 8, 25, 0.6); padding: 30px 40px; 
	border: none; /* 移除多余边框 */
	border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* 使用阴影烘托 */
	font-size: 0.95rem; line-height: 1.8; color: #d0d0d0;
}
.text-left { text-align: left; }
.history-list p { margin-bottom: 15px; border-left: 3px solid var(--accent-gold); padding-left: 15px; }
.history-list p strong { color: var(--accent-gold); }

/* 疆域纪要卡片：保留专属边框 */
.features-section { display: flex; gap: 20px; overflow-x: auto; padding: 20px; justify-content: flex-start; scrollbar-width: thin; scrollbar-color: var(--accent-gold) transparent; }
.features-section::-webkit-scrollbar { height: 6px; }
.features-section::-webkit-scrollbar-track { background: transparent; }
.features-section::-webkit-scrollbar-thumb { background-color: var(--accent-gold); border-radius: var(--radius-full); }

.feature-card {
	background-color: rgba(15, 8, 25, 0.8); padding: 30px 20px; 
	border: 1px solid rgba(212, 175, 55, 0.1); border-top: 3px solid var(--accent-gold); /* 保留要求的边框 */
	border-radius: var(--radius-lg); flex: 0 0 280px; text-align: center; transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); background-color: rgba(20, 10, 30, 0.9); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.card-icon { font-size: 2rem; color: var(--accent-gold); margin-bottom: 15px; opacity: 0.9; }
.feature-card h3 { color: var(--accent-gold); margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; }

footer { text-align: center; padding: 30px 20px; margin-top: 60px; background-color: rgba(0,0,0,0.6); font-size: 0.85rem; color: #666; }

/* 移动端响应式 */
@media screen and (max-width: 768px) {
	header { padding: 12px 20px; }
	.hero-content h1 { font-size: 2rem; }
	.logo { font-size: 1.3rem; }
	.menu-icon-wrapper { display: block; }
	
	/* 汉堡菜单：更小、圆角、文字居中 */
	nav {
		position: absolute; top: 100%; right: 15px; left: auto; 
		width: 140px; /* 进一步缩小宽度 */
		background-color: var(--nav-bg); border: none; /* 移除边框 */
		border-radius: var(--radius-lg); box-shadow: 0 8px 25px rgba(0,0,0,0.8);
		display: block; opacity: 0; transform: scaleY(0); transform-origin: top right; transition: transform 0.3s ease-out, opacity 0.3s ease;
		overflow: hidden;
	}
	nav.active { opacity: 1; transform: scaleY(1); }
	
	.nav-links { flex-direction: column; width: 100%; gap: 0; }
	/* 文字居中 */
	.nav-links li { text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
	.nav-links li:last-child { border-bottom: none; }
	.nav-links a { display: block; padding: 12px 10px; font-size: 0.9rem; }
	.nav-links a i { display: block; font-size: 1.1rem; margin-bottom: 3px; margin-right: 0; } /* 移动端让图标和文字上下排列更好看 */
	
	.feature-card { flex: 0 0 250px; }
	.content-box { padding: 20px; }
}