/* ==========================================================================
   Lumen Pro — theme.css
   参考 twinklypro.com 实测设计规范重建
   改动前的三条铁律：
   1. 颜色只有 --c-bg / --c-accent，不要引入第三个主色
   2. 标题字重永远 400
   3. 所有过渡统一 var(--ease)
   ========================================================================== */

/* ---------- 字体（自托管，OFL 免费可商用） ---------- */
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* 标题字：Fraunces（OFL）。变量轴只保留 opsz（光学尺寸），字重固定 400 —— 标题从不用其他字重。
   latin 子集 22.6KB；非拉丁字符回退 Instrument Serif / Georgia。 */
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-opsz.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}

/* ---------- 设计变量 ---------- */
:root {
	--c-bg: #020215;
	--c-bg-soft: #0a0a2d;
	/* 全站唯一强调色。--c-accent 用 hex，--c-accent-rgb 用空格分隔的 RGB 分量（供 rgba 光晕使用）。
	   两处必须同步，否则按钮与光晕会不同色。 */
	--c-accent: #3c44f0;
	--c-accent-rgb: 60 68 240;
	--c-text: #9c99a1;
	--c-title: #fff;
	--c-line: rgba(255, 255, 255, 0.12);

	--f-display: "Fraunces", "Instrument Serif", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
	--f-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

	--page-pad: 48px;
	--section-pad: 100px;

	--header-h: 122px;
	--header-h-s: 114px;

	--radius-card: 15px;
	--radius-media: 23px;
	--radius-btn: 60px;

	--ease: cubic-bezier(0.3, 1, 0.3, 1);
	--dur: 0.5s;

	--icon-arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--f-display);
	font-weight: 400;
	/* 让 Fraunces 按字号自动调整笔画的粗细对比 */
	font-optical-sizing: auto;
	color: var(--c-title);
	margin: 0 0 0.5em;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(40px, 4.75vw, 68px);
	line-height: 1;
	letter-spacing: -0.022em;
}

h2 {
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1.1;
}

h3 {
	/* 对照原站 1440 视口实测卡片标题 30px */
	font-size: clamp(22px, 2.08vw, 30px);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1.25em;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

::selection {
	background: var(--c-accent);
	color: #fff;
}

.tp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--c-accent);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 12px 0;
}
.tp-skip:focus {
	left: 0;
}

/* ---------- 页头 ---------- */
.tp-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	height: var(--header-h);
	display: flex;
	align-items: center;
	transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
	will-change: transform;
}

/* 首屏完全透明；滚动后毛玻璃 */
.tp-header.is-scrolled {
	height: var(--header-h-s);
	background: rgba(2, 2, 21, 0.17);
	-webkit-backdrop-filter: blur(30px) saturate(1.5);
	backdrop-filter: blur(30px) saturate(1.5);
}

/* 下滚隐藏，上滚出现 */
.tp-header.is-hidden {
	transform: translateY(-100%);
}

.tp-header__inner {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 0 var(--page-pad);
}

.tp-header__brand {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.tp-header__brand img {
	max-height: 52px;
	width: auto;
}

.tp-header__name {
	font-family: var(--f-display);
	font-size: 30px;
	line-height: 1;
	color: #fff;
}

.tp-header__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 16px;
}

/* 主导航：居中、项间距 40px、hover 画下划线 */
.tp-nav__list {
	display: flex;
	align-items: center;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-nav__list li {
	margin: 0;
}

.tp-nav__list a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: 16.5px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

.tp-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transition: right var(--dur) var(--ease);
}

.tp-nav__list a:hover::after {
	right: 0;
}

/* 汉堡 */
.tp-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
}

