@charset "UTF-8";

/* ========== 帮助中心 V4 · 暖棕 #F4EBE2（与登录/用户中心一致） ========== */
.help-v4-page {
	--hp4-bg: #F4EBE2;
	--hp4-surface: #FFFCF8;
	--hp4-card: #FFFFFF;
	--hp4-ink: #5C4A3A;
	--hp4-ink-soft: #8C7B6A;
	--hp4-accent: #8C6E4A;
	--hp4-accent-mid: #A8845E;
	--hp4-accent-deep: #6B5235;
	--hp4-line: rgba(140, 110, 74, 0.14);
	--hp4-radius: 20px;
	--hp4-radius-sm: 12px;
	min-height: 60vh;
	padding: 28px 0 56px;
	background: var(--hp4-bg);
	font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
	color: var(--hp4-ink);
}

.help-v4-page *,
.help-v4-page *::before,
.help-v4-page *::after {
	box-sizing: border-box;
}

.help-v4-wrap {
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto;
}

/* ---------- 顶栏 ---------- */
.help-v4-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 28px;
	padding: 28px 32px;
	margin-bottom: 16px;
	background: linear-gradient(135deg, #FFFCF8 0%, #F4EBE2 60%, #EDDDC6 100%);
	border: 1px solid var(--hp4-line);
	border-radius: var(--hp4-radius);
	box-shadow: 0 16px 48px rgba(92, 74, 58, 0.08);
	position: relative;
	overflow: hidden;
}

.help-v4-header::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -30px;
	width: 160px;
	height: 160px;
	border-radius: 42% 58% 62% 38% / 55% 42% 58% 45%;
	background: rgba(196, 168, 130, 0.22);
	pointer-events: none;
}

.help-v4-kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hp4-accent-mid);
}

.help-v4-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--hp4-ink);
}

.help-v4-lead {
	margin: 0;
	max-width: 52ch;
	font-size: 14px;
	line-height: 1.7;
	color: var(--hp4-ink-soft);
}

.help-v4-quick-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	z-index: 1;
}

.help-v4-quick-tags li {
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--hp4-accent);
	background: rgba(255, 252, 248, 0.9);
	border: 1px solid var(--hp4-line);
	border-radius: 999px;
}

/* ---------- 面包屑 ---------- */
.help-v4-bc.bc-nav {
	height: auto !important;
	min-height: 0;
	line-height: 1.5;
	padding: 0 0 18px;
	margin: 0;
	border: none !important;
	background: transparent !important;
}

.help-v4-bc.bc-nav > p {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	font-size: 13px;
}

.help-v4-bc.bc-nav > p > a {
	color: var(--hp4-accent) !important;
	text-decoration: none;
	font-weight: 600;
}

.help-v4-bc.bc-nav > p > a:hover {
	color: var(--hp4-accent-deep) !important;
	text-decoration: underline;
}

/* ---------- 主体：左阅读 + 右侧导航 ---------- */
.help-v4-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}

.help-v4-main-col {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.help-v4-sidebar {
	grid-column: 2;
	grid-row: 1;
	position: sticky;
	top: 16px;
	padding: 20px 16px 18px;
	background: var(--hp4-card);
	border: 1px solid var(--hp4-line);
	border-radius: var(--hp4-radius);
	box-shadow: 0 12px 36px rgba(92, 74, 58, 0.08);
}

.help-v4-sidebar-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--hp4-line);
}

.help-v4-sidebar-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(145deg, #C4A882, #8C6E4A);
	flex-shrink: 0;
	position: relative;
}

.help-v4-sidebar-icon::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 2px solid rgba(255, 252, 248, 0.85);
	border-radius: 3px;
}

.help-v4-sidebar-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--hp4-ink);
}

/* 分类 Tab · 竖向胶囊 */
.help-v4-cat-tabs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	border: none;
}

.help-v4-tab {
	margin: 0;
	padding: 0;
}

.help-v4-tab-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hp4-ink-soft);
	text-align: left;
	background: var(--hp4-surface);
	border: 1px solid var(--hp4-line);
	border-radius: var(--hp4-radius-sm);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.help-v4-tab-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 800;
	color: var(--hp4-accent);
	background: #fff;
	border: 1px solid var(--hp4-line);
	border-radius: 8px;
}

.help-v4-tab-btn:hover {
	color: var(--hp4-ink);
	border-color: rgba(140, 110, 74, 0.28);
	background: #F4EBE2;
}

.help-v4-tab.is-active .help-v4-tab-btn {
	color: #fff;
	background: linear-gradient(180deg, #A8845E, #8C6E4A);
	border-color: transparent;
	box-shadow: 0 8px 20px rgba(140, 110, 74, 0.28);
}

.help-v4-tab.is-active .help-v4-tab-num {
	color: var(--hp4-accent);
	background: rgba(255, 252, 248, 0.95);
	border-color: transparent;
}

/* 文章列表 */
.help-v4-panels-wrap {
	padding: 0 0 14px;
	margin-bottom: 14px;
	border-bottom: 1px dashed var(--hp4-line);
}

.help-v4-article-panel {
	display: none;
	flex-direction: column;
	gap: 6px;
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
}

.help-v4-article-panel.is-active {
	display: flex;
}

.help-v4-article-panel::-webkit-scrollbar {
	width: 5px;
}

.help-v4-article-panel::-webkit-scrollbar-thumb {
	background: rgba(140, 110, 74, 0.25);
	border-radius: 999px;
}

.help-v4-article-link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--hp4-ink-soft) !important;
	text-decoration: none;
	background: var(--hp4-surface);
	border: 1px solid transparent;
	border-radius: 10px;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.help-v4-article-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	margin-top: 5px;
	border-radius: 50%;
	background: #C4A882;
}

