/*
Theme Name: 和巷社区 Hexiang Community
Theme URI: https://example.com/hexiang-community
Author: 文化传媒站群
Description: 社区活动策划公司专用主题。米暖×青瓦灰×灯笼黄的街巷邻里气质，瓦檐灯笼、门牌卡片、宋体标题，九段式转化首页，内建 SEO 与本地商家结构化数据。零外部依赖，装上即精美。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hexiang-community
Tags: business, one-column, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   0. 设计令牌
   ========================================================================== */

:root {
	--hx-bg: #fdf7ea;
	--hx-bg-alt: #f6efe0;
	--hx-surface: #ffffff;
	--hx-card: #ffffff;
	--hx-ink: #33424c;
	--hx-ink-dim: rgba(51, 66, 76, 0.72);
	--hx-ink-faint: rgba(51, 66, 76, 0.48);
	--hx-accent: #b3502d;
	--hx-accent-2: #d06a44;
	--hx-accent-deep: #8f3c1f;
	--hx-accent-grad: linear-gradient(135deg, #d06a44, #b3502d 60%, #8f3c1f);
	--hx-accent-ink: #fdf7ea;
	--hx-tile: #46606e;
	--hx-lantern: #f2a83b;
	--hx-line: rgba(70, 96, 110, 0.55);
	--hx-line-soft: rgba(51, 66, 76, 0.2);
	--hx-line-faint: rgba(51, 66, 76, 0.1);
	--hx-head-font: Georgia, "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
	--hx-body-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
	--hx-radius: 12px;
	--hx-radius-sm: 8px;
	--hx-shadow: 0 16px 36px rgba(70, 96, 110, 0.14);
	--hx-header-bg: rgba(253, 247, 234, 0.93);
	--hx-hero-bg: #fdf7ea;
}

/* ==========================================================================
   1. 基础与排版
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--hx-body-font);
	font-size: 16.5px;
	line-height: 1.78;
	color: var(--hx-ink);
	background: var(--hx-bg);
	overflow-wrap: anywhere;
}

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

a {
	color: var(--hx-accent);
	text-decoration: none;
}

a:hover {
	color: var(--hx-accent-2);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hx-head-font);
	line-height: 1.28;
	color: var(--hx-ink);
}

button {
	font-family: inherit;
}

::selection {
	background: var(--hx-accent);
	color: var(--hx-accent-ink);
}

/* 无障碍 */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -48px;
	left: 12px;
	z-index: 200;
	padding: 8px 16px;
	background: var(--hx-accent);
	color: var(--hx-accent-ink);
	border-radius: 6px;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 12px;
	width: auto;
	height: auto;
	clip: auto;
	color: var(--hx-accent-ink);
}

.hx-container {
	width: min(1160px, 92vw);
	margin-inline: auto;
}

.hx-kicker {
	margin: 0 0 14px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hx-accent);
}

.hx-accent-text {
	color: var(--hx-accent);
}

/* ==========================================================================
   2. 按钮
   ========================================================================== */

.hx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1.6px solid transparent;
	border-radius: var(--hx-radius-sm);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hx-btn:hover {
	transform: translateY(-2px);
}

.hx-btn:active {
	transform: translateY(0);
}

.hx-btn-main {
	background: var(--hx-accent-grad);
	color: var(--hx-accent-ink);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--hx-accent) 32%, transparent);
}

.hx-btn-main:hover {
	color: var(--hx-accent-ink);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--hx-accent) 44%, transparent);
}

.hx-btn-ghost {
	background: transparent;
	color: var(--hx-ink);
	border-color: var(--hx-line-soft);
}

.hx-btn-ghost:hover {
	color: var(--hx-accent);
	border-color: var(--hx-accent);
}

.hx-btn-sm {
	padding: 9px 18px;
	font-size: 0.9rem;
}

.hx-btn-lg {
	padding: 15px 32px;
	font-size: 1.05rem;
}

.hx-btn-block {
	width: 100%;
}

.hx-ic {
	flex: none;
}

/* ==========================================================================
   3. 页头
   ========================================================================== */

