/* 1. 全局重置与基础样式 */
* {
	box-sizing: border-box;
	max-width: 100%;
	/* 核心：防止任何元素溢出屏幕宽度 */
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	color: #333;
	margin: 0;
	padding: 0;
	background-color: #ffffff;
}

/* 2. 导航栏布局 (Desktop First, Mobile Optimized) */
.top-nav {
	background-color: #ffffff;
	/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
	position: sticky;
	top: 0;
	z-index: 1000;
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	max-width: 1400px;
	margin: 0 auto;
	flex-wrap: wrap;
	/* 允许在空间不足时换行 */
}

.logo-container {
	width: 150px;
	height: 30px;
	display: flex;
	align-items: center;
}

.logo {
	width: 40px;
	height: 40px;
	margin-right: 10px;
}

.logo-section {
	display: flex;
	margin-right: 100px;
	width: 100px;
	/* height: 30px; */
}

.logo-section a {
	display: flex;
	align-items: center;
	min-width: 100px;
}

/* .logo-section h1 {
	margin: 0;
	font-size: 1.4rem;
	color: #667eea;
}

.logo-section p {
	margin: 0;
	font-size: 0.85rem;
	color: #6c757d;
} */

.nav-menu {
	/* 靠左对齐 */
	display: flex;
	margin-right: auto;
}

/* 导航菜单 */
.nav-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 15px;
}

.nav-menu a {
	text-decoration: none;
	color: #495057;
	font-size: 0.95rem;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active-nav {
	color: #667eea;
	background-color: #f0f2ff;
	font-weight: 600;
}

/* 3. 右侧功能区 */
.nav-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.search-input {
	padding: 8px 15px;
	border: 1px solid #ddd;
	border-radius: 20px;
	outline: none;
	width: 180px;
	transition: width 0.3s;
}

.search-input:focus {
	width: 220px;
	border-color: #667eea;
}

.apply-button {
	background: #667eea;
	color: white !important;
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* 4. 主内容区与排版 */
.main-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 20px;
}

.content-card {
	background: #fff;
	padding: 8px;
	border-radius: 8px;
	/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

/* 表格响应式处理：这是手机适配最重要的一环 */
.table-container {
	width: 100%;
	overflow-x: auto;
	/* 允许横向滚动表格，不破坏页面 */
	margin: 20px 0;
	border: 1px solid #eee;
}

table {
	width: 100%;
	border-collapse: collapse;
	/* min-width: 600px; */
	/* 保证表格内容不被挤成一团 */
}

th,
td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

th {
	background-color: #f8f9fa;
}

/* 代码块 */
pre {
	background: #2d2d2d;
	color: #ccc;
	padding: 15px;
	border-radius: 5px;
	overflow-x: auto;
	font-family: monospace;
}

.menu-btn {
	display: none;
}

/* 5. 手机端适配 (Mobile Overrides) */
@media (max-width: 1024px) {
	.top-nav {
		/* 将 sticky 改为相对定位，这样它就会随页面滚动而滚走了 */
		position: relative;
		box-shadow: none;
		/* 手机端可以去掉投影，让页面更干净 */
		border-bottom: 1px solid #eee;
	}

	.nav-container {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		/* 垂直排列 */
		align-items: center;
		height: 60px;
		box-sizing: border-box;
	}

	.menu-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		/* height: 40px; */
		line-height: 1;
		cursor: pointer;
		order: 3;
		font-size: 1.5rem;
		margin: 0;
		margin-left: 0;
	}


	.nav-menu {
		display: none;
		position: absolute;
		top: 40px;
		right: 0;
		width: auto;
		margin: 15px 0;
		order: 2;
		background-color: #ffffff;
		z-index: 9999;
		box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2);
		border-radius: 4px;
	}

	.nav-menu ul {
		flex-direction: column;
		/* 菜单变纵向 */
		gap: 0px;
		padding: 10px 0;
	}

	.nav-menu a {
		display: block;
		padding: 10px;
		border-bottom: 1px solid #f1f1f1;
		text-align: right;
	}

	#menu-drawer-checkbox:checked~.nav-menu {
		display: block;
	}

	.nav-right {
		/* width: 100%; */
		/* justify-content: space-between; */
		display: flex;
		align-items: center;
		gap: 10px;
		order: 2;
		margin-right: 15px;
		height: 100%;
	}

	.search-input {
		width: 70px;
		height: 30px;
	}

	.search-input:focus {
		width: 100px;
	}

	.search-input::placeholder {
		font-size: 0.75rem;
	}

	.logo-section {
		align-items: center;
		order: 1;
		margin-right: auto;
	}

	.logo-container h1 {
		font-size: 1rem;
	}

	.apply-button {
		display: inline-flex;
		font-size: 0.75rem;
		align-items: center;
		/* justify-content: center; */
		height: 30px;

	}

	.main-content {
		padding: 0px 0px;
	}



}

