/* 主题颜色配置文件 */
:root {
	--primary-color: #45aae8;
	--primary-hover: #dec7ea;
	--primary-shadow: rgb(78, 110, 122);
	--nav-btn-left: 15px;
	--nav-btn-top: 80px;
	--accent-color: #6e90c1;
	--accent-hover: #764ba2;
}

/* IE浏览器兼容性：定义全局颜色变量 */
.primary-color {
	color: #45aae8 !important;
}

/* 侧边栏标题颜色 */
.sidebar-nav h3 {
	color: #45aae8;
	border-bottom-color: #45aae8;
}

/* 章节标题颜色 */
.section h2 {
	color: #45aae8;
	border-bottom: 3px solid #45aae8;
}

/* 链接颜色 */
body a {
	color: #45aae8;
}

.section a:not(.download-btn) {
	color: #45aae8;
	border-bottom-color: #45aae8;
}

.sidebar-nav a:hover {
	color: #45aae8;
}

.sidebar-nav a.active {
	background: #45aae8;
}

.version-date {
	color: #45aae8;
}

.qa-question {
	color: #45aae8;
}

.menu-items li {
	border-left-color: #45aae8;
}

.menu-items li strong {
	color: #45aae8;
}

.version-list li {
	border-left-color: #45aae8;
}

.qa-item {
	border-left-color: #45aae8;
}

/* 手机端导航按钮位置 */
@media (max-width: 768px) {
	:root {
		--nav-btn-left: 15px;
		--nav-btn-top: 80px;
	}
}

/* 帮助文档通用样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #333;
	line-height: 1.8;
}

body a {
	color: var(--primary-color);
}

body a:hover {
	color: var(--primary-hover);
}

html {
	scroll-behavior: smooth;
}

.container {
	max-width: 1000px;
	margin: 40px auto;
	padding: 0 20px;
}

.content-wrapper {
	flex: 1;
}

/* 预览内容最大宽度 - 与view页面保持一致 */
#preview-content {
	max-width: 1030px;
	margin: 0 auto;
}

/* 页面预览中的 .section 保持原有样式 */
#preview-content > .section {
	background: white;
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 章节预览中 .section 的 h2 调整 */
#preview-content > h2 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--primary-color);
}

/* 页面预览中的 .section 保持原有样式 */
#preview-content > .section {
	background: white;
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header {
	background: #45aae8;
	background: -ms-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -webkit-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -o-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -moz-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	color: white;
	padding: 40px;
	border-radius: 16px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgb(78, 110, 122);
}

.header h1 {
	font-size: 28px;
	margin-bottom: 10px;
}

.header p {
	font-size: 16px;
	opacity: 0.95;
}

.section {
	background: white;
	padding: 30px;
	border-radius: 12px;
	margin-bottom: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section h2 {
	color: var(--primary-color);
	font-size: 22px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--primary-color);
}

.section h3 {
	color: #333;
	font-size: 18px;
	margin: 25px 0 15px 0;
}

.section p {
	margin-bottom: 15px;
	font-size: 15px;
	white-space: pre-wrap;
}

.section p strong, .section p b {
	color: #000;
	font-weight: bold;
}

.section strong, .section b {
	color: #000;
	font-weight: 600;
}

/* 列表样式 */
ul {
	margin: 10px 0 10px 30px;
	line-height: 2;
}

ol {
	margin: 10px 0 10px 30px;
	line-height: 2;
}

/* 图片样式 */
img {
	max-width: 800px;
	width: 100%;
	height: auto;
	margin: 15px 0;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;
}

/* 提示框样式 */
.alert {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 8px;
	white-space: pre-wrap;
}

.alert-yellow {
	background: #fff3cd;
	border-left-color: #ffc107;
}

.alert-danger {
	background: #f8d7da;
	border-left-color: #dc3545;
	color: #721c24;
}

.alert-blue {
	background: #e7f3ff;
	border-left-color: #2196f3;
}

.info-box {
	background: #e7f3ff;
	border-left: 4px solid #2196f3;
	padding: 15px 20px;
	margin: 20px 0;
	border-radius: 8px;
}

/* 下载按钮样式 */
.download-links {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 20px 0;
}

