/*
Theme Name: 坤阁数字科技
Theme URI: https://www.kunge.com.cn/
Author: 北京坤阁数字科技有限公司
Author URI: https://www.kunge.com.cn/
Description: 坤阁ERP 官网主题（北京坤阁数字科技有限公司）。内置「采 · 产 · 检 · 储 · 销 · 贸 · 运 · 财 · 绩」全链路九环节展示、后台可视化配置、自定义文章类型（解决方案 / 客户案例 / 团队成员）、中英多语言切换与多种页面模板，可上传主题包直接安装使用。
Version: 1.0.11
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kunhe
Tags: one-column, two-columns, right-sidebar, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready, blog, portfolio, e-commerce
*/

/* =============================================================
   01. 设计变量
   ============================================================= */
:root {
	--kh-ink: #0A1626;
	--kh-ink-2: #12243D;
	--kh-primary: #1F5EFF;
	--kh-primary-d: #0F47D6;
	--kh-cyan: #1FC8DB;
	--kh-accent: #E4483C;
	--kh-body: #55647C;
	--kh-muted: #8794A8;
	--kh-line: #E4EAF2;
	--kh-bg: #FFFFFF;
	--kh-bg-2: #F5F8FC;
	--kh-radius: 8px;
	--kh-radius-lg: 18px;
	--kh-container: 1240px;
	--kh-shadow: 0 18px 44px rgba(10, 22, 38, .10);
	--kh-shadow-sm: 0 8px 22px rgba(10, 22, 38, .07);
	--kh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
	--kh-grad: linear-gradient(120deg, var(--kh-primary) 0%, var(--kh-cyan) 100%);
}

/* =============================================================
   02. 基础重置
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--kh-font);
	font-size: 15px;
	line-height: 1.8;
	color: var(--kh-body);
	background: var(--kh-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kh-primary); text-decoration: none; transition: all .25s ease; }
a:hover { color: var(--kh-primary-d); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--kh-ink);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.2px;
}
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
blockquote {
	margin: 0 0 1.4em;
	padding: 14px 22px;
	border-left: 3px solid var(--kh-primary);
	background: var(--kh-bg-2);
	color: var(--kh-ink);
	border-radius: 0 var(--kh-radius) var(--kh-radius) 0;
}
code, pre { font-family: Consolas, Menlo, monospace; font-size: 13.5px; }
pre { padding: 16px; background: var(--kh-ink); color: #E6EDF6; border-radius: var(--kh-radius); overflow: auto; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
th, td { padding: 10px 14px; border: 1px solid var(--kh-line); text-align: left; }
th { background: var(--kh-bg-2); color: var(--kh-ink); font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], select, textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius);
	background: #fff;
	color: var(--kh-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
	outline: 0;
	border-color: var(--kh-primary);
	box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}

/* =============================================================
   03. 通用工具类
   ============================================================= */
.kh-container { width: 100%; max-width: var(--kh-container); margin: 0 auto; padding: 0 24px; }
.kh-narrow { max-width: 860px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 10px 18px; background: #fff; color: var(--kh-ink);
	border-radius: var(--kh-radius); box-shadow: var(--kh-shadow);
}
.kh-i { width: 1em; height: 1em; flex: none; }
.kh-section { padding: 76px 0; }
.kh-section--tight { padding: 54px 0; }
.kh-section--gray { background: var(--kh-bg-2); }
.kh-section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.kh-section-head--left { margin-left: 0; text-align: left; }
.kh-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--kh-primary);
	position: relative;
	padding-left: 34px;
}
.kh-eyebrow::before {
	content: ""; position: absolute; left: 0; top: 50%;
	width: 24px; height: 2px; background: var(--kh-grad); border-radius: 2px;
}
.kh-section-head--center .kh-eyebrow,
.kh-eyebrow--center { padding-left: 34px; }
.kh-lead { font-size: 15.5px; color: var(--kh-body); margin: 0; }
.kh-btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 12px 26px;
	border: 0; border-radius: 999px;
	font-size: 14.5px; font-weight: 600; line-height: 1;
	cursor: pointer;
	transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.kh-btn svg { width: 15px; height: 15px; }
