/*
 * 首页（front-page.html）样式。2026-11-30 新首页，设计稿 design/homepage-v2/a-content-first.html。
 * 所有类名以 wph- 开头，只影响首页；通用的 .wrap / .section / .eyebrow / .btn / .lead 沿用主题。
 */

/* ---------- Hero ---------- */
.wph-hero {
	background: linear-gradient(160deg, #241a4f 0%, #3d2b80 48%, #503aa8 100%);
	color: #fff;
	padding: 112px 0;
	position: relative;
	overflow: hidden;
}
.wph-hero::before,
.wph-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.wph-hero::before {
	width: 620px;
	height: 620px;
	right: -140px;
	top: -260px;
	background: radial-gradient(circle, rgba(201, 180, 239, 0.22), transparent 62%);
}
.wph-hero::after {
	width: 520px;
	height: 520px;
	left: -180px;
	bottom: -300px;
	background: radial-gradient(circle, rgba(201, 180, 239, 0.14), transparent 66%);
}
.wph-hero .wrap {
	position: relative;
}
.wph-hero-inner {
	width: 80%;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.wph-hero .eyebrow {
	border-radius: 999px;
	color: var(--brand-700);
	background: rgba(255, 255, 255, 0.92);
}
.wph-hero .wph-pill--ghost {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	margin-top: 10px;
}
.wph-hero h1 {
	font-size: clamp(2.15rem, 4.5vw, 3.25rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 20px 0 18px;
	max-width: 16em;
	text-wrap: balance;
}
.wph-lines-head h2,
.wph-hub-head h2,
.wph-ai-head h2,
.wph-sec-head h2,
.wph-rhythm h2 {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.wph-hero-lead {
	color: #ded8f3;
	max-width: 100%;
	text-wrap: balance;
}
.wph-asks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}
.wph-ask {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-700);
	background: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	box-shadow: 0 1px 2px rgba(26, 18, 56, 0.12);
	transition: 0.16s ease;
}
.wph-ask:hover {
	color: var(--brand-600);
	box-shadow: var(--shadow-md);
}
.wph-ask b {
	font-weight: 800;
	color: var(--brand-700);
}
.wph-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin-top: 26px;
	font-size: 13px;
	color: #c9c0e9;
}
.wph-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.wph-meta i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--brand-200);
	font-style: normal;
}

/* ---------- 四类业务 ---------- */
.wph-lines-head {
	max-width: none;
}
.wph-lines-head h2 {
	margin: 14px 0 10px;
}
.wph-lines {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.wph-line {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: 0.18s ease;
}
.wph-line:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand-200);
}
.wph-line-top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.wph-line-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--r-card);
	background: var(--brand-50);
	color: var(--brand-600);
	display: grid;
	place-items: center;
	flex: none;
}
.wph-line-icon svg {
	width: 24px;
	height: 24px;
}
.wph-tag {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--brand-600);
	background: var(--brand-50);
	border-radius: 999px;
	padding: 3px 10px;
}
.wph-line h3 {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.4;
	margin-top: 2px;
}
.wph-line p {
	font-size: 13.5px;
	color: var(--ink-3);
	line-height: 1.65;
}
.wph-line-links {
	margin-top: auto;
	padding-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13.5px;
}
.wph-arrow {
	font-weight: 700;
	color: var(--brand-600);
	white-space: nowrap;
	text-decoration: none;
}
.wph-arrow::after {
	content: " →";
}
.wph-arrow:hover {
	color: var(--brand-500);
	text-decoration: none;
}

/* ---------- 内容中心 ---------- */
.wph-hub-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.wph-hub-head h2 {
	margin-top: 14px;
}
.wph-hub-head .lead {
	margin-top: 10px;
	max-width: 62ch;
}
.wph-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 26px;
}
.wph-filter {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink-2);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: 0.16s ease;
}
.wph-filter:hover {
	border-color: var(--brand-200);
	color: var(--brand-600);
}
.wph-filter[aria-pressed="true"] {
	background: var(--brand-500);
	border-color: var(--brand-500);
	color: #fff;
}
.wph-postgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.wph-postcard,
.wph-ai-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: 0.18s ease;
	position: relative;
}
.wph-post-media {
	display: block;
	line-height: 0;
}
.wph-post-media a {
	display: block;
}
.wph-postcard[hidden] {
	display: none;
}
.wph-postcard:hover,
.wph-ai-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand-200);
	text-decoration: none;
}
.wph-post-img {
	width: 100%;
	height: auto;
	aspect-ratio: 840 / 520;
	object-fit: cover;
	display: block;
	background: var(--bg-soft);
	transition: transform 0.4s ease;
}
.wph-postcard:hover .wph-post-img,
.wph-ai-card:hover .wph-post-img {
	transform: scale(1.02);
}
.wph-post-body,
.wph-ai-body {
	padding: 17px 20px 19px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wph-post-body h3 a,
.wph-ai-body h3 a {
	color: inherit;
	text-decoration: none;
}
/* 整卡可点：标题链接拉伸覆盖卡片（不使用 <a> 包块级内容，避免 wpautop 拆结构） */
.wph-post-body h3 a::after,
.wph-ai-body h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.wph-post-body h3,
.wph-ai-body h3 {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.48;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wph-post-body p,
.wph-ai-body p {
	font-size: 13.5px;
	color: var(--ink-3);
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wph-postcard:hover h3,
.wph-ai-card:hover h3 {
	color: var(--brand-600);
}
.wph-hub-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}
.wph-hub-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--brand-700);
	background: #fff;
	border-radius: 999px;
	padding: 10px 20px;
	box-shadow: 0 1px 2px rgba(26, 18, 56, 0.08);
	transition: 0.16s ease;
	text-decoration: none;
}
.wph-hub-link::after {
	content: "→";
	font-weight: 700;
}
.wph-hub-link:hover {
	color: var(--brand-600);
	box-shadow: var(--shadow-md);
	text-decoration: none;
}