.tp-burger span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 1.5px;
	background: #fff;
	transition: transform var(--dur) var(--ease);
}
.tp-burger span:first-child {
	transform: translate(-50%, calc(-50% - 4px));
}
.tp-burger span:last-child {
	transform: translate(-50%, calc(-50% + 4px));
}
body.tp-drawer-open .tp-burger span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}
body.tp-drawer-open .tp-burger span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* 移动端抽屉 */
.tp-drawer {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	padding: calc(var(--header-h) + 24px) var(--page-pad) 48px;
	background: var(--c-bg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
		visibility var(--dur) var(--ease);
}

body.tp-drawer-open .tp-drawer {
	opacity: 1;
	visibility: visible;
	transform: none;
}

body.tp-drawer-open {
	overflow: hidden;
}

.tp-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-drawer__list li {
	border-bottom: 1px solid var(--c-line);
}

.tp-drawer__list a {
	display: block;
	padding: 18px 0;
	font-family: var(--f-display);
	font-size: 32px;
	line-height: 1.1;
	color: #fff;
}

.tp-drawer__cta {
	margin-top: 32px;
	align-self: flex-start;
}

/* ---------- 按钮：胶囊 + hover 白色涨满 ---------- */
.tp-btn,
.wp-block-button .tp-btn__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
	padding: 16px 21px;
	border: 0;
	border-radius: var(--radius-btn);
	background: var(--c-accent);
	color: #fff;
	font-family: var(--f-body);
	font-size: 15.27px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.45s var(--ease);
}

.tp-btn > span,
.wp-block-button .tp-btn__link > span {
	position: relative;
	z-index: 1;
}

/* 涨满层 */
.tp-btn::before,
.wp-block-button .tp-btn__link::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 0;
	background: #fff;
	transition: height 0.45s var(--ease);
	z-index: 0;
}

/* 箭头 */
.tp-btn::after,
.wp-block-button .tp-btn__link::after {
	content: "";
	position: relative;
	z-index: 1;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
	transition: transform 0.45s var(--ease);
}

.tp-btn:hover,
.wp-block-button .tp-btn__link:hover {
	color: var(--c-accent);
}

.tp-btn:hover::before,
.wp-block-button .tp-btn__link:hover::before {
	height: 100%;
}

.tp-btn:hover::after,
.wp-block-button .tp-btn__link:hover::after {
	transform: translateX(4px);
}

.tp-btn--sm {
	padding: 12px 18px;
	font-size: 14px;
}

/* 次级按钮：透明 + 描边 */
.tp-btn--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.tp-btn--ghost:hover {
	box-shadow: inset 0 0 0 1px transparent;
}

.wp-block-button .tp-btn__link {
	box-shadow: none;
}

/*
 * Gutenberg 按钮容器只负责占位，全部视觉落在 __link 上。
 * 不加这段，容器会继承 .tp-btn 的底色与箭头，页面上出现两个箭头、双层内边距。
 * 用 body 前缀提高优先级，确保压过下面 .tp-cta / .tp-hero 的 .tp-btn 规则。
 */
body .wp-block-button.tp-btn {
	display: block;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	color: inherit;
}

body .wp-block-button.tp-btn::before,
body .wp-block-button.tp-btn::after {
	content: none;
	display: none;
}

/* ---------- 页脚 ---------- */
.tp-footer {
	background: var(--c-bg-soft);
	padding: var(--section-pad) var(--page-pad) 40px;
}

.tp-footer__inner {
	max-width: 1600px;
	margin: 0 auto;
}

.tp-footer__cols {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 60px;
}

.tp-footer__logo img {
	max-height: 48px;
	width: auto;
	display: block;
}

.tp-footer__name {
	font-family: var(--f-display);
	font-size: 30px;
	line-height: 1;
	color: #fff;
	margin-bottom: 16px;
}

.tp-footer__desc {
	font-size: 15px;
	color: var(--c-text);
	max-width: 30ch;
}

.tp-footer__title {
	margin: 0 0 18px;
	font-family: var(--f-body);
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.tp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-footer__list li {
	margin-bottom: 10px;
}

.tp-footer__list a {
	font-size: 15.27px;
	color: var(--c-text);
	transition: color 0.3s var(--ease);
}

.tp-footer__list a:hover {
	color: #fff;
}

.tp-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 28px;
	border-top: 1px solid var(--c-line);
}

.tp-footer__bottom p {
	margin: 0;
	font-size: 15.27px;
	color: var(--c-text);
}

/* ==========================================================================
   版面骨架
   ========================================================================== */

/* 每个 section 统一 100px 上下留白 —— 这是"贵"的来源，不要逐块微调 */
.tp-section {
	padding: var(--section-pad) var(--page-pad);
	position: relative;
}

/* 首屏区块自动让出固定页头的高度（Hero 自己算，不叠加） */
.tp-page > .tp-section:first-child:not(.tp-hero),
.tp-page > .wp-block-group:first-child:not(.tp-hero) {
	padding-top: calc(var(--header-h) + 80px);
}