.kh-btn--primary { background: var(--kh-grad); color: #fff; box-shadow: 0 10px 24px rgba(31, 94, 255, .28); }
.kh-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 94, 255, .36); }
.kh-btn--dark { background: var(--kh-ink); color: #fff; }
.kh-btn--dark:hover { background: var(--kh-ink-2); color: #fff; transform: translateY(-2px); }
.kh-btn--ghost { background: transparent; color: var(--kh-ink); border: 1.5px solid var(--kh-line); }
.kh-btn--ghost:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-btn--light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.kh-btn--light:hover { background: #fff; color: var(--kh-ink); }
.kh-btn--sm { padding: 9px 20px; font-size: 13.5px; }

/* =============================================================
   04. 顶栏
   ============================================================= */
.kh-topbar { background: var(--kh-ink); color: #A9B8CC; font-size: 13px; }
.kh-topbar a { color: #A9B8CC; }
.kh-topbar a:hover { color: #fff; }
.kh-topbar .kh-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.kh-topbar__left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.kh-topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kh-topbar__item svg { width: 14px; height: 14px; color: var(--kh-cyan); flex: none; }
.kh-topbar__right { display: flex; align-items: center; gap: 16px; }
.kh-socials { display: flex; align-items: center; gap: 8px; }
.kh-socials a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: #C9D6E6;
}
.kh-socials a svg { width: 13px; height: 13px; }
.kh-socials a:hover { background: var(--kh-primary); color: #fff; }
.kh-tool { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 2px; color: #A9B8CC; cursor: pointer; font-size: 13px; }
.kh-tool svg { width: 15px; height: 15px; }
.kh-tool:hover { color: #fff; }
.kh-topbar__menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.kh-lang { display: inline-flex; align-items: center; gap: 8px; }
.kh-lang a { font-weight: 600; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .18); }
.kh-lang a:hover { text-decoration: underline; }
.kh-features .kh-section-head { margin-bottom: 34px; }
.kh-footer .kh-lang a { border-left-color: rgba(255, 255, 255, .18); }
.kh-lang__cur { color: #fff; font-weight: 600; }

/* =============================================================
   05. 页头与导航
   ============================================================= */
.kh-header { position: relative; z-index: 60; background: #fff; border-bottom: 1px solid var(--kh-line); }
.kh-header.is-sticky { position: sticky; top: 0; }
.admin-bar .kh-header.is-sticky { top: 32px; }
.kh-header .kh-container { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.kh-header--shadow { box-shadow: 0 6px 18px rgba(10, 22, 38, .05); }

.kh-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.kh-brand__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 11px;
	background: var(--kh-grad); color: #fff;
	font-size: 20px; font-weight: 800; letter-spacing: 0;
	box-shadow: 0 8px 18px rgba(31, 94, 255, .26);
}
.kh-brand__text { display: flex; flex-direction: column; line-height: 1.24; }
.kh-brand__name { font-size: 19px; font-weight: 800; color: var(--kh-ink); letter-spacing: .5px; }
.kh-brand__slogan { font-size: 10.5px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; color: var(--kh-muted); }
.custom-logo-link img { max-height: 44px; width: auto; }

.kh-nav { margin-left: auto; }
.kh-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kh-nav li { position: relative; }
.kh-nav a {
	display: block;
	padding: 10px 15px;
	font-size: 15px; font-weight: 600;
	color: var(--kh-ink);
	border-radius: var(--kh-radius);
	white-space: nowrap;
}
.kh-nav a:hover, .kh-nav .current-menu-item > a, .kh-nav .current_page_item > a, .kh-nav .current-menu-ancestor > a {
	color: var(--kh-primary); background: rgba(31, 94, 255, .07);
}
/* 页面尚未创建 / 链接写法解析不出来的菜单项：留着位置、改成不可点，
   免得整项消失让人以为菜单丢了。补上页面或改对写法后自动恢复。 */
.kh-nav .kh-nav__pending > a { color: var(--kh-muted); cursor: not-allowed; }
.kh-nav .kh-nav__pending > a:hover { color: var(--kh-muted); background: transparent; }
.kh-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
	display: block; min-width: 220px; padding: 8px;
	background: #fff; border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius); box-shadow: var(--kh-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .22s ease;
}
.kh-nav li:hover > .sub-menu, .kh-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.kh-nav .sub-menu a { padding: 9px 14px; font-size: 14px; font-weight: 500; }
.kh-nav .sub-menu .sub-menu { top: -9px; left: 100%; }

.kh-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.kh-navtoggle {
	display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
	background: var(--kh-bg-2); border: 1px solid var(--kh-line); border-radius: var(--kh-radius); cursor: pointer;
}
.kh-navtoggle svg { width: 20px; height: 20px; color: var(--kh-ink); }

/* 搜索浮层 */
.kh-searchpop {
	position: fixed; inset: 0; z-index: 999;
	display: none; align-items: center; justify-content: center;
	background: rgba(10, 22, 38, .72); backdrop-filter: blur(3px);
}
.kh-searchpop.is-open { display: flex; }
.kh-searchpop__box { width: min(620px, 90vw); }
.kh-searchpop__box form { display: flex; gap: 10px; }
.kh-searchpop__box input[type="search"] { height: 54px; font-size: 16px; border: 0; }
.kh-searchpop__close {
	position: absolute; top: 28px; right: 30px;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer;
}
.kh-searchpop__close svg { width: 20px; height: 20px; margin: 0 auto; }

/* =============================================================
   06. 首屏 Hero —— 三屏轮播（采 · 产 · 贸）
   三张照片叠在同一位置交叉淡入；没有脚本时第 1 屏常显，不会白屏。
   每屏的图 / 标签 / 两行标题 / 描述都在定制器「首页 · 首屏」里改。
   ============================================================= */
.kh-hero {
	position: relative;
	min-height: 560px;
	display: flex; align-items: center;
	background: var(--kh-ink);
	overflow: hidden;
}

/* 背景层：三张图叠放 */
.kh-hero__stage { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.kh-hero__slide {
	position: absolute; inset: 0;
	display: block; opacity: 0;
	transition: opacity 1.2s ease;
}
.kh-hero__slide:first-child,
.kh-hero__slide.is-active { opacity: 1; }
.kh-hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kh-hero__slide:nth-child(1) img { object-position: 62% center; }
.kh-hero__slide:nth-child(2) img { object-position: 42% center; }
.kh-hero__slide:nth-child(3) img { object-position: 50% center; }

/* 第 2 屏原图炉体在左半边，正好被文案和压暗层压住；水平镜像后炉体落到
   右侧、钢水仍亮着，左侧留出干净的暗部给文字。不想要就删掉这一条。 */
.kh-hero__slide:nth-child(2) { transform: scaleX(-1); }

/* 压暗层：只压左侧文案区，向右渐隐，让照片看清楚 */
.kh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 2;
	background: linear-gradient(90deg,
		rgba(7, 17, 30, .86) 0%,
		rgba(7, 17, 30, .55) 36%,
		rgba(7, 17, 30, .14) 64%,
		rgba(7, 17, 30, 0) 86%);
}
.kh-hero::after {
	content: ""; position: absolute; right: -160px; bottom: -220px; z-index: 2;
	width: 620px; height: 620px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 94, 255, .34) 0%, rgba(31, 94, 255, 0) 68%);
	pointer-events: none;
}
.kh-hero .kh-container { position: relative; z-index: 3; }
.kh-hero__inner { max-width: 620px; padding: 76px 0; }
.kh-hero__eyebrow {
	display: inline-block; margin-bottom: 18px; padding: 6px 14px;
	font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
	color: #fff; background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
}

/* 三屏切换标签 */
.kh-hero__tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.kh-hero__tab {
	position: relative;
	appearance: none; -webkit-appearance: none;
	margin: 0; padding: 0 0 11px;
	background: none; border: 0; border-radius: 0;
	font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px;
	color: rgba(255, 255, 255, .52);
	cursor: pointer;
	box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .2);
	transition: color .25s ease;
}
.kh-hero__tab:hover { color: rgba(255, 255, 255, .88); }
.kh-hero__tab:focus-visible { outline: 2px solid rgba(255, 255, 255, .72); outline-offset: 4px; }
.kh-hero__tab.is-active { color: #fff; }
.kh-hero__tab-no { margin-right: 7px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--kh-cyan, #22D3EE); }

/* 三屏文案：叠放在同一格，避免切换时整页跳动 */
.kh-hero__panes { display: grid; }
.kh-hero__pane {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .7s ease, transform .7s ease, visibility .7s;
}
.kh-hero__pane.is-active { opacity: 1; visibility: visible; transform: none; }

/* --- 没有脚本时的三屏轮播（纯 CSS 兜底）-----------------------------
   脚本被优化插件合并 / 延迟 / 拦掉，或访客直接关了 JS 时，.kh-hero--ready
   不会出现 —— 这一段靠关键帧照样每 7 秒切一屏，图 / 文案 / 标签 / 圆点四者同步。
   脚本一接管就会加上 .kh-hero--ready（见 assets/js/main.js），这一段随即失效，
   所以两边不会互相打架。

   ⚠ 百分比按总周期 21s（3 × 7s）折算：
       1.2s = 5.714%   7s = 33.333%   8.2s = 39.048%
     改自动切换间隔时，要同时改 main.js 的 DURATION 和下面四个 @keyframes。 */
@keyframes kh-hero-css-slide {
	0%      { opacity: 0; }
	5.714%  { opacity: 1; }
	33.333% { opacity: 1; }
	39.048% { opacity: 0; }
	100%    { opacity: 0; }
}
@keyframes kh-hero-css-pane {
	0%      { opacity: 0; transform: translateY(14px); }
	5.714%  { opacity: 1; transform: none; }
	33.333% { opacity: 1; transform: none; }
	39.048% { opacity: 0; transform: translateY(-10px); }
	100%    { opacity: 0; transform: translateY(14px); }
}
@keyframes kh-hero-css-tab {
	0%      { color: rgba(255, 255, 255, .52); }
	5.714%  { color: #fff; }
	33.333% { color: #fff; }
	39.048% { color: rgba(255, 255, 255, .52); }
	100%    { color: rgba(255, 255, 255, .52); }
}
@keyframes kh-hero-css-dot {
	0%      { background: rgba(255, 255, 255, .34); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
	5.714%  { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
	33.333% { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
	39.048% { background: rgba(255, 255, 255, .34); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
	100%    { background: rgba(255, 255, 255, .34); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.kh-hero:not(.kh-hero--ready) .kh-hero__slide { animation: kh-hero-css-slide 21s linear infinite; }
.kh-hero:not(.kh-hero--ready) .kh-hero__slide:nth-child(2) { animation-delay: 7s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__slide:nth-child(3) { animation-delay: 14s; }
/* 基类把非当前屏设成 visibility:hidden，会连带锁死动画；
   兜底轮播里三屏都放开，由 opacity 决定谁看得见。 */
.kh-hero:not(.kh-hero--ready) .kh-hero__pane { visibility: visible; animation: kh-hero-css-pane 21s linear infinite; }
.kh-hero:not(.kh-hero--ready) .kh-hero__pane:nth-child(2) { animation-delay: 7s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__pane:nth-child(3) { animation-delay: 14s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__tab { animation: kh-hero-css-tab 21s linear infinite; }
.kh-hero:not(.kh-hero--ready) .kh-hero__tab:nth-child(2) { animation-delay: 7s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__tab:nth-child(3) { animation-delay: 14s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__dots span { animation: kh-hero-css-dot 21s linear infinite; }
.kh-hero:not(.kh-hero--ready) .kh-hero__dots span:nth-child(2) { animation-delay: 7s; }
.kh-hero:not(.kh-hero--ready) .kh-hero__dots span:nth-child(3) { animation-delay: 14s; }

/* 减弱动效偏好：不淡入、不推近，兜底轮播也停在第 1 屏 */
@media (prefers-reduced-motion: reduce) {
	.kh-hero__slide, .kh-hero__pane { transition: none; }
	.kh-hero:not(.kh-hero--ready) .kh-hero__slide,
	.kh-hero:not(.kh-hero--ready) .kh-hero__pane,
	.kh-hero:not(.kh-hero--ready) .kh-hero__tab,
	.kh-hero:not(.kh-hero--ready) .kh-hero__dots span { animation: none; }
}

/* 窄屏：文案铺满整行，压暗层改为纵向，保证文字可读 */
@media (max-width: 900px) {
	.kh-hero::before {
		background: linear-gradient(180deg,
			rgba(7, 17, 30, .30) 0%, rgba(7, 17, 30, .52) 42%, rgba(7, 17, 30, .72) 100%);
	}
	.kh-hero__inner { max-width: none; }
}

.kh-hero h1, .kh-hero h2 { color: #fff; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.2; margin-bottom: 20px; }
.kh-hero h1 .kh-hl, .kh-hero h2 .kh-hl { display: block; color: var(--kh-primary); background: var(--kh-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kh-hero__desc { max-width: 540px; color: rgba(255, 255, 255, .76); font-size: 15.5px; margin-bottom: 30px; }
.kh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kh-hero__dots { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 12px; }
.kh-hero__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .34); transition: background .25s ease; }
.kh-hero__dots span.is-active { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }

/* =============================================================
   07. 特性卡片（叠压首屏）
   ============================================================= */
.kh-features { position: relative; z-index: 20; margin-top: -68px; }
.kh-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kh-feature {
	padding: 30px 28px 28px;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg);
	box-shadow: var(--kh-shadow-sm);
	transition: transform .26s ease, box-shadow .26s ease;
}
.kh-feature:hover { transform: translateY(-6px); box-shadow: var(--kh-shadow); }
.kh-feature__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; margin-bottom: 18px;
	border-radius: 14px; background: rgba(31, 94, 255, .1); color: var(--kh-primary);
}
.kh-feature__icon svg { width: 24px; height: 24px; }
.kh-feature h3 { font-size: 18px; margin-bottom: 10px; }
.kh-feature p { font-size: 14.2px; margin-bottom: 16px; color: var(--kh-body); }
.kh-feature__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.kh-feature__more svg { width: 14px; height: 14px; transition: transform .22s ease; }
.kh-feature__more:hover svg { transform: translateX(4px); }
.kh-feature--dark { background: var(--kh-ink); border-color: var(--kh-ink); }
.kh-feature--dark h3, .kh-feature--dark .kh-feature__more { color: #fff; }
.kh-feature--dark p { color: rgba(255, 255, 255, .66); }
.kh-feature--dark .kh-feature__icon { background: rgba(255, 255, 255, .12); color: #fff; }

/* =============================================================
   07-2. 全链路九环节（采 · 产 · 检 · 储 · 销 · 贸 · 运 · 财 · 绩）
   九张实景配图在 assets/images/chain-*.jpg，按环节顺序 01~09 对应。
   ============================================================= */
.kh-chain__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kh-chain__item {
	display: flex; flex-direction: column;
	padding: 0; overflow: hidden;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg);
	box-shadow: 0 2px 10px rgba(10, 22, 38, .04);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.kh-chain__item:hover {
	border-color: rgba(31, 94, 255, .3);
	box-shadow: 0 18px 40px rgba(10, 22, 38, .13); transform: translateY(-5px);
}
.kh-chain__media { position: relative; margin: 0; overflow: hidden; background: var(--kh-bg-2); }
.kh-chain__media img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 16 / 10; object-fit: cover;
	transition: transform .65s cubic-bezier(.2, .7, .3, 1);
}
.kh-chain__item:hover .kh-chain__media img { transform: scale(1.05); }
.kh-chain__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(10, 22, 38, 0) 58%, rgba(10, 22, 38, .24) 100%);
}
.kh-chain__inner { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px 22px; }
.kh-chain__short {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px;
	font-size: 18px; font-weight: 800; line-height: 1;
	color: #fff; background: var(--kh-grad);
	box-shadow: 0 8px 18px rgba(31, 94, 255, .24);
}
.kh-chain__body { min-width: 0; }
.kh-chain__item h3 { font-size: 16.5px; margin: 9px 0 7px; }
.kh-chain__item p {
	font-size: 13.2px; line-height: 1.7; margin: 0; color: var(--kh-body);
	min-height: 3.4em; text-wrap: balance;   /* 统一预留两行，九张卡高度齐平 */
}

/* =============================================================
   08. 服务 / 解决方案
   ============================================================= */
.kh-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kh-service {
	display: flex; flex-direction: column;
	padding: 32px 30px;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg);
	transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.kh-service:hover { transform: translateY(-6px); border-color: rgba(31, 94, 255, .3); box-shadow: var(--kh-shadow); }
.kh-service__thumb { margin: -32px -30px 22px; border-radius: var(--kh-radius-lg) var(--kh-radius-lg) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--kh-bg-2); }
.kh-service__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-service__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; margin-bottom: 20px;
	border-radius: 15px; background: var(--kh-grad); color: #fff;
	box-shadow: 0 10px 22px rgba(31, 94, 255, .26);
}
.kh-service__icon svg { width: 26px; height: 26px; }
.kh-service h3 { font-size: 18.5px; margin-bottom: 10px; }
.kh-service p { font-size: 14.2px; margin-bottom: 18px; }
.kh-service__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; }
.kh-service__more svg { width: 14px; height: 14px; transition: transform .22s ease; }
.kh-service__more:hover svg { transform: translateX(4px); }
.kh-services__foot { margin-top: 36px; text-align: center; }

/* =============================================================
   08-2. 首页 · 产品可拓展功能（物联网扩展 · AI Agent · 行业扩展）
   三组卡片 + 一组「拓展价值总结」。卡片自带标签行；
   只放一张卡的分组自动变成一条通栏高亮卡（grid-template-areas 重排）。
   ============================================================= */
.kh-extend__group + .kh-extend__group { margin-top: 54px; }
.kh-extend__head {
	display: flex; align-items: center; gap: 16px;
	padding-bottom: 20px; margin-bottom: 26px;
	border-bottom: 1px solid var(--kh-line);
}
.kh-extend__head-icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 14px;
	color: #fff; background: var(--kh-grad);
	box-shadow: 0 10px 22px rgba(31, 94, 255, .24);
}
.kh-extend__head-icon svg { width: 22px; height: 22px; }
.kh-extend__head-text { flex: 1 1 auto; min-width: 0; }
.kh-extend__head-text h3 { font-size: 20px; margin: 0 0 5px; }
.kh-extend__head-text p { font-size: 14px; line-height: 1.7; margin: 0; color: var(--kh-body); }
.kh-extend__count {
	flex: none; padding: 5px 13px; font-size: 12.5px; font-weight: 700;
	border-radius: 999px; color: var(--kh-primary); background: rgba(31, 94, 255, .1);
}
.kh-extend__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kh-extend__card {
	display: flex; flex-direction: column;
	padding: 26px 24px 24px;
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg);
	box-shadow: 0 2px 10px rgba(10, 22, 38, .04);
	transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}
.kh-extend__card:hover {
	transform: translateY(-5px);
	border-color: rgba(31, 94, 255, .3);
	box-shadow: var(--kh-shadow);
}
.kh-extend__card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: 16px;
	border-radius: 12px; color: var(--kh-primary); background: rgba(31, 94, 255, .1);
}
.kh-extend__card-icon svg { width: 22px; height: 22px; }
.kh-extend__card h4 { font-size: 16.5px; margin: 0 0 9px; }
.kh-extend__card p { font-size: 13.4px; line-height: 1.75; margin: 0 0 18px; color: var(--kh-body); }
.kh-extend__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.kh-extend__tags span {
	padding: 4px 11px; font-size: 12px; line-height: 1.55; white-space: nowrap;
	border-radius: 999px; color: var(--kh-primary); background: rgba(31, 94, 255, .08);
}

/* 只放了一张卡的分组（行业扩展能力）：通栏高亮卡，图标在左、文字在右。 */
.kh-extend__grid--solo { display: block; }
.kh-extend__grid--solo > .kh-extend__card {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	grid-template-areas:
		"icon title"
		"icon desc"
		"icon tags";
	gap: 8px 20px;
	align-items: start;
	padding: 30px 34px 32px;
	background: linear-gradient(120deg, rgba(31, 94, 255, .07) 0%, rgba(31, 200, 219, .07) 100%);
	border-color: rgba(31, 94, 255, .22);
}
.kh-extend__grid--solo > .kh-extend__card .kh-extend__card-icon { grid-area: icon; width: 60px; height: 60px; margin: 0; }
.kh-extend__grid--solo > .kh-extend__card .kh-extend__card-icon svg { width: 28px; height: 28px; }
.kh-extend__grid--solo > .kh-extend__card h4 { grid-area: title; margin: 8px 0 0; font-size: 18px; }
.kh-extend__grid--solo > .kh-extend__card p { grid-area: desc; margin: 0; max-width: 84ch; font-size: 14px; }
.kh-extend__grid--solo > .kh-extend__card .kh-extend__tags { grid-area: tags; margin-top: 4px; }

/* 拓展价值总结 */
.kh-extend__values {
	margin-top: 56px; padding: 34px 36px 36px;
	border: 1px solid var(--kh-line); border-radius: var(--kh-radius-lg);
	background: var(--kh-bg-2);
}
.kh-extend__values-title { font-size: 17px; margin: 0 0 24px; }
.kh-extend__values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kh-extend__value { display: flex; align-items: flex-start; gap: 14px; }
.kh-extend__value-icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 11px;
	color: var(--kh-primary); background: rgba(31, 94, 255, .1);
}
.kh-extend__value-icon svg { width: 19px; height: 19px; }
.kh-extend__value h4 { font-size: 15.5px; margin: 6px 0 7px; }
.kh-extend__value p { font-size: 13.2px; line-height: 1.75; margin: 0; color: var(--kh-body); }

@media (max-width: 1100px) {
	.kh-extend__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 价值总结只有三条短句，撑到 900px 再堆叠，别太早变成竖排。 */
@media (max-width: 900px) {
	.kh-extend__values-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
	.kh-extend__group + .kh-extend__group { margin-top: 42px; }
	.kh-extend__head { flex-wrap: wrap; gap: 12px; }
	.kh-extend__count { display: none; }
	.kh-extend__grid { grid-template-columns: 1fr; gap: 16px; }
	.kh-extend__grid--solo > .kh-extend__card { grid-template-columns: 46px minmax(0, 1fr); gap: 6px 14px; padding: 24px 22px 26px; }
	.kh-extend__grid--solo > .kh-extend__card .kh-extend__card-icon { width: 46px; height: 46px; }
	.kh-extend__grid--solo > .kh-extend__card .kh-extend__card-icon svg { width: 22px; height: 22px; }
	.kh-extend__grid--solo > .kh-extend__card h4 { margin-top: 6px; font-size: 17px; }
	.kh-extend__values { margin-top: 40px; padding: 26px 22px 28px; }
}

/* =============================================================
   09. 咨询 / 数据区
   -------------------------------------------------------------
   默认「浅色」：白底深字，与上下相邻的白色模块连成一片。
   底色由「外观 → 自定义 → 首页 · 咨询与数据 → 区块底色」切换，
   分别对应 .kh-consult--light / --gray / --dark 三个类。
   基类本身就是白底，所以类名缺失或值异常时也只会是白色，
   不会再突兀地出现一条深色带。
   ============================================================= */
.kh-consult {
	background: var(--kh-bg); color: var(--kh-body);
	border-top: 1px solid var(--kh-line);
	position: relative; overflow: hidden;
}
.kh-consult .kh-container { position: relative; z-index: 2; }
.kh-consult__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.kh-consult__eyebrow {
	display: inline-block; margin-bottom: 14px; padding: 5px 13px;
	font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
	color: var(--kh-primary); background: rgba(31, 94, 255, .1); border-radius: 999px;
}
.kh-consult h2 { color: var(--kh-ink); }
.kh-consult p { color: var(--kh-body); }
.kh-consult__card {
	display: flex; align-items: center; gap: 16px;
	margin-top: 30px; padding: 22px 24px;
	background: var(--kh-bg-2);
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg);
}
.kh-consult__card .kh-service__icon { width: 48px; height: 48px; margin: 0; border-radius: 12px; }
.kh-consult__card .kh-service__icon svg { width: 22px; height: 22px; }
.kh-consult__card strong { display: block; color: var(--kh-ink); font-size: 15.5px; margin-bottom: 2px; }
.kh-consult__card span { font-size: 13.5px; }
.kh-consult__card .kh-btn { margin-left: auto; flex: none; }
.kh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.kh-stat { padding-top: 18px; border-top: 2px solid var(--kh-primary); }
.kh-stat__value { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--kh-ink); line-height: 1.15; }
.kh-stat__label { display: block; margin-top: 6px; font-size: 13.5px; }

/* 浅色底：与基类一致，单独写一条只是为了让三个变体对称、便于检索。 */
.kh-consult--light { background: var(--kh-bg); border-top-color: var(--kh-line); }

/* 浅灰底：与「产品模块区」同一种灰，想让几个白色区块之间有点层次时用。 */
.kh-consult--gray { background: var(--kh-bg-2); border-top-color: transparent; }

/* 深色底：1.0.9 及以前的外观，保留下来以便随时切回。 */
.kh-consult--dark { background: var(--kh-ink); color: rgba(255, 255, 255, .7); border-top-color: transparent; }
.kh-consult--dark::after {
	content: ""; position: absolute; left: -180px; top: -160px;
	width: 520px; height: 520px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 200, 219, .16) 0%, rgba(31, 200, 219, 0) 70%);
}
.kh-consult--dark .kh-consult__eyebrow { color: var(--kh-cyan); background: rgba(31, 200, 219, .12); }
.kh-consult--dark h2 { color: #fff; }
.kh-consult--dark p { color: rgba(255, 255, 255, .68); }
.kh-consult--dark .kh-consult__card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.kh-consult--dark .kh-consult__card strong { color: #fff; }
.kh-consult--dark .kh-stat__value { color: #fff; }

/* =============================================================
   10. 最新动态
   ============================================================= */
.kh-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.kh-post {
	background: #fff; border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius-lg); overflow: hidden;
	transition: transform .26s ease, box-shadow .26s ease;
}
.kh-post:hover { transform: translateY(-6px); box-shadow: var(--kh-shadow); }
.kh-post__thumb { display: block; aspect-ratio: 16 / 10; background: var(--kh-bg-2); overflow: hidden; }
.kh-post__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform .5s ease; }
.kh-post:hover .kh-post__thumb img { transform: scale(1.05); }
.kh-post__body { padding: 24px 26px 26px; }
.kh-post__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--kh-muted); }
.kh-post__cat { padding: 3px 11px; border-radius: 999px; background: rgba(31, 94, 255, .1); color: var(--kh-primary); font-weight: 700; }
.kh-post h3 { font-size: 17.5px; line-height: 1.5; margin-bottom: 10px; }
.kh-post h3 a { color: var(--kh-ink); }
.kh-post h3 a:hover { color: var(--kh-primary); }
.kh-post p { font-size: 14px; margin-bottom: 14px; }

/* =============================================================
   11. 页脚 · 合作与加入（原「底部行动卡」）

   原先是一条独立的白色带：卡片本身是 #fff，而这条带的底色也是白的，
   整屏只剩 1px 描边在撑；带子又只有 54px 上下留白，夹在深蓝「咨询与数据」
   与深蓝页脚之间，等于把页面切成三段。

   现在改为页脚顶部的一条两栏横条：与页脚同底色，靠 44px 圆角图标块
   （青色描边）+ 一条细分割线承担视觉重量，首页直接以深色收尾。
   ============================================================= */
.kh-footer .kh-footer__actions {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 50px 0 34px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.kh-footer .kh-footer__action { display: flex; align-items: flex-start; gap: 16px; }
.kh-footer .kh-footer__action:first-child { padding-right: 44px; }
.kh-footer .kh-footer__action + .kh-footer__action { padding-left: 44px; border-left: 1px solid rgba(255, 255, 255, .1); }
.kh-footer__action-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; flex: none; border-radius: 13px;
	background: rgba(31, 200, 219, .12); border: 1px solid rgba(31, 200, 219, .22);
	color: var(--kh-cyan);
	transition: background .24s ease, border-color .24s ease;
}
.kh-footer__action-icon svg { width: 21px; height: 21px; }
.kh-footer .kh-footer__action:hover .kh-footer__action-icon { background: rgba(31, 200, 219, .2); border-color: rgba(31, 200, 219, .42); }
.kh-footer__action-body { flex: 1 1 auto; min-width: 0; }
.kh-footer .kh-footer__actions h4 {
	margin: 0 0 6px; padding-bottom: 0;
	color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .2px; line-height: 1.4;
}
.kh-footer .kh-footer__actions h4::after { content: none; }
/* text-wrap:balance —— 这两条描述正好在 492px 可用宽度边缘，默认换行会把末行压成
   「伴。」这样两三个字。balanced 让两行长度自动均分，改文案后也自适应。老浏览器忽略此属性、不影响排版。 */
.kh-footer .kh-footer__actions p { margin: 0; font-size: 13.4px; line-height: 1.72; color: rgba(255, 255, 255, .58); text-wrap: balance; }
.kh-footer .kh-footer__actions .kh-footer__action-link,
.kh-footer .kh-footer__actions .kh-footer__action-link a {
	display: inline-flex; align-items: center; gap: 7px;
	margin-top: 11px; font-size: 13.4px; font-weight: 600;
	color: var(--kh-cyan); text-decoration: none;
}
.kh-footer .kh-footer__actions .kh-footer__action-link::after {
	content: ""; width: 6px; height: 6px;
	border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor;
	transform: rotate(45deg);
	transition: transform .24s ease;
}
.kh-footer .kh-footer__actions .kh-footer__action-link:hover,
.kh-footer .kh-footer__actions .kh-footer__action-link:hover a { color: #fff; }
.kh-footer .kh-footer__actions .kh-footer__action-link:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* =============================================================
   12. 页脚
   ============================================================= */
.kh-footer {
	background: var(--kh-ink); color: rgba(255, 255, 255, .62); font-size: 14px;
	/* 上面不再是白色行动卡带，页脚与深色区块直接相接，用一条细线交代边界 */
	border-top: 1px solid rgba(255, 255, 255, .08);
}
.kh-footer__grid {
	display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.35fr; gap: 44px;
	padding: 44px 0 48px;
}
.kh-footer h4 {
	margin-bottom: 20px; color: #fff; font-size: 15.5px; font-weight: 700;
	letter-spacing: .3px; position: relative; padding-bottom: 12px;
}
.kh-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--kh-grad); border-radius: 2px; }
.kh-footer p { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.85; }
.kh-footer a { color: rgba(255, 255, 255, .62); }
.kh-footer a:hover { color: #fff; }
.kh-footer ul { list-style: none; margin: 0; padding: 0; }
.kh-footer li { margin-bottom: 11px; }
.kh-footer .kh-brand__name { color: #fff; }
.kh-footer .kh-brand__slogan { color: rgba(255, 255, 255, .45); }
.kh-footer .kh-brand { margin-bottom: 18px; }
.kh-footer__search form { display: flex; gap: 10px; }
.kh-footer__search input[type="search"] {
	background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; height: 44px;
}
.kh-footer__search input[type="search"]::placeholder { color: rgba(255, 255, 255, .42); }
.kh-footer__news form { display: flex; gap: 10px; margin-top: 16px; }
.kh-footer__news input[type="email"] {
	background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; height: 44px;
}
.kh-footer__news input[type="email"]::placeholder { color: rgba(255, 255, 255, .42); }
.kh-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
	padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px; color: rgba(255, 255, 255, .48);
}
.kh-footer__bottom a { color: rgba(255, 255, 255, .55); }
.kh-footer__bottom a:hover { color: #fff; }
.kh-footer__tools { display: flex; align-items: center; gap: 18px; }
.kh-totop {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--kh-primary); color: #fff; border: 0; cursor: pointer;
}
.kh-totop svg { width: 16px; height: 16px; color: #fff; }
.kh-totop:hover { background: var(--kh-primary-d); color: #fff; transform: translateY(-3px); }
.kh-footer .kh-widget-area { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 60px 0 40px; }
.kh-footer .widget-title { color: #fff; font-size: 15.5px; }

/* =============================================================
   13. 页面 / 归档 / 文章
   ============================================================= */
.kh-page-hero { background: var(--kh-ink); color: #fff; padding: 58px 0 54px; position: relative; overflow: hidden; }
.kh-page-hero::after {
	content: ""; position: absolute; right: -120px; bottom: -180px;
	width: 460px; height: 460px; border-radius: 50%;
	background: radial-gradient(circle, rgba(31, 94, 255, .3) 0%, rgba(31, 94, 255, 0) 70%);
}
.kh-page-hero .kh-container { position: relative; z-index: 2; }
.kh-page-hero h1 { color: #fff; margin-bottom: 10px; }
.kh-breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .58); }
.kh-breadcrumb a { color: rgba(255, 255, 255, .58); }
.kh-breadcrumb a:hover { color: #fff; }
.kh-breadcrumb span.sep { margin: 0 8px; opacity: .5; }

.kh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; padding: 68px 0 84px; }
.kh-layout--full { grid-template-columns: minmax(0, 1fr); }

.kh-entry { background: #fff; }
.kh-entry__thumb { margin: 0 0 30px; border-radius: var(--kh-radius-lg); overflow: hidden; }
.kh-entry__title { font-size: clamp(24px, 3vw, 34px); }
.kh-entry__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; font-size: 13px; color: var(--kh-muted); }
.kh-entry__meta span { display: inline-flex; align-items: center; gap: 6px; }
.kh-entry__content { font-size: 15.5px; line-height: 1.95; }
.kh-entry__content h2 { margin-top: 1.6em; }
.kh-entry__content h3 { margin-top: 1.4em; }
.kh-entry__content img { border-radius: var(--kh-radius); margin: 18px 0; }
.kh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.kh-tags a { padding: 5px 14px; font-size: 13px; border: 1px solid var(--kh-line); border-radius: 999px; color: var(--kh-body); }
.kh-tags a:hover { border-color: var(--kh-primary); color: var(--kh-primary); }

.kh-pagination { margin-top: 44px; }
.kh-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px; margin-right: 8px;
	border: 1px solid var(--kh-line); border-radius: var(--kh-radius);
	color: var(--kh-ink); font-size: 14px; font-weight: 600;
}
.kh-pagination .page-numbers:hover, .kh-pagination .page-numbers.current { background: var(--kh-primary); border-color: var(--kh-primary); color: #fff; }
.kh-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--kh-line); }
.kh-postnav a { font-size: 14px; font-weight: 600; max-width: 46%; }

.kh-list { display: grid; gap: 28px; }
.kh-list__item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--kh-line); }
.kh-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.kh-list__thumb { border-radius: var(--kh-radius-lg); overflow: hidden; background: var(--kh-bg-2); aspect-ratio: 16 / 11; }
.kh-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-list__item h2 { font-size: 21px; margin-bottom: 10px; }
.kh-list__item h2 a { color: var(--kh-ink); }
.kh-list__item h2 a:hover { color: var(--kh-primary); }

/* 侧栏 */
.kh-sidebar .widget { margin-bottom: 30px; padding: 26px; background: var(--kh-bg-2); border-radius: var(--kh-radius-lg); }
.kh-sidebar .widget-title { font-size: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--kh-line); }
.kh-sidebar ul { list-style: none; margin: 0; padding: 0; }
.kh-sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--kh-line); font-size: 14.2px; }
.kh-sidebar li:last-child { border-bottom: 0; }
.kh-sidebar a { color: var(--kh-body); }
.kh-sidebar a:hover { color: var(--kh-primary); }

/* 空状态 */
.kh-empty { padding: 60px 30px; text-align: center; background: var(--kh-bg-2); border-radius: var(--kh-radius-lg); }
.kh-empty h2 { margin-bottom: 10px; }

/* =============================================================
   14. 评论
   ============================================================= */
.kh-comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--kh-line); }
.kh-comments h2, .kh-comments .comment-reply-title { font-size: 20px; margin-bottom: 22px; }
.kh-comments ol { list-style: none; margin: 0; padding: 0; }
.kh-comments ol ol { padding-left: 34px; margin-top: 22px; }
.kh-comments li { margin-bottom: 22px; }
.kh-comments .comment-body { padding: 20px 22px; background: var(--kh-bg-2); border-radius: var(--kh-radius-lg); }
.kh-comments .comment-author img { border-radius: 50%; margin-right: 10px; float: left; }
.kh-comments .comment-meta { font-size: 13px; color: var(--kh-muted); margin-bottom: 10px; }
.kh-comments .comment-author .fn { font-weight: 700; color: var(--kh-ink); font-style: normal; }
.kh-comments .reply a { font-size: 13px; font-weight: 600; }
.kh-comments .comment-respond { margin-top: 40px; }
.kh-comments .comment-form p { margin-bottom: 16px; }
.kh-comments .form-submit input[type="submit"] {
	padding: 12px 30px; border: 0; border-radius: 999px;
	background: var(--kh-grad); color: #fff; font-weight: 600; cursor: pointer;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.comment-form-cookies-consent input { width: auto; margin-top: 5px; }

/* =============================================================
   15. WP 核心对齐类
   ============================================================= */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: 1360px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption-text, .wp-block-image figcaption { font-size: 13px; color: var(--kh-muted); text-align: center; margin-top: 8px; }
.sticky .kh-post__body::before { content: "置顶"; }
.bypostauthor > .comment-body .fn::after { content: " · 作者"; color: var(--kh-primary); font-size: 12px; }
.gallery-caption { font-size: 13px; color: var(--kh-muted); }
.wp-block-button__link { border-radius: 999px; }

/* =============================================================
   16. 页面模板：关于 / 联系
   ============================================================= */
.kh-about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.kh-about__figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.kh-about__fig { padding: 26px 22px; background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius-lg); }
.kh-about__fig strong { display: block; font-size: 28px; font-weight: 800; color: var(--kh-primary); line-height: 1.2; }
.kh-about__fig span { font-size: 13.5px; color: var(--kh-muted); }
.kh-about__fig--accent { background: var(--kh-ink); border-color: var(--kh-ink); }
.kh-about__fig--accent strong, .kh-about__fig--accent span { color: #fff; }
.kh-timeline { position: relative; margin-top: 40px; padding-left: 28px; }
.kh-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--kh-line); }
.kh-timeline__item { position: relative; padding-bottom: 28px; }
.kh-timeline__item::before {
	content: ""; position: absolute; left: -28px; top: 8px;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--kh-primary); box-shadow: 0 0 0 4px rgba(31, 94, 255, .16);
}
.kh-timeline__year { display: block; font-size: 13px; font-weight: 700; color: var(--kh-primary); letter-spacing: 1px; }
.kh-timeline__item h4 { margin: 4px 0 4px; }

