/*
Theme Name: chb-theme
Author: 华人烘焙社交圈
Author URI: http://chb.local
Description: 华人烘焙社交圈 V1 自定义主题（VoilaChef 风格）。
Version: 2.8
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chb-theme
*/

/* ==========================================================================
   基础变量与重置
   ========================================================================== */

:root {
	--chb-orange: #e8843a;
	--chb-orange-dark: #d0732a;
	--chb-brown: #6f4e37;
	--chb-cream: #fdf8f3;
	--chb-red: #c41a1a;
	--chb-matcha: #8cb087;
	--chb-white: #ffffff;
	--chb-dark: #2d2d2d;
	--chb-text: #6f4e37;
	--chb-gray: #8a8178;
	--chb-light: #f5f5f5;
	--chb-container: 1200px;
	--chb-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
	--chb-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
	--chb-radius: 16px;
	--chb-font:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	/* 优势卡背景（现在是色块，可替换为 url('...')） */
	--chb-adv-bg-1: linear-gradient(135deg, rgba(232, 132, 58, 0.92), rgba(111, 78, 55, 0.88));
	--chb-adv-bg-2: linear-gradient(135deg, rgba(111, 78, 55, 0.92), rgba(232, 132, 58, 0.82));
	--chb-adv-bg-3: linear-gradient(135deg, rgba(196, 26, 26, 0.88), rgba(232, 132, 58, 0.86));
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--chb-white);
	color: var(--chb-text);
	font-family: var(--chb-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

a {
	color: var(--chb-orange);
	text-decoration: none;
	transition: all 0.3s ease;
}

button {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--chb-dark);
	font-weight: 700;
	line-height: 1.3;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

.chb-container {
	width: 100%;
	max-width: var(--chb-container);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   通用按钮与区块
   ========================================================================== */

.chb-btn {
	display: inline-block;
	border-radius: 50px;
	padding: 14px 40px;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--chb-white);
	background-color: var(--chb-orange);
	text-align: center;
	transition: all 0.3s ease;
}

.chb-btn:hover {
	background-color: var(--chb-orange-dark);
	color: var(--chb-white);
	transform: translateY(-2px);
}

.chb-btn--outline {
	background: transparent;
	border: 2px solid var(--chb-orange);
	color: var(--chb-orange);
	padding: 10px 24px;
	font-size: 0.95rem;
}

.chb-btn--outline:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.section-heading {
	text-align: center;
	margin-bottom: 40px;
}

.section-heading h2 {
	font-size: 2rem;
	margin-bottom: 8px;
}

.section-heading p {
	color: var(--chb-gray);
}

.view-all-link {
	display: inline-block;
	margin-top: 36px;
	color: var(--chb-orange);
	font-weight: 700;
	text-align: center;
}

.view-all-link:hover {
	color: var(--chb-red);
}

/* ==========================================================================
   导航栏
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--chb-white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 76px;
}

.site-branding__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--chb-orange);
	white-space: nowrap;
}

.site-branding__title a {
	color: var(--chb-orange);
}

.site-branding__title a:hover {
	color: var(--chb-orange-dark);
}

.main-navigation {
	margin: 0 auto;
}

.main-navigation > ul {
	display: flex;
	align-items: center;
	gap: 28px;
}

.main-navigation a {
	display: inline-block;
	color: #333;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-page-ancestor > a,
.main-navigation a[aria-current="page"] {
	color: var(--chb-orange);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	white-space: nowrap;
}

.header-lang {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
}

.header-lang a {
	color: #999;
}

.header-lang a:hover,
.header-lang a.is-current {
	color: var(--chb-orange);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.header-lang__sep {
	color: #ddd;
}

.header-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-user__login {
	color: var(--chb-orange);
	font-weight: 600;
	font-size: 0.9rem;
}

.header-user__register,
.header-user__dashboard {
	display: inline-block;
	border: 1.5px solid var(--chb-orange);
	border-radius: 50px;
	padding: 6px 16px;
	color: var(--chb-orange);
	font-size: 0.9rem;
	font-weight: 600;
}

.header-user__register:hover,
.header-user__dashboard:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.nav-toggle {
	display: none;
	margin-left: auto;
	font-size: 1.4rem;
	color: var(--chb-dark);
	cursor: pointer;
}

.nav-toggle-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* ==========================================================================
   Hero（首页）
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	color: var(--chb-white);
	text-align: center;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.2) 0%,
		rgba(0, 0, 0, 0.5) 100%
	);
	z-index: 1;
}

.hero__bg {
	position: absolute;
	inset: -3% 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	animation: chbKenBurns 22s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes chbKenBurns {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.12) translate3d(0, -1.5%, 0);
	}
}

.hero__inner {
	position: relative;
	z-index: 2;
	padding: 60px 20px;
}

.hero__inner .reveal {
	animation: chbHeroFadeUp 0.9s ease forwards;
	opacity: 0;
}

.hero__inner .reveal:nth-child(2) {
	animation-delay: 0.15s;
}

.hero__inner .reveal:nth-child(3) {
	animation-delay: 0.3s;
}

.hero__inner .reveal:nth-child(4) {
	animation-delay: 0.45s;
}

@keyframes chbHeroFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	padding: 6px 16px;
	margin-bottom: 18px;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	background-color: rgba(0, 0, 0, 0.18);
	color: var(--chb-white);
	backdrop-filter: blur(4px);
}

.hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.85rem;
	letter-spacing: 1px;
	animation: chbScrollBounce 2s ease-in-out infinite;
}

@keyframes chbScrollBounce {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.72;
	}
	50% {
		transform: translateY(8px);
		opacity: 1;
	}
}

.hero__title {
	font-size: 3rem;
	font-weight: 700;
	color: var(--chb-white);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
	margin-bottom: 0;
}

.hero__subtitle {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.95);
	margin-top: 10px;
	margin-bottom: 28px;
}

/* ==========================================================================
   精选课程（首页）
   ========================================================================== */

.featured-courses {
	padding: 90px 0 80px;
}

.course-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.course-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.course-card__cover {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--chb-light);
}

.course-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.course-card:hover .course-card__cover img {
	transform: scale(1.05);
}

.course-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.course-card__title {
	font-size: 1.1rem;
	font-weight: 700;
}

.course-card__title a {
	color: var(--chb-dark);
}

.course-card__title a:hover {
	color: var(--chb-orange);
}

.course-card__meta {
	font-size: 0.9rem;
	color: var(--chb-gray);
}

.course-card__category {
	align-self: flex-start;
	display: inline-block;
	border-radius: 6px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--chb-white);
	background-color: var(--chb-orange);
}

/* ==========================================================================
   归档页横幅与分类筛选
   ========================================================================== */

.archive-hero,
.chef-archive-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 30vh;
	background: linear-gradient(135deg, var(--chb-cream) 0%, var(--chb-orange) 20%);
	text-align: center;
}

.archive-hero__inner,
.chef-archive-hero__inner {
	padding: 50px 20px;
}

.archive-hero__title,
.chef-archive-hero__title {
	font-size: 2.4rem;
	color: var(--chb-brown);
	margin-bottom: 8px;
}