/* ---------- WordPress×AI ---------- */
.wph-ai-band {
	background: var(--bg-soft);
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
}
.wph-ai-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
}
.wph-ai-head h2 {
	margin-top: 14px;
}
.wph-ai-head .lead {
	margin-top: 10px;
	max-width: 62ch;
}
.wph-ai-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 38px;
}

/* ---------- 产品入口 ---------- */
.wph-sec-head {
	max-width: 680px;
}
.wph-sec-head h2 {
	margin-top: 14px;
}
.wph-sec-head .lead {
	margin-top: 10px;
}
.wph-prod-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 38px;
}
.wph-prod {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: 0.18s ease;
}
.wph-prod:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--brand-200);
}
.wph-prod-top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wph-prod-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--r-card);
	background: var(--brand-50);
	color: var(--brand-600);
	display: grid;
	place-items: center;
	flex: none;
}
.wph-prod-icon svg {
	width: 24px;
	height: 24px;
}
.wph-prod h3 {
	font-size: 17px;
	font-weight: 800;
}
.wph-prod-fit {
	font-size: 13px;
	color: var(--ink-3);
	margin-top: -2px;
}
.wph-prod ul {
	list-style: none;
	display: grid;
	gap: 7px;
	font-size: 13.5px;
	color: var(--ink-3);
	margin: 0;
	padding: 0;
}
.wph-prod li {
	padding-left: 16px;
	position: relative;
}
.wph-prod li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--brand-200);
}
.wph-prod > .wph-arrow {
	margin-top: auto;
	padding-top: 12px;
	font-size: 14px;
}
.wph-note {
	margin-top: 18px;
	font-size: 12.5px;
	color: var(--ink-3);
}

/* ---------- 为什么选我们 ---------- */
.wph-why-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 44px;
	margin-top: 38px;
}
.wph-why {
	padding: 22px 0 24px;
	border-top: 1px solid var(--line);
	position: relative;
	transition: border-color 0.16s ease;
}
.wph-why::before {
	content: "";
	position: absolute;
	inset: -1px -20px;
	background: transparent;
	border-radius: var(--r-card);
	transition: background 0.16s ease, box-shadow 0.16s ease;
	z-index: 0;
}
.wph-why:hover {
	border-top-color: transparent;
}
.wph-why:hover::before {
	background: #fff;
	box-shadow: 0 6px 18px -10px rgba(26, 18, 56, 0.18);
}
.wph-why > * {
	position: relative;
	z-index: 1;
}
.wph-why-num {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--brand-500);
}
.wph-why h3 {
	font-size: 15px;
	font-weight: 800;
	margin-top: 8px;
}
.wph-why p {
	font-size: 13.5px;
	color: var(--ink-3);
	margin-top: 6px;
	line-height: 1.65;
}

/* ---------- 更新节奏 ---------- */
.wph-rhythm {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 40px;
	align-items: center;
}
.wph-rhythm h2 {
	margin: 14px 0 12px;
}
.wph-rhythm-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin-top: 22px;
	font-size: 14px;
}
.wph-rhythm-points {
	display: grid;
	gap: 14px;
}
.wph-rhythm-point {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.wph-rhythm-point:hover {
	background: var(--brand-50);
	border-color: var(--brand-200);
	box-shadow: 0 6px 18px -10px rgba(80, 58, 168, 0.22);
}
.wph-rhythm-point b {
	color: var(--brand-600);
}
.wph-rhythm-point span {
	font-size: 13.5px;
	color: var(--ink-3);
	line-height: 1.6;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
	.wph-lines {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wph-postgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wph-why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 980px) {
	.wph-ai-grid {
		grid-template-columns: 1fr;
	}
	.wph-rhythm {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 900px) {
	.wph-prod-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 760px) {
	.wph-hero {
		padding: 64px 0;
	}
	.wph-hero-inner {
		width: 100%;
	}
	.wph-hero h1 {
		max-width: 12em;
	}
}
@media (max-width: 640px) {
	.wph-lines,
	.wph-postgrid,
	.wph-why-grid {
		grid-template-columns: 1fr;
	}
}