.hx-header {
	position: sticky;
	top: 0;
	z-index: 120;
	background: var(--hx-header-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--hx-line-faint);
	transition: box-shadow 0.25s ease;
}

.hx-header-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hx-header-in {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
}

.hx-brand {
	flex: none;
}

.hx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--hx-ink);
	font-family: var(--hx-head-font);
	font-weight: 700;
	font-size: 1.18rem;
	letter-spacing: 0.02em;
}

.hx-logo:hover {
	color: var(--hx-ink);
}

.hx-logo-mark {
	display: inline-flex;
	flex: none;
}

.hx-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.hx-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-menu a {
	display: inline-block;
	padding: 8px 13px;
	border-radius: var(--hx-radius-sm);
	color: var(--hx-ink-dim);
	font-size: 0.95rem;
	font-weight: 500;
}

.hx-menu a:hover {
	color: var(--hx-accent);
	background: color-mix(in srgb, var(--hx-accent) 9%, transparent);
}

.hx-header-cta {
	flex: none;
}

/* 汉堡按钮（≤900px 显示） */
.hx-nav-toggle {
	display: none;
	flex: none;
	padding: 10px;
	background: transparent;
	border: 1.4px solid var(--hx-line-soft);
	border-radius: var(--hx-radius-sm);
	cursor: pointer;
}

.hx-nav-toggle-box {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 20px;
}

.hx-nav-toggle-box i {
	height: 2px;
	background: var(--hx-ink);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.hx-nav-open .hx-nav-toggle-box i:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hx-nav-open .hx-nav-toggle-box i:nth-child(2) {
	opacity: 0;
}

.hx-nav-open .hx-nav-toggle-box i:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. 首屏（三种布局：center / split / poster）
   ========================================================================== */

.hx-hero {
	position: relative;
	overflow: hidden;
	background: var(--hx-hero-bg, var(--hx-bg));
}

.hx-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hx-hero-bg svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hx-hero-in {
	position: relative;
	z-index: 1;
	padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 8vw, 104px);
	max-width: 880px;
	text-align: center;
}

.hx-hero-title {
	margin: 0 0 20px;
	font-size: clamp(2.2rem, 5.6vw, 3.9rem);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: 0.01em;
}

.hx-hero-sub {
	max-width: 640px;
	margin: 0 auto 34px;
	font-size: clamp(1rem, 1.6vw, 1.13rem);
	line-height: 2;
	color: var(--hx-ink-dim);
}

.hx-hero-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 34px;
}

.hx-hero-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-chip {
	padding: 7px 16px;
	border: 1px solid var(--hx-line-soft);
	border-radius: 999px;
	font-size: 0.86rem;
	color: var(--hx-ink-dim);
	background: color-mix(in srgb, var(--hx-surface) 62%, transparent);
}

.hx-hero-emblem {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

/* split：左文右图 */
.hx-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	max-width: none;
	text-align: left;
}

.hx-hero-split .hx-hero-sub {
	margin-left: 0;
}

.hx-hero-split .hx-hero-cta,
.hx-hero-split .hx-hero-chips {
	justify-content: flex-start;
}

.hx-hero-art {
	position: relative;
	min-width: 0;
}

.hx-hero-art svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hx-radius);
	box-shadow: var(--hx-shadow);
}

/* poster：通栏大字 */
.hx-hero-poster {
	max-width: none;
	text-align: left;
}

.hx-hero-poster .hx-hero-title {
	max-width: 1000px;
	font-size: clamp(2.6rem, 7.4vw, 5.4rem);
	line-height: 1.06;
	letter-spacing: -0.015em;
}

.hx-hero-poster .hx-hero-sub {
	margin-left: 0;
}

.hx-hero-poster .hx-hero-cta,
.hx-hero-poster .hx-hero-chips {
	justify-content: flex-start;
}

/* ==========================================================================
   5. 数字实力条
   ========================================================================== */

.hx-stats {
	border-block: 1px solid var(--hx-line-faint);
	background: var(--hx-stats-bg, var(--hx-bg-alt));
}

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

.hx-stat {
	text-align: center;
}