.archive-hero__subtitle,
.chef-archive-hero__subtitle {
	font-size: 1.05rem;
	color: var(--chb-brown);
	opacity: 0.85;
}

.category-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 30px 0 40px;
}

.category-filter__btn {
	display: inline-block;
	border: 1px solid #ddd;
	border-radius: 30px;
	padding: 8px 20px;
	background: transparent;
	color: var(--chb-brown);
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.category-filter__btn:hover {
	border-color: var(--chb-orange);
	color: var(--chb-orange);
}

.category-filter__btn.is-active {
	background-color: var(--chb-orange);
	border-color: var(--chb-orange);
	color: var(--chb-white);
}

.course-list-page,
.chef-list-page {
	padding-bottom: 90px;
}

.empty-state {
	text-align: center;
	padding: 80px 20px;
	color: var(--chb-gray);
}

.empty-state i {
	font-size: 3rem;
	color: #e1d8cf;
	margin-bottom: 14px;
}

/* ==========================================================================
   中国师傅卡片
   ========================================================================== */

.chef-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.chef-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 34px 24px 26px;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.chef-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.chef-card__avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 16px;
	background-color: var(--chb-light);
}

.chef-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chef-card__avatar i {
	font-size: 3rem;
	line-height: 100px;
	color: #d8cdc2;
}

.chef-card__name {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--chb-dark);
	margin-bottom: 6px;
}

.chef-card__field {
	display: inline-block;
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--chb-orange);
	background-color: rgba(232, 132, 58, 0.12);
	margin-bottom: 10px;
}

.chef-card__bio {
	font-size: 0.9rem;
	color: var(--chb-gray);
	margin-bottom: 16px;
}

.chef-card__social {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.chef-card__social a {
	color: var(--chb-gray);
	font-size: 1.05rem;
}

.chef-card__social a:hover {
	color: var(--chb-orange);
	transform: translateY(-2px);
}

/* ==========================================================================
   课程详情
   ========================================================================== */

.single-course-page {
	padding: 50px 0 90px;
}

.video-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--chb-light);
	border-radius: var(--chb-radius);
	overflow: hidden;
	margin-bottom: 36px;
}

.video-stage__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-size: 1.8rem;
	box-shadow: 0 8px 26px rgba(232, 132, 58, 0.42);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-stage__button:hover {
	background-color: var(--chb-orange-dark);
	transform: scale(1.06);
}

.video-stage__caption {
	position: absolute;
	bottom: 22px;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--chb-gray);
	font-size: 0.95rem;
}

.video-stage__url {
	display: block;
	margin-top: 4px;
	font-size: 0.8rem;
	word-break: break-all;
	color: #b6aca2;
}

.course-detail__cover {
	margin-bottom: 24px;
	border-radius: var(--chb-radius);
	overflow: hidden;
}

.course-detail__title {
	font-size: 2.5rem;
	color: var(--chb-dark);
	margin-bottom: 10px;
}

.course-detail__category {
	display: inline-block;
	border-radius: 6px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--chb-white);
	background-color: var(--chb-orange);
	margin-bottom: 24px;
}

.course-detail__content,
.course-description {
	margin-bottom: 30px;
}

.course-description h2 {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.course-info-row {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	padding: 18px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-bottom: 28px;
	color: var(--chb-gray);
	font-size: 0.92rem;
}

.collection-videos {
	margin-top: 38px;
}

.collection-videos h2 {
	font-size: 1.5rem;
	margin-bottom: 18px;
}

.collection-list {
	counter-reset: collection;
}

.collection-list li {
	counter-increment: collection;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 18px;
	background-color: var(--chb-white);
	border: 1px solid #f0ede9;
	border-radius: 12px;
	margin-bottom: 12px;
	transition: all 0.3s ease;
}

.collection-list li:hover {
	border-color: var(--chb-orange);
	box-shadow: var(--chb-shadow-soft);
}

.collection-list li::before {
	content: counter(collection, decimal-leading-zero);
	flex: 0 0 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-weight: 700;
}

.collection-list__title {
	color: var(--chb-dark);
	font-weight: 700;
}

.collection-list__url {
	display: block;
	font-size: 0.8rem;
	color: var(--chb-gray);
	word-break: break-all;
}

.course-back-link {
	display: inline-block;
	margin-top: 32px;
	color: var(--chb-orange);
	font-weight: 600;
}

.course-back-link:hover {
	color: var(--chb-red);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
	background-color: var(--chb-brown);
	color: var(--chb-cream);
	padding: 64px 0 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	padding-bottom: 52px;
}

.site-footer__col h4 {
	color: var(--chb-white);
	font-size: 1rem;
	margin-bottom: 18px;
}

.site-footer__brand-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--chb-orange);
	margin-bottom: 10px;
}

.site-footer__tagline {
	color: rgba(253, 248, 243, 0.85);
	font-size: 0.95rem;
	margin-bottom: 14px;
}

.site-footer__copyright {
	color: rgba(253, 248, 243, 0.55);
	font-size: 0.82rem;
}

.site-footer__menu li,
.site-footer__legal li {
	margin-bottom: 10px;
}

.site-footer__menu a,
.site-footer__legal a {
	color: rgba(253, 248, 243, 0.82);
	font-size: 0.9rem;
}

.site-footer__menu a:hover,
.site-footer__legal a:hover {
	color: var(--chb-orange);
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.footer-social__guide {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 14px 0 18px;
	color: rgba(253, 248, 243, 0.72);
	font-size: 0.86rem;
	line-height: 1.6;
}

.footer-social__guide strong {
	color: var(--chb-orange);
}

.footer-social__guide a {
	color: var(--chb-orange);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
}

.footer-social__guide a:hover {
	color: var(--chb-cream);
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--chb-cream);
	font-size: 0.9rem;
}

.footer-social a:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
	transform: translateY(-2px);
}

.footer-social__text {
	font-size: 0.75rem;
}

.footer-share-cta {
	display: block;
	border: 1px dashed rgba(232, 132, 58, 0.8);
	border-radius: 12px;
	padding: 16px;
	background-color: rgba(232, 132, 58, 0.1);
	transition: all 0.3s ease;
}

.footer-share-cta:hover {
	background-color: rgba(232, 132, 58, 0.2);
	transform: translateY(-3px);
}

.footer-share-cta strong {
	display: block;
	color: var(--chb-orange);
	font-size: 1rem;
	margin-bottom: 4px;
}

.footer-share-cta span {
	color: rgba(253, 248, 243, 0.78);
	font-size: 0.85rem;
}

.site-footer__bottom {
	border-top: 1px solid rgba(253, 248, 243, 0.15);
	padding: 20px 0;
	text-align: center;
	font-size: 0.82rem;
	color: rgba(253, 248, 243, 0.6);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 991px) {
	.course-grid,
	.chef-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.chb-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
	}

	.main-navigation {
		display: none;
		order: 3;
		width: 100%;
	}

	.main-navigation > ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-top: 10px;
		border-top: 1px solid #f1ece7;
	}

	.main-navigation li {
		width: 100%;
	}

	.main-navigation a {
		display: block;
		padding: 10px 0;
	}

	.header-actions {
		margin-left: auto;
	}

	.nav-toggle-input:checked ~ .site-header__inner .main-navigation {
		display: block;
	}

	.hero {
		min-height: 86vh;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}

	.featured-courses {
		padding: 56px 0 48px;
	}

	.course-grid,
	.chef-grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.archive-hero,
	.chef-archive-hero {
		min-height: 24vh;
	}

	.archive-hero__title,
	.chef-archive-hero__title {
		font-size: 1.8rem;
	}

	.single-course-page {
		padding: 24px 0 60px;
	}

	.course-detail__title {
		font-size: 1.8rem;
	}
}