.kh-contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.kh-contact__list { list-style: none; margin: 0; padding: 0; }
.kh-contact__list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--kh-line); }
.kh-contact__list li:last-child { border-bottom: 0; }
.kh-contact__list .kh-feature__icon { width: 46px; height: 46px; margin: 0; flex: none; border-radius: 12px; }
.kh-contact__list .kh-feature__icon svg { width: 20px; height: 20px; }
.kh-contact__list strong { display: block; color: var(--kh-ink); font-size: 15px; margin-bottom: 2px; }
.kh-contact__form { padding: 34px; background: var(--kh-bg-2); border-radius: var(--kh-radius-lg); }
.kh-contact__map { margin-top: 24px; border-radius: var(--kh-radius-lg); overflow: hidden; }
.kh-contact__map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* 团队成员 */
.kh-team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kh-member { background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius-lg); overflow: hidden; text-align: center; }
.kh-member__photo { aspect-ratio: 1 / 1; background: var(--kh-bg-2); overflow: hidden; }
.kh-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.kh-member__body { padding: 20px 18px 24px; }
.kh-member__body h3 { font-size: 17px; margin-bottom: 4px; }
.kh-member__role { font-size: 13.5px; color: var(--kh-primary); font-weight: 600; }

/* 筛选 */
.kh-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.kh-filter a { padding: 8px 18px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--kh-line); border-radius: 999px; color: var(--kh-body); }
.kh-filter a:hover { border-color: var(--kh-primary); color: var(--kh-primary); }
.kh-filter a.is-active { background: var(--kh-primary); border-color: var(--kh-primary); color: #fff; }

/* =============================================================
   17. 留资表单与弹窗
   ============================================================= */

/* 弹窗触发器：块主题的按钮用这个类名做钩子（经典主题挂在 data-kh-lead 属性上）。
   这里只是把钩子声明出来，按钮外观仍由按钮自己的样式决定。 */
.kh-lead-trigger { cursor: pointer; }

/* 打开弹窗时锁住页面滚动 */
html.kh-lead-lock { overflow: hidden; }

#kh-lead {
	position: fixed; inset: 0; z-index: 9990;
	display: flex; align-items: center; justify-content: center;
	padding: 32px 20px;
}
#kh-lead[hidden] { display: none; }

