/* =========================================================================
   无敌AB · 主题样式
   设计基调：深空底 + 极光渐变 + 玻璃面板 + 细网格，强调"科技/监控台"观感。
   约定：所有自定义类以 wd- 前缀，避免与核心区块样式冲突。
   ========================================================================= */

:root {
	--wd-radius-sm: 12px;
	--wd-radius: 18px;
	--wd-radius-lg: 26px;
	--wd-line: rgba(120, 150, 200, 0.16);
	--wd-line-strong: rgba(120, 150, 200, 0.28);
	--wd-glass: linear-gradient(160deg, rgba(20, 29, 49, 0.78) 0%, rgba(8, 12, 23, 0.86) 100%);
	--wd-glass-hover: linear-gradient(160deg, rgba(28, 40, 66, 0.9) 0%, rgba(10, 15, 28, 0.94) 100%);
	--wd-cyan: #22d3ee;
	--wd-blue: #3b82f6;
	--wd-violet: #8b5cf6;
	--wd-lime: #34d399;
	--wd-amber: #fbbf24;
	--wd-text: #e8eefb;
	--wd-muted: #93a4bf;
	--wd-ink: #05070d;
	--wd-header-h: 72px;
	--wd-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wd-header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	position: relative;
	background-color: var(--wd-ink);
	color: var(--wd-text);
	overflow-x: hidden;
}

/* 背景：细网格 + 两团极光，固定定位，不参与滚动重绘。 */
body::before,
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
}

body::before {
	background-image:
		linear-gradient(rgba(120, 160, 220, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 160, 220, 0.045) 1px, transparent 1px);
	background-size: 64px 64px, 64px 64px;
	mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 25%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 25%, transparent 78%);
}

body::after {
	z-index: -3;
	background:
		radial-gradient(60rem 32rem at 12% -8%, rgba(34, 211, 238, 0.18), transparent 62%),
		radial-gradient(52rem 30rem at 88% 4%, rgba(139, 92, 246, 0.2), transparent 60%),
		radial-gradient(48rem 28rem at 50% 100%, rgba(59, 130, 246, 0.14), transparent 62%);
}

::selection {
	background: rgba(34, 211, 238, 0.28);
	color: #fff;
}

a {
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wd-cyan);
	outline-offset: 3px;
	border-radius: 6px;
}

/* 跳转到内容：键盘可达性。 */
.wp-block-skip-link,
a.skip-link {
	position: absolute;
	left: -9999px;
}

a.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 999;
	padding: 10px 16px;
	background: var(--wd-cyan);
	color: #04121b;
	border-radius: 999px;
}

/* ---------------------------------------------------------------- 布局容器 */
.wd-section {
	position: relative;
	padding-block: clamp(3.5rem, 7vw, 7rem);
}

/* 锚点跳转时给吸顶页头留出空间（深链直接落到 #pricing 这类位置时不会压住标题）。 */
[id] {
	scroll-margin-top: calc(var(--wd-header-h) + 20px);
}

.wd-section--tight {
	padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.wd-shell {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1220px);
	margin-inline: auto;
}

.wd-stack > * + * {
	margin-block-start: var(--wd-gap, 1.25rem);
}

.wd-center {
	text-align: center;
}

.wd-center .wp-block-buttons {
	justify-content: center;
}

/* 标题换行更均衡；正文不动，避免长段落被拆得七零八落。 */
h1,
h2,
h3 {
	text-wrap: balance;
}

/* ------------------------------------------------------------------ 文字体系 */
.wd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--wd-cyan);
	background: rgba(34, 211, 238, 0.08);
	border: 1px solid rgba(34, 211, 238, 0.28);
	border-radius: 999px;
	text-transform: uppercase;
}

.wd-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wd-cyan);
	box-shadow: 0 0 12px var(--wd-cyan);
	animation: wd-pulse 2.4s var(--wd-ease) infinite;
}