@media (max-width: 1024px) {
	.features-scroll-wrapper {
		overflow-x: auto;
		overflow-y: hidden;
		width: 100%;
		max-width: none !important;
		/* 关键：干掉那条通配符限制 */
		padding: 40px 0;
		/* 给卡片阴影和旋转留空间 */
		/* 隐藏滚动条 */
		scrollbar-width: none;
		-ms-overflow-style: none;
		/* 启用滚动吸附 */
		scroll-snap-type: x mandatory;
		/* perspective: 1000px; */
		/* 3D 视角 */
	}

	.features-scroll-wrapper::-webkit-scrollbar {
		display: none;
		/* 隐藏 Chrome/Safari 滚动条 */
	}

	.features-container {
		display: flex;
		/* padding: 0 20%; */
		position: relative;
		/* 左右留白，让首尾卡片能居中 */
		padding: 0 calc(50vw - 120px) 60px;
		/* 假设卡片宽300px，一半就是150px */
		gap: 20px;
		max-width: none !important;
		width: max-content;
		flex-wrap: nowrap;
	}

	.feature-card {
		flex: 0 0 240px;
		/* 固定卡片宽度 */
		width: 240px;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		/* 滚动时居中对齐 */

		/* 基础 3D 样式 */
		transform: translateZ(0);
		will-change: transform;
		transition: transform 0.4s ease;
		transform-style: flat;
		backface-visibility: hidden;

		/* 默认样式：微调透明度 */
		/* 1. 强制不透明，取消模糊 */
		opacity: 1 !important;
		filter: none !important;
		-webkit-filter: none !important;
	}
}

/* 主页容器样式 */
.homepage-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* 1. 英雄区主体设计 */
.hero-section {
	background: #f5f5f7;
	color: #1d1d1f;
	padding: 50px 40px;
	text-align: center;
	border-radius: 20px;
	margin: 10px auto;
	max-width: 1400px;
	/* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
	font-family: 'Segoe UI', system-ui, sans-serif;
}

/* 3. 单个小卡片样式 (玻璃拟态设计) */
.feature-card {
	flex: 1;
	min-width: 250px;

	/* 核心修改：使用更深的颜色透明度，配合一点点浅色边框 */
	/* 稍微提亮一点透明度 */
	background: #ffffff;
	align-items: stretch;
	backdrop-filter: blur(12px);
	/* 增加模糊感，看起来更像磨砂玻璃 */
	-webkit-backdrop-filter: blur(12px);

	/* 边框：改为实线但非常淡，增加精致感 */
	border: 1px solid rgba(255, 255, 255, 0.1);

	padding: 30px 20px;
	border-radius: 20px;
	/* 稍微大一点的圆角更现代 */
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	/* 更灵动的动画 */
}

.hero-section h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
	letter-spacing: 1px;
	position: relative;
	color: #1d1d1f;
}