.hx-stat-num {
	margin: 0;
	font-family: var(--hx-head-font);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 800;
	color: var(--hx-accent);
	line-height: 1.2;
}

.hx-stat-num span {
	font-size: 0.6em;
	margin-left: 2px;
}

.hx-stat-label {
	margin: 4px 0 0;
	font-size: 0.9rem;
	color: var(--hx-ink-dim);
}

/* ==========================================================================
   6. 通用区块
   ========================================================================== */

.hx-section {
	padding: clamp(58px, 8vw, 104px) 0;
}

.hx-section-alt {
	background: var(--hx-bg-alt);
	border-block: 1px solid var(--hx-line-faint);
}

.hx-section-head {
	max-width: 720px;
	margin: 0 auto clamp(36px, 5vw, 56px);
	text-align: center;
}

.hx-section-kicker {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: var(--hx-accent);
}

.hx-section-title {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 3.6vw, 2.5rem);
	font-weight: 800;
}

.hx-section-sub {
	margin: 0;
	color: var(--hx-ink-dim);
	line-height: 1.95;
}

/* ==========================================================================
   7. 服务卡片
   ========================================================================== */

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

.hx-service-card {
	padding: 30px 26px;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hx-service-card:hover {
	transform: translateY(-4px);
	border-color: var(--hx-line-soft);
	box-shadow: var(--hx-shadow);
}

.hx-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 16px;
	border-radius: var(--hx-radius-sm);
	color: var(--hx-accent);
	background: color-mix(in srgb, var(--hx-accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--hx-accent) 26%, transparent);
}

.hx-service-title {
	margin: 0 0 8px;
	font-size: 1.12rem;
	font-weight: 700;
}

.hx-service-text {
	margin: 0;
	font-size: 0.94rem;
	color: var(--hx-ink-dim);
	line-height: 1.85;
}

/* ==========================================================================
   8. 案例
   ========================================================================== */

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

.hx-case-card {
	overflow: hidden;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hx-case-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hx-shadow);
}

.hx-case-art {
	aspect-ratio: 8 / 5;
	overflow: hidden;
	border-bottom: 1px solid var(--hx-line-faint);
}

.hx-case-art svg,
.hx-case-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hx-case-body {
	padding: 20px 22px 24px;
}

.hx-case-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.hx-tag {
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--hx-accent);
	background: color-mix(in srgb, var(--hx-accent) 11%, transparent);
	border: 1px solid color-mix(in srgb, var(--hx-accent) 24%, transparent);
}

.hx-case-title {
	margin: 0 0 6px;
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.5;
}

.hx-case-meta {
	margin: 0;
	font-size: 0.86rem;
	color: var(--hx-ink-faint);
}

.hx-cases-note {
	margin: 22px 0 0;
	text-align: center;
	font-size: 0.84rem;
	color: var(--hx-ink-faint);
}

/* ==========================================================================
   9. 流程
   ========================================================================== */

.hx-process {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.hx-process-step {
	position: relative;
	padding: 26px 20px 24px;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
}

.hx-step-num {
	display: inline-block;
	margin-bottom: 12px;
	font-family: var(--hx-head-font);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--hx-accent);
	opacity: 0.9;
}

.hx-step-title {
	margin: 0 0 8px;
	font-size: 1.03rem;
	font-weight: 700;
}

.hx-step-text {
	margin: 0;
	font-size: 0.88rem;
	color: var(--hx-ink-dim);
	line-height: 1.8;
}

/* ==========================================================================
   10. 套餐
   ========================================================================== */

.hx-plans-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.hx-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
}

.hx-plan-featured {
	border-color: color-mix(in srgb, var(--hx-accent) 55%, transparent);
	box-shadow: var(--hx-shadow);
	background: var(--hx-plan-featured-bg, var(--hx-card));
}

.hx-plan-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 4px 16px;
	border-radius: 999px;
	background: var(--hx-accent-grad);
	color: var(--hx-accent-ink);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.hx-plan-name {
	margin: 0 0 6px;
	font-size: 1.14rem;
	font-weight: 700;
}