.download-btn {
	display: inline-block;
	padding: 12px 24px;
	background: #6e90c1;
	background: -ms-linear-gradient(135deg, #6e90c1 0%, #764ba2 100%);
	background: -webkit-linear-gradient(135deg, #6e90c1 0%, #764ba2 100%);
	background: -o-linear-gradient(135deg, #6e90c1 0%, #764ba2 100%);
	background: -moz-linear-gradient(135deg, #6e90c1 0%, #764ba2 100%);
	background: linear-gradient(135deg, #6e90c1 0%, #764ba2 100%);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	color: white;
}

/* 数字列表样式 */
.number-list {
	counter-reset: section;
}

.number-list h3 {
	counter-increment: section;
}

.number-list h3::before {
	content: counter(section) ". ";
	color: var(--accent-color);
	font-weight: bold;
}

/* 侧边栏导航样式 */
.sidebar {
	position: fixed;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	width: 220px;
	z-index: 1000;
}

.sidebar-nav {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	max-height: 80vh;
	overflow-y: auto;
	display: none;
}

.sidebar-nav.show {
	display: block;
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.sidebar-nav h3 {
	font-size: 16px;
	color: var(--primary-color);
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

.sidebar-nav ul {
	list-style: none;
}

.sidebar-nav li {
	margin-bottom: 8px;
}

.sidebar-nav a {
	display: block;
	padding: 10px 15px;
	color: #555;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-size: 14px;
}

.sidebar-nav a:hover {
	background: #f0f4ff;
	color: var(--primary-color);
}

.sidebar-nav a.active {
	background: var(--primary-color);
	color: white;
}

.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 999;
	display: none;
}

.sidebar-overlay.show {
	display: block;
}

/* 导航按钮样式 */
.nav-trigger {
	position: fixed;
	left: var(--nav-btn-left);
	top: var(--nav-btn-top);
	width: 60px;
	height: 60px;
	background: #45aae8;
	background: -ms-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -webkit-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -o-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -moz-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: move;
	box-shadow: 0 4px 20px rgb(78, 110, 122);
	transition: box-shadow 0.3s ease;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}

.nav-trigger.snapped-left {
	left: 15px;
	top: 30px;
}

.nav-trigger.snapped-right {
	left: auto;
	right: 15px;
	top: 30px;
}

.nav-trigger:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px var(--primary-shadow);
}

/* 菜单项样式 */
.menu-items {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.menu-items li {
	padding: 12px 15px;
	margin-bottom: 8px;
	background: #f8f9fa;
	border-left: 4px solid var(--primary-color);
	border-radius: 4px;
	font-size: 15px;
}

.menu-items li strong {
	color: var(--primary-color);
	font-weight: 600;
}

/* 链接样式 */
.section a:not(.download-btn) {
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 1px dashed var(--primary-color);
	transition: all 0.3s ease;
}

.section a:not(.download-btn):hover {
	color: #764ba2;
	border-bottom-style: solid;
}

/* 版本历史列表样式 */
.version-list {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.version-list li {
	padding: 12px 15px;
	margin-bottom: 8px;
	background: #f8f9fa;
	border-left: 4px solid var(--primary-color);
	border-radius: 4px;
	font-size: 15px;
}

.version-date {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 8px;
	display: block;
}

/* QA样式 */
.qa-item {
	padding: 20px;
	margin: 20px 0;
	background: #f8f9fa;
	border-left: 4px solid var(--primary-color);
	border-radius: 8px;
}

.qa-question {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 10px;
}

.qa-answer {
	color: #555;
	line-height: 1.8;
}

/* 顶部导航栏样式 */
.top-nav {
	background: #45aae8;
	background: -ms-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -webkit-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -o-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: -moz-linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	background: linear-gradient(135deg, #45aae8 0%, #dec7ea 100%);
	padding: 12px 0;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 导航激活状态 */
.nav-table a.active {
	background: #45aae8;
	background: -ms-linear-gradient(135deg, #45aae8 0%, #3596d1 100%);
	background: -webkit-linear-gradient(135deg, #45aae8 0%, #3596d1 100%);
	background: -o-linear-gradient(135deg, #45aae8 0%, #3596d1 100%);
	background: -moz-linear-gradient(135deg, #45aae8 0%, #3596d1 100%);
	background: linear-gradient(135deg, #45aae8 0%, #3596d1 100%);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(69, 170, 232, 0.4);
	transform: translateY(-2px);
}

/* 加载状态 */
.loading {
	text-align: center;
	padding: 50px;
	font-size: 18px;
	color: #666;
}

/* 帮助编辑器专用样式 */
.help-editor-container {
	max-width: 1400px;
	margin: 0 auto;
	height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
}

.help-editor-main {
	display: grid;
	grid-template-columns: 300px 1fr;
	flex: 1;
	overflow: hidden;
}

.help-editor-sidebar {
	background: #f8f9fa;
	border-right: 1px solid #e9ecef;
	padding: 20px;
	overflow-y: auto;
	border-radius: 16px 0 0 16px;
}

.help-editor-content {
	padding: 30px;
	overflow-y: auto;
	background: white;
	margin: 0 0px;
	border-radius: 0 16px 16px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 预览区域样式 */
.preview-section {
	background: #f8f9ff;
	background: -ms-linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
	background: -webkit-linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
	background: -o-linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
	background: -moz-linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
	background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
	border-radius: 16px;
	padding: 30px;
	margin-bottom: 30px;
	margin-top: 30px;
	border: 2px solid #e3e8ff;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e9ecef;
}
.nav-container {
		max-width: 1400px;
		width: 100%;
		padding: 0 20px;
	}
	.nav-table {
		width: 100%;
		border-collapse: separate;
		border-spacing: 8px 0;
		border: none;
	}
	.nav-table tr {
		border: none;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		justify-content: center;
	}
	.nav-table td {
		padding: 0;
		border: none;
		flex: 0 0 auto;
	}
	.nav-table a {
		display: block;
		padding: 8px 16px;
		background: rgba(255, 255, 255, 0.95);
		color: #333;
		text-decoration: none;
		border-radius: 6px;
		font-size: 13px;
		font-weight: 500;
		text-align: center;
		transition: all 0.3s ease;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		white-space: nowrap;
	}
	.nav-table a:hover {
		background: #fff;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		color: var(--accent-color);
	}
	@media (min-width: 900px) {
		.nav-table tr {
			flex-wrap: nowrap;
			justify-content: center;
		}
		.nav-table a {
			padding: 12px 28px;
			font-size: 14px;
			border-radius: 8px;
		}
	}
	@media (min-width: 769px) and (max-width: 899px) {
		.nav-table a {
			padding: 10px 20px;
			font-size: 13px;
		}
	}
	@media (max-width: 480px) {
		.nav-table a {
			padding: 5px 8px;
			font-size: 12px;
		}
		.nav-container {
			padding: 6px 8px;
		}
		.nav-table {
			border-spacing: 4px 4px;
		}
	}
	@media (min-width: 481px) and (max-width: 768px) {
		.nav-table a {
			padding: 7px 12px;
			font-size: 13px;
		}
		.nav-container {
			padding: 8px 12px;
		}
		.nav-table {
			border-spacing: 6px 6px;
		}
	}