/* ==========================================================================
   AI Marketing 页专用样式
   --------------------------------------------------------------------------
     1. 首屏的示范终端
     2. 连接的平台（中间是系统，八个平台围着它）
     3. 活动流程（黏住的长区块）
     4. 功能模块
     5. 你掌控一切
     6. 价格
     7. 常见问题
   ========================================================================== */

/* ── 1. 示范终端 ── */
.rx-term {
	--c: 18px;
	--fill: linear-gradient(180deg, #08101b, #04070c);
	width: 100%;
	max-width: 540px;
	margin-left: auto;
	box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
}

.rx-term__live {
	margin-left: auto;
	padding: 2px 8px;
	background: rgba(255, 77, 94, 0.14);
	color: var(--rx-ember);
	font-size: 11px;
	font-weight: 700;
	animation: rx-blink 1.4s steps(2, jump-none) infinite;
}

.rx-term__body {
	display: grid;
	gap: 16px;
	padding: 20px;
}

.rx-term__lines {
	min-height: 104px;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 13px;
	line-height: 1.75;
	color: #b8c7d9;
}

.rx-term__line.is-ok {
	color: var(--rx-cyan);
}

.rx-term__line.is-wait {
	color: #ffd479;
}

/* 打字时最后一行有闪烁的游标 */
.rx-term__line:last-child::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 14px;
	margin-left: 3px;
	vertical-align: -2px;
	background: var(--rx-cyan);
	animation: rx-blink 0.9s steps(2, jump-none) infinite;
}

/* 帖子预览：第一行打完才浮上来 */
.rx-term__post {
	display: grid;
	grid-template-columns: 120px 1fr;
	grid-template-areas:
		"head head"
		"image caption"
		"image approve";
	gap: 10px 16px;
	padding: 14px;
	border: 1px solid var(--rx-line);
	background: rgba(255, 255, 255, 0.02);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--rx-ease), transform 0.6s var(--rx-ease);
}

.rx-term.is-post .rx-term__post {
	opacity: 1;
	transform: none;
}

.rx-term__post-head {
	grid-area: head;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}

.rx-term__post-head img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #000;
}

.rx-term__time {
	margin-left: auto;
	color: var(--rx-dim);
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
}

.rx-term__image {
	grid-area: image;
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
}

.rx-term__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(12px) saturate(0.4);
	transform: scale(1.1);
	transition: filter 1.4s var(--rx-ease), transform 1.4s var(--rx-ease);
}

.rx-term.is-post .rx-term__image img {
	filter: none;
	transform: none;
}

/* 图片「生成中」的扫描线 */
.rx-term__scan {
	position: absolute;
	left: 0;
	right: 0;
	height: 30%;
	background: linear-gradient(180deg, transparent, rgba(34, 230, 220, 0.5), transparent);
	opacity: 0;
}

.rx-term.is-post .rx-term__scan {
	animation: rx-term-scan 1.4s var(--rx-ease) 1;
}

@keyframes rx-term-scan {
	0% { top: -30%; opacity: 1; }
	100% { top: 100%; opacity: 0; }
}

.rx-term__caption {
	grid-area: caption;
	min-height: 3.2em;
	color: #d8e2ee;
	font-size: 14px;
}

.rx-term__approve {
	grid-area: approve;
	position: relative;
	align-self: end;
	height: 38px;
}

.rx-term__btn,
.rx-term__done {
	position: absolute;
	inset: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--rx-display);
	font-size: 14px;
	font-weight: 600;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	transition: opacity 0.4s, transform 0.3s var(--rx-ease);
}

.rx-term__btn {
	background: var(--rx-signal);
	color: #00131a;
}

.rx-term.is-approving .rx-term__btn {
	transform: scale(0.94);
	box-shadow: var(--rx-glow);
}

.rx-term__done {
	background: rgba(34, 230, 220, 0.12);
	color: var(--rx-cyan);
	opacity: 0;
}

.rx-term__done .rx-icon {
	width: 16px;
	height: 16px;
}

.rx-term.is-approved .rx-term__btn {
	opacity: 0;
}

.rx-term.is-approved .rx-term__done {
	opacity: 1;
}

@media (max-width: 1020px) {
	.rx-term {
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.rx-term__post {
		grid-template-columns: 92px 1fr;
	}
}

/* ── 2. 连接的平台 ── */
.rx-channels__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 48px;
	align-items: center;
}