.wd-gradient-text {
	background: linear-gradient(100deg, #7ff0ff 0%, #5fa8ff 42%, #b18cff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wd-lead {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.8;
	color: var(--wd-muted);
	max-width: 62ch;
}

.wd-center .wd-lead {
	margin-inline: auto;
}

.wd-subtitle {
	color: var(--wd-muted);
	font-size: 0.95rem;
}

.wd-mono {
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- 玻璃卡片 */
.wd-glass {
	position: relative;
	padding: clamp(1.25rem, 2.4vw, 2rem);
	background: var(--wd-glass);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius);
	box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform 0.45s var(--wd-ease), border-color 0.45s var(--wd-ease), background 0.45s var(--wd-ease);
	overflow: hidden;
}

.wd-glass::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(120deg, rgba(34, 211, 238, 0.5), transparent 38%, transparent 62%, rgba(139, 92, 246, 0.45));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.45s var(--wd-ease);
	pointer-events: none;
}

.wd-glass:hover {
	transform: translateY(-4px);
	background: var(--wd-glass-hover);
	border-color: var(--wd-line-strong);
}

.wd-glass:hover::after {
	opacity: 1;
}

.wd-glass--flat {
	transform: none;
}

.wd-glass--flat:hover {
	transform: none;
}

/* 图标：统一 40px 圆角方块，内嵌 SVG。 */
.wd-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1rem;
	border-radius: 13px;
	background: linear-gradient(140deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.18));
	border: 1px solid rgba(34, 211, 238, 0.24);
	color: var(--wd-cyan);
	flex: none;
}

.wd-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wd-icon--violet {
	color: #c4b5fd;
	border-color: rgba(139, 92, 246, 0.28);
	background: linear-gradient(140deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.14));
}

.wd-icon--lime {
	color: #6ee7b7;
	border-color: rgba(52, 211, 153, 0.28);
	background: linear-gradient(140deg, rgba(52, 211, 153, 0.2), rgba(34, 211, 238, 0.12));
}

/* 网格：自适应卡片墙。 */
.wd-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.wd-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.wd-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

/* 正好 4 个卡片时用 2×2，避免出现"3+1"的孤儿布局。 */
.wd-grid--pairs {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}

/*
 * 关键修复：WordPress 的「流式布局」会给容器里相邻的子元素加一个 blockGap 上边距
 * （.wp-container-xxx > * + * { margin-block-start: var(--wp--style--block-gap) }）。
 * 我们这些容器是 grid / flex，间距由 gap 控制，多出来的上边距会让第 2 个及之后的卡片
 * 整体下沉 24px——表现就是「第一张卡比同排其他卡高一块」。这里统一清零。
 */
.wd-grid > *,
.wd-steps > *,
.wd-metrics > *,
.wd-faq > *,
.wd-hero__meta > * {
	margin-block-start: 0 !important;
}

/* 价格卡里的「最受欢迎」角标是绝对定位，但它仍占 DOM 顺序，
   会让后面的标题吃到那 24px 上边距，导致三栏标题不齐。 */
.wd-tier > .wd-tier__badge + * {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------- 页头 */
.wd-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid transparent;
	transition: background 0.35s var(--wd-ease), border-color 0.35s var(--wd-ease), backdrop-filter 0.35s var(--wd-ease);
}

.wd-header.is-stuck {
	background: rgba(5, 7, 13, 0.82);
	border-bottom-color: var(--wd-line);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
}

.wd-header .wp-block-group {
	min-height: var(--wd-header-h);
}

/* 站点标题：文字使用渐变，前缀方块由 CSS 生成，避免模板里硬编码链接。 */
.wd-brand__name {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.wd-brand__name > a,
.wd-brand__name a {
	background: linear-gradient(100deg, #ffffff, #9fd8ff 60%, #c9b8ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-decoration: none;
}

.wd-brand__name::before {
	content: "AB";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(140deg, #22d3ee, #3b82f6 55%, #8b5cf6);
	color: #04121b;
	font-weight: 800;
	font-size: 0.9rem;
	letter-spacing: -0.02em;
	box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.7);
	flex: none;
}

.wd-header .wp-block-navigation-item__content {
	padding: 0.35rem 0.15rem;
	transition: color 0.3s var(--wd-ease);
}

.wd-header .wp-block-navigation-item__content:hover,
.wd-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wd-text);
}

