/**
 * 力数智能科技 · 全站视觉规范 v2
 * 目标：企业级、克制、统一。白底为主，深蓝点缀，蓝绿品牌色。
 */

/* ---------- 变量 ---------- */
:root {
	--ld-navy: #0c2136;
	--ld-navy-soft: #17324b;
	--ld-blue: #1b7fd0;
	--ld-blue-dark: #14659f;
	--ld-teal: #24a48f;
	--ld-title: #10263c;
	--ld-text: #55677a;
	--ld-muted: #7d8b99;
	--ld-line: #e6edf4;
	--ld-bg: #ffffff;
	--ld-bg-soft: #f5f8fb;
	--ld-max: 1200px;
	--ld-radius: 12px;
	--ld-shadow: 0 2px 6px rgba(16, 38, 60, .04), 0 12px 28px rgba(16, 38, 60, .05);
	--ld-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
		"Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;

	--wp--style--global--content-size: 880px;
	--wp--style--global--wide-size: var(--ld-max);
}

/* ---------- 基础排版 ---------- */
body.ld-theme {
	font-family: var(--ld-font);
	color: var(--ld-text);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
	background: var(--ld-bg);
}

.ld-theme :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ld-font);
	color: var(--ld-title);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .01em;
	margin-top: 0;
}
.ld-theme h1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.ld-theme h2 { font-size: clamp(1.6rem, 2.1vw, 2rem); }
.ld-theme h3 { font-size: 1.3rem; }
.ld-theme h4 { font-size: 1.075rem; }
.ld-theme h5 { font-size: 1rem; }

.ld-theme :where(p, li) { font-size: 1rem; line-height: 1.9; color: var(--ld-text); }
.ld-theme p:not(:last-child) { margin-bottom: 1.05em; }
.ld-theme strong { color: var(--ld-title); font-weight: 600; }
.ld-theme a { color: var(--ld-blue); }

.ld-theme .wp-block-post-content > :where(h2) { margin-bottom: 1.2em; }
.ld-theme .wp-block-post-content > :where(p, ul, ol) { margin-bottom: 1.1em; }

.ld-theme img { max-width: 100%; height: auto; }
.ld-theme .wp-block-image img { border-radius: var(--ld-radius); }
.ld-theme .wp-block-image figcaption { font-size: .8125rem; color: var(--ld-muted); text-align: center; }

.ld-theme .wp-block-separator {
	border: 0; border-top: 1px solid var(--ld-line); background: none; opacity: 1; max-width: 100%;
}
.ld-theme .wp-block-separator:not(.is-style-wide) { max-width: 120px; }
.ld-theme .wp-block-separator.has-base-color,
.ld-theme .wp-block-separator.has-base-background-color {
	border-color: rgba(255, 255, 255, .25) !important; background: transparent !important;
}

.ld-theme ul.wp-block-list { padding-left: 1.15em; }
.ld-theme ul.wp-block-list li { margin-bottom: .45em; }

/* ---------- 按钮 ---------- */
.ld-theme .wp-block-button__link,
.ld-theme .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ld-font);
	font-size: .9375rem;
	font-weight: 500;
	line-height: 1.4;
	padding: 12px 28px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: var(--ld-blue);
	color: #fff;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ld-theme .wp-block-button__link:hover,
.ld-theme .wp-element-button:hover {
	background: var(--ld-blue-dark);
	color: #fff;
}
.ld-theme .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--ld-blue);
	color: var(--ld-blue);
}
.ld-theme .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--ld-blue);
	color: #fff;
}
.ld-theme .wp-block-button:has(> a.wp-block-button__link:empty) { display: none; }