@media (min-width: 992px) {
	.chb-container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* ==========================================================================
   首页：师傅展示、课程展示、优势展示
   ========================================================================== */

.home-chefs {
	background-color: var(--chb-cream);
	padding: 90px 0 70px;
}

.home-chefs .chef-card {
	background-color: var(--chb-white);
}

.home-courses {
	background-color: var(--chb-white);
	padding: 90px 0 70px;
}

.home-section__footer {
	text-align: center;
	margin-top: 36px;
}

.home-advantages {
	background: linear-gradient(180deg, var(--chb-cream) 0%, var(--chb-white) 100%);
	padding: 90px 0;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.advantage-item {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 36px 28px;
	background-color: var(--chb-brown);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.advantage-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 1;
	transition: transform 0.6s ease;
}

.advantage-item--1::before {
	background-image: var(--chb-adv-bg-1);
}

.advantage-item--2::before {
	background-image: var(--chb-adv-bg-2);
}

.advantage-item--3::before {
	background-image: var(--chb-adv-bg-3);
}

.advantage-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.advantage-item:hover::before {
	transform: scale(1.06);
}

.advantage-item__content {
	position: relative;
	z-index: 1;
}

.advantage-item__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
	color: var(--chb-white);
	font-size: 1.8rem;
	margin-bottom: 16px;
}

.advantage-item h3 {
	color: var(--chb-white);
	font-size: 1.25rem;
	margin-bottom: 8px;
}

.advantage-item p {
	color: rgba(253, 248, 243, 0.92);
	font-size: 0.95rem;
}

/* ==========================================================================
   师傅归档与详情
   ========================================================================== */

.chef-archive-body {
	padding-bottom: 90px;
}

.chef-detail-page {
	padding: 60px 0 90px;
}

.chef-detail__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 50px;
	align-items: start;
}

.chef-detail__sidebar {
	text-align: center;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	padding: 30px 22px;
}

.chef-detail__avatar {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 18px;
	background-color: var(--chb-light);
}

.chef-detail__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.chef-detail__social {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.chef-detail__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--chb-cream);
	color: var(--chb-gray);
}

.chef-detail__social a:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

@media (max-width: 991px) {
	.advantages-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.chef-detail__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.home-chefs,
	.home-courses,
	.home-advantages {
		padding: 56px 0 44px;
	}

	.advantages-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

/* ==========================================================================
   首页：常见疑虑（FAQ）
   ========================================================================== */

.home-faq {
	padding: 90px 0 80px;
	background-color: var(--chb-cream);
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 30px;
	align-items: start;
}

.faq-item {
	background-color: var(--chb-white);
	border: 1px solid #f0e6da;
	border-radius: 14px;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
	border-color: rgba(232, 132, 58, 0.45);
	box-shadow: var(--chb-shadow-soft);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	color: var(--chb-dark);
	font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "\f067";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(232, 132, 58, 0.12);
	color: var(--chb-orange);
	font-size: 0.72rem;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-item[open] summary::after {
	content: "\f068";
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.faq-item__answer {
	padding: 0 20px 20px;
	color: var(--chb-text);
	font-size: 0.95rem;
	line-height: 1.75;
}

.faq-help {
	margin-top: 34px;
	text-align: center;
	color: var(--chb-gray);
}

.faq-help a {
	color: var(--chb-orange);
	font-weight: 700;
}

/* ==========================================================================
   滚动动态效果
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.reveal.in-view {
	opacity: 1;
	transform: translateY(0);
}

.course-card.float-ready,
.chef-card.float-ready,
.advantage-item.float-ready {
	animation: chbCardFloat 5s ease-in-out infinite;
}

.course-card.float-ready:nth-child(3n + 2),
.chef-card.float-ready:nth-child(3n + 2),
.advantage-item.float-ready:nth-child(3n + 2) {
	animation-delay: 1.2s;
}

.course-card.float-ready:nth-child(3n + 3),
.chef-card.float-ready:nth-child(3n + 3),
.advantage-item.float-ready:nth-child(3n + 3) {
	animation-delay: 2.4s;
}

@keyframes chbCardFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}

.course-card:hover,
.chef-card:hover,
.advantage-item:hover {
	animation: none;
	transform: translateY(-6px) !important;
}

@media (max-width: 767px) {
	.home-faq {
		padding: 56px 0 48px;
	}

	.faq-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.course-card,
	.chef-card,
	.advantage-item {
		animation: none;
	}
}

/* ==========================================================================
   首页：大图师傅卡与更强动态
   ========================================================================== */

.chef-grid--home {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.home-chef-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	padding: 0;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	overflow: hidden;
}

.home-chef-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: var(--chb-light);
}

.home-chef-card__media a {
	display: block;
	width: 100%;
	height: 100%;
}

.home-chef-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.home-chef-card:hover .home-chef-card__media img {
	transform: scale(1.1);
}

.home-chef-card__specialty {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: rgba(253, 248, 243, 0.94);
	color: var(--chb-orange);
	font-size: 0.78rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.home-chef-card__overlay {
	position: absolute;
	inset: auto 0 0;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	padding: 18px;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.68) 100%);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-chef-card:hover .home-chef-card__overlay {
	opacity: 1;
	transform: translateY(0);
}

.home-chef-card__view {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-size: 0.85rem;
	font-weight: 700;
}

.home-chef-card__view:hover {
	background-color: var(--chb-white);
	color: var(--chb-orange);
}

.home-chef-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}

.home-chef-card__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.home-chef-card__name {
	font-size: 1.18rem;
}

.home-chef-card__name a {
	color: var(--chb-dark);
}

.home-chef-card__name a:hover {
	color: var(--chb-orange);
}

.home-chef-card__tag {
	flex-shrink: 0;
	font-size: 0.72rem;
	color: var(--chb-orange);
	background-color: rgba(232, 132, 58, 0.1);
	border: 1px solid rgba(232, 132, 58, 0.35);
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

.home-chef-card__bio {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--chb-gray);
	font-size: 0.92rem;
	line-height: 1.7;
	margin-bottom: 16px;
}

.home-chef-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f3ede7;
	font-size: 0.84rem;
	color: var(--chb-gray);
}

.home-chef-card__footer i {
	margin-right: 5px;
	color: var(--chb-orange);
}

.home-chef-card__footer a {
	color: var(--chb-orange);
	font-weight: 700;
	white-space: nowrap;
	display: inline-block;
}

.home-chef-card__footer a:hover {
	color: var(--chb-red);
	transform: translateX(3px);
}

.section-heading {
	position: relative;
}

.section-heading h2 {
	position: relative;
	display: inline-block;
	padding-bottom: 12px;
}

.section-heading h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 72px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--chb-orange), var(--chb-red));
	animation: chbUnderlinePulse 2.4s ease-in-out infinite;
}