.wd-header .wp-block-navigation__submenu-container {
	background: rgba(8, 12, 23, 0.96);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-sm);
	padding: 0.5rem;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* -------------------------------------------------------------------- 按钮 */
.wp-block-button__link {
	border: 1px solid transparent;
	transition: transform 0.3s var(--wd-ease), box-shadow 0.3s var(--wd-ease), background 0.3s var(--wd-ease), color 0.3s var(--wd-ease);
}

/* 主按钮：极光渐变。theme.json 里的 background 只接受颜色，渐变需要单独指定。 */
.wp-block-button:not(.wd-btn-ghost) .wp-block-button__link {
	background-color: var(--wd-cyan);
	background-image: linear-gradient(120deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
	color: #04121b;
	font-weight: 600;
}

.wp-block-button:not(.wd-btn-ghost) .wp-block-button__link:hover {
	background-image: linear-gradient(120deg, #67e8f9 0%, #60a5fa 50%, #a78bfa 100%);
	color: #04121b;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px -20px rgba(34, 211, 238, 0.8);
}

.wd-btn-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, 0.02);
	color: var(--wd-text);
	border-color: var(--wd-line-strong);
	box-shadow: none;
}

.wd-btn-ghost .wp-block-button__link:hover {
	background: rgba(34, 211, 238, 0.1);
	border-color: rgba(34, 211, 238, 0.5);
	color: #fff;
	box-shadow: none;
}

.wd-btn-sm .wp-block-button__link {
	padding: 0.6rem 1.15rem;
	font-size: 0.875rem;
}

/* -------------------------------------------------------------------- 首屏 */
.wd-hero {
	position: relative;
	padding-block: clamp(3rem, 8vw, 7.5rem) clamp(2.5rem, 6vw, 5rem);
	overflow: hidden;
}

.wd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	align-items: center;
	color: var(--wd-muted);
	font-size: 0.875rem;
}

.wd-hero__meta strong {
	color: var(--wd-text);
	font-size: 1.25rem;
	display: block;
	line-height: 1.3;
}

/* 首屏右侧"控制台"示意面板，纯 CSS 绘制，无图片请求。 */
.wd-console {
	position: relative;
	padding: 1rem;
	background: var(--wd-glass);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-lg);
	box-shadow: 0 40px 90px -50px rgba(34, 211, 238, 0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.wd-console__bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.5rem 0.85rem;
	border-bottom: 1px solid var(--wd-line);
}

.wd-console__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(147, 164, 191, 0.35);
}

.wd-console__dot--live {
	background: var(--wd-lime);
	box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

.wd-console__title {
	margin-inline-start: auto;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--wd-muted);
	text-transform: uppercase;
}

.wd-console__body {
	display: grid;
	gap: 0.85rem;
	padding-top: 1rem;
}

.wd-channel-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.85rem;
	padding: 0.7rem 0.85rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-sm);
}

.wd-channel-row__name {
	font-size: 0.875rem;
	font-weight: 600;
}

.wd-channel-row__meta {
	font-size: 0.75rem;
	color: var(--wd-muted);
}

.wd-meter {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: rgba(147, 164, 191, 0.16);
	overflow: hidden;
}

.wd-meter__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #22d3ee, #3b82f6);
	animation: wd-meter 3.6s var(--wd-ease) infinite alternate;
}