.tp-section--flush {
	padding-left: 0;
	padding-right: 0;
}

.tp-section--tight {
	padding-top: 0;
}

/* 媒体：统一圆角，绝不出现直角大图 */
.tp-media img,
.wp-block-image img {
	border-radius: var(--radius-card);
}

.tp-media--wide img {
	border-radius: var(--radius-media);
}

/* 4:5 竖构图 —— 全站卡片的唯一比例 */
.tp-ratio-45 {
	aspect-ratio: 4 / 5;
}
.tp-ratio-45 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-ratio-11 {
	aspect-ratio: 1 / 1;
}
.tp-ratio-11 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-ratio-169 {
	aspect-ratio: 16 / 9;
}
.tp-ratio-169 img,
.tp-ratio-169 video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-media);
}

/* ==========================================================================
   Hero —— 纯 CSS 蓝色光晕，不需要任何背景图
   ========================================================================== */
.tp-hero {
	position: relative;
	display: grid;
	place-items: center;
	text-align: center;
	overflow: hidden;
	min-height: min(86vh, 900px);
	padding: calc(var(--header-h) + 120px) var(--page-pad) 120px;
}

.tp-hero::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -25%;
	width: 120vw;
	height: 110vh;
	transform: translateX(-50%);
	background: radial-gradient(
		closest-side,
		rgb(var(--c-accent-rgb) / 0.55),
		rgb(var(--c-accent-rgb) / 0.16) 45%,
		rgb(var(--c-accent-rgb) / 0) 72%
	);
	filter: blur(10px);
	pointer-events: none;
}

.tp-hero > * {
	position: relative;
	z-index: 1;
}

.tp-hero h1 {
	max-width: 18em;
	margin: 0 auto;
}

.tp-hero__eyebrow {
	margin: 0 0 28px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-text);
}

.tp-hero__sub {
	max-width: 46ch;
	margin: 28px auto 0;
	font-size: 17px;
	color: var(--c-text);
}

.tp-hero .tp-btn-row {
	margin: 44px 0 0;
	justify-content: center;
}

/* Hero 里的主按钮比正文按钮大一号 */
.tp-hero .tp-btn,
.tp-hero .wp-block-button .tp-btn__link {
	padding: 18px 26px;
	font-size: 16px;
}

/* 内页 hero 矮一些 */
.tp-hero--page {
	min-height: 0;
	padding: calc(var(--header-h) + 120px) var(--page-pad) 90px;
}

/* ==========================================================================
   蓝色色块 —— 全站唯一一次"重击"
   ========================================================================== */
.tp-band {
	background: var(--c-accent);
	border-radius: var(--radius-media) var(--radius-media) 0 0;
	padding: var(--section-pad) var(--page-pad);
}

.tp-band p,
.tp-band h2,
.tp-band h3 {
	color: #fff;
}

.tp-band__text {
	max-width: 1200px;
	margin: 0 auto;
}

.tp-band__text p {
	font-family: var(--f-display);
	/* 对照原站 1440 视口实测 36px：36 / 1440 = 2.5vw */
	font-size: clamp(22px, 2.5vw, 36px);
	line-height: 1.6;
	letter-spacing: -0.01em;
	margin-bottom: 0.85em;
}

.tp-band__text p:last-child {
	margin-bottom: 0;
}

/* 收尾 CTA 条 */
.tp-cta {
	background: var(--c-accent);
	border-radius: var(--radius-media);
	padding: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.tp-cta h2 {
	margin: 0 0 8px;
	color: #fff;
}

.tp-cta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	max-width: 46ch;
}

.tp-cta .tp-btn,
.tp-cta .wp-block-button .tp-btn__link {
	background: #fff;
	color: var(--c-accent);
	flex: 0 0 auto;
}

.tp-cta .tp-btn::before,
.tp-cta .wp-block-button .tp-btn__link::before {
	background: var(--c-bg);
}

.tp-cta .tp-btn:hover,
.tp-cta .wp-block-button .tp-btn__link:hover {
	color: #fff;
}

/* 四步流程条 */
.tp-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.tp-step {
	font-size: 15.27px;
	line-height: 1.45;
	color: #fff;
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	padding-left: 20px;
}

