/**
 * 使用教程 / 修改密码页排版。
 */

body.amazon-guide-page {
	background: #f3f6fb;
	color: #1d2128;
}

body.amazon-guide-page main.guide-shell {
	flex: 1 0 auto;
	padding: 70px 0 0;
	background: #f3f6fb;
}

.admin-bar.amazon-guide-page main.guide-shell {
	padding-top: 102px;
}

.guide-hero {
	padding: 48px 24px 28px;
	background:
		radial-gradient(1200px 280px at 12% -20%, rgba(1, 117, 255, 0.12), transparent 60%),
		linear-gradient(180deg, #fff 0%, #f3f6fb 100%);
	border-bottom: 1px solid rgba(29, 33, 40, 0.06);
}

.guide-hero-inner,
.guide-wrap {
	box-sizing: border-box;
	width: min(1120px, calc(100% - 48px));
	margin: 0 auto;
}

.guide-kicker {
	margin: 0 0 10px;
	color: #0175ff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.guide-hero h1 {
	margin: 0 0 12px;
	color: #1d2128;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.25;
}

.guide-lead {
	margin: 0;
	max-width: 42em;
	color: #585f69;
	font-size: 16px;
	line-height: 1.7;
}

.guide-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.guide-switch a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(29, 33, 40, 0.1);
	border-radius: 999px;
	background: #fff;
	color: #585f69;
	font-size: 14px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.guide-switch a:hover,
.guide-switch a.is-current {
	border-color: rgba(1, 117, 255, 0.45);
	background: rgba(1, 117, 255, 0.06);
	color: #0175ff;
}

.guide-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 36px;
	padding: 28px 0 72px;
}

.guide-toc {
	position: sticky;
	top: 94px;
	align-self: start;
	padding: 16px;
	border: 1px solid rgba(29, 33, 40, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.35);
}

.guide-toc p {
	margin: 0 0 10px;
	color: #8b93a1;
	font-size: 12px;
	letter-spacing: 0.06em;
}

.guide-toc a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	color: #1d2128;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.18s, color 0.18s;
}

.guide-toc a:hover {
	background: rgba(1, 117, 255, 0.08);
	color: #0175ff;
}

.guide-article {
	min-width: 0;
}

.guide-section {
	margin: 0 0 28px;
	padding: 28px 28px 8px;
	border: 1px solid rgba(29, 33, 40, 0.08);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
}

.guide-section h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	color: #1d2128;
	font-size: 22px;
	line-height: 1.35;
}

.guide-os {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(1, 117, 255, 0.1);
	color: #0175ff;
	font-size: 12px;
	font-weight: 600;
}

.guide-section > p {
	margin: 0 0 20px;
	color: #585f69;
	font-size: 15px;
	line-height: 1.7;
}

.guide-step {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	margin: 0 0 28px;
	padding-bottom: 8px;
}

.guide-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: #0175ff;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.guide-step h3 {
	margin: 6px 0 8px;
	color: #1d2128;
	font-size: 17px;
	line-height: 1.45;
}

.guide-step p {
	margin: 0 0 12px;
	color: #3c4450;
	font-size: 15px;
	line-height: 1.75;
}

.guide-ui {
	display: inline-block;
	padding: 0 6px;
	border: 1px solid rgba(29, 33, 40, 0.12);
	border-radius: 6px;
	background: #f8fafc;
	color: #1d2128;
	font-size: 13px;
	line-height: 1.7;
	white-space: nowrap;
}

.guide-or {
	margin: 0 0 12px;
	color: #8b93a1;
	font-size: 13px;
}

.guide-shot {
	margin: 0 0 4px;
	padding: 10px;
	border: 1px solid rgba(29, 33, 40, 0.08);
	border-radius: 14px;
	background: #f8fafc;
}

.guide-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.45);
}

.guide-shot figcaption {
	margin: 8px 4px 2px;
	color: #8b93a1;
	font-size: 13px;
	line-height: 1.5;
}

.guide-note,
.guide-tip {
	margin: 0 0 22px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.7;
}

.guide-note {
	background: #fff8e8;
	color: #8a5a12;
}

.guide-tip {
	background: #eef6ff;
	color: #1d4f91;
}

.guide-end {
	margin: 0 0 28px;
	padding: 22px 24px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0175ff 0%, #3b8dff 100%);
	color: #fff;
}

.guide-end h2 {
	margin: 0 0 8px;
	font-size: 18px;
}

.guide-end p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.7;
}

.guide-end a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.guide-related {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border: 1px dashed rgba(1, 117, 255, 0.28);
	border-radius: 16px;
	background: #fff;
}

.guide-related span {
	color: #585f69;
	font-size: 14px;
}

.guide-related a {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 10px;
	background: rgba(1, 117, 255, 0.08);
	color: #0175ff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.guide-related a:hover {
	background: #0175ff;
	color: #fff;
}

@media (max-width: 899px) {
	.guide-hero-inner,
	.guide-wrap {
		width: min(100% - 32px, 1120px);
	}

	.guide-layout {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.guide-toc {
		position: static;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px;
	}

	.guide-toc p {
		width: 100%;
		margin: 0 0 4px;
	}

	.guide-toc a {
		padding: 6px 10px;
		background: #f8fafc;
	}

	.guide-section {
		padding: 20px 16px 4px;
		border-radius: 16px;
	}

	.guide-step {
		grid-template-columns: 32px minmax(0, 1fr);
		gap: 10px;
	}

	.guide-step-num {
		width: 28px;
		height: 28px;
		border-radius: 9px;
		font-size: 13px;
	}

	.guide-shot {
		padding: 6px;
	}
}

@media (max-width: 782px) {
	.admin-bar.amazon-guide-page main.guide-shell {
		padding-top: 116px;
	}
}

@media (max-width: 767px) {
	.guide-hero {
		padding-top: 28px;
	}

	.guide-toc {
		top: 86px;
	}
}