.kh-lead__mask {
	position: absolute; inset: 0;
	background: rgba(7, 17, 30, .66);
	opacity: 0; transition: opacity .24s ease;
}
#kh-lead.is-open .kh-lead__mask { opacity: 1; }

.kh-lead__dialog {
	position: relative; width: 100%; max-width: 560px;
	max-height: calc(100vh - 64px); overflow-y: auto;
	padding: 40px 42px 34px;
	background: #fff; border-radius: var(--kh-radius-lg);
	box-shadow: 0 30px 80px rgba(7, 17, 30, .38);
	opacity: 0; transform: translateY(14px) scale(.985);
	transition: opacity .26s ease, transform .26s cubic-bezier(.2, .8, .3, 1);
}
#kh-lead.is-open .kh-lead__dialog { opacity: 1; transform: none; }

.kh-lead__close {
	position: absolute; top: 16px; right: 16px;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--kh-bg-2); color: var(--kh-body); cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.kh-lead__close svg { width: 16px; height: 16px; }
.kh-lead__close:hover { background: var(--kh-ink); color: #fff; }

.kh-lead__head { margin-bottom: 24px; }
.kh-lead__eyebrow {
	display: inline-block; margin-bottom: 10px; padding: 4px 12px;
	border-radius: 99px; background: rgba(31, 94, 255, .08);
	color: var(--kh-primary); font-size: 12px; font-weight: 600; letter-spacing: .06em;
}
.kh-lead__head h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.42; }
.kh-lead__head p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--kh-body); }