.wd-meter__fill--violet {
	background: linear-gradient(90deg, #8b5cf6, #d946ef);
	animation-delay: 0.5s;
}

.wd-meter__fill--lime {
	background: linear-gradient(90deg, #34d399, #22d3ee);
	animation-delay: 1s;
}

.wd-channel-row__value {
	font-size: 0.8125rem;
	color: var(--wd-text);
	font-variant-numeric: tabular-nums;
}

/* 首屏底部浮动指标条。 */
.wd-metrics {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	background: var(--wd-line);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius);
	overflow: hidden;
}

.wd-metric {
	padding: 1.35rem 1.25rem;
	background: rgba(8, 12, 23, 0.86);
}

.wd-metric__value {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	background: linear-gradient(100deg, #ffffff, #7ff0ff 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wd-metric__value .wd-metric__suffix {
	font-size: 0.55em;
	margin-inline-start: 0.15em;
	color: var(--wd-cyan);
	-webkit-text-fill-color: var(--wd-cyan);
}

.wd-metric__label {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: var(--wd-muted);
}

/* ------------------------------------------------------------------ 通道标签 */
.wd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.wd-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	color: var(--wd-muted);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--wd-line);
	border-radius: 999px;
}

.wd-chip::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wd-lime);
}

.wd-chip--cyan::before {
	background: var(--wd-cyan);
}

.wd-chip--violet::before {
	background: var(--wd-violet);
}

.wd-chip--amber::before {
	background: var(--wd-amber);
}

/* --------------------------------------------------------------- 品牌 Logo 墙 */
.wd-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1rem;
}

.wd-logos__item {
	padding: 0.55rem 1.1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(232, 238, 251, 0.72);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--wd-line);
	border-radius: 12px;
}

/* -------------------------------------------------------------------- 步骤 */
.wd-steps {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	counter-reset: wd-step;
}

.wd-step {
	position: relative;
	padding-top: 3.25rem;
	counter-increment: wd-step;
}

.wd-step::before {
	content: counter(wd-step, decimal-leading-zero);
	position: absolute;
	top: 1.35rem;
	left: clamp(1.25rem, 2.4vw, 2rem);
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	color: transparent;
	background: linear-gradient(120deg, rgba(34, 211, 238, 0.9), rgba(139, 92, 246, 0.75));
	-webkit-background-clip: text;
	background-clip: text;
}

/* -------------------------------------------------------------------- 定价 */
.wd-tier {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* 三栏价格卡对齐：副标题占固定高度、价格行占固定高度、按钮吸底。
   否则「适合 1-2 个站点」和「适合多站点、多币种运营团队」行数不同，卡片内部就会错位。 */
.wd-tier .wd-subtitle {
	min-height: 3.2em;
	margin-top: 0.25rem;
}

.wd-tier__cta {
	margin-top: auto;
	padding-top: 1.5rem;
}

.wd-tier--featured {
	border-color: rgba(34, 211, 238, 0.45);
	box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 40px 80px -50px rgba(34, 211, 238, 0.75);
}

.wd-tier__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.25rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #04121b;
	background: linear-gradient(100deg, #22d3ee, #8b5cf6);
	border-radius: 999px;
}

.wd-price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	margin-block: 0.5rem 0.25rem;
	min-height: 3.4rem;
}

.wd-price__amount {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wd-price__unit {
	font-size: 0.875rem;
	color: var(--wd-muted);
}

/* 「定制 / 按需报价」这类文字价格，不套用金额的大字号，避免和旁边两栏失衡。 */
.wd-price--text .wd-price__amount {
	font-size: clamp(1.5rem, 3vw, 2rem);
	background: linear-gradient(100deg, #ffffff, #9fd8ff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wd-price--text .wd-price__unit {
	align-self: flex-end;
	padding-bottom: 0.35rem;
}

.wd-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.6rem;
}

.wd-list li {
	position: relative;
	padding-inline-start: 1.6rem;
	font-size: 0.9375rem;
	color: var(--wd-muted);
}

.wd-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.95), rgba(34, 211, 238, 0.25));
	box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

.wd-list--check li::before {
	background: radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.95), rgba(52, 211, 153, 0.25));
	box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