.tp-step:first-child {
	border-left: 0;
	padding-left: 0;
}

.tp-step b {
	display: block;
	font-weight: 500;
	margin-bottom: 4px;
}

/* ==========================================================================
   数字统计
   ========================================================================== */
.tp-stats {
	text-align: center;
}

.tp-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px;
	max-width: 1300px;
	margin: 0 auto;
}

/* 数字用无衬线 700，与衬线标题形成反差 —— 这是原站的关键细节 */
.tp-stat__num {
	margin: 0 0 16px;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: clamp(64px, 8.9vw, 128px);
	line-height: 1;
	letter-spacing: -0.025em;
	color: var(--c-accent);
	font-variant-numeric: tabular-nums;
}

.tp-stat__label {
	margin: 0;
	/* 对照原站 1440 视口实测 30px */
	font-size: clamp(18px, 2.08vw, 30px);
	line-height: 1.35;
	color: #fff;
}

/* ==========================================================================
   粘性图文叠放 —— 纯 CSS，零 JS
   ========================================================================== */
.tp-stack__item {
	display: grid;
	/* minmax(0,…) 必须写：裸 1fr 的最小值是 min-content，
	   固定高度的方图会反过来把栅格列撑宽，文字列被挤成一条窄缝。 */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 4vw, 60px);
	/* 比图片高出约 50vh，粘滞才有行程可用；图片高度见下 */
	min-height: 130vh;
	padding: 0 0 80px;
}

/* 只让图片粘住，文字继续滚。
   图片不能按视口高度满铺，否则栏目没有滚动余量，sticky 形同虚设。 */
.tp-stack__item > figure,
.tp-stack__item > .wp-block-image {
	position: sticky;
	top: calc(var(--header-h-s) + 24px);
	width: 100%;
	/* 高度由下面的定值决定；必须关掉 1:1，否则比例会反向撑宽栅格列 */
	aspect-ratio: auto;
	height: calc(100vh - var(--header-h-s) - 48px);
	max-height: 720px;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-media);
}

.tp-stack__item > figure img,
.tp-stack__item > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-media);
}

.tp-stack__text {
	align-self: center;
	padding-top: 6vh;
}

.tp-stack__text h3 {
	margin-bottom: 18px;
}

.tp-stack__text p {
	max-width: 42ch;
}

/* ==========================================================================
   卡片滑块 —— scroll-snap，零 JS 也能滑
   ========================================================================== */
.tp-slider-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.tp-slider-head h2 {
	margin: 0;
	max-width: 22em;
}

.tp-slider-nav {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

.tp-slider-nav button {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--c-line);
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
		color 0.3s var(--ease);
}

.tp-slider-nav button::before {
	content: "";
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
}

.tp-slider-nav button[data-dir="-1"]::before {
	transform: rotate(180deg);
}

.tp-slider-nav button:hover {
	background: var(--c-accent);
	border-color: var(--c-accent);
}

.tp-slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 72px) / 5);
	gap: 18px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 4px;
}

.tp-slider::-webkit-scrollbar {
	display: none;
}

.wp-block-cover.tp-slide {
	scroll-snap-align: start;
	aspect-ratio: 4 / 5;
	min-height: 0;
	border-radius: var(--radius-card);
	overflow: hidden;
	align-items: flex-end;
	margin: 0;
}

.wp-block-cover.tp-slide .wp-block-cover__image-background,
.wp-block-cover.tp-slide .wp-block-cover__video-background {
	transition: transform 0.7s var(--ease);
}

.wp-block-cover.tp-slide:hover .wp-block-cover__image-background {
	transform: scale(1.05);
}

/* 底部渐变遮罩，让白字压得住画面 */
.wp-block-cover.tp-slide .wp-block-cover__background {
	background-image: linear-gradient(
		180deg,
		rgba(2, 2, 21, 0) 35%,
		rgba(2, 2, 21, 0.86) 100%
	);
}

.wp-block-cover.tp-slide .wp-block-cover__inner-container {
	padding: 24px;
	text-align: left;
	width: 100%;
}

.wp-block-cover.tp-slide h3 {
	margin: 0 0 14px;
	color: #fff;
}

.wp-block-cover.tp-slide .wp-block-button .tp-btn__link {
	padding: 10px 16px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.14);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.wp-block-cover.tp-slide .wp-block-button .tp-btn__link:hover {
	color: var(--c-accent);
}