@keyframes chbUnderlinePulse {
	0%,
	100% {
		width: 48px;
		opacity: 0.7;
	}
	50% {
		width: 96px;
		opacity: 1;
	}
}

/* 错落浮现 */
.chef-grid--home .reveal,
.course-grid--home .reveal,
.advantages-grid .reveal,
.faq-grid .reveal {
	transition-duration: 0.65s;
}

.chef-grid--home .reveal:nth-child(1),
.course-grid--home .reveal:nth-child(1),
.advantages-grid .reveal:nth-child(1),
.faq-grid .reveal:nth-child(1) {
	transition-delay: 0.04s;
}

.chef-grid--home .reveal:nth-child(2),
.course-grid--home .reveal:nth-child(2),
.advantages-grid .reveal:nth-child(2),
.faq-grid .reveal:nth-child(2) {
	transition-delay: 0.12s;
}

.chef-grid--home .reveal:nth-child(3),
.course-grid--home .reveal:nth-child(3),
.advantages-grid .reveal:nth-child(3),
.faq-grid .reveal:nth-child(3) {
	transition-delay: 0.2s;
}

.chef-grid--home .reveal:nth-child(4),
.course-grid--home .reveal:nth-child(4),
.faq-grid .reveal:nth-child(4) {
	transition-delay: 0.28s;
}

.chef-grid--home .reveal:nth-child(5),
.course-grid--home .reveal:nth-child(5),
.faq-grid .reveal:nth-child(5) {
	transition-delay: 0.36s;
}

.chef-grid--home .reveal:nth-child(6),
.course-grid--home .reveal:nth-child(6),
.faq-grid .reveal:nth-child(6) {
	transition-delay: 0.44s;
}

/* 移动端：师傅大图卡改为横向大图 + 更紧凑 */
@media (max-width: 991px) {
	.chef-grid--home {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.chef-grid--home,
	.course-grid--home {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.home-chef-card__media {
		aspect-ratio: 4 / 3;
	}
}

.footer-social__hint {
	margin-top: 10px;
	color: rgba(253, 248, 243, 0.55);
	font-size: 0.78rem;
	line-height: 1.6;
}

/* ==========================================================================
   归档页大气 Banner
   ========================================================================== */

.archive-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(360px, 44vh, 560px);
	background-size: cover;
	background-position: center;
	text-align: center;
	overflow: hidden;
}

.archive-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.55)),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.archive-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 78% 18%, rgba(232, 132, 58, 0.28), transparent 42%);
	pointer-events: none;
}

.archive-banner__inner {
	position: relative;
	z-index: 2;
	padding: 70px 20px;
}

.archive-banner__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 7px 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.82rem;
	letter-spacing: 1px;
	backdrop-filter: blur(5px);
}

.archive-banner__eyebrow i {
	color: var(--chb-orange);
}

.archive-banner__title {
	color: var(--chb-white);
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.15;
	text-shadow: 0 4px 26px rgba(0, 0, 0, 0.35);
	margin-bottom: 12px;
}

.archive-banner__subtitle {
	max-width: 720px;
	margin: 0 auto 24px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.archive-banner__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.archive-banner__badges span {
	padding: 7px 16px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--chb-white);
	font-size: 0.82rem;
	backdrop-filter: blur(4px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.archive-banner--chefs::after {
	background: radial-gradient(circle at 20% 18%, rgba(232, 132, 58, 0.3), transparent 42%);
}

/* ==========================================================================
   分页美化（课程 / 师傅 / 全局归档）
   ========================================================================== */

.archive-pagination {
	margin-top: 56px;
	text-align: center;
}

.archive-pagination .navigation.pagination {
	margin: 0;
}

.archive-pagination .navigation.pagination .nav-links {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #e6ddd3;
	border-radius: 12px;
	background-color: var(--chb-white);
	color: var(--chb-brown);
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover {
	border-color: var(--chb-orange);
	background-color: rgba(232, 132, 58, 0.08);
	color: var(--chb-orange);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(232, 132, 58, 0.18);
}

.archive-pagination .page-numbers.current {
	border-color: var(--chb-orange);
	background: linear-gradient(135deg, var(--chb-orange), #d46d26);
	color: var(--chb-white);
	box-shadow: 0 8px 20px rgba(232, 132, 58, 0.32);
}

.archive-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--chb-gray);
	padding: 0 4px;
}

.archive-pagination a.next.page-numbers,
.archive-pagination a.prev.page-numbers {
	background-color: var(--chb-brown);
	border-color: var(--chb-brown);
	color: var(--chb-cream);
}

.archive-pagination a.next.page-numbers:hover,
.archive-pagination a.prev.page-numbers:hover {
	background-color: var(--chb-orange);
	border-color: var(--chb-orange);
	color: var(--chb-white);
	transform: translateY(-3px);
}

.archive-pagination .screen-reader-text {
	display: none;
}

/* ==========================================================================
   简单页面（我们的优势等）
   ========================================================================== */

.simple-page {
	padding: 70px 0 100px;
}

.simple-page__title {
	position: relative;
	font-size: 2.4rem;
	color: var(--chb-dark);
	padding-bottom: 16px;
	margin-bottom: 26px;
}

.simple-page__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--chb-orange), var(--chb-red));
}

.simple-page .entry-content {
	max-width: 860px;
	color: var(--chb-text);
}

@media (max-width: 767px) {
	.archive-banner {
		min-height: 340px;
	}

	.archive-banner__inner {
		padding: 52px 20px;
	}

	.simple-page {
		padding: 48px 0 70px;
	}
}

/* 师傅大图卡：页脚社交图标左对齐，适配归档/师傅列表 */
.home-chef-card__footer .chef-card__social {
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
}

.home-chef-card__footer .chef-card__social a {
	width: 30px;
	height: 30px;
	font-size: 0.82rem;
}

.home-chef-card__footer .footer-social__text {
	display: inline-flex;
	align-items: center;
	color: var(--chb-gray);
	font-size: 0.78rem;
}

.home-chef-card__footer > a {
	flex-shrink: 0;
}

/* ==========================================================================
   我们的优势（营销页）
   ========================================================================== */

.why-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(460px, 72vh, 720px);
	text-align: center;
	padding: 80px 0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.why-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62)),
		radial-gradient(circle at 76% 22%, rgba(232, 132, 58, 0.28), transparent 46%);
}

.why-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 980px;
}

.why-hero__eyebrow {
	display: inline-block;
	margin-bottom: 16px;
	padding: 8px 18px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.38);
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.9rem;
	letter-spacing: 1px;
	backdrop-filter: blur(5px);
}

.why-hero__title {
	color: var(--chb-white);
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	line-height: 1.22;
	text-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
	margin-bottom: 14px;
}

.why-hero__subtitle {
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(1rem, 1.7vw, 1.2rem);
	margin: 0 auto;
	max-width: 820px;
	margin-bottom: 30px;
}

.why-gallery {
	background-color: var(--chb-cream);
}

.why-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.why-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--chb-radius);
	background-color: var(--chb-white);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.why-gallery__item:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.why-gallery__image {
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
}

.why-gallery__item:hover .why-gallery__image {
	transform: scale(1.06);
}