/* ---------- 页眉 ---------- */
.ld-theme .ld-header {
	position: sticky;
	top: 0;
	z-index: 99;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--ld-line);
	padding: 0 !important;
}
.admin-bar .ld-theme .ld-header { top: 32px; }
.ld-theme .ld-header-inner {
	max-width: var(--ld-max);
	margin: 0 auto;
	padding: 14px 24px;
	gap: 24px;
	align-items: center;
}
.ld-theme .ld-brand { gap: 12px !important; align-items: center; margin: 0; }
.ld-theme .ld-brand .wp-block-site-logo { line-height: 0; }
.ld-theme .ld-brand .wp-block-site-logo img { width: 46px; height: auto; }
.ld-theme .ld-brand-text { gap: 0 !important; }
.ld-theme .ld-brand-text p { margin: 0 !important; }
.ld-theme .wp-block-site-title { margin: 0 !important; line-height: 1.3; }
.ld-theme .wp-block-site-title,
.ld-theme .wp-block-site-title a {
	font-size: 1.0625rem !important;
	font-weight: 700;
	color: var(--ld-title) !important;
	text-decoration: none;
	letter-spacing: .01em;
}
.ld-theme .ld-brand-tag {
	font-size: .6875rem !important;
	letter-spacing: .12em;
	color: var(--ld-teal) !important;
	text-transform: uppercase;
	line-height: 1.4;
}

.ld-theme .ld-nav-wrap { gap: 18px !important; align-items: center; }
.ld-theme .ld-nav .wp-block-navigation__container { gap: 0 !important; }
.ld-theme .ld-nav .wp-block-navigation-item__content,
.ld-theme .ld-nav .wp-block-navigation-item > a {
	display: inline-block;
	padding: 10px 14px !important;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--ld-title) !important;
	border-radius: 6px;
	transition: color .16s ease;
}
.ld-theme .ld-nav .wp-block-navigation-item__content:hover,
.ld-theme .ld-nav .current-menu-item > .wp-block-navigation-item__content,
.ld-theme .ld-nav .current_page_item > .wp-block-navigation-item__content {
	color: var(--ld-blue) !important;
}
.ld-theme .ld-nav .wp-block-navigation__submenu-container {
	min-width: 200px;
	padding: 6px !important;
	background: #fff !important;
	border: 1px solid var(--ld-line) !important;
	border-radius: 10px !important;
	box-shadow: 0 12px 30px rgba(16, 38, 60, .1);
	gap: 0 !important;
}
.ld-theme .ld-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 9px 12px !important;
	font-size: .9rem;
	border-radius: 6px;
	color: var(--ld-text) !important;
}
.ld-theme .ld-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--ld-bg-soft) !important;
	color: var(--ld-blue) !important;
}
.ld-theme .ld-nav .wp-block-search__button {
	background: transparent !important;
	border: 1px solid var(--ld-line) !important;
	color: var(--ld-title) !important;
	border-radius: 8px !important;
	width: 36px;
	height: 36px;
	padding: 0 !important;
}
.ld-theme .ld-nav .wp-block-search__button:hover { border-color: var(--ld-blue) !important; color: var(--ld-blue) !important; }
.ld-theme .wp-block-search__input {
	border: 1px solid var(--ld-line);
	border-radius: 8px;
	padding: 9px 14px;
	font-size: .9rem;
}

.ld-theme .ld-header-phone {
	margin: 0 !important;
	font-size: .875rem !important;
	color: var(--ld-muted) !important;
	white-space: nowrap;
}
.ld-theme .ld-header-phone strong {
	display: block;
	font-size: 1.0625rem;
	color: var(--ld-title);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.4;
}
.ld-theme .ld-header-cta { margin: 0 !important; }
.ld-theme .ld-header-cta .wp-block-button__link { padding: 10px 22px; font-size: .9rem; }