/* ==========================================================================
   功能四宫格 —— 用径向光晕代替图标，降低素材门槛
   ========================================================================== */
.tp-grid-4 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 36px;
	max-width: 900px;
	margin: 0 auto;
}

.tp-feature {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-card);
	padding: 36px 32px 40px;
	background: linear-gradient(180deg, #0b0b33 0%, #070720 100%);
	min-height: 280px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.tp-feature::after {
	content: "";
	position: absolute;
	right: -30%;
	top: -40%;
	width: 90%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(
		closest-side,
		rgb(var(--c-accent-rgb) / 0.5),
		rgb(var(--c-accent-rgb) / 0) 70%
	);
	pointer-events: none;
}

.tp-feature > * {
	position: relative;
	z-index: 1;
}

.tp-feature h3 {
	margin: 0 0 14px;
}

.tp-feature p {
	margin: 0;
	font-size: 15.27px;
	line-height: 1.65;
}

/* ==========================================================================
   入场动画：逐词遮罩上移 / 整体上移
   ========================================================================== */
.tp-split-ready .tp-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
}

.tp-split-ready .tp-wi {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 0.55s var(--ease);
	will-change: transform;
}

.tp-split-ready.is-in .tp-wi {
	transform: translateY(0);
}

.tp-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.tp-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   列表页 / 归档
   ========================================================================== */
.tp-index {
	padding: calc(var(--header-h) + 100px) var(--page-pad) var(--section-pad);
}

.tp-index__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px 36px;
	margin-top: 48px;
}

.tp-index__item h3 {
	margin: 20px 0 10px;
}

.tp-index__item p {
	font-size: 15px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
	:root {
		--page-pad: 32px;
		--section-pad: 88px;
	}

	.tp-nav__list {
		gap: 24px;
	}

	.tp-nav__list a {
		font-size: 15px;
	}

	.tp-slider {
		grid-auto-columns: calc((100% - 54px) / 4);
	}
}

@media (max-width: 1024px) {
	:root {
		--page-pad: 24px;
		--section-pad: 72px;
		--header-h: 88px;
		--header-h-s: 80px;
	}

	.tp-header__inner {
		grid-template-columns: 1fr auto;
	}

	.tp-nav,
	.tp-header__actions .tp-btn {
		display: none;
	}

	.tp-burger {
		display: block;
	}

	.tp-header__brand img {
		max-height: 40px;
	}

	.tp-header__name {
		font-size: 24px;
	}

	.tp-hero {
		min-height: 0;
		padding: calc(var(--header-h) + 72px) var(--page-pad) 80px;
	}

	/* 粘性叠放在小屏必须关掉，否则会抖 */
	.tp-stack__item {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 0 0 56px;
		gap: 24px;
	}

	.tp-stack__item > figure,
	.tp-stack__item > .wp-block-image {
		position: static;
		height: auto;
		max-height: none;
	}

	.tp-stack__item > figure img,
	.tp-stack__item > .wp-block-image img {
		height: auto;
	}

	.tp-stack__text {
		padding-top: 0;
	}

	.tp-stats__grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.tp-grid-4 {
		grid-template-columns: 1fr;
	}

	.tp-slider {
		grid-auto-columns: 78%;
	}

	.tp-slider-head {
		align-items: flex-start;
	}

	.tp-cta {
		padding: 40px 28px;
	}

	.tp-steps {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.tp-step {
		border-left: 0;
		padding-left: 0;
	}

	.tp-footer__cols {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		padding-bottom: 40px;
	}

	.tp-index__grid {
		grid-template-columns: 1fr;
	}

	.tp-band {
		border-radius: var(--radius-card) var(--radius-card) 0 0;
	}
}

@media (max-width: 600px) {
	.tp-hero__sub {
		font-size: 16px;
	}

	.tp-slider {
		grid-auto-columns: 86%;
	}

	.tp-steps {
		grid-template-columns: 1fr;
	}

	.tp-footer__cols {
		grid-template-columns: 1fr;
	}
}

/* ---------- 无障碍：尊重系统减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.tp-split-ready .tp-wi,
	.tp-reveal {
		transform: none;
		opacity: 1;
		transition: none;
	}

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