.why-gallery__item figcaption {
	padding: 16px 20px;
	color: var(--chb-brown);
	font-weight: 600;
}

.why-section {
	padding: 88px 0;
}

.why-advantages {
	background-color: var(--chb-white);
}

.why-audiences {
	background-color: var(--chb-cream);
}

.why-section__heading {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

.why-section__heading h2 {
	color: var(--chb-dark);
	margin-bottom: 8px;
}

.why-section__heading p {
	color: var(--chb-gray);
}

.why-grid {
	display: grid;
	gap: 30px;
}

.why-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-adv-card,
.why-audience-card {
	display: flex;
	flex-direction: column;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.why-adv-card {
	padding: 0;
	overflow: hidden;
}

.why-adv-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.why-adv-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.32));
}

.why-adv-card__icon {
	position: absolute;
	left: 18px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 18px;
	background-color: rgba(255, 255, 255, 0.92);
	font-size: 1.6rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.why-adv-card__body {
	display: flex;
	flex-direction: column;
	padding: 24px 26px 28px;
	flex: 1;
}

.why-adv-card:hover,
.why-audience-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.why-audience-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 18px;
	background-color: rgba(232, 132, 58, 0.12);
	font-size: 1.8rem;
}

.why-adv-card h3,
.why-audience-card h3 {
	color: var(--chb-dark);
	font-size: 1.15rem;
	margin-bottom: 12px;
}

.why-adv-card p,
.why-audience-card p {
	color: var(--chb-text);
	font-size: 0.95rem;
	line-height: 1.75;
}

.why-audience-card {
	padding: 30px 26px;
}

.why-card__highlight {
	margin-top: 14px;
	padding: 12px 14px;
	border-left: 4px solid var(--chb-orange);
	border-radius: 8px;
	background-color: rgba(232, 132, 58, 0.08);
}

.why-card__highlight strong {
	color: var(--chb-orange);
}

.why-audience-card {
	text-align: center;
}

.why-audience-card__icon {
	margin-right: auto;
	margin-left: auto;
}

.why-audience-card > a {
	margin-top: auto;
	padding-top: 12px;
	color: var(--chb-orange);
	font-weight: 700;
}

.why-audience-card > a:hover {
	color: var(--chb-red);
}

.why-stats {
	background-color: var(--chb-white);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.stats-grid__item {
	text-align: center;
	padding: 34px 20px;
	border-radius: var(--chb-radius);
	background: linear-gradient(145deg, #fffaf4, #fdf1e5);
	box-shadow: var(--chb-shadow-soft);
}

.stats-grid__number {
	display: block;
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--chb-orange);
}

.stats-grid__label {
	display: block;
	margin-top: 8px;
	color: var(--chb-text);
	font-size: 0.95rem;
	font-weight: 600;
}

.why-cta-section {
	background-color: var(--chb-cream);
	padding-top: 20px;
	padding-bottom: 110px;
}

.why-cta-card {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 88px 48px 70px;
	border-radius: 28px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 22px 60px rgba(111, 78, 55, 0.22);
	animation: chbCtaGlow 3.6s ease-in-out infinite;
}

.why-cta-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.68)),
		radial-gradient(circle at 82% 16%, rgba(232, 132, 58, 0.3), transparent 46%);
}

.why-cta-card::after {
	content: "";
	position: absolute;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
	top: -140px;
	right: -120px;
	animation: chbCtaOrb 8s ease-in-out infinite alternate;
}

.why-cta-card > * {
	position: relative;
	z-index: 1;
}

.why-cta-card__emoji {
	display: block;
	font-size: 2.2rem;
	margin-bottom: 10px;
}

.why-cta-card h2 {
	color: var(--chb-white);
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	margin-bottom: 12px;
}

.why-cta-card__pill {
	display: inline-block;
	margin-bottom: 18px;
	padding: 8px 18px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--chb-white);
	font-size: 0.88rem;
	font-weight: 600;
	backdrop-filter: blur(6px);
}

.why-cta-card__lead {
	max-width: 760px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
}

.why-cta-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.why-cta-card__btn {
	display: inline-block;
	padding: 15px 38px;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	transition: all 0.3s ease;
}

.why-cta-card__btn--primary {
	background-color: var(--chb-white);
	color: var(--chb-orange);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.why-cta-card__btn--primary:hover {
	background-color: var(--chb-orange);
	color: var(--chb-orange);
	color: var(--chb-white);
	transform: translateY(-3px);
}

.why-cta-card__btn--ghost {
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.1);
	color: var(--chb-white);
	backdrop-filter: blur(4px);
}

.why-cta-card__btn--ghost:hover {
	background-color: var(--chb-white);
	color: var(--chb-orange);
	transform: translateY(-3px);
}

.why-cta-card__perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.why-cta-card__perks span {
	padding: 8px 16px;
	border-radius: 999px;
	background-color: rgba(0, 0, 0, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.82rem;
	backdrop-filter: blur(4px);
}

@keyframes chbCtaGlow {
	0%,
	100% {
		box-shadow: 0 22px 60px rgba(111, 78, 55, 0.22);
	}
	50% {
		box-shadow: 0 26px 72px rgba(232, 132, 58, 0.34);
	}
}

@keyframes chbCtaOrb {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(-70px, 40px) scale(1.2);
	}
}

@media (max-width: 991px) {
	.why-grid--3,
	.why-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.why-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.why-hero {
		padding: 68px 0 58px;
	}

	.why-section {
		padding: 58px 0;
	}

	.why-grid--3,
	.why-grid--4,
	.why-gallery__grid,
	.stats-grid {
		grid-template-columns: 1fr;
	}

	.why-cta-card {
		padding: 44px 24px;
	}
}

/* ==========================================================================
   我们的优势：图片场景文案 + 人群卡背景图 + 动态增强
   ========================================================================== */

.why-gallery__item figcaption {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
	text-align: left;
}

.why-gallery__item figcaption strong {
	color: var(--chb-dark);
	font-size: 1rem;
}

.why-gallery__item figcaption span {
	color: var(--chb-gray);
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.65;
}

/* 人群卡：背景图头部 */
.why-audience-card {
	padding: 0;
	overflow: hidden;
	text-align: left;
}

.why-audience-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	transition: background-size 0.7s ease;
}

.why-audience-card:hover .why-audience-card__media {
	background-size: 125% auto;
}

.why-audience-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38));
}

.why-audience-card__emoji {
	position: absolute;
	left: 16px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background-color: rgba(255, 255, 255, 0.92);
	font-size: 1.5rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.why-audience-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 20px 24px;
}

.why-audience-card__body > a {
	margin-top: auto;
	padding-top: 12px;
	color: var(--chb-orange);
	font-weight: 700;
	display: inline-block;
}

.why-audience-card__body > a:hover {
	color: var(--chb-red);
	transform: translateX(3px);
}

/* 优势卡：图片悬停放大 */
.why-adv-card__media {
	transition: background-size 0.7s ease;
}

.why-adv-card:hover .why-adv-card__media {
	background-size: 125% auto;
}