.kh-lead-form .kh-field { margin-bottom: 16px; }
.kh-lead-form label {
	display: block; margin-bottom: 7px;
	font-size: 13px; font-weight: 600; color: var(--kh-ink);
}
.kh-field__req { margin-left: 3px; font-style: normal; color: var(--kh-accent); }
.kh-field__opt { margin-left: 7px; font-size: 11.5px; font-weight: 400; color: var(--kh-muted); }

.kh-lead-form input[type="text"],
.kh-lead-form textarea,
.kh-lead-form select {
	width: 100%; padding: 12px 14px;
	border: 1px solid var(--kh-line); border-radius: 10px;
	background: #fff; color: var(--kh-ink);
	font-family: inherit; font-size: 14px; line-height: 1.6;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.kh-lead-form textarea { min-height: 84px; resize: vertical; }
.kh-lead-form input::placeholder,
.kh-lead-form textarea::placeholder { color: #A8B2C2; }
.kh-lead-form input:focus,
.kh-lead-form textarea:focus {
	outline: none;
	border-color: var(--kh-primary);
	box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}
.kh-field--error input,
.kh-field--error textarea { border-color: var(--kh-accent); }
.kh-field--error input:focus,
.kh-field--error textarea:focus {
	border-color: var(--kh-accent);
	box-shadow: 0 0 0 3px rgba(228, 72, 60, .13);
}
.kh-field__err { display: block; margin-top: 6px; font-size: 12px; color: var(--kh-accent); }
.kh-field__err:empty { display: none; }

/* 蜜罐字段：正常访客看不到 */
.kh-lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 弹窗自带的按钮：不依赖主题框架的按钮类，两套主题表现一致 */
.kh-lead-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 30px; border: 0; border-radius: 999px; cursor: pointer;
	font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1;
	background: var(--kh-grad); color: #fff;
	box-shadow: 0 10px 24px rgba(31, 94, 255, .26);
	transition: transform .22s ease, box-shadow .22s ease, opacity .2s ease;
}
.kh-lead-btn:hover {
	color: #fff; transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(31, 94, 255, .34);
}
.kh-lead-btn--ghost {
	background: transparent; color: var(--kh-ink);
	border: 1.5px solid var(--kh-line); box-shadow: none;
}
.kh-lead-btn--ghost:hover {
	background: transparent; color: var(--kh-primary);
	border-color: var(--kh-primary); box-shadow: none; transform: none;
}

.kh-lead-form__foot { margin-top: 22px; }
.kh-lead-form__submit { width: 100%; }
.kh-lead-form__submit[disabled] {
	opacity: .66; cursor: progress; transform: none; box-shadow: none;
}
.kh-lead-form__privacy {
	margin: 12px 0 0; font-size: 12px; line-height: 1.7;
	color: var(--kh-muted); text-align: center;
	text-wrap: balance;
}
.kh-lead-form__alert {
	margin: 14px 0 0; padding: 10px 14px; border-radius: 9px;
	background: rgba(228, 72, 60, .08); color: var(--kh-accent);
	font-size: 13px; text-align: center;
}
.kh-lead-form__alert[hidden] { display: none; }

/* 提交成功 */
.kh-lead-done { padding: 14px 0 6px; text-align: center; }
.kh-lead-done[hidden] { display: none; }
.kh-lead-done__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 58px; height: 58px; margin-bottom: 16px; border-radius: 50%;
	background: rgba(31, 200, 219, .12); color: #12A6B8;
}
.kh-lead-done__icon svg { width: 26px; height: 26px; }
.kh-lead-done h3 { margin: 0 0 8px; font-size: 19px; }
.kh-lead-done > p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.75; color: var(--kh-body); }
.kh-lead-done__code {
	display: block; width: fit-content; margin: 0 auto 20px; padding: 7px 16px;
	border-radius: 99px; background: var(--kh-bg-2);
	font-size: 12.5px; color: var(--kh-muted);
}
.kh-lead-done__code b { color: var(--kh-ink); font-weight: 600; letter-spacing: .02em; }
.kh-lead-done__code[hidden] { display: none; }