.hx-plan-price {
	margin: 0 0 4px;
	font-family: var(--hx-head-font);
	font-size: 2.1rem;
	font-weight: 800;
	color: var(--hx-accent);
}

.hx-plan-cny {
	font-size: 0.55em;
	margin-right: 2px;
}

.hx-plan-unit {
	font-size: 0.5em;
	margin-left: 4px;
	color: var(--hx-ink-dim);
	font-weight: 600;
}

.hx-plan-for {
	margin: 0 0 18px;
	font-size: 0.88rem;
	color: var(--hx-ink-faint);
}

.hx-plan-list {
	flex: 1 1 auto;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.hx-plan-list li {
	position: relative;
	padding: 8px 0 8px 26px;
	font-size: 0.94rem;
	color: var(--hx-ink-dim);
	border-bottom: 1px dashed var(--hx-line-faint);
}

.hx-plan-list li:last-child {
	border-bottom: 0;
}

.hx-plan-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 15px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--hx-accent);
	border-bottom: 2px solid var(--hx-accent);
	transform: rotate(-45deg) scale(0.86);
}

/* ==========================================================================
   11. 客户之声
   ========================================================================== */

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

.hx-voice-card {
	margin: 0;
	padding: 28px 26px;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
}

.hx-voice-text {
	margin: 0 0 16px;
	font-size: 0.97rem;
	line-height: 2;
	color: var(--hx-ink);
}

.hx-voice-who {
	font-size: 0.85rem;
	color: var(--hx-ink-faint);
}

.hx-voice-who::before {
	content: "—— ";
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */

.hx-faq-wrap {
	max-width: 780px;
}

.hx-faq {
	display: grid;
	gap: 12px;
}

.hx-faq-item {
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius-sm);
	background: var(--hx-card);
	overflow: hidden;
}

.hx-faq-item[open] {
	border-color: color-mix(in srgb, var(--hx-accent) 45%, transparent);
}

.hx-faq-q {
	position: relative;
	padding: 17px 52px 17px 22px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	list-style: none;
}

.hx-faq-q::-webkit-details-marker {
	display: none;
}

.hx-faq-q::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--hx-accent);
	border-bottom: 2px solid var(--hx-accent);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.2s ease;
}

.hx-faq-item[open] .hx-faq-q::after {
	transform: translateY(-30%) rotate(-135deg);
}

.hx-faq-a {
	padding: 0 22px 18px;
	color: var(--hx-ink-dim);
	font-size: 0.95rem;
	line-height: 1.95;
}

.hx-faq-a p {
	margin: 0;
}

/* ==========================================================================
   13. 联系 CTA
   ========================================================================== */

.hx-cta-band {
	padding: clamp(58px, 8vw, 104px) 0;
	background: var(--hx-cta-bg, var(--hx-bg-alt));
	border-top: 1px solid var(--hx-line-faint);
}

.hx-cta-in {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(30px, 5vw, 64px);
	align-items: center;
}

.hx-cta-title {
	margin: 0 0 14px;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.3;
}

.hx-cta-sub {
	margin: 0;
	color: var(--hx-ink-dim);
	line-height: 2;
}

.hx-contact-card {
	padding: 30px 28px;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-soft);
	border-radius: var(--hx-radius);
	box-shadow: var(--hx-shadow);
	text-align: center;
}

.hx-contact-label {
	margin: 0 0 6px;
	font-size: 0.85rem;
	color: var(--hx-ink-faint);
}

.hx-contact-phone {
	display: block;
	margin-bottom: 16px;
	font-family: var(--hx-head-font);
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 800;
	color: var(--hx-accent);
	letter-spacing: 0.02em;
}

.hx-contact-addr {
	margin: 14px 0 0;
	font-size: 0.85rem;
	color: var(--hx-ink-faint);
}

/* ==========================================================================
   14. 页脚
   ========================================================================== */

.hx-footer {
	padding: clamp(44px, 6vw, 72px) 0 28px;
	background: var(--hx-footer-bg, var(--hx-bg-alt));
	border-top: 1px solid var(--hx-line-faint);
}

.hx-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 32px;
	margin-bottom: 36px;
}

