/* 首页顶部：导航条 + 标题区 */

body.front-top-simple {
	background: #f3f3f3;
}

body.front-top-simple.nav-fixed {
	padding-top: 0;
}

body.guide-modal-open {
	overflow: hidden;
}

.site-front.site-main {
	min-height: 0;
}

.front-top {
	background: #0d0d0d;
	color: #fff;
	padding: 28px 20px 72px;
}

.front-top__inner {
	max-width: 1000px;
	margin: 0 auto;
	width: 100%;
}

.front-top__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 37px;
}

.front-top__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	line-height: 0;
}

.front-top__logo img {
	display: block;
	width: 135px;
	height: 37px;
	object-fit: contain;
	object-position: left center;
}

.front-top__logo-placeholder {
	display: block;
	width: 135px;
	height: 37px;
}

.front-top__official {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 30px;
	padding: 0 14px;
	border-radius: 6px;
	background: #2a2a2a;
	color: #b0b0b0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.front-top__official:hover {
	background: #3a3a3a;
	color: #fff;
}

.front-top__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 72px 0 24px;
}

.front-top__title {
	margin: 0;
	font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	color: #fff;
}

.front-top__subtitle {
	margin: 14px 0 0;
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, .72);
}

.front-top__desc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 28px 0 0;
	max-width: 100%;
	padding: 10px 22px;
	border-radius: 999px;
	background: #5c4a28;
	color: #e8c56a;
	font-size: clamp(13px, 1.6vw, 15px);
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

/* ── 文章分类列表 ── */

.front-guides {
	background: #f3f3f3;
	padding: 40px 20px 80px;
}

.front-guides__inner {
	max-width: 1000px;
	margin: 0 auto;
	width: 100%;
}

.front-guides__group + .front-guides__group {
	margin-top: 40px;
}

.front-guides__cat {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.front-guides__cat::before {
	content: '';
	display: block;
	width: 4px;
	height: 1.05em;
	border-radius: 2px;
	background: #e8a317;
	flex-shrink: 0;
}

.front-guides__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.front-guides__card {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 18px;
	border: none;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: box-shadow .2s, transform .2s;
}

.front-guides__card:hover:not(.is-disabled) {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.front-guides__card:focus-visible {
	outline: 2px solid #e8a317;
	outline-offset: 2px;
}

.front-guides__card.is-disabled {
	cursor: default;
}

.front-guides__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

.front-guides__icon img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: cover;
}

.front-guides__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.front-guides__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #1a1a1a;
}

.front-guides__sub {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #8a8a8a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.front-guides__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: auto;
	color: #b0b0b0;
}

.front-guides__time {
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.front-guides__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── 视频弹窗 ── */

.guide-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .38s ease, visibility .38s ease;
}

.guide-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.guide-modal[hidden] {
	display: none !important;
}

.guide-modal.is-open[hidden] {
	display: flex !important;
}

.guide-modal__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	margin: 0;
	background: rgba(8, 8, 10, .42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	opacity: 0;
	transition: opacity .4s ease;
}

.guide-modal.is-open .guide-modal__backdrop {
	opacity: 1;
}

.guide-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 16px;
	background: linear-gradient(180deg, #1c1c1e 0%, #121214 100%);
	color: #fff;
	box-shadow:
		0 8px 24px rgba(0, 0, 0, .28),
		0 28px 80px rgba(0, 0, 0, .45),
		0 0 0 1px rgba(255, 255, 255, .06);
	padding: 18px 18px 20px;
	opacity: 0;
	transform: translateY(18px) scale(.96);
	filter: blur(2px);
	transition:
		opacity .42s cubic-bezier(.22, 1, .36, 1),
		transform .42s cubic-bezier(.22, 1, .36, 1),
		filter .42s cubic-bezier(.22, 1, .36, 1);
}

.guide-modal.is-open .guide-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
	filter: blur(0);
}

.guide-modal.is-closing .guide-modal__dialog {
	opacity: 0;
	transform: translateY(10px) scale(.98);
	filter: blur(1px);
	transition-duration: .28s;
}

.guide-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.guide-modal__head-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.guide-modal__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	overflow: hidden;
	background: #2a2a2a;
}

.guide-modal__icon[hidden] {
	display: none;
}

.guide-modal__icon img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: cover;
}

.guide-modal__head-text {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 12px;
	min-width: 0;
}

.guide-modal__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
}

.guide-modal__duration {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(255, 255, 255, .55);
	font-variant-numeric: tabular-nums;
}

.guide-modal__duration[hidden] {
	display: none;
}

.guide-modal__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}

.guide-modal__close:hover {
	background: rgba(255, 255, 255, .1);
}

.guide-modal__player {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity .5s cubic-bezier(.22, 1, .36, 1) .08s,
		transform .5s cubic-bezier(.22, 1, .36, 1) .08s;
}

.guide-modal.is-open .guide-modal__player {
	opacity: 1;
	transform: translateY(0);
}

.guide-modal__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.guide-modal__desc {
	margin: 14px 2px 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, .78);
	opacity: 0;
	transform: translateY(6px);
	transition:
		opacity .45s cubic-bezier(.22, 1, .36, 1) .14s,
		transform .45s cubic-bezier(.22, 1, .36, 1) .14s;
}

.guide-modal.is-open .guide-modal__desc {
	opacity: 1;
	transform: translateY(0);
}

.guide-modal__desc[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.guide-modal,
	.guide-modal__backdrop,
	.guide-modal__dialog,
	.guide-modal__player,
	.guide-modal__desc {
		transition: none !important;
		filter: none !important;
	}

	.guide-modal__dialog,
	.guide-modal__player,
	.guide-modal__desc {
		transform: none !important;
	}
}

@media (max-width: 640px) {
	.front-top {
		padding: 20px 16px 56px;
	}

	.front-top__hero {
		padding: 48px 0 16px;
	}

	.front-top__desc {
		padding: 10px 16px;
	}

	.front-guides {
		padding: 28px 16px 64px;
	}

	.front-guides__card {
		padding: 14px;
		gap: 12px;
	}

	.front-guides__title {
		font-size: 15px;
	}

	.front-guides__sub {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.guide-modal__dialog {
		padding: 14px;
		border-radius: 12px;
	}
}