/* 卡片入场后的轻盈漂浮 */
.why-adv-card.in-view,
.why-audience-card.in-view,
.why-gallery__item.in-view,
.stats-grid__item.in-view {
	animation: chbWhyFloat 5s ease-in-out infinite;
}

.why-grid--3 .why-adv-card.in-view:nth-child(2),
.why-grid--4 .why-audience-card.in-view:nth-child(2),
.why-gallery__grid .why-gallery__item.in-view:nth-child(2) {
	animation-delay: 0.8s;
}

.why-grid--3 .why-adv-card.in-view:nth-child(3),
.why-grid--4 .why-audience-card.in-view:nth-child(3),
.why-gallery__grid .why-gallery__item.in-view:nth-child(3) {
	animation-delay: 1.6s;
}

.why-adv-card.in-view:hover,
.why-audience-card.in-view:hover,
.why-gallery__item.in-view:hover,
.stats-grid__item.in-view:hover {
	animation: none;
	transform: translateY(-6px) !important;
}

@keyframes chbWhyFloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.why-adv-card.in-view,
	.why-audience-card.in-view,
	.why-gallery__item.in-view,
	.stats-grid__item.in-view {
		animation: none;
	}
}

/* ==========================================================================
   关于我们
   ========================================================================== */

.about-hero {
	display: flex;
	align-items: center;
	min-height: 40vh;
	background: linear-gradient(135deg, var(--chb-cream) 0%, var(--chb-orange) 30%);
	text-align: center;
	padding: 70px 0;
}

.about-hero__inner {
	max-width: 920px;
}

.about-hero__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.6);
	color: var(--chb-orange);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.about-hero__title {
	color: var(--chb-dark);
	font-size: clamp(2rem, 4.2vw, 3.2rem);
	margin-bottom: 14px;
}

.about-hero__subtitle {
	max-width: 760px;
	margin: 0 auto;
	color: rgba(45, 45, 45, 0.78);
	font-size: 1.05rem;
}

.about-story {
	background-color: var(--chb-white);
	padding: 90px 0;
}

.about-story__heading {
	text-align: center;
	margin-bottom: 36px;
}

.about-story__heading p {
	color: var(--chb-gray);
}

.about-story__content {
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--chb-text);
	font-size: 1.02rem;
	line-height: 1.9;
}

.about-mission {
	background-color: var(--chb-cream);
	padding: 90px 0;
}

.about-mission__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.about-mission__card {
	text-align: center;
	padding: 44px 34px;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.about-mission__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.about-mission__icon {
	font-size: 2.6rem;
	margin-bottom: 16px;
}

.about-mission__card h2 {
	font-size: 1.5rem;
	margin-bottom: 12px;
}

.about-mission__card p {
	color: var(--chb-text);
	max-width: 460px;
	margin: 0 auto;
}

.about-team {
	background-color: var(--chb-white);
	padding: 90px 0;
}

.about-team__heading {
	text-align: center;
	margin-bottom: 42px;
}

.about-team__heading p {
	color: var(--chb-gray);
}

.about-team__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.about-team__card {
	text-align: center;
	padding: 34px 26px;
	background-color: var(--chb-white);
	border: 1px solid #f1e7dc;
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.about-team__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.about-team__avatar {
	width: 120px;
	height: 120px;
	margin: 0 auto 18px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid var(--chb-cream);
	background-color: var(--chb-light);
}

.about-team__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-team__card h3 {
	font-size: 1.2rem;
	margin-bottom: 4px;
}

.about-team__card > span {
	display: inline-block;
	color: var(--chb-orange);
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 10px;
}

.about-team__card p {
	color: var(--chb-gray);
	font-size: 0.92rem;
}

.about-cta {
	background-color: var(--chb-white);
	padding: 20px 0 100px;
}

.about-cta__card {
	text-align: center;
	padding: 60px 40px;
	border-radius: 24px;
	background: linear-gradient(145deg, var(--chb-cream), #fce8d6);
	border: 1px solid rgba(232, 132, 58, 0.24);
	box-shadow: 0 18px 45px rgba(232, 132, 58, 0.12);
}

.about-cta__emoji {
	display: block;
	font-size: 2.4rem;
	margin-bottom: 10px;
}

.about-cta__card h2 {
	margin-bottom: 10px;
}

.about-cta__card p {
	color: var(--chb-text);
	margin-bottom: 26px;
}

/* ==========================================================================
   烘焙资讯
   ========================================================================== */

.news-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36vh;
	background: linear-gradient(135deg, var(--chb-cream) 0%, #f6e2cf 60%);
	text-align: center;
}

.news-hero__inner {
	padding: 60px 20px;
}

.news-hero__eyebrow {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: var(--chb-white);
	border: 1px solid rgba(232, 132, 58, 0.3);
	color: var(--chb-orange);
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 14px;
}

.news-hero__title {
	color: var(--chb-dark);
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 8px;
}

.news-hero__subtitle {
	color: rgba(111, 78, 55, 0.8);
	font-size: 1.05rem;
}

.news-page {
	padding: 50px 0 100px;
}

.news-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 44px;
}

.news-filter__item {
	display: inline-block;
	padding: 9px 22px;
	border-radius: 999px;
	border: 1px solid #e0d5ca;
	background: transparent;
	color: var(--chb-text);
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.news-filter__item:hover {
	border-color: var(--chb-orange);
	color: var(--chb-orange);
}

.news-filter__item.is-active {
	background-color: var(--chb-orange);
	border-color: var(--chb-orange);
	color: var(--chb-white);
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.news-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--chb-shadow-hover);
}

.news-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background-color: var(--chb-light);
}

.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
	transform: scale(1.06);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 24px;
}

.news-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.news-card__category {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 6px;
	background-color: rgba(232, 132, 58, 0.12);
	color: var(--chb-orange);
	font-size: 0.74rem;
	font-weight: 700;
}

.news-card__meta time {
	color: var(--chb-gray);
	font-size: 0.78rem;
}

.news-card__title {
	font-size: 1.08rem;
	margin-bottom: 10px;
}

.news-card__title a {
	color: var(--chb-dark);
}

.news-card__title a:hover {
	color: var(--chb-orange);
}

.news-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--chb-gray);
	font-size: 0.9rem;
	margin-bottom: 14px;
}

.news-card__more {
	margin-top: auto;
	color: var(--chb-orange);
	font-weight: 700;
	font-size: 0.9rem;
}

.news-card__more:hover {
	color: var(--chb-red);
}

@media (max-width: 991px) {
	.about-team__grid,
	.news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.about-hero {
		min-height: 55vh;
		padding: 60px 0;
	}

	.about-story,
	.about-mission,
	.about-team {
		padding: 60px 0;
	}

	.about-mission__grid,
	.about-team__grid,
	.news-grid {
		grid-template-columns: 1fr;
	}

	.news-page {
		padding: 36px 0 70px;
	}
}

/* ==========================================================================
   统一图片 Banner（关于我们 / 烘焙资讯）
   ========================================================================== */

.about-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(420px, 62vh, 680px);
	padding: 90px 0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.about-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62)),
		radial-gradient(circle at 76% 20%, rgba(232, 132, 58, 0.3), transparent 46%);
}

.about-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 960px;
}

.about-hero__eyebrow {
	background-color: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.42);
	color: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(5px);
}

