/**
 * SEO 支柱页 / 内链 / 工具页 SEO 附加块 — 移动优先
 */

/* 内链盒子 */
.lx-seo-ilink {
	margin: 1.75rem 0 2rem;
	padding: 1rem 1.1rem 1.15rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 240, 255, 0.22);
	background: linear-gradient(145deg, rgba(10, 16, 32, 0.94), rgba(8, 10, 22, 0.98));
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	color: #e2e8f0;
}

.lx-seo-ilink__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.lx-seo-ilink__head strong {
	font-size: 1rem;
	letter-spacing: 0.02em;
	color: #f8fafc;
	font-weight: 700;
}

/* 旧「内链导航 · 移动端友好」等机器提示：不显示给人看 */
.lx-seo-ilink__head span,
.lx-seo-ilink__hint {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.lx-seo-ilink__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

@media (min-width: 720px) {
	.lx-seo-ilink__list {
		grid-template-columns: 1fr 1fr;
	}
}

.lx-seo-ilink__list a {
	display: block;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.15);
	background: rgba(15, 23, 42, 0.55);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.lx-seo-ilink__list a:hover,
.lx-seo-ilink__list a:focus-visible {
	border-color: rgba(0, 240, 255, 0.45);
	background: rgba(0, 240, 255, 0.06);
	transform: translateY(-1px);
	outline: none;
}

.lx-seo-ilink__list em {
	display: block;
	font-style: normal;
	font-weight: 700;
	font-size: 0.92rem;
	color: #67e8f9;
	line-height: 1.35;
}

.lx-seo-ilink__list small {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.78rem;
	color: #94a3b8;
	line-height: 1.4;
}

.lx-seo-ilink-inline {
	margin: 0.85rem 0 1.1rem;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid #22d3ee;
	background: rgba(8, 47, 73, 0.12);
	border-radius: 0 8px 8px 0;
	font-size: 0.95rem;
	line-height: 1.65;
}

.lx-seo-ilink-inline a {
	color: #0891b2;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 支柱正文 */
.lx-seo-article {
	max-width: 48rem;
	margin: 0 auto;
	line-height: 1.75;
	font-size: 1.02rem;
	color: inherit;
}

.lx-seo-lead {
	font-size: 1.08rem;
	line-height: 1.75;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: rgba(14, 165, 233, 0.08);
	border: 1px solid rgba(14, 165, 233, 0.18);
}

.lx-seo-article h2 {
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
	line-height: 1.35;
	scroll-margin-top: 72px;
}

.lx-seo-article h3 {
	margin-top: 1.25rem;
	font-size: 1.08rem;
}

.lx-seo-arch {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.85rem 1rem;
	margin: 1rem 0;
	border-radius: 10px;
	background: #0b1220;
	color: #a5f3fc;
	font-size: 0.72rem;
	line-height: 1.45;
	border: 1px solid rgba(34, 211, 238, 0.25);
}

.lx-seo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin: 1rem 0 1.25rem;
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lx-seo-table thead,
.lx-seo-table tbody,
.lx-seo-table tr {
	width: 100%;
}

.lx-seo-table th,
.lx-seo-table td {
	border: 1px solid rgba(148, 163, 184, 0.28);
	padding: 0.5rem 0.55rem;
	text-align: left;
	vertical-align: top;
	min-width: 5.5rem;
}

.lx-seo-table th {
	background: rgba(15, 23, 42, 0.08);
	font-weight: 700;
}

/* 步骤清单：卡片式编号，不靠生硬「使用步骤」文案 */
.lx-seo-steps {
	list-style: none;
	margin: 0.75rem 0 1.1rem;
	padding: 0;
	counter-reset: lx-step;
	display: grid;
	gap: 0.55rem;
}

.lx-seo-steps li {
	counter-increment: lx-step;
	position: relative;
	margin: 0;
	padding: 0.7rem 0.85rem 0.7rem 2.85rem;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(15, 23, 42, 0.28);
	line-height: 1.6;
}

.lx-seo-steps li::before {
	content: counter(lx-step);
	position: absolute;
	left: 0.7rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.55rem;
	height: 1.55rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 800;
	color: #041016;
	background: linear-gradient(135deg, #00fff0, #7af8ff 55%, #c4a0ff);
	box-shadow: 0 0 12px rgba(0, 255, 240, 0.25);
}

.entry-content .lx-seo-steps li,
.wp-block-post-content .lx-seo-steps li {
	background: rgba(241, 245, 249, 0.75);
	border-color: rgba(148, 163, 184, 0.28);
	color: inherit;
}

.lx-seo-faq details {
	margin: 0.45rem 0;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(248, 250, 252, 0.04);
}

.lx-seo-faq summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

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

.lx-seo-faq details p {
	margin: 0.45rem 0 0.15rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #334155;
}

body.dark-mode .lx-seo-faq details p,
.lx-seo-article .lx-seo-faq details p {
	color: inherit;
	opacity: 0.92;
}

.lx-seo-note {
	margin-top: 1.5rem;
	padding: 0.6rem 0.8rem;
	font-size: 0.82rem;
	line-height: 1.55;
	color: #94a3b8;
	opacity: 1;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.2);
	border: 1px solid rgba(148, 163, 184, 0.12);
}

/* 工具页底部 SEO 区 */
.lx-seo-tool-extra {
	max-width: 960px;
	margin: 0 auto;
	padding: 1.25rem 1rem 2.5rem;
}

.lx-seo-tool-extra__kicker {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #94a3b8;
	margin: 0 0 0.75rem;
}

.lx-seo-tool-extra__body {
	margin-bottom: 1rem;
	padding: 1.1rem 1.15rem 1.15rem;
	border-radius: 16px;
	border: 1px solid rgba(0, 240, 255, 0.18);
	background:
		linear-gradient(145deg, rgba(0, 255, 240, 0.05), transparent 40%),
		rgba(15, 23, 42, 0.5);
	color: #e2e8f0;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.lx-seo-tool-extra__body h2 {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #f1f5f9;
	letter-spacing: 0.01em;
}

/* 工具页步骤列表同样卡片编号 */
.lx-seo-tool-extra__body ol {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	counter-reset: lx-tool-step;
	display: grid;
	gap: 0.5rem;
	line-height: 1.6;
}

.lx-seo-tool-extra__body ol > li {
	counter-increment: lx-tool-step;
	position: relative;
	padding: 0.65rem 0.8rem 0.65rem 2.75rem;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.16);
	background: rgba(0, 0, 0, 0.22);
}

.lx-seo-tool-extra__body ol > li::before {
	content: counter(lx-tool-step);
	position: absolute;
	left: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 800;
	color: #041016;
	background: linear-gradient(135deg, #00fff0, #a78bfa);
}

.lx-seo-tool-extra__body a {
	color: #67e8f9;
}

.lx-seo-tool-extra__body details {
	margin: 0.4rem 0;
	padding: 0.45rem 0.6rem;
	border-radius: 8px;
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.lx-seo-tool-extra__body summary {
	cursor: pointer;
	font-weight: 600;
}

/* 移动端字号与触控 */
@media (max-width: 640px) {
	.lx-seo-article {
		font-size: 0.98rem;
		padding: 0 0.15rem;
	}

	.lx-seo-article h2 {
		font-size: 1.15rem;
	}

	.lx-seo-arch {
		font-size: 0.62rem;
	}

	.lx-seo-ilink__list a {
		padding: 0.75rem 0.8rem;
		min-height: 44px;
	}

	.lx-seo-tool-extra {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}
}

/* 减少重绘：内容图默认块级 */
.lx-seo-article img {
	max-width: 100%;
	height: auto;
}