/* 提交成功后收起表头，弹窗只剩「已收到」 */
.kh-lead__body.is-done .kh-lead__head { display: none; }

/* 联系页内嵌表单：与弹窗共用同一份标记 */
.kh-contact__form .kh-lead-form,
.kh-contact__form .kh-lead-done { margin-top: 22px; }
.kh-contact__form .kh-lead-form__foot { margin-top: 18px; }
.kh-contact__form .kh-lead-done__icon { width: 48px; height: 48px; margin-bottom: 12px; }

@media (max-width: 680px) {
	#kh-lead { align-items: flex-start; padding: 16px 12px; }
	.kh-lead__dialog {
		max-height: calc(100vh - 32px);
		padding: 30px 22px 26px; border-radius: 14px;
	}
	.kh-lead__close { top: 12px; right: 12px; }
	.kh-lead__head { margin-bottom: 20px; }
	.kh-lead__head h2 { font-size: 19px; }
	.kh-lead__eyebrow { margin-bottom: 8px; }
	/* 16px 起才不会被 iOS 自动放大 */
	.kh-lead-form input[type="text"],
	.kh-lead-form textarea { font-size: 16px; }
}

/* =============================================================
   18. 响应式
   ============================================================= */
@media (max-width: 1100px) {
	.kh-services__grid, .kh-features__grid, .kh-posts__grid, .kh-chain__grid, .kh-stats { grid-template-columns: repeat(2, 1fr); }
	.kh-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
	.kh-team__grid { grid-template-columns: repeat(3, 1fr); }
	.kh-consult__grid, .kh-about__grid { grid-template-columns: 1fr; gap: 40px; }
	.kh-layout { grid-template-columns: minmax(0, 1fr); }
	.kh-hero__inner { max-width: 100%; }
}