/* -------------------------------------------------------------------- 问答 */
.wd-faq .wp-block-details {
	padding: 1.1rem 1.35rem;
	background: var(--wd-glass);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius);
	transition: border-color 0.35s var(--wd-ease);
}

.wd-faq .wp-block-details + .wp-block-details {
	margin-top: 0.75rem;
}

.wd-faq .wp-block-details[open] {
	border-color: rgba(34, 211, 238, 0.4);
}

.wd-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
	list-style: none;
}

.wd-faq summary::-webkit-details-marker {
	display: none;
}

.wd-faq summary::after {
	content: "+";
	float: right;
	margin-inline-start: 1rem;
	color: var(--wd-cyan);
	font-weight: 400;
	font-size: 1.25rem;
	line-height: 1;
	transition: transform 0.3s var(--wd-ease);
}

.wd-faq .wp-block-details[open] summary::after {
	content: "–";
}

.wd-faq .wp-block-details p {
	margin-block: 0.85rem 0;
	color: var(--wd-muted);
	font-size: 0.9375rem;
}

/* -------------------------------------------------------------------- 提示条 */
.wd-notice {
	padding: 1rem 1.25rem;
	border-radius: var(--wd-radius);
	border: 1px solid rgba(251, 191, 36, 0.32);
	background: linear-gradient(120deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.02));
	color: #fde9b8;
	font-size: 0.9375rem;
}

.wd-notice--info {
	border-color: rgba(34, 211, 238, 0.3);
	background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0.02));
	color: #cdf3ff;
}

/* -------------------------------------------------------------------- CTA 区 */
.wd-cta {
	position: relative;
	overflow: hidden;
	border-radius: var(--wd-radius-lg);
	border: 1px solid rgba(34, 211, 238, 0.28);
	background:
		radial-gradient(70% 120% at 15% 0%, rgba(34, 211, 238, 0.22), transparent 60%),
		radial-gradient(70% 120% at 85% 100%, rgba(139, 92, 246, 0.24), transparent 60%),
		rgba(8, 12, 23, 0.9);
}

/* --------------------------------------------------------------- 联系卡片 */
.wd-contact {
	display: grid;
	gap: 0.75rem;
}

.wd-contact__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--wd-line);
	border-radius: var(--wd-radius-sm);
	font-size: 0.9375rem;
}

.wd-contact__label {
	color: var(--wd-muted);
	font-size: 0.8125rem;
}

.wd-contact__value {
	font-weight: 600;
}

.wd-copy {
	padding: 0.35rem 0.75rem;
	font-size: 0.8125rem;
	color: var(--wd-cyan);
	background: rgba(34, 211, 238, 0.08);
	border: 1px solid rgba(34, 211, 238, 0.28);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.3s var(--wd-ease);
}

.wd-copy:hover {
	background: rgba(34, 211, 238, 0.18);
}

/* --------------------------------------------------------------- 文章列表 */
.wd-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wd-post-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	border-radius: var(--wd-radius-sm);
}

.wd-post-meta {
	font-size: 0.8125rem;
	color: var(--wd-muted);
}

/* ------------------------------------------------------------------ 页脚 */
.wd-footer {
	border-top: 1px solid var(--wd-line);
	background: linear-gradient(180deg, rgba(5, 7, 13, 0.4), rgba(5, 7, 13, 0.95));
}

.wd-footer .wp-block-navigation-item__content {
	color: var(--wd-muted);
	font-size: 0.9375rem;
}

.wd-footer .wp-block-navigation-item__content:hover {
	color: var(--wd-text);
}

/* 页脚导航与最新文章：统一成无项目符号的紧凑竖排列表，避免自动页面列表那种错位感。 */
.wd-footer .wd-footer__nav,
.wd-footer .wd-footer__posts {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
	font-size: 0.9375rem;
}

.wd-footer .wd-footer__nav li,
.wd-footer .wd-footer__posts li {
	margin: 0;
}

.wd-footer .wd-footer__nav a,
.wd-footer .wd-footer__posts a {
	color: var(--wd-muted);
	text-decoration: none;
}