.about-hero__title {
	color: var(--chb-white);
	text-shadow: 0 4px 26px rgba(0, 0, 0, 0.4);
}

.about-hero__subtitle {
	color: rgba(255, 255, 255, 0.94);
}

.about-hero__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.about-hero__badges span,
.news-hero__badges span {
	padding: 7px 15px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.96);
	font-size: 0.8rem;
	backdrop-filter: blur(4px);
}

.news-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(360px, 52vh, 600px);
	padding: 70px 0;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.news-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.66)),
		radial-gradient(circle at 20% 18%, rgba(232, 132, 58, 0.3), transparent 46%);
}

.news-hero__inner {
	position: relative;
	z-index: 2;
}

.news-hero__eyebrow {
	background-color: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.42);
	color: rgba(255, 255, 255, 0.96);
}

.news-hero__title {
	color: var(--chb-white);
	text-shadow: 0 4px 26px rgba(0, 0, 0, 0.42);
}

.news-hero__subtitle {
	color: rgba(255, 255, 255, 0.94);
}

.news-hero__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

/* ==========================================================================
   烘焙资讯：整页分模块
   ========================================================================== */

.news-modules {
	background-color: var(--chb-white);
}

.news-module {
	padding: 80px 0;
	background-color: var(--chb-white);
}

.news-module--cream {
	background-color: var(--chb-cream);
}

.news-module__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 34px;
}

.news-module__heading {
	display: flex;
	align-items: center;
	gap: 14px;
}

.news-module__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 16px;
	background-color: var(--chb-white);
	box-shadow: var(--chb-shadow-soft);
	font-size: 1.5rem;
}

.news-module--cream .news-module__icon {
	background-color: var(--chb-white);
}

.news-module__heading h2 {
	font-size: 1.7rem;
	margin-bottom: 2px;
}

.news-module__heading p {
	color: var(--chb-gray);
	font-size: 0.9rem;
}

.news-module__more {
	flex-shrink: 0;
	color: var(--chb-orange);
	font-weight: 700;
	font-size: 0.9rem;
}

.news-module__more:hover {
	color: var(--chb-red);
}

.news-module__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.news-module__grid .news-card__title {
	font-size: 1rem;
}

.news-module__grid .news-card__excerpt {
	-webkit-line-clamp: 3;
}

.news-module__empty {
	color: var(--chb-gray);
	padding: 30px;
	text-align: center;
}

@media (max-width: 1199px) {
	.news-module__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.news-module__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.about-hero,
	.news-hero {
		min-height: 430px;
		padding: 60px 0;
	}

	.news-module {
		padding: 56px 0;
	}

	.news-module__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-module__grid {
		grid-template-columns: 1fr;
	}
}

.news-category-page {
	padding: 56px 0 100px;
}

.news-category-page .news-module__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-category-page .archive-pagination {
	margin-top: 54px;
}

@media (max-width: 1199px) {
	.news-category-page .news-module__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.news-category-page .news-module__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.news-category-page {
		padding: 40px 0 70px;
	}

	.news-category-page .news-module__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Ultimate Member：表单与个人中心
   ========================================================================== */

.um-page-register,
.um-page-login {
	padding: 70px 0 90px;
}

.um .um-form input[type="text"],
.um .um-form input[type="password"],
.um .um-form input[type="email"],
.um .um-form input[type="url"],
.um .um-form input[type="search"],
.um .um-form input[type="tel"],
.um .um-form textarea,
.um .um-form select {
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	background-color: var(--chb-white) !important;
	color: var(--chb-text) !important;
	box-shadow: none !important;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.um .um-form input:focus,
.um .um-form textarea:focus,
.um .um-form select:focus {
	border-color: var(--chb-orange) !important;
	box-shadow: 0 0 0 3px rgba(232, 132, 58, 0.16) !important;
	outline: none;
}

.um .um-button,
.um .um-button.um-alt,
.um input[type="submit"].um-button {
	background-color: var(--chb-orange) !important;
	border-radius: 999px !important;
	color: var(--chb-white) !important;
	font-weight: 700;
	padding: 12px 28px;
	border: 0;
	transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.um .um-button:hover,
.um input[type="submit"].um-button:hover {
	background-color: var(--chb-orange-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(232, 132, 58, 0.28);
}

.um .um-field-area {
	margin-bottom: 16px;
}

.um .um-field-label {
	font-weight: 600;
	color: var(--chb-dark);
}

.um .um-field-checkbox-option,
.um .um-field-radio-option {
	color: var(--chb-text);
}

.um-profile-nav {
	background-color: transparent !important;
}

.um-profile-nav-item a {
	border-radius: 999px !important;
}

.chb-profile-extra {
	background: transparent;
	margin-top: 24px;
}

.chb-profile-extra__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.chb-profile-extra__card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px;
	background-color: var(--chb-white);
	border: 1px solid #f0e5da;
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	transition: all 0.3s ease;
}

.chb-profile-extra__card:hover {
	transform: translateY(-5px);
	box-shadow: var(--chb-shadow-hover);
}

.chb-profile-extra__icon {
	font-size: 1.7rem;
	line-height: 1;
}

.chb-profile-extra__body h4 {
	font-size: 1rem;
	margin-bottom: 4px;
}

.chb-profile-extra__body p {
	margin: 0;
	color: var(--chb-gray);
	font-size: 0.9rem;
}

.chb-profile-extra__btn {
	display: inline-block;
	margin-top: 10px;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-size: 0.85rem;
	font-weight: 700;
}

.chb-profile-extra__btn:hover {
	background-color: var(--chb-orange-dark);
	color: var(--chb-white);
}

@media (max-width: 991px) {
	.chb-profile-extra__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.chb-profile-extra__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   分享有礼 V1：个人中心
   ========================================================================== */

.chb-referral-input {
	width: 100%;
	margin: 8px 0 10px;
	padding: 9px 11px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: var(--chb-cream);
	color: var(--chb-text);
	font-size: 0.8rem;
}

.chb-profile-extra__btn.chb-referral-copy {
	display: inline-block;
	cursor: pointer;
	border: 0;
}

.chb-referral-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0 6px;
}

.chb-referral-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 8px;
	align-items: center;
	font-size: 0.82rem;
	border-bottom: 1px dashed #eadfd3;
	padding-bottom: 7px;
}

.chb-referral-list__name {
	font-weight: 600;
	color: var(--chb-dark);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chb-referral-list__time {
	color: var(--chb-gray);
}

.chb-referral-list__status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background-color: rgba(232, 132, 58, 0.12);
	color: var(--chb-orange);
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
}

.chb-referral-view-all {
	display: inline-block;
	margin-top: 6px;
	color: var(--chb-orange);
	font-size: 0.8rem;
	font-weight: 700;
}

@media (max-width: 767px) {
	.chb-referral-list li {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.chb-referral-list__time {
		display: none;
	}
}

/* ==========================================================================
   课程视频试看
   ========================================================================== */

.video-trial-section {
	margin-bottom: 30px;
}

.video-wrapper {
	position: relative;
	width: 100%;
	background-color: #1a1a1a;
	border-radius: 12px;
	overflow: hidden;
}

.video-wrapper video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background-color: #000;
}

.video-trial-banner {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	padding: 9px 16px;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	border-radius: 12px 12px 0 0;
}

.video-skip-trial {
	position: absolute;
	right: 12px;
	bottom: 44px;
	z-index: 3;
	padding: 7px 14px;
	border-radius: 999px;
	background-color: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: var(--chb-white);
	font-size: 0.82rem;
	backdrop-filter: blur(4px);
}

.video-skip-trial:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.video-trial-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.8);
	padding: 20px;
}

