/**
 * AI Nexus — 二级页面组件（GEO / WorkBuddy / 定价 / 战略）
 * 仅在对应页面模板加载。
 * @package AI_Nexus
 */

/* ------------------------------------------------------------------
 * 页面头部
 * ------------------------------------------------------------------ */
.service-head {
	position: relative;
	padding: 56px 0 64px;
	text-align: center;
	background:
		radial-gradient(ellipse 70% 120% at 15% 0%, rgba(36, 211, 196, .16), transparent 70%),
		radial-gradient(ellipse 60% 120% at 85% 10%, rgba(91, 140, 255, .16), transparent 70%);
	border-bottom: 1px solid var(--ai-border);
}

.service-head .page-title {
	font-size: clamp(28px, 3.8vw, 44px);
	max-width: 900px;
	margin: 0 auto 16px;
}

.service-lead {
	max-width: 780px;
	margin: 0 auto;
	font-size: 17px;
	color: var(--ai-muted);
}

.service-head-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

.service-head .ai-breadcrumb {
	justify-content: center;
}

/* 区块节奏 */
.section-tight {
	padding: 64px 0;
}

.section-alt {
	background: linear-gradient(180deg, transparent, rgba(91, 140, 255, .04), transparent);
	border-top: 1px solid rgba(255, 255, 255, .05);
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.narrow-block {
	max-width: 860px;
}

/* ------------------------------------------------------------------
 * 痛点卡
 * ------------------------------------------------------------------ */
.pain-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.pain-card {
	padding: 28px 26px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-left: 3px solid rgba(255, 138, 138, .55);
	border-radius: var(--ai-radius);
	transition: transform .3s ease, background .3s ease;
}

.pain-card:hover {
	transform: translateY(-4px);
	background: var(--ai-bg-card-hover);
}

.pain-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 13px;
	color: #ff8a8a;
	background: rgba(255, 138, 138, .12);
}

.pain-icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.pain-card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.pain-card p {
	margin: 0;
	font-size: 14px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 交付物 / 课程 / 说明
 * ------------------------------------------------------------------ */
.deliver-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.deliver-item {
	padding: 26px 24px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
	transition: border-color .3s ease, transform .3s ease;
}

.deliver-item:hover {
	border-color: rgba(91, 140, 255, .38);
	transform: translateY(-4px);
}

.deliver-index {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 22px;
	font-weight: 800;
	color: transparent;
	-webkit-text-stroke: 1px rgba(91, 140, 255, .75);
}

.deliver-item h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.deliver-item p {
	margin: 0;
	font-size: 14px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 流程时间线
 * ------------------------------------------------------------------ */
.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	padding-left: 8px;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: linear-gradient(180deg, var(--ai-primary), rgba(36, 211, 196, .5), transparent);
}

.timeline-item {
	position: relative;
	padding-left: 46px;
	padding-bottom: 30px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-dot {
	position: absolute;
	left: 8px;
	top: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ai-bg-soft);
	border: 2px solid var(--ai-primary);
	box-shadow: 0 0 0 4px rgba(91, 140, 255, .14);
}

.timeline-step {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ai-secondary);
}

.timeline-step em {
	font-style: normal;
	padding: 2px 10px;
	font-size: 12px;
	letter-spacing: 0;
	color: var(--ai-muted);
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--ai-border);
	border-radius: 999px;
}

.timeline-body h3 {
	font-size: 19px;
	margin-bottom: 6px;
}

.timeline-body p {
	margin: 0;
	font-size: 14px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 能力勾选项
 * ------------------------------------------------------------------ */
.check-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 22px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius-sm);
	transition: border-color .25s ease, background .25s ease;
}

.check-item:hover {
	border-color: rgba(36, 211, 196, .4);
	background: rgba(36, 211, 196, .05);
}

.check-item .dashicons {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--ai-secondary);
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.check-item h3 {
	font-size: 16px;
	margin-bottom: 4px;
}