.hero-section h1::after {
	content: 'DCS Tools';
	color: #667eea;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	text-align: center;
	-webkit-clip-path: ellipse(25px 25px at 35% 50%);
	clip-path: ellipse(25px 25px at 35% 50%);
	font-size: 2.5rem;
	animation: spotlight 5s ease-in-out infinite alternate;
	letter-spacing: 1px;
}

@keyframes spotlight {
	0% {
		-webkit-clip-path: ellipse(25px 25px at 35% 50%);
		clip-path: ellipse(25px 25px at 35% 50%);
	}

	50% {
		-webkit-clip-path: ellipse(25px 25px at 65% 50%);
		clip-path: ellipse(25px 25px at 65% 50%);
	}

	100% {
		-webkit-clip-path: ellipse(25px 25px at 35% 50%);
		clip-path: ellipse(25px 25px at 35% 50%);
	}
}

.hero-section .subtitle {
	font-size: 1.1rem;
	color: #1d1d1f;
	margin-bottom: 10px;
}

/* 2. 三个并排 Section 的容器 */
.features-container {
	display: flex;
	/* 核心：开启弹性布局 */
	justify-content: space-around;
	/* 均匀分布 */
	gap: 20px;
	/* 卡片之间的间距 */
	/* flex-wrap: wrap; */
	/* 手机端自动换行 */
}





.cta-button {
	display: inline-block;
	background-color: white;
	color: #667eea;
	padding: 12px 30px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.features-section {
	margin-bottom: 60px;
}

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

/* .feature-card {
		background-color: white;
		padding: 30px;
		border-radius: 10px;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
		transition: all 0.3s ease;
	} */

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(100, 255, 218, 0.1);
}

.feature-card h3 {
	color: #667eea;
	margin-bottom: 15px;
	font-size: 1.3rem;
}

.feature-card p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #1d1d1f;
	/* 左对齐 */
	text-align: left;
}

.stats-section {
	/* background-color: #f8f9fa; */
	padding: 40px 8px;
	border-radius: 10px;
	margin-bottom: 60px;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	text-align: center;
}

.stats-table-container {
	background-color: white;
	padding: 30px;
	border-radius: 10px;
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
	margin-bottom: 30px;
	overflow-x: auto;
}

.stats-table {
	/* width: auto; */
	border-collapse: collapse;
	margin: 0 auto;
}

.stats-table th,
.stats-table td {
	padding: 6px;
	text-align: center;
	word-break: break-all;
	overflow-wrap: break-word;
	border-bottom: 1px solid #e9ecef;
}

.stats-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	color: #495057;
}

.stats-table tr:hover {
	background-color: #f8f9fa;
}

.stats-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.stat-item {
	background-color: white;
	padding: 25px;
	border-radius: 10px;
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
	text-align: center;
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 10px;
}

.stat-label {
	color: #6c757d;
	font-size: 0.9rem;
}

.usage-section {
	margin-bottom: 60px;
}

.usage-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.usage-card {
	background-color: #f5f5f7;
	padding: 25px;
	border-radius: 10px;
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
	transition: all 0.3s ease;
}

.usage-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.usage-card h4 {
	margin-bottom: 15px;
	color: #495057;
	font-size: 1.1rem;
}

.usage-card p {
	color: #6c757d;
	font-size: 0.9rem;
	margin: 0;
}

.install-section {
	background: #f5f5f7;
	color: #000000;
	padding: 80px 40px;
	text-align: center;
	border-radius: 20px;
	margin: 20px auto;
	max-width: 1400px;
	/* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
	font-family: 'Segoe UI', system-ui, sans-serif;
}

.install-section h2 {
	/* 使用粉色字体 */
	color: #667eea;
	font-size: 2.2rem;
	margin-bottom: 20px;
}

.install-section p {
	margin-bottom: 30px;
	opacity: 0.9;
}

.citation-section {
	background: #f5f5f7;
	color: #000000;
	padding: 20px 40px;
	text-align: center;
	border-radius: 20px;
	margin: 20px auto;
	max-width: 1400px;
	/* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); */
	font-family: 'Segoe UI', system-ui, sans-serif;
}