.video-overlay-content {
	background-color: var(--chb-white);
	border-radius: 20px;
	padding: 40px 36px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-overlay-content__icon {
	font-size: 3rem;
	margin-bottom: 10px;
}

.video-overlay-content h2 {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--chb-dark);
}

.video-overlay-content p {
	color: #666;
	margin-bottom: 20px;
}

.video-overlay-content .btn-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.video-overlay-content .btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 30px;
	border: 0;
	font-weight: 700;
	transition: all 0.3s ease;
}

.video-overlay-content .btn-primary {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.video-overlay-content .btn-primary:hover {
	background-color: var(--chb-orange-dark);
	color: var(--chb-white);
	transform: translateY(-2px);
}

.video-overlay-content .btn-outline {
	background-color: transparent;
	border: 2px solid var(--chb-orange);
	color: var(--chb-orange);
}

.video-overlay-content .btn-outline:hover {
	background-color: var(--chb-orange);
	color: var(--chb-white);
}

.video-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background-color: #f5f5f5;
	border-radius: 12px;
	color: var(--chb-gray);
	font-size: 1rem;
}

.course-card__preview-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-size: 0.7rem;
	font-weight: 700;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.course-card__preview-badge:hover {
	background-color: var(--chb-orange-dark);
	transform: translateY(-2px);
	color: var(--chb-white);
}

.collection-list__title a {
	display: inline-block;
	color: var(--chb-dark);
	transition: color 0.3s ease, transform 0.3s ease;
}

.collection-list__title a:hover {
	color: var(--chb-orange);
	transform: translateX(3px);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.video-overlay-content {
		padding: 28px 22px;
	}

	.video-overlay-content h2 {
		font-size: 1.4rem;
	}
}

/* ==========================================================================
   课程收藏
   ========================================================================== */

.course-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.course-title-row .course-detail__title {
	margin-bottom: 0;
}

.favorite-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 16px;
	border: 1.5px solid var(--chb-orange);
	border-radius: 30px;
	background-color: transparent;
	color: var(--chb-orange);
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
}

.favorite-btn .heart {
	font-size: 1rem;
	line-height: 1;
}

.favorite-btn:hover {
	background-color: rgba(232, 132, 58, 0.08);
	transform: translateY(-2px);
}

.favorite-btn.active {
	background-color: var(--chb-orange);
	border-color: var(--chb-orange);
	color: var(--chb-white);
}

.chb-profile-favorites {
	margin-top: 22px;
}

.chb-profile-favorites h3 {
	font-size: 1.15rem;
	margin-bottom: 16px;
}

.course-grid--profile {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
	.course-grid--profile {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.course-grid--profile {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   联系我们
   ========================================================================== */

.contact-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36vh;
	background: linear-gradient(135deg, var(--chb-cream), var(--chb-orange));
	text-align: center;
}

.contact-hero__inner {
	padding: 60px 20px;
}

.contact-hero__eyebrow {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.72);
	color: var(--chb-orange);
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.contact-hero__title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--chb-dark);
	margin-bottom: 6px;
}

.contact-hero__subtitle {
	color: rgba(45, 45, 45, 0.72);
}

.contact-page {
	padding: 60px 0 100px;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	align-items: start;
}

.contact-card {
	background-color: var(--chb-white);
	border-radius: var(--chb-radius);
	box-shadow: var(--chb-shadow-soft);
	padding: 34px 30px;
}

.contact-card h2 {
	font-size: 1.4rem;
	margin-bottom: 8px;
}

.contact-card > p {
	color: var(--chb-gray);
	margin-bottom: 22px;
}

.chb-cf7-field {
	margin-bottom: 16px;
}

.chb-cf7-field label {
	display: block;
	font-weight: 600;
	color: var(--chb-dark);
	margin-bottom: 5px;
}

.chb-cf7-field input,
.chb-cf7-field textarea,
.contact-card .wpcf7 input,
.contact-card .wpcf7 textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: var(--chb-white);
	color: var(--chb-text);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chb-cf7-field input:focus,
.chb-cf7-field textarea:focus,
.contact-card .wpcf7 input:focus,
.contact-card .wpcf7 textarea:focus {
	border-color: var(--chb-orange);
	box-shadow: 0 0 0 3px rgba(232, 132, 58, 0.14);
	outline: none;
}

.chb-cf7-field textarea,
.contact-card .wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-card .wpcf7-submit,
.chb-cf7-field .wpcf7-submit {
	padding: 12px 34px;
	border: 0;
	border-radius: 999px;
	background-color: var(--chb-orange);
	color: var(--chb-white);
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
}

.contact-card .wpcf7-submit:hover {
	background-color: var(--chb-orange-dark);
	transform: translateY(-2px);
}

.contact-card .wpcf7-response-output {
	border-radius: 8px;
	margin-top: 16px;
	font-size: 0.9rem;
}

.contact-info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-info-list > li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.contact-info-list__icon {
	font-size: 1.5rem;
}

.contact-info-list strong {
	display: block;
	color: var(--chb-dark);
	margin-bottom: 3px;
}

.contact-info-list a,
.contact-info-list p {
	color: var(--chb-text);
}

.contact-info-list p {
	margin: 0;
}

.contact-social {
	margin-top: 6px;
}

@media (max-width: 991px) {
	.contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.contact-page {
		padding: 40px 0 70px;
	}

	.contact-card {
		padding: 24px 20px;
	}
}

/* ==========================================================================
   法律页面
   ========================================================================== */

body.page-id-3 .generic-page,
.legal-page {
	padding: 56px 0 90px;
}

.legal-page h2,
.generic-page h2 {
	font-size: 1.45rem;
	margin: 34px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.legal-page p,
.generic-page p {
	color: var(--chb-text);
	line-height: 1.8;
}

.legal-page ul,
.generic-page ul {
	list-style: disc;
	padding-left: 22px;
	margin: 12px 0;
}

.legal-page li,
.generic-page li {
	margin-bottom: 6px;
}

.generic-page {
	padding: 56px 0 90px;
}

.generic-page__header {
	text-align: center;
	margin-bottom: 28px;
}

.generic-page__title {
	font-size: 2rem;
}

.generic-page__content {
	max-width: 920px;
	margin: 0 auto;
}

/* ==========================================================================
   Polylang 语言切换器
   ========================================================================== */

.lang-switcher {
	display: flex;
	gap: 8px;
	align-items: center;
}

.lang-switcher a {
	font-size: 0.85rem;
	color: #666;
	text-decoration: none;
	transition: color 0.3s ease;
}

.lang-switcher a.active {
	color: var(--chb-orange);
	font-weight: 700;
}

.lang-switcher a:hover {
	color: var(--chb-orange);
}

.lang-switcher .divider {
	color: #ddd;
}