.hx-footer-logo {
	margin: 0 0 12px;
	font-family: var(--hx-head-font);
	font-size: 1.3rem;
	font-weight: 800;
}

.hx-footer-blurb {
	margin: 0 0 16px;
	font-size: 0.9rem;
	color: var(--hx-ink-dim);
	line-height: 1.9;
}

.hx-footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: var(--hx-ink-dim);
}

.hx-footer-contact li {
	padding: 3px 0;
}

.hx-footer-contact a {
	color: var(--hx-accent);
	font-weight: 600;
}

.hx-footer-title {
	margin: 0 0 14px;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.hx-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-footer-links li {
	padding: 4px 0;
}

.hx-footer-links a {
	font-size: 0.9rem;
	color: var(--hx-ink-dim);
}

.hx-footer-links a:hover {
	color: var(--hx-accent);
}

.hx-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid var(--hx-line-faint);
	font-size: 0.82rem;
	color: var(--hx-ink-faint);
}

.hx-footer-legal p {
	margin: 0;
}

.hx-footer-legal a {
	color: var(--hx-ink-faint);
}

/* ==========================================================================
   15. 移动端咨询条 & 提示
   ========================================================================== */

.hx-mobilebar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 140;
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--hx-line-soft);
	background: var(--hx-header-bg);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.hx-mobilebar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 8px calc(14px + env(safe-area-inset-bottom, 0px));
	font-size: 0.95rem;
	font-weight: 700;
	border: 0;
	cursor: pointer;
}

.hx-mobilebar-tel {
	background: var(--hx-accent-grad);
	color: var(--hx-accent-ink);
}

.hx-mobilebar-tel:hover {
	color: var(--hx-accent-ink);
}

.hx-mobilebar-wx {
	background: transparent;
	color: var(--hx-ink);
}

.hx-toast {
	position: fixed;
	top: 86px;
	left: 50%;
	z-index: 220;
	transform: translateX(-50%) translateY(-8px);
	max-width: min(92vw, 420px);
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--hx-ink);
	color: var(--hx-bg);
	font-size: 0.9rem;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.hx-toast-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   16. 子页 / 文章
   ========================================================================== */

.hx-page-hero {
	padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 5vw, 52px);
	background: var(--hx-hero-bg, var(--hx-bg-alt));
	border-bottom: 1px solid var(--hx-line-faint);
	text-align: center;
}

.hx-page-title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.25;
}

.hx-page-sub {
	max-width: 640px;
	margin: 0 auto;
	color: var(--hx-ink-dim);
	line-height: 1.95;
}

.hx-article-meta {
	margin: 10px 0 0;
	font-size: 0.88rem;
	color: var(--hx-ink-faint);
}

.hx-article-body {
	max-width: 800px;
	padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 7vw, 88px);
}

/* 正文排版（wlq 自动发文内容落在这里） */
.hx-prose {
	font-size: 1.02rem;
	line-height: 2;
	color: var(--hx-ink);
}

.hx-prose > * {
	margin: 0 0 1.25em;
}

.hx-prose h2 {
	margin: 1.9em 0 0.8em;
	padding-left: 14px;
	border-left: 4px solid var(--hx-accent);
	font-size: 1.42rem;
}

.hx-prose h3 {
	margin: 1.6em 0 0.7em;
	font-size: 1.2rem;
}

.hx-prose h4 {
	margin: 1.4em 0 0.6em;
	font-size: 1.05rem;
}

.hx-prose ul,
.hx-prose ol {
	padding-left: 1.6em;
}

.hx-prose li {
	margin-bottom: 0.4em;
}

.hx-prose blockquote {
	margin: 1.4em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--hx-accent);
	border-radius: 0 var(--hx-radius-sm) var(--hx-radius-sm) 0;
	background: var(--hx-bg-alt);
	color: var(--hx-ink-dim);
}

.hx-prose blockquote p:last-child {
	margin-bottom: 0;
}

.hx-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

.hx-prose th,
.hx-prose td {
	padding: 10px 14px;
	border: 1px solid var(--hx-line-soft);
	text-align: left;
}

.hx-prose th {
	background: var(--hx-bg-alt);
	font-weight: 700;
}