.citation-section h2 {
	/* 使用粉色字体 */
	color: #667eea;
	font-size: 2.2rem;
	margin-bottom: 20px;
}

.citation-section p {
	margin-bottom: 30px;
	opacity: 0.9;
}

.install-button {
	display: inline-block;
	background-color: white;
	color: #667eea;
	padding: 10px 25px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.install-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.install-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease;
}

.install-link:hover {
	transform: translateY(-5px);
}

.requirements-section {
	margin-bottom: 60px;
}

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

.requirement-card {
	background-color: #f5f5f7;
	padding: 30px;
	border-radius: 10px;
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
}

.requirement-card h4 {
	margin-bottom: 20px;
	color: #495057;
	font-size: 1.2rem;
}

.requirement-card ul {
	padding-left: 20px;
	margin: 0;
}

.requirement-card li {
	margin-bottom: 10px;
	color: #6c757d;
}

.tools-section {
	margin-bottom: 60px;
}

.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

@media (min-width: 1200px) {
	.tools-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.tool-card {
	background-color: #f5f5f7;
	padding: 25px;
	border-radius: 10px;
	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
	transition: all 0.3s ease;
}

.tool-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tool-card h4 {
	margin-bottom: 15px;
	color: #495057;
	font-size: 1.1rem;
}

.tool-card p {
	color: #6c757d;
	font-size: 0.9rem;
	margin: 0;
}

@media (max-width: 1024px) {
	.hero-section {
		padding: 20px 0;
		width: 100%;
	}

	.hero-section h1 {
		font-size: 2rem;
	}

	.features-grid,
	.stats-grid,
	.usage-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1024px) {

	/* 1. 强制头部改为两列网格布局 */
	.tabs-header {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		/* 强制平分两列 */
		gap: 8px !important;
		/* 按钮间的间距 */
		padding: 10px !important;
		background: #f8fafc;
		/* 给容器一个浅色底，更有整体感 */
		border-radius: 8px;
	}

	/* 2. 统一按钮样式 */
	.tab-btn.tab-link {
		display: flex !important;
		align-items: center;
		/* 垂直居中 */
		justify-content: center;
		/* 水平居中 */
		height: 64px !important;
		/* 【核心】强制统一高度，解决高矮不一 */
		margin: 0 !important;
		/* 清除默认 margin */
		padding: 4px 8px !important;
		font-size: 13px !important;
		/* 稍微调小字号，防止长文字溢出 */
		line-height: 1.3 !important;
		text-align: center;
		border: 1px solid #e2e8f0 !important;
		border-radius: 6px !important;
		background-color: white !important;
		color: #64748b !important;
		/* box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
	}

	/* 3. 激活状态样式 */
	.tab-btn.active.tab-link {
		background-color: #eff6ff !important;
		border-color: #3b82f6 !important;
		color: #2563eb !important;
		font-weight: bold;
	}
}

caption {
	padding-bottom: 15px;
	/* 根据需要调整数值 */
	font-weight: bold;
	/* 顺便加粗，让它更像标题 */
}

/* 1. 强制表格及其所有行、单元格背景透明 */
.feature-card .custom-table,
.feature-card .custom-table tr,
.feature-card .custom-table td,
.feature-card .custom-table th {
	background-color: transparent !important;
	/* !important 确保覆盖掉之前的白色定义 */
	background: transparent !important;
	color: #ffffff;
	/* 统一文字为白色，确保能看到字 */
}

/* 1. 让表格背景透明，文字变白 */
.feature-card .custom-table {
	background: transparent;
	/* 去掉白色背景 */
	box-shadow: none;
	/* 去掉阴影，让它融入卡片 */
	color: rgba(255, 255, 255, 0.9);
	/* 文字改为近白色 */
	width: 100%;
	margin-top: 15px;
	border-collapse: collapse;
}

/* 2. 调整表头：去掉深色块，改用亮色文字 */
.feature-card .custom-table th {
	background: #6c757d;
	/* 给表头一点点极淡的亮色 */
	/* color: #ff69b4; */
	/* 标题用方案二的玫粉色 */
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
	padding: 10px 5px;
	font-size: 0.9rem;
}

/* 3. 单元格线条变淡 */
.feature-card .custom-table td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding: 12px 5px;
	background: transparent !important;
	/* 强制去掉隔行变色的白色 */
}

/* 4. 调整高亮数字颜色 */
.feature-card .highlight-ratio {
	color: #00d2ff;
	/* 改用明亮的青蓝色，在深色背景下非常显眼 */
	font-weight: bold;
}

/* 5. 修正卡片本身，确保它不再有白色残留 */

.tabs-container {
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	font-family: sans-serif;
}

.tabs-header {
	background: #f1f1f1;
	display: flex;
	border-bottom: 1px solid #ddd;
}

.tab-btn {
	background: none;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	transition: 0.3s;
	font-size: 14px;
	color: #666;
}

.tab-btn:hover {
	background: #e0e0e0;
}

/* 使用你选中的珊瑚红 #FE817D 作为激活状态 */
.tab-btn.active {
	background: #fff;
	color: #a1a9d0;
	font-weight: bold;
	border-top: 3px solid #a1a9d0;
}

.tab-content {
	padding: 20px 0px;
	display: none;
	animation: fadeEffect 0.5s;
}

a {
	text-decoration: none;
}

.tab-content {
	transition: opacity 0.4s ease-in-out;
}

@keyframes fadeEffect {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 1024px) {

	/* 确保主页面不晃动 */
	.homepage-container {
		padding: 0 0;
		width: 100%;
		overflow-x: hidden;
	}

	/* 标签页内容容器：取消它的滚动，只负责显示/隐藏 */
	.tab-content[style*="display: block"] {
		display: block !important;
		overflow-x: visible !important;
	}

	/* 新的表格滚动包装层：这是唯一允许横向滚动的地方 */
	.table-responsive-wrapper {
		width: 100%;
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		margin: 5px 0;
		border: 1px solid #eee;
		/* 可选：增加边框方便识别边界 */
	}

	/* 强制表格宽度，触发父级的滚动 */
	.stats-table {
		min-width: 600px !important;
		/* 调整为你需要的宽度 */
		width: auto !important;
		display: table !important;
	}

	.stats-table th,
	.stats-table td {
		white-space: nowrap !important;
		padding: 10px !important;
	}

	/* 修复“图太小”：图片不跟随表格滚动，且撑满宽度 */
	.tab-content img {
		width: 100% !important;
		height: auto !important;
		max-width: none !important;
		display: block;
		margin: 20px 0;
	}
}

@media (max-width: 1024px) {

	/* 1. 调小表格整体尺寸 */
	.stats-table {
		/* 如果觉得 600px 太宽，可以尝试缩小到 450px-500px */
		min-width: 0px !important;
		font-size: 12px !important;
		/* 进一步缩小字体 */
	}

	/* 2. 压缩单元格间距 */
	.stats-table th,
	.stats-table td {
		padding: 6px 8px !important;
		/* 减少上下和左右的内边距 */
		line-height: 1.2 !important;
		/* 缩减行高 */
	}

	/* 3. 针对表格标题（Caption） */
	.stats-table caption {
		font-size: 14px !important;
		margin-bottom: 8px !important;
		font-weight: bold;
	}
}

/* 移动端适配：调小字号防止换行 */
@media (max-width: 1024px) {

	.hero-section h1,
	.hero-section h1::after {
		font-size: 2rem !important;
		/* 强制两层字号同步缩小 */
		white-space: nowrap;
		/* 强制不换行，防止上下层行数不一 */
	}

	@keyframes spotlight {

		/* 手机屏窄，文字占比大，范围可以稍微放开一点点 */
		0%,
		100% {
			clip-path: ellipse(25px 25px at 5% 50%);
		}

		50% {
			clip-path: ellipse(25px 25px at 95% 50%);
		}
	}
}