.wd-footer .wd-footer__nav a:hover,
.wd-footer .wd-footer__posts a:hover {
	color: var(--wd-text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wd-footer .wp-block-latest-posts__post-date {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	color: rgba(147, 164, 191, 0.65);
}

.wd-footer__bottom {
	font-size: 0.8125rem;
	color: rgba(147, 164, 191, 0.8);
}

/* -------------------------------------------------------------------- 表格
   核心的表格斑马纹（is-style-stripes）用的是浅色主题的 #f0f0f0 底色，
   在深色主题上会变成「白底白字」，整行看起来像是空的（对比度只有 1.02）。
   这里用重复类名提高优先级，确保稳定覆盖核心样式。 */
.wp-block-table {
	color: var(--wd-text);
	font-size: 0.9375rem;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--wd-line);
	vertical-align: top;
	line-height: 1.6;
}

.wp-block-table thead th {
	background: rgba(34, 211, 238, 0.07);
	color: var(--wd-text);
	font-weight: 600;
	text-align: left;
}

.wp-block-table.is-style-stripes.is-style-stripes {
	background-color: transparent;
	border-bottom-color: var(--wd-line);
}

.wp-block-table.is-style-stripes.is-style-stripes tbody tr:nth-child(odd) {
	background-color: rgba(255, 255, 255, 0.035);
}

.wp-block-table.is-style-stripes.is-style-stripes tbody tr:nth-child(even) {
	background-color: transparent;
}

.wp-block-table figcaption {
	margin-top: 0.6rem;
	color: var(--wd-muted);
	font-size: 0.875rem;
	text-align: left;
}

/* 正文里的长链接、长标识符不撑破容器（手机窄屏尤其明显）。 */
.wp-block-post-content a,
.wp-block-post-content code {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.wp-block-code,
.wp-block-preformatted {
	overflow-x: auto;
}

.wp-block-code code {
	white-space: pre-wrap;
	word-break: break-word;
}

@media (max-width: 480px) {
	.wp-block-table {
		font-size: 0.875rem;
	}

	.wp-block-table th,
	.wp-block-table td {
		padding: 0.6rem 0.7rem;
	}
}

/* ------------------------------------------------------------------ 面包屑 */

/* ================================================================== 内容页版式
   内页不再是「深色背景 + 一列裸文字」：标题单独一层渐变带，
   正文放进玻璃卡片，右侧配目录与转化卡片，窄屏自动堆叠。
   ====================================================================== */
.wd-page-hero {
	position: relative;
	padding-block: clamp(2rem, 4.6vw, 3.4rem) clamp(1.5rem, 3vw, 2.2rem);
	border-bottom: 1px solid var(--wd-line);
	background:
		radial-gradient(70% 140% at 10% 0%, rgba(34, 211, 238, 0.13), transparent 60%),
		radial-gradient(60% 130% at 92% 0%, rgba(139, 92, 246, 0.13), transparent 62%);
}

.wd-page-hero .wds-breadcrumbs {
	margin-bottom: 0.85rem;
}

.wd-page-hero h1 {
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	margin-block: 0 0.75rem;
}

.wd-page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	font-size: 0.8125rem;
	color: var(--wd-muted);
}

.wd-page-hero__meta .wp-block-post-date::before {
	content: "更新于 ";
}

/*
 * 受限布局会给子元素套 margin-left/right:auto，导语因为有自己的 max-width
 * 就被推到中间，和标题、面包屑对不齐。这里用物理属性 + !important 明确覆盖
 * （逻辑属性 margin-inline 与核心的 margin-left/right 混用时容易被判负）。
 */
.wd-page-hero .wd-lead {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: min(62ch, 100%);
}

.wd-page-hero__meta a {
	color: var(--wd-muted);
	text-decoration: none;
}

.wd-page-hero__meta a:hover {
	color: var(--wd-cyan);
}

/* ------------------------------------------------------------------ 两栏布局 */
.wd-doc-layout,
.wd-list-layout {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: minmax(0, 1fr) 290px;
	align-items: start;
}

.wd-doc-layout > *,
.wd-list-layout > * {
	margin-block-start: 0 !important;
}

@media (max-width: 980px) {
	.wd-doc-layout,
	.wd-list-layout {
		grid-template-columns: 1fr;
	}

	.wd-doc-aside {
		position: static;
	}
}

.wd-doc-aside {
	position: sticky;
	top: calc(var(--wd-header-h) + 24px);
	display: grid;
	gap: 1rem;
}

/* ------------------------------------------------------------------ 正文卡片 */
.wd-doc-body {
	padding: clamp(1.25rem, 2.6vw, 2.25rem);
}

.wd-doc-body > * + * {
	margin-block-start: 1.05rem !important;
}

.wd-doc-body p,
.wd-doc-body li {
	color: #c9d6ec;
}

.wd-doc-body h2 {
	margin-block-start: 2.25rem !important;
	padding-left: 0.8rem;
	border-left: 3px solid var(--wd-cyan);
	font-size: clamp(1.3rem, 2.2vw, 1.55rem);
}

.wd-doc-body > h2:first-child {
	margin-block-start: 0 !important;
}

.wd-doc-body h3 {
	margin-block-start: 1.6rem !important;
	font-size: 1.15rem;
}

.wd-doc-body ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.wd-doc-body ul li {
	position: relative;
	padding-left: 1.6rem;
}

.wd-doc-body ul li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.95), rgba(34, 211, 238, 0.25));
	box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