.check-item p {
	margin: 0;
	font-size: 13px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 指标卡
 * ------------------------------------------------------------------ */
.metric-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.metric-card {
	padding: 28px 22px;
	text-align: center;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
	transition: transform .3s ease, border-color .3s ease;
}

.metric-card:hover {
	transform: translateY(-4px);
	border-color: rgba(91, 140, 255, .38);
}

.metric-num {
	display: block;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	background: linear-gradient(120deg, var(--ai-primary), var(--ai-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.metric-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ai-text);
}

.metric-card p {
	margin: 0;
	font-size: 13px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 对比表
 * ------------------------------------------------------------------ */
.compare-wrap {
	overflow-x: auto;
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
	background: var(--ai-bg-card);
}

.compare-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
}

.compare-table th,
.compare-table td {
	padding: 16px 20px;
	text-align: left;
	border-bottom: 1px solid var(--ai-border);
	vertical-align: top;
}

.compare-table thead th {
	font-size: 14px;
	color: var(--ai-muted);
	background: rgba(255, 255, 255, .03);
}

.compare-table tbody th {
	width: 22%;
	font-weight: 600;
	color: var(--ai-text);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
	border-bottom: 0;
}

.compare-table td {
	color: var(--ai-muted);
}

.compare-table .col-highlight {
	color: var(--ai-text);
	background: linear-gradient(120deg, rgba(91, 140, 255, .1), rgba(36, 211, 196, .07));
	border-left: 1px solid var(--ai-border);
	border-right: 1px solid var(--ai-border);
}

.compare-table thead .col-highlight {
	color: var(--ai-secondary);
	font-weight: 700;
}

/* ------------------------------------------------------------------
 * 定价卡
 * ------------------------------------------------------------------ */
.price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	align-items: start;
}

.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 26px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
	transition: transform .35s ease, border-color .35s ease;
}

.price-card:hover {
	transform: translateY(-6px);
	border-color: rgba(91, 140, 255, .4);
}

.price-card.is-featured {
	border-color: rgba(91, 140, 255, .5);
	background: linear-gradient(160deg, rgba(91, 140, 255, .12), rgba(36, 211, 196, .05));
	box-shadow: 0 24px 60px rgba(91, 140, 255, .18);
}

.price-badge {
	position: absolute;
	top: -12px;
	left: 26px;
	padding: 4px 14px;
	font-size: 12px;
	font-weight: 600;
	color: #070b16;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--ai-primary), var(--ai-secondary));
}

.price-name {
	font-size: 19px;
	margin-bottom: 14px;
}

.price-value {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.price-value strong {
	font-size: 30px;
	font-weight: 800;
	background: linear-gradient(120deg, var(--ai-primary), var(--ai-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.price-value span {
	font-size: 13px;
	color: var(--ai-muted);
}

.price-note {
	min-height: 44px;
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--ai-muted);
}

.price-features {
	flex: 1;
	margin-bottom: 24px;
}

.price-features li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 0;
	font-size: 14px;
	color: var(--ai-text);
	border-bottom: 1px dashed var(--ai-border);
}

.price-features li:last-child {
	border-bottom: 0;
}

.price-features .dashicons {
	margin-top: 2px;
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: var(--ai-secondary);
}

/* ------------------------------------------------------------------
 * 三层产品漏斗
 * ------------------------------------------------------------------ */
.tier-funnel {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 940px;
	margin: 0 auto;
}

.tier-item {
	padding: 28px 30px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
}

.tier-item.tier-2 {
	border-color: rgba(91, 140, 255, .3);
}

.tier-item.tier-3 {
	border-color: rgba(168, 85, 247, .3);
	background: linear-gradient(150deg, rgba(168, 85, 247, .08), rgba(255, 255, 255, .02));
}

.tier-level {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ai-secondary);
}

.tier-head h3 {
	font-size: 21px;
	margin-bottom: 8px;
}

.tier-head p {
	margin: 0;
	font-size: 14px;
	color: var(--ai-muted);
}

.tier-items {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var(--ai-border);
}

.tier-items li {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) auto;
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--ai-border);
}

.tier-items li:last-child {
	border-bottom: 0;
}

.tier-item-name {
	font-size: 15px;
	font-weight: 600;
}

.tier-item-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--ai-secondary);
	text-align: right;
}

.tier-item-note {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--ai-muted);
}

.tier-arrow {
	display: flex;
	justify-content: center;
	padding: 10px 0;
	color: var(--ai-primary);
}

.tier-arrow .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.tier-more {
	margin-top: 28px;
	text-align: center;
}

/* ------------------------------------------------------------------
 * 一进一出矩阵
 * ------------------------------------------------------------------ */
.matrix-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.matrix-card {
	padding: 34px 30px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: 24px;
	transition: transform .35s ease;
}