.help-v4-article-link:hover {
	color: var(--hp4-ink) !important;
	background: #F4EBE2;
	border-color: var(--hp4-line);
}

.help-v4-article-link.is-current {
	color: var(--hp4-ink) !important;
	background: linear-gradient(90deg, rgba(255, 252, 248, 0.8), rgba(244, 235, 226, 0.95));
	border-color: rgba(140, 110, 74, 0.22);
	box-shadow: inset -3px 0 0 var(--hp4-accent);
}

.help-v4-article-link.is-current .help-v4-article-dot {
	background: var(--hp4-accent);
	box-shadow: 0 0 0 3px rgba(140, 110, 74, 0.15);
}

.help-v4-sidebar-tip {
	padding: 12px 14px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--hp4-ink-soft);
	background: var(--hp4-surface);
	border-radius: var(--hp4-radius-sm);
	border: 1px solid var(--hp4-line);
}

.help-v4-sidebar-tip strong {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--hp4-ink);
}

.help-v4-sidebar-tip p {
	margin: 0;
}

/* ---------- 右侧阅读区 ---------- */

.help-v4-main {
	background: var(--hp4-card);
	border: 1px solid var(--hp4-line);
	border-radius: var(--hp4-radius);
	box-shadow: 0 14px 40px rgba(92, 74, 58, 0.08);
	overflow: hidden;
	min-height: 420px;
}

.help-v4-main-empty {
	padding: 64px 32px;
	text-align: center;
}

.help-v4-empty-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: linear-gradient(145deg, #F4EBE2, #EDDDC6);
	border: 2px dashed rgba(140, 110, 74, 0.25);
	position: relative;
}

.help-v4-empty-icon::after {
	content: "?";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
	color: var(--hp4-accent-mid);
}

.help-v4-main-empty strong {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	color: var(--hp4-ink);
}

.help-v4-main-empty p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--hp4-ink-soft);
}

.help-v4-main-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 28px 20px;
	border-bottom: 1px solid var(--hp4-line);
	background: linear-gradient(180deg, #FFFCF8, #fff);
}

.help-v4-main-mark {
	flex-shrink: 0;
	width: 5px;
	align-self: stretch;
	min-height: 52px;
	border-radius: 4px;
	background: linear-gradient(180deg, #C4A882, #8C6E4A, #6B5235);
}

.help-v4-main-kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--hp4-accent-mid);
	letter-spacing: 0.06em;
}

.help-v4-main-head h1 {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 800;
	color: var(--hp4-ink);
	line-height: 1.35;
}

.help-v4-content {
	padding: 26px 28px 32px;
	max-width: 100%;
	overflow-x: auto;
	font-size: 15px;
	line-height: 1.8;
	color: var(--hp4-ink-soft);
}

.help-v4-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--hp4-radius-sm);
}

.help-v4-content h1,
.help-v4-content h2,
.help-v4-content h3 {
	color: var(--hp4-ink);
	margin-top: 1.2em;
}

.help-v4-content p {
	margin: 0.75em 0;
}

.help-v4-content a {
	color: var(--hp4-accent);
}

/* 反馈 */
.help-v4-feedback {
	padding: 22px 28px 26px;
	border-top: 1px solid var(--hp4-line);
	background: var(--hp4-surface);
}

.help-v4-feedback > p {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hp4-ink);
}

.help-v4-feedback-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.help-v4-btn {
	min-width: 130px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.help-v4-btn:hover {
	transform: translateY(-1px);
}

.help-v4-btn--yes {
	color: #fff;
	background: linear-gradient(180deg, #A8845E, #8C6E4A);
	box-shadow: 0 8px 20px rgba(140, 110, 74, 0.25);
}

.help-v4-btn--no {
	color: var(--hp4-accent);
	background: #fff;
	border-color: var(--hp4-line);
}

.help-v4-btn--no:hover {
	background: #F4EBE2;
	border-color: rgba(140, 110, 74, 0.3);
}

@media (max-width: 960px) {
	.help-v4-body {
		grid-template-columns: 1fr;
	}

	.help-v4-main-col {
		grid-column: 1;
		grid-row: 1;
	}

	.help-v4-sidebar {
		grid-column: 1;
		grid-row: 2;
		position: static;
	}

	.help-v4-article-panel {
		max-height: none;
	}

	.help-v4-header {
		padding: 22px 20px;
	}
}

@media (max-width: 600px) {
	.help-v4-page {
		padding: 16px 0 40px;
	}

	.help-v4-main-head,
	.help-v4-content,
	.help-v4-feedback {
		padding-left: 18px;
		padding-right: 18px;
	}

	.help-v4-feedback-actions {
		flex-direction: column;
	}

	.help-v4-btn {
		width: 100%;
	}
}