.wd-doc-body ol {
	padding-inline-start: 1.35rem;
	display: grid;
	gap: 0.5rem;
}

.wd-doc-body ol li::marker {
	color: var(--wd-cyan);
	font-weight: 600;
}

.wd-doc-body code {
	padding: 0.1em 0.35em;
	border-radius: 6px;
	background: rgba(34, 211, 238, 0.1);
	border: 1px solid rgba(34, 211, 238, 0.2);
	font-size: 0.9em;
}

.wd-doc-body .wp-block-code code {
	background: none;
	border: none;
	padding: 0;
}

.wd-doc-body .wp-block-notice,
.wd-doc-body .wd-notice {
	margin-block-start: 1.6rem !important;
}

/* ------------------------------------------------------------ 侧栏卡片 */
.wd-toc-card,
.wd-cta-card,
.wd-side-card {
	padding: 1.1rem 1.15rem;
}

.wd-toc-card[hidden] {
	display: none;
}

.wd-toc-card__title,
.wd-side-card h2 {
	margin: 0 0 0.7rem;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wd-muted);
}

.wd-toc {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: 0.875rem;
}

.wd-toc a {
	display: block;
	color: var(--wd-muted);
	text-decoration: none;
	line-height: 1.5;
	transition: color 0.25s var(--wd-ease);
}

.wd-toc a:hover,
.wd-toc a.is-active {
	color: var(--wd-cyan);
}

.wd-cta-card__title {
	margin: 0 0 0.4rem;
	font-weight: 600;
}

.wd-cta-card__text {
	margin: 0 0 0.8rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--wd-muted);
}

.wd-cta-card__link {
	color: var(--wd-cyan);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}

.wd-side-card h2 {
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wd-text);
}

/* --------------------------------------------------------- 文章列表（资讯） */
.wd-archive {
	display: grid;
	gap: 1rem;
}

.wd-archive > * {
	margin-block-start: 0 !important;
}

.wd-archive-item {
	padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.15rem, 2.4vw, 1.9rem);
}

.wd-archive-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.8125rem;
	color: var(--wd-muted);
}

.wd-archive-item__meta a {
	color: var(--wd-muted);
	text-decoration: none;
}

.wd-archive-item__meta a:hover {
	color: var(--wd-cyan);
}

.wd-archive-item h2 {
	margin-block: 0 0.5rem;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	line-height: 1.4;
}

.wd-archive-item h2 a {
	text-decoration: none;
}