/* 移动端菜单 */
.ld-theme .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ld-navy) !important;
	color: #fff;
	padding: 24px 20px;
}
.ld-theme .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, .88) !important;
	font-size: 1.05rem;
	padding: 12px 0 !important;
}
.ld-theme .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.ld-theme .wp-block-navigation__responsive-container-close { color: #fff; }

/* ---------- 区块背景 ---------- */
.ld-theme .ld-sec-soft {
	background-color: var(--ld-bg-soft) !important;
	background-image: none !important;
}
.ld-theme .ld-sec-dark {
	background-color: var(--ld-navy) !important;
	background-image: none !important;
}
.ld-theme .ld-sec-dark :is(h1, h2, h3, h4, h5, h6) { color: #fff !important; }
.ld-theme .ld-sec-dark p,
.ld-theme .ld-sec-dark li { color: rgba(255, 255, 255, .78) !important; }
.ld-theme .ld-sec-dark strong { color: #fff !important; }
.ld-theme .ld-sec-dark a { color: #7ed4c3 !important; }
.ld-theme .ld-sec-dark .wp-block-button__link { background: #fff !important; color: var(--ld-navy) !important; }
.ld-theme .ld-sec-dark .wp-block-button__link:hover { background: #e9f2fa !important; }

/* 统一区块上下留白 */
.ld-theme .wp-block-post-content > .wp-block-group {
	padding-top: clamp(48px, 5.5vw, 80px) !important;
	padding-bottom: clamp(48px, 5.5vw, 80px) !important;
}
.ld-theme .wp-block-post-content > .wp-block-group.ld-sec-tight {
	padding-top: clamp(24px, 3vw, 40px) !important;
	padding-bottom: clamp(24px, 3vw, 40px) !important;
}

/* ---------- 内容横幅（各页封面） ---------- */
.ld-theme .wp-block-cover__image-background,
.ld-theme .wp-block-cover__video-background,
.ld-theme .wp-block-cover__background { z-index: 1; }
.ld-theme .wp-block-cover__inner-container { position: relative; z-index: 2; }
.ld-theme .wp-block-post-content > .wp-block-cover {
	min-height: clamp(300px, 30vw, 420px) !important;
	align-items: center;
}
.ld-theme .wp-block-post-content > .wp-block-cover .wp-block-cover__background {
	background-color: transparent !important;
	background-image: linear-gradient(100deg, rgba(10, 28, 46, .88) 0%, rgba(10, 28, 46, .72) 55%, rgba(12, 44, 66, .55) 100%) !important;
	opacity: 1 !important;
}
.ld-theme .wp-block-post-content > .wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--ld-max);
	width: 100%;
	margin: 0 auto;
	text-align: center;
}
.ld-theme .wp-block-post-content > .wp-block-cover :is(h1, h2, h3) {
	color: #fff !important;
	font-size: clamp(1.8rem, 2.8vw, 2.5rem) !important;
	text-align: center;
	letter-spacing: .02em;
	line-height: 1.35;
	margin-bottom: .5em !important;
	padding-left: 0 !important;
}
.ld-theme .wp-block-post-content > .wp-block-cover p,
.ld-theme .wp-block-post-content > .wp-block-cover p[style*="font-size"] {
	color: rgba(255, 255, 255, .82) !important;
	font-size: 1rem !important;
	line-height: 1.85 !important;
	max-width: 760px;
	margin: 0 auto .4em;
	text-align: center;
}
.ld-theme .wp-block-post-content > .wp-block-cover p[class*="has-xx-large-font-size"],
.ld-theme .wp-block-post-content > .wp-block-cover p[class*="has-x-large-font-size"] {
	font-size: clamp(1.05rem, 1.4vw, 1.25rem) !important;
}
/* 隐藏旧的黄色英文装饰小字 */
.ld-theme .wp-block-post-content p[style*="#ffe074"] { display: none !important; }

/* 首页主视觉 */
.ld-theme.home .wp-block-post-content > .wp-block-cover:first-child {
	min-height: clamp(520px, 62vh, 660px) !important;
}
.ld-theme.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__background {
	background-image: linear-gradient(180deg, rgba(8, 22, 38, .62) 0%, rgba(8, 22, 38, .55) 45%, rgba(8, 22, 38, .78) 100%) !important;
}
.ld-theme.home .wp-block-post-content > .wp-block-cover:first-child h1 {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem) !important;
	font-weight: 700;
	letter-spacing: .02em;
}
.ld-theme.home .wp-block-post-content > .wp-block-cover:first-child .wp-block-button__link {
	padding: 13px 34px;
	font-size: 1rem;
}

/* ---------- 卡片 ---------- */
.ld-theme .ld-card {
	background: #fff;
	border: 1px solid var(--ld-line);
	border-radius: var(--ld-radius);
	padding: 28px 26px !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ld-theme .ld-card:hover {
	border-color: rgba(27, 127, 208, .35);
	box-shadow: var(--ld-shadow);
}
.ld-theme .ld-card > :first-child { margin-top: 0 !important; }
.ld-theme .ld-card :is(h2, h3, h4) { margin-bottom: .5em !important; }
.ld-theme .ld-card :is(h2, h3) {
	font-size: 1.075rem !important;
	font-weight: 600 !important;
	line-height: 1.5;
}
.ld-theme .ld-card p { font-size: .9375rem !important; line-height: 1.8; color: var(--ld-muted) !important; }
.ld-theme .ld-card img { border-radius: 8px; }

/* ---------- 页脚 ---------- */
.ld-theme .ld-footer {
	background: var(--ld-navy) !important;
	background-image: none !important;
	padding: clamp(48px, 5.5vw, 72px) 0 0 !important;
	margin: 0 !important;
	color: rgba(255, 255, 255, .7);
}
.ld-theme .ld-footer-inner {
	max-width: var(--ld-max);
	margin: 0 auto;
	padding: 0 24px;
}
.ld-theme .ld-footer-cols { gap: clamp(24px, 3.5vw, 48px) !important; }
.ld-theme .ld-footer .wp-block-site-logo img { width: 150px; height: auto; }
.ld-theme .ld-footer-title {
	margin: 0 0 16px !important;
	font-size: .9375rem !important;
	font-weight: 600;
	color: #fff !important;
	letter-spacing: .04em;
}
.ld-theme .ld-footer p,
.ld-theme .ld-footer li { font-size: .875rem !important; line-height: 1.9; color: rgba(255, 255, 255, .66) !important; }
.ld-theme .ld-footer a { color: rgba(255, 255, 255, .66) !important; text-decoration: none; transition: color .16s ease; }
.ld-theme .ld-footer a:hover { color: #fff !important; }
.ld-theme .ld-footer ul { list-style: none; margin: 0; padding: 0; }
.ld-theme .ld-footer li { margin-bottom: 8px; }
.ld-theme .ld-footer-brand { margin: 14px 0 8px !important; color: #fff !important; font-size: 1rem !important; font-weight: 600; }
.ld-theme .ld-footer-desc { max-width: 320px; }
.ld-theme .ld-footer .wp-block-separator {
	border-color: rgba(255, 255, 255, .12) !important;
	margin: clamp(28px, 3.5vw, 44px) 0 0 !important;
}
.ld-theme .ld-footer-bottom { padding: 18px 0 24px !important; gap: 6px 20px; }
.ld-theme .ld-footer-bottom p { margin: 0; font-size: .8125rem !important; color: rgba(255, 255, 255, .45) !important; }
.ld-theme .ld-footer-bottom a { font-size: .8125rem; color: rgba(255, 255, 255, .55) !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
	.ld-theme .ld-header-phone { display: none; }
}

@media (max-width: 781px) {
	.ld-theme .ld-header-inner { padding: 10px 16px; gap: 10px; }
	.ld-theme .ld-brand .wp-block-site-logo img { width: 40px; }
	.ld-theme .wp-block-site-title, .ld-theme .wp-block-site-title a { font-size: .95rem !important; }
	.ld-theme .ld-brand-tag { display: none; }
	.ld-theme .ld-header-cta { display: none; }
	.ld-theme .wp-block-post-content > .wp-block-group { padding-left: 20px !important; padding-right: 20px !important; }
	.ld-theme .wp-block-post-content > .wp-block-cover { min-height: 260px !important; }
	.ld-theme .ld-card { padding: 22px 20px !important; }
	.ld-theme.home .wp-block-post-content > .wp-block-cover:first-child { min-height: 480px !important; }
}