.hx-prose img {
	border-radius: var(--hx-radius-sm);
}

.hx-prose code {
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--hx-bg-alt);
	font-size: 0.88em;
}

.hx-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 文章内转化卡 */
.hx-article-cta {
	margin: 40px 0;
	padding: 28px 26px;
	border: 1px solid color-mix(in srgb, var(--hx-accent) 35%, transparent);
	border-radius: var(--hx-radius);
	background: color-mix(in srgb, var(--hx-accent) 7%, var(--hx-bg-alt));
	text-align: center;
}

.hx-article-cta-title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 800;
}

.hx-article-cta-sub {
	margin: 0 0 18px;
	font-size: 0.92rem;
	color: var(--hx-ink-dim);
}

.hx-article-cta-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* 相关阅读 / 上下篇 */
.hx-related {
	margin-top: 44px;
}

.hx-related-title {
	margin: 0 0 14px;
	font-size: 1.15rem;
}

.hx-related-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-related-list li {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--hx-line-faint);
}

.hx-related-list a {
	color: var(--hx-ink);
	min-width: 0;
}

.hx-related-list a:hover {
	color: var(--hx-accent);
}

.hx-related-list span {
	flex: none;
	font-size: 0.84rem;
	color: var(--hx-ink-faint);
}

.hx-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 36px;
	font-size: 0.92rem;
}

.hx-post-nav-next {
	text-align: right;
}

/* ==========================================================================
   17. 文章列表卡片
   ========================================================================== */

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

.hx-post-card {
	overflow: hidden;
	background: var(--hx-card);
	border: 1px solid var(--hx-line-faint);
	border-radius: var(--hx-radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hx-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hx-shadow);
}

.hx-post-card-link {
	display: block;
	color: inherit;
}

.hx-post-thumb {
	aspect-ratio: 8 / 5;
	overflow: hidden;
	border-bottom: 1px solid var(--hx-line-faint);
}

.hx-post-thumb img,
.hx-post-thumb svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hx-post-card-body {
	padding: 18px 20px 22px;
}

.hx-post-date {
	margin: 0 0 6px;
	font-size: 0.8rem;
	color: var(--hx-ink-faint);
}

.hx-post-card-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--hx-ink);
}

.hx-post-card:hover .hx-post-card-title {
	color: var(--hx-accent);
}

.hx-post-card-excerpt {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: var(--hx-ink-dim);
	line-height: 1.85;
}

.hx-post-more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--hx-accent);
}

/* 分页 */
.hx-pagination {
	margin-top: 36px;
	text-align: center;
}

.hx-pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	margin: 0 3px;
	padding: 8px 12px;
	border: 1px solid var(--hx-line-soft);
	border-radius: var(--hx-radius-sm);
	color: var(--hx-ink-dim);
	font-size: 0.92rem;
}

.hx-pagination .page-numbers.current,
.hx-pagination .page-numbers:hover {
	border-color: var(--hx-accent);
	color: var(--hx-accent);
}

/* ==========================================================================
   18. 搜索 / 空状态 / 404
   ========================================================================== */

.hx-searchform {
	display: flex;
	gap: 10px;
	max-width: 440px;
	margin: 0 auto;
}

.hx-search-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px;
	border: 1.4px solid var(--hx-line-soft);
	border-radius: var(--hx-radius-sm);
	background: var(--hx-surface);
	color: var(--hx-ink);
	font-size: 0.95rem;
}

.hx-search-input:focus {
	outline: 2px solid color-mix(in srgb, var(--hx-accent) 55%, transparent);
	border-color: var(--hx-accent);
}

.hx-search-submit {
	flex: none;
}

.hx-empty {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
}

.hx-empty-title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 800;
}

.hx-empty-sub {
	margin: 0 0 22px;
	color: var(--hx-ink-dim);
}

.hx-empty .hx-searchform {
	margin-bottom: 20px;
}

.hx-error404 {
	text-align: center;
}

.hx-error-code {
	margin: 0 0 10px;
	font-family: var(--hx-head-font);
	font-size: clamp(4.4rem, 12vw, 7.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--hx-ink);
}