.matrix-card:hover {
	transform: translateY(-5px);
}

.matrix-geo {
	background: linear-gradient(160deg, rgba(36, 211, 196, .1), rgba(255, 255, 255, .02));
	border-color: rgba(36, 211, 196, .3);
}

.matrix-workbuddy {
	background: linear-gradient(160deg, rgba(91, 140, 255, .12), rgba(255, 255, 255, .02));
	border-color: rgba(91, 140, 255, .3);
}

.matrix-side {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 14px;
	font-size: 12px;
	border-radius: 999px;
	color: var(--ai-text);
	background: rgba(255, 255, 255, .07);
	border: 1px solid var(--ai-border);
}

.matrix-title {
	font-size: 26px;
	margin-bottom: 6px;
}

.matrix-essence {
	font-size: 17px;
	font-weight: 600;
	color: var(--ai-text);
	margin-bottom: 22px;
}

.matrix-list > div {
	padding: 12px 0;
	border-top: 1px dashed var(--ai-border);
}

.matrix-list dt {
	margin-bottom: 3px;
	font-size: 12px;
	color: var(--ai-muted);
}

.matrix-list dd {
	margin: 0;
	font-size: 15px;
	color: var(--ai-text);
}

.matrix-list dd.is-role {
	font-weight: 600;
	color: var(--ai-secondary);
}

/* ------------------------------------------------------------------
 * 金句
 * ------------------------------------------------------------------ */
.quote-block {
	position: relative;
	margin: 0;
	padding: 40px 44px;
	text-align: center;
	background: linear-gradient(120deg, rgba(91, 140, 255, .1), rgba(168, 85, 247, .08));
	border: 1px solid var(--ai-border);
	border-radius: 24px;
}

.quote-block::before {
	content: "";
	position: absolute;
	left: 44px;
	right: 44px;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ai-primary), var(--ai-secondary), transparent);
}

.quote-block p {
	margin: 0 0 14px;
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 700;
	line-height: 1.5;
}

.quote-block cite {
	font-size: 14px;
	font-style: normal;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 组合套餐
 * ------------------------------------------------------------------ */
.bundle-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.bundle-card {
	padding: 30px 26px;
	background: var(--ai-bg-card);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius);
	transition: transform .3s ease, border-color .3s ease;
}

.bundle-card:hover {
	transform: translateY(-5px);
	border-color: rgba(36, 211, 196, .38);
}

.bundle-card h3 {
	font-size: 20px;
	margin-bottom: 8px;
	color: var(--ai-secondary);
}

.bundle-for {
	display: block;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--ai-muted);
}

.bundle-items {
	padding: 14px 0;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 600;
	border-top: 1px dashed var(--ai-border);
	border-bottom: 1px dashed var(--ai-border);
}

.bundle-value {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	color: var(--ai-muted);
}

.bundle-value .dashicons {
	margin-top: 2px;
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--ai-secondary);
}

/* ------------------------------------------------------------------
 * 页面底部 CTA
 * ------------------------------------------------------------------ */
.service-cta {
	padding: 72px 0;
	text-align: center;
	background:
		radial-gradient(ellipse 60% 140% at 50% 0%, rgba(91, 140, 255, .14), transparent 70%);
	border-top: 1px solid var(--ai-border);
}

.service-cta h2 {
	max-width: 720px;
	margin: 0 auto 12px;
	font-size: clamp(24px, 3vw, 34px);
}

.service-cta p {
	max-width: 640px;
	margin: 0 auto 28px;
	color: var(--ai-muted);
}

/* ------------------------------------------------------------------
 * 响应式
 * ------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.pain-grid,
	.price-grid,
	.bundle-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

@media (max-width: 720px) {
	.service-head {
		padding: 40px 0 44px;
	}

	.section-tight {
		padding: 48px 0;
	}

	.pain-grid,
	.deliver-grid,
	.check-grid,
	.price-grid,
	.bundle-grid,
	.metric-grid,
	.matrix-grid {
		grid-template-columns: 1fr;
	}

	.quote-block {
		padding: 28px 22px;
	}

	.quote-block::before {
		left: 22px;
		right: 22px;
	}

	.tier-item {
		padding: 22px 18px;
	}

	.tier-items li {
		grid-template-columns: 1fr;
	}

	.tier-item-price {
		text-align: left;
	}

	.timeline-item {
		padding-left: 36px;
	}
}