@media (max-width: 900px) {
	.kh-nav {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 70;
		display: none; padding: 12px 20px 20px;
		background: #fff; border-bottom: 1px solid var(--kh-line); box-shadow: var(--kh-shadow);
	}
	.kh-nav.is-open { display: block; }
	.kh-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.kh-nav a { padding: 12px 10px; border-bottom: 1px solid var(--kh-line); border-radius: 0; }
	.kh-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px; min-width: 0;
	}
	.kh-navtoggle { display: inline-flex; }
	.kh-header__actions .kh-btn { display: none; }
	.kh-topbar .kh-container { justify-content: center; }
	.kh-topbar__left { justify-content: center; gap: 14px; font-size: 12.5px; }
	.kh-topbar__right { display: none; }
	.kh-hero__dots { display: none; }
.kh-footer .kh-footer__actions { grid-template-columns: 1fr; padding: 42px 0 28px; }
.kh-footer .kh-footer__action:first-child { padding-right: 0; }
.kh-footer .kh-footer__action + .kh-footer__action {
	padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1);
	margin-top: 26px; padding-top: 26px;
}
.kh-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.kh-section { padding: 54px 0; }
	.kh-features { margin-top: -34px; }
	.kh-services__grid, .kh-features__grid, .kh-posts__grid, .kh-chain__grid, .kh-stats,
	.kh-footer__grid, .kh-about__figures, .kh-team__grid, .kh-footer .kh-widget-area { grid-template-columns: 1fr; }
	.kh-list__item { grid-template-columns: 1fr; }
	.kh-consult__card { flex-direction: column; align-items: flex-start; }
	.kh-consult__card .kh-btn { margin-left: 0; }
	.kh-hero { min-height: 460px; }
	.kh-hero__inner { padding: 56px 0; }
	.kh-container { padding: 0 18px; }
	.kh-footer__bottom { justify-content: center; text-align: center; }
	.alignwide, .alignfull { margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; }
}