.hx-error-actions {
	display: grid;
	gap: 20px;
	justify-items: center;
	margin-top: 28px;
}

/* ==========================================================================
   19. WordPress 核心兼容
   ========================================================================== */

.alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.85rem;
	color: var(--hx-ink-faint);
	text-align: center;
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

/* ==========================================================================
   20. 响应式
   ========================================================================== */

@media (max-width: 1024px) {
	.hx-services-grid,
	.hx-voices-grid,
	.hx-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

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

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

@media (max-width: 900px) {
	.hx-nav {
		position: fixed;
		top: 72px;
		left: 0;
		right: 0;
		z-index: 130;
		display: none;
		padding: 10px 4vw 18px;
		background: var(--hx-header-bg);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--hx-line-soft);
		box-shadow: 0 24px 40px rgba(0, 0, 0, 0.18);
	}

	.hx-nav-open .hx-nav {
		display: block;
	}

	.hx-menu {
		flex-direction: column;
		gap: 2px;
	}

	.hx-menu a {
		display: block;
		padding: 12px 10px;
		font-size: 1.02rem;
	}

	.hx-nav-toggle {
		display: inline-flex;
	}

	.hx-header-cta {
		display: none;
	}

	.hx-hero-split {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.hx-hero-split .hx-hero-cta,
	.hx-hero-split .hx-hero-chips {
		justify-content: center;
	}

	.hx-hero-split .hx-hero-sub {
		margin-inline: auto;
	}

	.hx-hero-art {
		max-width: 560px;
		margin: 0 auto;
	}

	.hx-cta-in {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	body {
		padding-bottom: 62px; /* 给移动咨询条留位 */
	}

	.hx-mobilebar {
		display: grid;
	}

	.hx-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		padding: 24px 0;
	}

	.hx-services-grid,
	.hx-cases-grid,
	.hx-voices-grid,
	.hx-plans-grid,
	.hx-posts-grid {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.hx-hero-cta .hx-btn {
		width: 100%;
	}

	.hx-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.hx-post-nav-next {
		text-align: left;
	}

	.hx-footer-legal {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 560px) {
	.hx-process {
		grid-template-columns: minmax(0, 1fr);
	}

	.hx-footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.hx-searchform {
		flex-direction: column;
	}
}

/* ==========================================================================
   21. 动效偏好
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   22. 主题皮肤（和巷社区 专属视觉）
   ========================================================================== */

/* 街巷烟火 */
.hx-header {
	border-bottom: 2px solid var(--hx-tile);
}

.hx-hero {
	border-bottom: 2px solid var(--hx-tile);
}

.hx-hero-title {
	font-weight: 700;
	letter-spacing: 0.03em;
}

.hx-hero-title em {
	font-style: normal;
	color: var(--hx-accent);
}

.hx-hero .hx-kicker {
	color: var(--hx-tile);
	letter-spacing: 0.28em;
}

.hx-hero .hx-kicker::before,
.hx-hero .hx-kicker::after {
	content: "";
	display: inline-block;
	width: 9px;
	height: 11px;
	margin: 0 10px;
	border-radius: 50% 50% 46% 46%;
	background: var(--hx-lantern);
	border: 1.4px solid var(--hx-accent-deep);
	vertical-align: -1px;
}

.hx-hero-art svg {
	box-shadow: 0 22px 46px rgba(70, 96, 110, 0.18);
}

/* 数字条：青瓦 */
.hx-stats {
	background: var(--hx-tile);
	border-block: 0;
	position: relative;
}

.hx-stats::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: radial-gradient(circle 6px at 12px 0, transparent 5px, rgba(253, 247, 234, 0.35) 5px 6px, transparent 6px);
	background-size: 24px 6px;
}

.hx-stats .hx-stat-num {
	color: #fdf7ea;
	font-family: var(--hx-head-font);
}

.hx-stats .hx-stat-num span {
	color: var(--hx-lantern);
}

.hx-stats .hx-stat-label {
	color: rgba(253, 247, 234, 0.72);
}

/* 区块标题 */
.hx-section-kicker {
	color: var(--hx-accent);
	letter-spacing: 0.28em;
}

.hx-section-title {
	font-family: var(--hx-head-font);
	position: relative;
	padding-bottom: 16px;
}

.hx-section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 96px;
	height: 5px;
	background: repeating-linear-gradient(90deg,
		var(--hx-accent) 0 16px,
		var(--hx-lantern) 16px 32px);
	border-radius: 3px;
}

/* 服务卡：门牌 */
.hx-service-card {
	border: 1.6px solid var(--hx-line-soft);
	border-radius: var(--hx-radius);
	border-top: 4px solid var(--hx-tile);
}

.hx-service-card:hover {
	border-top-color: var(--hx-accent);
}

.hx-service-icon {
	border-radius: 50%;
	background: rgba(242, 168, 59, 0.16);
	border: 1.6px solid rgba(179, 80, 45, 0.4);
	color: var(--hx-accent);
}

.hx-service-title {
	font-family: var(--hx-head-font);
}

/* 案例卡 */
.hx-case-card {
	border: 1.6px solid var(--hx-line-soft);
}

.hx-case-title {
	font-family: var(--hx-head-font);
}

.hx-tag {
	border-radius: 5px;
	background: rgba(242, 168, 59, 0.18);
	border-color: rgba(179, 80, 45, 0.45);
	color: var(--hx-accent-deep);
	font-weight: 700;
}

/* 流程：巷灯 */
.hx-process-step {
	border: 1.6px solid var(--hx-line-soft);
	border-radius: var(--hx-radius);
	text-align: center;
}

.hx-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 50px;
	border-radius: 50% 50% 46% 46%;
	background: var(--hx-lantern);
	border: 1.8px solid var(--hx-accent-deep);
	color: var(--hx-accent-deep);
	font-size: 1rem;
	font-weight: 800;
}