.wd-archive-item h2 a:hover {
	color: var(--wd-cyan);
}

.wd-archive-item .wp-block-post-excerpt {
	margin: 0;
	color: var(--wd-muted);
	font-size: 0.9375rem;
	line-height: 1.75;
}

.wd-archive-item .wp-block-post-excerpt__more-link,
.wd-archive-item .wp-block-post-excerpt__more-text {
	color: var(--wd-cyan);
	font-weight: 600;
	text-decoration: none;
}
.wds-breadcrumbs {
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: var(--wd-muted);
}

.wds-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wds-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.wds-breadcrumbs a {
	color: var(--wd-muted);
	text-decoration: none;
}

.wds-breadcrumbs a:hover {
	color: var(--wd-cyan);
}

.wds-breadcrumbs__sep {
	color: rgba(147, 164, 191, 0.45);
}

/* ------------------------------------------------------------ 滚动进场动画
   关键：默认必须可见。只有 JS 正常启动并在 <html> 上加了 .wd-anim 时才隐藏，
   这样在 JS 被延迟 / 被拦截 / 出错时页面依然完整可读，不会出现"整页空白"。
   （LiteSpeed 等缓存的 JS 延迟执行、浏览器禁用脚本、爬虫抓取都会走到这条兜底。） */
.wd-reveal {
	opacity: 1;
	transform: none;
}

html.wd-anim .wd-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--wd-ease), transform 0.7s var(--wd-ease);
	will-change: opacity, transform;
}

html.wd-anim .wd-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@keyframes wd-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@keyframes wd-meter {
	from { width: 42%; }
	to { width: 88%; }
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 900px) {
	:root {
		--wd-header-h: 64px;
	}

	.wd-header .wp-block-navigation__responsive-container.is-menu-open {
		background: rgba(5, 7, 13, 0.97);
		padding: 1.5rem;
	}

	.wd-hero__meta {
		gap: 1.25rem 1.75rem;
	}
}

@media (max-width: 600px) {
	.wd-glass {
		border-radius: var(--wd-radius-sm);
	}

	.wd-channel-row {
		grid-template-columns: 1fr auto;
		row-gap: 0.5rem;
	}

	.wd-channel-row__meter {
		grid-column: 1 / -1;
		order: 3;
	}
}

/* 窄屏（手机与侧栏面板，320–480px）：字号、内边距、栅格都收敛一档。 */
@media (max-width: 480px) {
	.wd-section {
		padding-block: clamp(2.5rem, 9vw, 3.5rem);
	}

	.wd-glass {
		padding: 1.15rem;
	}

	.wd-hero {
		padding-block: 2.25rem 2rem;
	}

	.wd-hero h1 {
		font-size: clamp(1.85rem, 8.6vw, 2.6rem);
		letter-spacing: -0.01em;
	}

	.wd-eyebrow {
		padding: 0.35rem 0.75rem;
		font-size: 0.75rem;
	}

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

	.wd-metric {
		padding: 1rem 0.9rem;
	}

	.wd-metric__value {
		font-size: 1.35rem;
	}

	.wd-metric__label {
		font-size: 0.75rem;
	}

	.wd-price__amount {
		font-size: clamp(1.75rem, 9vw, 2.25rem);
	}

	.wd-price {
		min-height: 2.8rem;
	}

	.wd-list li {
		padding-inline-start: 1.4rem;
		font-size: 0.9rem;
	}

	.wd-hero__meta {
		gap: 0.75rem 1.5rem;
	}

	.wd-hero__meta strong {
		font-size: 1.05rem;
	}

	.wd-console {
		padding: 0.85rem;
	}

	.wd-channel-row {
		padding: 0.6rem 0.7rem;
	}

	.wd-logos {
		gap: 0.5rem;
	}
}

/* 尊重"减少动态效果"偏好：关闭动画与位移。 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

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

	.wd-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------ 打印 */
@media print {
	body::before,
	body::after,
	.wd-header,
	.wd-footer {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