.rx-hub {
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	max-width: 620px;
	margin-left: auto;
}

.rx-hub__core {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	display: grid;
	justify-items: center;
	gap: 8px;
	width: 26%;
	transform: translate(-50%, -50%);
	text-align: center;
	font-family: var(--rx-display);
	font-size: 14px;
	font-weight: 600;
}

.rx-hub__core img {
	width: 70%;
	filter: drop-shadow(0 0 30px rgba(34, 230, 220, 0.5));
	animation: rx-core-breathe-ai 4s ease-in-out infinite;
}

@keyframes rx-core-breathe-ai {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

/* 中心往外的连线，上面有光点一直往外跑 */
.rx-hub__spoke {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 36%;
	height: 1px;
	transform-origin: 0 50%;
	transform: rotate(calc(var(--i) * 360deg / var(--n) - 90deg));
	background: linear-gradient(90deg, rgba(34, 230, 220, 0.4), rgba(160, 200, 255, 0.1));
}

.rx-hub__spoke i {
	position: absolute;
	left: 0;
	top: -2px;
	width: 24px;
	height: 5px;
	border-radius: 3px;
	background: var(--rx-cyan);
	box-shadow: 0 0 12px var(--rx-cyan);
	animation: rx-spoke 2.6s var(--rx-ease) infinite;
	animation-delay: calc(var(--i) * 0.33s);
}

@keyframes rx-spoke {
	0% { left: 0; opacity: 0; }
	15% { opacity: 1; }
	100% { left: calc(100% - 24px); opacity: 0; }
}

/* 八个平台围成一圈 */
.rx-hub__node {
	--c: 8px;
	position: absolute;
	left: calc(50% + 40% * cos(calc(var(--i) * 360deg / var(--n) - 90deg)));
	top: calc(50% + 40% * sin(calc(var(--i) * 360deg / var(--n) - 90deg)));
	display: grid;
	gap: 2px;
	width: max-content;
	max-width: 170px;
	padding: 10px 14px;
	transform: translate(-50%, -50%);
	text-align: center;
	transition: transform 0.4s var(--rx-ease);
}

.rx-hub__node:hover {
	--edge: var(--rx-signal);
	transform: translate(-50%, -50%) scale(1.08);
}

.rx-hub__node strong {
	font-family: var(--rx-display);
	font-size: 16px;
	font-weight: 600;
}

.rx-hub__node small {
	color: var(--rx-steel);
	font-size: 12px;
	line-height: 1.35;
}

/* 手机：变成两排的格子，连线不显示 */
@media (max-width: 900px) {
	.rx-channels__inner {
		grid-template-columns: 1fr;
	}

	.rx-hub {
		aspect-ratio: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		max-width: none;
	}

	.rx-hub__core {
		position: static;
		grid-column: 1 / -1;
		transform: none;
		width: auto;
		margin-bottom: 8px;
	}

	.rx-hub__core img {
		width: 72px;
	}

	.rx-hub__spoke {
		display: none;
	}

	.rx-hub__node,
	.rx-hub__node:hover {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		max-width: none;
		transform: none;
	}
}

.rx-channels .rx-head__title {
	font-size: clamp(32px, 4.2vw, 58px);
}

/* ── 3. 活动流程 ── */
.rx-flow__inner {
	position: relative;
}

.rx-flow .rx-head {
	margin-bottom: 48px;
}

.rx-flow .rx-head__title {
	font-size: clamp(32px, 4.4vw, 60px);
}

/* 横的进度线：跟着捲动由左长到右 */
.rx-flow__rail {
	position: relative;
	height: 2px;
	margin: 0 0 -29px;
	background: var(--rx-line);
}

.rx-flow__rail i {
	position: absolute;
	inset: 0;
	background: var(--rx-signal);
	box-shadow: 0 0 12px rgba(34, 230, 220, 0.6);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
}

.rx-flow__steps {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rx-flow__step {
	position: relative;
	padding-top: 0;
	color: var(--rx-dim);
	transition: color 0.5s var(--rx-ease);
}

.rx-flow__node {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	border: 1px solid var(--rx-line-strong);
	background: var(--rx-void);
	color: var(--rx-dim);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: all 0.5s var(--rx-ease);
}

.rx-flow__node .rx-icon {
	width: 24px;
	height: 24px;
}

.rx-flow__num {
	display: block;
	margin-bottom: 6px;
	font-family: var(--rx-display);
	font-size: 13px;
}

.rx-flow__step h3 {
	margin-bottom: 8px;
	font-size: 22px;
}

.rx-flow__step p {
	font-size: 15px;
	opacity: 0.5;
	transition: opacity 0.5s;
}

/* 已经走过和目前这一步亮起来 */
.rx-flow__step.is-passed,
.rx-flow__step.is-active,
.rx-flow:not([data-step]) .rx-flow__step:first-child {
	color: var(--rx-frost);
}

.rx-flow__step.is-passed .rx-flow__node,
.rx-flow__step.is-active .rx-flow__node,
.rx-flow:not([data-step]) .rx-flow__step:first-child .rx-flow__node {
	border-color: var(--rx-cyan);
	color: var(--rx-cyan);
	box-shadow: inset 0 0 20px rgba(34, 230, 220, 0.25);
}

.rx-flow__step.is-active .rx-flow__node {
	background: var(--rx-signal);
	color: #00131a;
	transform: scale(1.12);
}

.rx-flow__step.is-passed p,
.rx-flow__step.is-active p {
	opacity: 1;
	color: var(--rx-steel);
}

.rx-flow__step.is-active .rx-flow__num {
	color: var(--rx-cyan);
}

/* 平板和手机：不黏住，直的排下来 */
@media (max-width: 1020px) {
	.rx-flow.rx-scene {
		height: auto;
	}

	.rx-flow .rx-scene__sticky {
		position: relative;
		height: auto;
		padding-block: var(--rx-space);
	}

	.rx-flow__rail {
		display: none;
	}

	.rx-flow__steps {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rx-flow__step {
		display: grid;
		grid-template-columns: 56px 1fr;
		column-gap: 20px;
		color: var(--rx-frost);
	}

	.rx-flow__node {
		grid-row: span 3;
		margin: 0;
		border-color: var(--rx-cyan);
		color: var(--rx-cyan);
	}

	.rx-flow__step p {
		opacity: 1;
		color: var(--rx-steel);
	}
}

/* ── 4. 功能模块 ── */
.rx-modules__tabs {
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 32px;
	padding: 4px;
	border: 1px solid var(--rx-line);
	background: var(--rx-carbon);
}

.rx-modules__tabs button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	background: transparent;
	color: var(--rx-steel);
	font-family: var(--rx-display);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.3s;
}

.rx-modules__tabs button b {
	min-width: 22px;
	padding: 1px 6px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 12px;
	font-weight: 600;
}

.rx-modules__tabs button.is-active {
	color: #00131a;
}

.rx-modules__tabs button.is-active b {
	background: rgba(0, 0, 0, 0.15);
}

/* 会滑到目前分页下面的底色（ai.js 设定位置） */
.rx-modules__glider {
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 0;
	background: var(--rx-signal);
	transition: transform 0.45s var(--rx-ease), width 0.45s var(--rx-ease);
}

.rx-modules__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: start;
}

.rx-module.is-hidden {
	display: none;
}

.rx-module__head {
	display: grid;
	grid-template-columns: 48px 1fr 28px;
	grid-template-areas:
		"icon group toggle"
		"name name name"
		"line line line";
	align-items: center;
	gap: 6px 14px;
	width: 100%;
	padding: 24px 24px 22px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.rx-module__icon {
	grid-area: icon;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: rgba(34, 230, 220, 0.07);
	color: var(--rx-cyan);
	clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
	transition: background-color 0.3s, color 0.3s;
}

.rx-module__icon .rx-icon {
	width: 24px;
	height: 24px;
}

.rx-module:hover .rx-module__icon,
.rx-module.is-open .rx-module__icon {
	background: var(--rx-cyan);
	color: #00131a;
}

.rx-module__group {
	grid-area: group;
	color: var(--rx-dim);
	font-size: 13px;
}

.rx-module__toggle {
	grid-area: toggle;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--rx-line-strong);
	color: var(--rx-steel);
	transition: transform 0.4s var(--rx-ease), background-color 0.3s;
}

.rx-module__toggle .rx-icon {
	width: 16px;
	height: 16px;
}

.rx-module.is-open .rx-module__toggle {
	transform: rotate(45deg);
	background: var(--rx-frost);
	color: var(--rx-void);
}

.rx-module__name {
	grid-area: name;
	margin-top: 14px;
	font-family: var(--rx-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
}

.rx-module__line {
	grid-area: line;
	color: var(--rx-steel);
	font-size: 15px;
}

/* 展开的详情：高度由 0 长出来 */
.rx-module__more {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.5s var(--rx-ease);
}

.rx-module__more > ul {
	overflow: hidden;
	margin: 0;
	padding: 0 24px;
}

.rx-module.is-open .rx-module__more {
	grid-template-rows: 1fr;
}

.rx-module.is-open .rx-module__more > ul {
	padding-bottom: 24px;
	border-top: 1px solid var(--rx-line);
	padding-top: 18px;
	margin-inline: 24px;
	padding-inline: 0;
}

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

@media (max-width: 640px) {
	.rx-modules__grid {
		grid-template-columns: 1fr;
	}

	.rx-modules__tabs {
		display: flex;
		overflow-x: auto;
		flex-wrap: nowrap;
		scrollbar-width: none;
	}

	.rx-modules__tabs button {
		white-space: nowrap;
	}
}

/* ── 5. 你掌控一切 ── */
.rx-control__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.rx-control__item {
	padding: 28px 24px;
}

.rx-control__item h3 {
	margin: 20px 0 8px;
	font-size: 21px;
}

.rx-control__item p {
	color: var(--rx-steel);
	font-size: 15px;
}

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

@media (max-width: 560px) {
	.rx-control__grid {
		grid-template-columns: 1fr;
	}
}

/* ── 6. 价格 ── */
.rx-pricing__panel {
	--c: 24px;
	--edge: linear-gradient(135deg, var(--rx-cyan), var(--rx-line-strong) 35%, var(--rx-line-strong) 70%, var(--rx-blue));
	--fill: radial-gradient(70% 80% at 0% 0%, rgba(43, 107, 255, 0.22), transparent 60%), var(--rx-carbon);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.rx-pricing__main {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 18px;
	padding: clamp(32px, 5vw, 56px);
	border-right: 1px solid var(--rx-line);
}

.rx-pricing__label {
	color: var(--rx-steel);
	font-size: 15px;
}

.rx-pricing__price {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 12px;
}

.rx-pricing__amount {
	font-family: var(--rx-display);
	font-size: clamp(64px, 9vw, 120px);
	font-weight: 700;
	line-height: 0.9;
	font-variant-numeric: tabular-nums;
	background: var(--rx-signal);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rx-pricing__per {
	white-space: nowrap;
	color: var(--rx-steel);
	font-size: 20px;
}

.rx-pricing__includes {
	margin: 4px 0 10px;
}

.rx-pricing__rows {
	display: grid;
}

.rx-pricing__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(24px, 3.4vw, 40px);
}

.rx-pricing__row + .rx-pricing__row {
	border-top: 1px solid var(--rx-line);
}

.rx-pricing__row h3 {
	margin-bottom: 6px;
	font-size: 24px;
}

.rx-pricing__row p {
	color: var(--rx-steel);
	font-size: 15px;
}

.rx-pricing__row .rx-btn {
	flex: none;
}

@media (max-width: 900px) {
	.rx-pricing__panel {
		grid-template-columns: 1fr;
	}

	.rx-pricing__main {
		border-right: 0;
		border-bottom: 1px solid var(--rx-line);
	}
}

@media (max-width: 560px) {
	.rx-pricing__row {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── 7. 常见问题 ── */
.rx-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	gap: 48px;
	align-items: start;
}

.rx-faq__list {
	display: grid;
	gap: 10px;
}

.rx-faq__item {
	--c: 10px;
}

.rx-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	font-family: var(--rx-display);
	font-size: 19px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.rx-faq__item summary::-webkit-details-marker {
	display: none;
}

.rx-faq__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border: 1px solid var(--rx-line-strong);
	transition: transform 0.4s var(--rx-ease), background-color 0.3s;
}

.rx-faq__item[open] .rx-faq__icon {
	transform: rotate(45deg);
	background: var(--rx-cyan);
	color: #00131a;
}

.rx-faq__item p {
	padding: 0 24px 24px;
	color: var(--rx-steel);
	animation: rx-faq-open 0.5s var(--rx-ease);
}

@keyframes rx-faq-open {
	from { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 900px) {
	.rx-faq__inner {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