/* 套餐 */
.hx-plan-featured {
	border: 2px solid var(--hx-accent);
	background: linear-gradient(180deg, #fdf3e4, #ffffff 55%);
}

.hx-plan-name {
	font-family: var(--hx-head-font);
}

.hx-plan-badge {
	background: linear-gradient(135deg, #f5c169, #f2a83b);
	color: #5c3608;
}

/* 客户之声 */
.hx-voice-card {
	border-left: 4px solid var(--hx-lantern);
	border-radius: 0 var(--hx-radius) var(--hx-radius) 0;
	background: var(--hx-bg);
}

.hx-voice-text {
	font-family: var(--hx-head-font);
}

/* CTA */
.hx-cta-band {
	background:
		radial-gradient(circle at 12% 24%, rgba(242, 168, 59, 0.16), transparent 34%),
		var(--hx-tile);
}

.hx-cta-band .hx-cta-title {
	color: #fdf7ea;
	font-family: var(--hx-head-font);
}

.hx-cta-band .hx-cta-sub {
	color: rgba(253, 247, 234, 0.78);
}

.hx-cta-band .hx-kicker {
	color: var(--hx-lantern);
}

.hx-contact-card {
	background: #fff;
	border: 0;
	box-shadow: 0 28px 56px rgba(20, 34, 42, 0.4);
}

/* 按钮 */
.hx-btn {
	border-radius: 9px;
	font-weight: 700;
}

/* 页脚 */
.hx-footer {
	background: #2e424e;
}

.hx-footer,
.hx-footer .hx-footer-blurb,
.hx-footer .hx-footer-contact,
.hx-footer .hx-footer-links a,
.hx-footer .hx-footer-legal,
.hx-footer .hx-footer-legal a {
	color: rgba(253, 247, 234, 0.68);
}

.hx-footer .hx-footer-title,
.hx-footer .hx-footer-logo {
	color: #fdf7ea;
	font-family: var(--hx-head-font);
}

.hx-footer .hx-footer-links a:hover,
.hx-footer .hx-footer-contact a {
	color: var(--hx-lantern);
}

.hx-footer-legal {
	border-top-color: rgba(253, 247, 234, 0.16);
}

.hx-footer-logo .hx-accent-text {
	color: var(--hx-lantern);
}