/*
 * 全链路九环节 · 窄屏专用
 * 通用栅格在 680px 以下降为单列，一张 16:10 的实景图会被撑到整屏宽，
 * 九张纵向拖出四千多像素。这里改成「左图右文」的横版卡片。
 */
@media (max-width: 680px) {
	.kh-chain__grid { gap: 16px; }
	.kh-chain__item { flex-direction: row; align-items: stretch; }
	.kh-chain__media { flex: 0 0 124px; }
	.kh-chain__media img { height: 100%; aspect-ratio: auto; }
	.kh-chain__inner { padding: 15px 18px; }
	.kh-chain__item p { min-height: 0; }
}

@media print {
	.kh-topbar, .kh-header, .kh-footer, .kh-navtoggle, .kh-totop { display: none !important; }
	body { font-size: 12pt; color: #000; }
}

/* =========================================================================
   08-3. 文章正文 · 配图与要点卡
   配图由 [kh_photo] 输出，要点卡由 [kh_facts] 输出。
   ========================================================================= */
.kh-figure { margin: 28px 0; }
.kh-figure img {
	display: block;
	/* 不放大：正文容器约 1200px，配图按原尺寸上限 760px 居中，
	   宁可两侧留白，也不要把图拉虚。 */
	max-width: min(100%, 760px);
	height: auto;
	margin: 0 auto;
	border-radius: var(--kh-radius-lg);
}
.kh-figure figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--kh-muted);
	text-align: center;
}

.kh-facts {
	margin: 26px 0 30px;
	padding: 22px 26px;
	background: var(--kh-bg-2);
	border-left: 3px solid var(--kh-primary);
	border-radius: var(--kh-radius-lg);
}
.kh-facts__title {
	margin: 0 0 12px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--kh-primary);
}
.kh-facts__list { margin: 0; }
.kh-facts__row {
	display: flex;
	gap: 18px;
	padding: 8px 0;
	border-top: 1px solid var(--kh-line);
}
.kh-facts__row:first-child { border-top: 0; }
.kh-facts__row dt {
	flex: 0 0 92px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--kh-muted);
}
.kh-facts__row dd {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--kh-ink);
}

@media (max-width: 600px) {
	.kh-figure { margin: 22px 0; }
	.kh-facts { padding: 18px; }
	.kh-facts__row { flex-direction: column; gap: 0; }
	.kh-facts__row dt { flex: none; }
}
