/* ==========================================================================
   TJ Linker — Design system
   Brand: 天工捷通 / 智能仓储物流机器人 · 行业大模型
   ========================================================================== */

:root {
	/* Brand */
	--brand: #3e63f9;
	--brand-strong: #2a4fe0;
	--brand-soft: #eef2ff;
	--brand-line: #d6dffb;
	--cyan: #35c2f5;

	/* Ink & neutrals */
	--ink: #070e1f;
	--ink-2: #0d1730;
	--ink-3: #16233f;
	--text: #0f1a2e;
	--muted: #5b6a85;
	--muted-2: #8492ab;
	--line: #e4e9f3;
	--bg: #ffffff;
	--bg-soft: #f5f7fc;
	--bg-card: #ffffff;

	/* Effects */
	--shadow-sm: 0 1px 2px rgba(15, 26, 46, .06);
	--shadow-md: 0 10px 30px -12px rgba(15, 26, 46, .18);
	--shadow-lg: 0 28px 60px -24px rgba(15, 26, 46, .28);
	--ring: 0 0 0 4px rgba(62, 99, 249, .18);

	/* Metrics */
	--container: 1200px;
	--gutter: 24px;
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--header-h: 76px;

	--font: "Inter", "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-num: "Inter", "DIN Alternate", "SF Pro Display", system-ui, sans-serif;

	--ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: rgba(62, 99, 249, .18); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 200;
	padding: 10px 18px; background: var(--brand); color: #fff;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
	font-size: clamp(26px, 3.4vw, 38px);
	margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-num);
	font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
	text-transform: uppercase; color: var(--brand);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px;
}
.section--ink .eyebrow { color: var(--cyan); }
.section--ink .eyebrow::before { background: var(--cyan); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 26px;
	border-radius: 999px; border: 1px solid transparent;
	font-size: 15px; font-weight: 600; letter-spacing: .01em;
	cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease),
		background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: linear-gradient(135deg, var(--brand) 0%, #5b79ff 100%);
	color: #fff;
	box-shadow: 0 12px 26px -14px rgba(62, 99, 249, .8);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 32px -14px rgba(62, 99, 249, .85); }

.btn--ghost {
	background: rgba(255, 255, 255, .04);
	color: #fff; border-color: rgba(255, 255, 255, .28);
	backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }

.btn--outline {
	background: transparent; color: var(--brand); border-color: var(--brand-line);
}
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14.5px; font-weight: 600; color: var(--brand);
}
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	background: rgba(7, 14, 31, .55);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: background-color .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
.site-header.is-solid {
	background: rgba(7, 14, 31, .92);
	border-bottom-color: rgba(255, 255, 255, .1);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	height: var(--header-h);
}
.site-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-brand img { height: 30px; width: auto; }
.site-brand__text { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav > ul > li { position: relative; }
.primary-nav a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: 999px;
	color: rgba(255, 255, 255, .78);
	font-size: 15px; font-weight: 500;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a {
	color: #fff; background: rgba(62, 99, 249, .32);
}
.primary-nav .menu-item-has-children > a::after {
	content: ""; width: 5px; height: 5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.sub-menu {
	position: absolute; top: calc(100% + 10px); left: 50%;
	transform: translate(-50%, 8px);
	min-width: 190px; padding: 8px !important; display: block !important;
	background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden;
	/* Hide is delayed by 110ms so a pointer crossing the 10px gap, or briefly
	   grazing the panel edge, never starts a fade-out that snaps back. Show
	   resets the delay to 0 (see the :hover rule) so opening stays instant. */
	transition:
		opacity .18s var(--ease) 110ms,
		visibility .18s var(--ease) 110ms,
		transform .24s var(--ease) 110ms;
	flex-direction: column !important;
	width: max-content; max-width: min(340px, calc(100vw - 32px));
}
/* Only childless dropdowns may scroll on short viewports: a panel that hosts a
   flyout must stay overflow:visible, otherwise the flyout gets clipped. */
.primary-nav > ul > li > .sub-menu:not(:has(.sub-menu)) {
	max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translate(-50%, 0);
	transition-delay: 0s;
}
/* Hover bridge #1: a top-level item's box is shorter than the header and its
   panel hangs 10px lower, so the pointer crossed dead space on the way down
   and :hover dropped — the panel flickered. This invisible strip fills the
   gap (li width only, so neighbouring items cannot cross-trigger). */
.primary-nav > ul > li.menu-item-has-children::after {
	content: ""; position: absolute; left: 0; right: 0; top: 100%;
	height: 12px;
}
/* Positioned so a third-level flyout anchors to its own parent entry, not to
   the top of the whole panel. */
.sub-menu li { position: relative; width: 100%; }
.sub-menu a {
	display: flex !important; width: 100%; border-radius: 9px;
	padding: 9px 14px !important; color: var(--text) !important; font-size: 14.5px;
	white-space: nowrap;
}
.sub-menu a:hover { background: var(--brand-soft); color: var(--brand-strong) !important; }

/* Flyouts at every depth beyond level 2 sit to the right of their own parent
   entry. top:-8px cancels the panel's own 8px padding so the first child link
   lines up with the hovered link. This matches both level-3 and level-4
   panels (a fourth .sub-menu is still a .sub-menu .sub-menu descendant). */
.primary-nav .sub-menu .sub-menu {
	top: -8px; left: calc(100% + 4px);
	transform: translate(10px, 0);
	max-width: min(300px, calc(100vw - 32px));
	z-index: 1;
}
/* Only LEAF flyout panels scroll on short viewports. A panel that hosts
   another flyout (关节机器人 → 垂直 / 水平) must stay overflow:visible or its
   child flyout is clipped. 360px ≈ vertical offset of the lowest parent entry
   in the 产品服务 dropdown. */
@media (max-height: 1000px) {
	.primary-nav .sub-menu .sub-menu:not(:has(.sub-menu)) {
		max-height: calc(100vh - 360px);
		overflow-y: auto;
	}
}
.primary-nav .sub-menu li:hover > .sub-menu,
.primary-nav .sub-menu li:focus-within > .sub-menu {
	transform: translate(0, 0);
}
/* Invisible bridge across the 4px gap, at any depth. It lives on the parent
   <li>, not on the panel, because a leaf panel may scroll (overflow would clip
   a negative-left pseudo-element). The child panel's z-index keeps the bridge
   off its clickable area. */
.primary-nav .sub-menu li.menu-item-has-children::after {
	content: ""; position: absolute; top: 0; left: 100%;
	width: 8px; height: 100%;
}
.primary-nav .sub-menu a { position: relative; }
.primary-nav .sub-menu .menu-item-has-children > a { padding-right: 30px !important; }
.primary-nav .sub-menu .menu-item-has-children > a::after {
	position: absolute; right: 13px; top: 50%;
	transform: translateY(-50%) rotate(-45deg);
	opacity: .45;
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px; color: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
	content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
	transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
	background: var(--ink); padding: 20px var(--gutter) 48px;
	overflow-y: auto; display: none;
}
.mobile-nav.is-open { display: block; animation: fade-slide .28s var(--ease); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.mobile-nav a {
	display: block; padding: 15px 4px; color: rgba(255, 255, 255, .9);
	font-size: 16px; font-weight: 500;
}
.mobile-nav .sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none;
	background: transparent; box-shadow: none; padding: 0 0 10px 12px !important;
}
.mobile-nav .sub-menu a { color: rgba(255, 255, 255, .62) !important; padding: 9px 4px !important; font-size: 15px; }
.mobile-nav .sub-menu a:hover { background: transparent; color: #fff !important; }
/* Second level doubles as a group label now that menus go three deep. */
.mobile-nav .sub-menu .menu-item-has-children > a { color: rgba(255, 255, 255, .82) !important; font-weight: 600; }
.mobile-nav .sub-menu .sub-menu { padding-left: 20px !important; }
.mobile-nav .sub-menu .sub-menu a { font-size: 14px; color: rgba(255, 255, 255, .52) !important; }
/* Fourth level (关节机器人 → 垂直 / 水平 → 型号): one more indent step. */
.mobile-nav .sub-menu .sub-menu .sub-menu { padding-left: 20px !important; }
.mobile-nav .sub-menu .sub-menu .sub-menu a { font-size: 13.5px; color: rgba(255, 255, 255, .48) !important; }
.mobile-nav__foot { margin-top: 28px; display: grid; gap: 12px; }
.mobile-nav__contact { color: rgba(255, 255, 255, .55); font-size: 14px; line-height: 2; }

body.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink);
	color: #fff;
	padding: calc(var(--header-h) + 56px) 0 72px;
	min-height: 640px;
	display: flex; align-items: center;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(900px 420px at 78% 18%, rgba(62, 99, 249, .42), transparent 70%),
		radial-gradient(700px 380px at 12% 82%, rgba(53, 194, 245, .18), transparent 72%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 78%);
	pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; animation: fade-slide .5s var(--ease); }
.hero-slide__grid {
	display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-slide__tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px; color: rgba(255, 255, 255, .82); letter-spacing: .04em;
	margin-bottom: 22px;
}
.hero-slide__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-slide h1 {
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.18; letter-spacing: -.02em; color: #fff;
	margin-bottom: 20px; font-weight: 700;
}
.hero-slide h1 em {
	font-style: normal;
	background: linear-gradient(100deg, #8fb0ff, var(--cyan));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-slide p {
	font-size: 17px; line-height: 1.85; color: rgba(255, 255, 255, .7);
	max-width: 540px; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { max-height: 360px; width: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.hero-visual::before {
	content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
	background: radial-gradient(circle, rgba(62, 99, 249, .35), transparent 68%);
	filter: blur(10px);
}
.hero-visual img { position: relative; z-index: 1; }

.hero-controls {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
	gap: 20px; flex-wrap: wrap;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dots button {
	width: 34px; height: 3px; border-radius: 3px; border: 0; padding: 0;
	background: rgba(255, 255, 255, .22); cursor: pointer; transition: all .25s var(--ease);
}
.hero-dots button[aria-selected="true"] { background: var(--cyan); width: 60px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
	width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
	color: #fff; display: grid; place-items: center; transition: all .2s var(--ease);
}
.hero-arrows button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }

/* capability strip under hero */
.cap-strip {
	position: relative; z-index: 3;
	margin-top: -34px;
}
.cap-strip__inner {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	overflow: hidden; border: 1px solid var(--line);
}
.cap-item {
	padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start;
	border-right: 1px solid var(--line); transition: background-color .2s var(--ease);
}
.cap-item:last-child { border-right: 0; }
.cap-item:hover { background: var(--bg-soft); }
.cap-item__icon {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px;
	display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand);
}
.cap-item h3 { font-size: 15.5px; margin: 0 0 4px; }
.cap-item p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.sol-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px 26px; color: var(--text);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
	overflow: hidden;
}
.sol-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
	background: linear-gradient(90deg, var(--brand), var(--cyan));
	transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.sol-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-line); color: var(--text); }
.sol-card:hover::before { transform: scaleX(1); }
.sol-card__icon {
	width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand); margin-bottom: 20px;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
.sol-card:hover .sol-card__icon { background: var(--brand); color: #fff; }
.sol-card h3 { font-size: 18px; margin-bottom: 10px; }
.sol-card p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0 0 18px; flex: 1; }
.sol-card .link-arrow { margin-top: auto; }

.prod-card {
	display: flex; flex-direction: column; background: var(--bg-card);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-line); color: var(--text); }
.prod-card__media {
	aspect-ratio: 16 / 10; background: linear-gradient(160deg, #f7f9ff, #eef2fd);
	display: grid; place-items: center; padding: 24px; border-bottom: 1px solid var(--line);
	/* 16:10 是行高基准：近方形图（如移动机器人全家福 593×632）受
	   max-height:190px 限制后是 190 高，加上下 padding 会把盒子撑到 238，
	   同排卡片比邻居高出 23px。裁掉溢出即可锁回 16:10，主体只切 4—5px。 */
	overflow: hidden;
}
.prod-card__media img { max-height: 190px; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }
.prod-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3 { font-size: 18.5px; margin-bottom: 10px; }
.prod-card__body p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0 0 18px; flex: 1; }
.prod-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--brand-soft); color: var(--brand-strong);
	font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

.case-card {
	background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; height: 100%;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.case-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	filter: saturate(.92); transition: transform .5s var(--ease), filter .4s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.06); filter: saturate(1.05); }
.case-card__body { padding: 22px 24px 24px; }
.case-card__body h3 { font-size: 17px; margin-bottom: 8px; }
.case-card__body p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 0; }

/* tech stack band */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack-item {
	border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
	padding: 28px 26px; background: rgba(255, 255, 255, .035);
	transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.stack-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); }
.stack-item__no {
	font-family: var(--font-num); font-size: 12px; letter-spacing: .16em;
	color: var(--cyan); margin-bottom: 16px; display: block;
}
.stack-item h3 { font-size: 20px; margin-bottom: 6px; color: #fff; }
.stack-item .stack-sub { font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.stack-item p { font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .66); margin: 0; }

/* about block */
.about-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-md); }
.about-media::after {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
	border-radius: var(--radius-lg); border: 1px solid var(--brand-line);
}
.about-body h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.about-body p { color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); }
.contact-list svg { flex: 0 0 18px; color: var(--brand); margin-top: 4px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand); }

/* CTA band */
.cta-band {
	position: relative; overflow: hidden; border-radius: var(--radius-lg);
	padding: 56px 56px; background: linear-gradient(120deg, #101a33 0%, #16244a 55%, #1d2f63 100%);
	color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px;
	flex-wrap: wrap;
}
.cta-band::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(600px 300px at 88% 20%, rgba(62, 99, 249, .55), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .68); margin: 0; font-size: 15.5px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
	position: relative; overflow: hidden; background: var(--ink); color: #fff;
	padding: calc(var(--header-h) + 64px) 0 64px;
}
.page-hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(720px 340px at 82% 10%, rgba(62, 99, 249, .4), transparent 70%),
		linear-gradient(to bottom, transparent 40%, rgba(7, 14, 31, .6));
}
.page-hero::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero--split .page-hero__inner {
	display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: rgba(255, 255, 255, .62); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 16px; }
/* Keep the trailing model code (MR-F4-3000 …) on a single line. */
.page-hero h1 .hero-title__code { white-space: nowrap; }
.page-hero .lead { font-size: 16.5px; line-height: 1.9; color: rgba(255, 255, 255, .72); max-width: 640px; margin-bottom: 28px; }
.page-hero__visual img { max-height: 300px; margin: 0 auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5)); }

/* ---------- Doc tabs ---------- */
.doc-tabs {
	position: sticky; top: var(--header-h); z-index: 40;
	background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.doc-tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.doc-tabs__inner::-webkit-scrollbar { display: none; }
.doc-tabs a {
	position: relative; padding: 18px 18px; font-size: 15px; font-weight: 600;
	color: var(--muted); white-space: nowrap;
}
.doc-tabs a::after {
	content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px;
	background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease);
}
.doc-tabs a:hover { color: var(--text); }
.doc-tabs a.is-active { color: var(--brand); }
.doc-tabs a.is-active::after { transform: scaleX(1); }

/* ---------- Doc sections ---------- */
.doc-section { padding: 72px 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.doc-section:nth-of-type(even) { background: var(--bg-soft); }
.doc-section h2 {
	font-size: clamp(22px, 2.6vw, 30px); text-align: center; margin-bottom: 40px;
}
.doc-section h2::after {
	content: ""; display: block; width: 42px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--brand), var(--cyan)); margin: 16px auto 0;
}
.doc-body { max-width: 980px; margin: 0 auto; }
.doc-body > p { font-size: 15.5px; color: var(--muted); line-height: 1.95; }
.doc-figure { margin: 0 0 32px; }
.doc-figure img {
	width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
	background: #fff; box-shadow: var(--shadow-sm);
}
.doc-figure figcaption { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 12px; }

.card-grid { display: grid; gap: 20px; margin-bottom: 12px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mini-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.mini-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.mini-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 8px; }
.mini-card p:last-child { margin-bottom: 0; }
.mini-card ul { margin: 0; padding-left: 0; list-style: none; }
.mini-card ul li {
	position: relative; padding-left: 18px; font-size: 14px; color: var(--muted);
	line-height: 1.9;
}
.mini-card ul li::before {
	content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px;
	border-radius: 50%; background: var(--brand-line);
}
.mini-card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mini-card--media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mini-card--media .mini-card__pad { padding: 22px 24px 24px; }
.mini-card--split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; padding: 0; overflow: hidden; align-items: stretch; }
.mini-card--split .mini-card__pad { padding: 34px 32px; }
.mini-card--split img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 24px; }
.spec-table th, .spec-table td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.spec-table th { background: var(--bg-soft); font-weight: 600; color: var(--text); }
.spec-table tr:hover td { background: #fafbff; }

/* ---------- Article / prose ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 64px 0 96px; }
.prose { font-size: 16px; line-height: 1.95; color: #26324a; max-width: 100%; min-width: 0; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .7em; line-height: 1.4; }
.prose h1 { font-size: 26px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose h4 { font-size: 16.5px; }
.prose p { margin: 0 0 1.3em; }
.prose img { border-radius: 12px; margin: 1.4em auto; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--brand);
	background: var(--brand-soft); border-radius: 0 10px 10px 0; color: #34406b;
}
.prose code {
	background: #f2f5fb; padding: 2px 7px; border-radius: 5px;
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; color: #2a4fe0;
}
.prose pre {
	background: #0d1730; color: #dbe3f7; padding: 20px 22px; border-radius: 12px;
	overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 1.6em 0;
}
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; }
.prose th { background: var(--bg-soft); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.article-head { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; color: var(--muted-2); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.article-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.side-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.side-card h3 { font-size: 15px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: block; font-size: 14px; color: var(--text); line-height: 1.6; }
.side-list a:hover { color: var(--brand); }
.side-list .date { display: block; font-size: 12px; color: var(--muted-2); margin-top: 3px; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.article-nav a {
	display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
	font-size: 14px; color: var(--text); transition: all .2s var(--ease);
}
.article-nav a:hover { border-color: var(--brand); background: var(--brand-soft); }
.article-nav .label { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.article-nav .next { text-align: right; }

/* ---------- Listing (archive) ---------- */
.list-head {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	flex-wrap: wrap; margin-bottom: 36px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chips a {
	padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
	font-size: 14px; color: var(--muted); background: #fff; transition: all .2s var(--ease);
}
.filter-chips a:hover { border-color: var(--brand-line); color: var(--brand); }
.filter-chips a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.post-list { display: grid; gap: 4px; }
.post-row {
	display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
	padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.post-row:hover { background: #fafbff; }
.post-row h3 { font-size: 16.5px; margin: 0 0 6px; font-weight: 600; }
.post-row h3 a { color: var(--text); }
.post-row h3 a:hover { color: var(--brand); }
.post-row p { font-size: 13.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row time { font-size: 13px; color: var(--muted-2); white-space: nowrap; font-family: var(--font-num); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty-state { text-align: center; padding: 80px 0; color: var(--muted); }
.empty-state h2 { font-size: 22px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 72px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 28px; margin-bottom: 20px; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .5); margin: 0 0 18px; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, .58); font-size: 13.5px; display: block; line-height: 1.6; }
.footer-col a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.7; }
.footer-contact svg { flex: 0 0 16px; color: var(--brand); margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 26px;
	display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
	font-size: 12.5px; color: rgba(255, 255, 255, .38);
}
.footer-bottom a { color: rgba(255, 255, 255, .58); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .sep { opacity: .35; }
.footer-bottom .police { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .police img { height: 15px; width: 15px; }

/* ---------- Modal / inquiry form ---------- */
.modal {
	position: fixed; inset: 0; z-index: 300; display: none;
	align-items: center; justify-content: center; padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 9, 20, .68); backdrop-filter: blur(6px); }
.modal__dialog {
	position: relative; z-index: 1; width: 100%; max-width: 880px;
	background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
	max-height: calc(100vh - 48px); overflow-y: auto; animation: pop .28s var(--ease);
}
.modal__grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.modal__aside {
	background: linear-gradient(160deg, #0d1730 0%, #1a2a55 100%);
	color: #fff; padding: 40px 34px; border-radius: 20px 0 0 20px;
	position: relative; overflow: hidden;
}
.modal__aside::after {
	content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px;
	border-radius: 50%; background: radial-gradient(circle, rgba(62, 99, 249, .5), transparent 70%);
}
.modal__aside h3 { color: #fff; font-size: 19px; margin-bottom: 12px; position: relative; z-index: 1; }
.modal__aside p { font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .62); position: relative; z-index: 1; }
.modal__aside .contact-list { position: relative; z-index: 1; margin-top: 22px; }
.modal__aside .contact-list li { color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.modal__aside .contact-list svg { color: var(--cyan); }
.modal__aside .contact-list a { color: rgba(255, 255, 255, .82); }
.modal__body { padding: 40px 36px; }
.modal__body h3 { font-size: 21px; margin-bottom: 6px; }
.modal__body .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.modal__close {
	position: absolute; right: 16px; top: 16px; z-index: 3;
	width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
	background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label .req { color: #e5484d; margin-left: 2px; }
.field input, .field textarea, .field select {
	width: 100%; padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: var(--text);
	background: #fbfcff; border: 1px solid var(--line); border-radius: 10px;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: #a8b3c7; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; line-height: 1.7; }
.form-msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; }
.form-msg.is-error { display: block; background: #fff1f1; color: #b42318; border: 1px solid #ffd5d5; }
.form-msg.is-success { display: block; background: #effaf3; color: #067647; border: 1px solid #c7ecd6; }

/* toast */
.toast {
	position: fixed; z-index: 400; right: 24px; bottom: 24px;
	background: #0f1a2e; color: #fff; padding: 14px 20px; border-radius: 12px;
	box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: center;
	transform: translateY(20px); opacity: 0; pointer-events: none;
	transition: all .3s var(--ease);
}
.toast.is-show { transform: translateY(0); opacity: 1; }
.toast svg { color: #4ade80; }

/* back to top */
.to-top {
	position: fixed; right: 24px; bottom: 88px; z-index: 90;
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
	background: #fff; color: var(--muted); cursor: pointer;
	display: grid; place-items: center; box-shadow: var(--shadow-md);
	opacity: 0; visibility: hidden; transition: all .28s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--brand); border-color: var(--brand-line); }

/* ---------- Motion ---------- */
@keyframes fade-slide {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
@keyframes pop {
	from { opacity: 0; transform: scale(.97) translateY(10px); }
	to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Carousel (cases) ---------- */
.carousel { position: relative; }
.carousel__track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
	flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
}
.carousel__nav { display: flex; gap: 10px; }
.carousel__nav button {
	width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
	background: #fff; border: 1px solid var(--line); color: var(--muted);
	display: grid; place-items: center; transition: all .2s var(--ease);
}
.carousel__nav button:hover { border-color: var(--brand); color: var(--brand); }
.carousel__nav button:disabled { opacity: .4; cursor: not-allowed; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.carousel-head .section-head { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.stack-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
	.footer-brand { grid-column: 1 / -1; }
	/* minmax(0,1fr): a wide table inside .prose must scroll in its own box,
	   not stretch the whole column past the viewport. */
	.article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.article-side { position: static; }
}

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.primary-nav, .header-cta .btn { display: none; }
	.nav-toggle { display: inline-flex; }
	.hero { min-height: auto; padding: calc(var(--header-h) + 44px) 0 64px; }
	.hero-slide__grid { grid-template-columns: 1fr; gap: 32px; }
	.hero-visual { order: -1; }
	.hero-visual img { max-height: 260px; }
	.hero-slide p { font-size: 15.5px; }
	.cap-strip { margin-top: 0; }
	.cap-strip__inner { grid-template-columns: repeat(2, 1fr); }
	.cap-item { border-bottom: 1px solid var(--line); }
	.cap-item:nth-child(2n) { border-right: 0; }
	.cap-item:nth-last-child(-n+2) { border-bottom: 0; }
	.section { padding: 68px 0; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.about-split { grid-template-columns: 1fr; gap: 36px; }
	.about-media::after { display: none; }
	.page-hero--split .page-hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.page-hero__visual { order: -1; }
	.page-hero__visual img { max-height: 200px; }
	.card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.modal__grid { grid-template-columns: 1fr; }
	.modal__aside { border-radius: 20px 20px 0 0; padding: 30px 26px; }
	.modal__body { padding: 28px 24px 32px; }
	.carousel__track > * { flex: 0 0 calc((100% - 24px) / 2); }
	.cta-band { padding: 40px 32px; }
	.doc-section { padding: 56px 0; }
	.mini-card--split { grid-template-columns: 1fr; }
	.mini-card--split img { order: -1; min-height: 180px; }
	.post-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 640px) {
	:root { --gutter: 18px; }
	body { font-size: 15.5px; }
	.grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
	.cap-strip__inner { grid-template-columns: 1fr; }
	.cap-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
	.cap-item:last-child { border-bottom: 0; }
	.hero-slide h1 { font-size: 28px; }
	.hero-actions .btn { flex: 1 1 auto; }
	.hero-controls { margin-top: 36px; }
	.carousel__track > * { flex: 0 0 86%; }
	.card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { font-size: 12px; }
	.article-nav { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 32px; }
	.cta-band { padding: 32px 24px; border-radius: var(--radius); }
	.modal { padding: 0; }
	.modal__dialog { max-height: 100vh; border-radius: 0; min-height: 100vh; }
	.modal__aside { border-radius: 0; }
	.to-top { right: 16px; bottom: 76px; }
	.toast { right: 16px; left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .doc-tabs, .to-top, .hero-controls, .cta-band { display: none !important; }
	body { color: #000; }
	a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   Migrated document content (solutions / products / about)
   The importer emits a small semantic set: .doc-section > h2 + .doc-grid /
   .doc-card / .doc-table / .doc-figure. Everything below styles that set so
   legacy UIKit markup renders as native theme components.
   ========================================================================== */

.doc-body-wrap .doc-section {
	padding: 72px 0;
	scroll-margin-top: calc(var(--header-h) + 72px);
}
.doc-body-wrap .doc-section:nth-of-type(even) { background: var(--bg-soft); }

.doc-body-wrap .doc-section > * {
	width: min(1120px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.doc-body-wrap .doc-section > h2 {
	text-align: center;
	margin-bottom: 40px;
	font-size: clamp(22px, 2.6vw, 30px);
}
.doc-body-wrap .doc-section > h2::after {
	content: "";
	display: block; width: 42px; height: 3px; border-radius: 3px;
	background: linear-gradient(90deg, var(--brand), var(--cyan));
	margin: 16px auto 0;
}

.doc-body-wrap p { font-size: 15.5px; line-height: 1.95; color: #33415c; margin: 0 0 1em; }
.doc-body-wrap ul, .doc-body-wrap ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc-body-wrap li { font-size: 15px; line-height: 1.9; color: #33415c; margin-bottom: .35em; }
.doc-body-wrap h3 { font-size: 18.5px; margin: 0 0 12px; }
.doc-body-wrap h4 { font-size: 16px; }

/* Grid of cards */
.doc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

/* Two-column variant for four-item value grids (软件定制开发外包). */
.doc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-card__body > img.value-icon {
	width: 56px; height: 56px; object-fit: contain;
	margin: 0 0 14px; display: block;
}
@media (max-width: 720px) {
	.doc-grid--two { grid-template-columns: minmax(0, 1fr); }
}

/* Card: text + optional media, side by side */
.doc-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.doc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-line); }

.doc-card:has(.doc-card__media) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: stretch;
}
.doc-card__body { padding: 30px 30px 26px; }
.doc-card__body > :last-child { margin-bottom: 0; }
.doc-card__body ul { list-style: none; padding-left: 0; }
.doc-card__body ul li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--muted); }
.doc-card__body ul li::before {
	content: ""; position: absolute; left: 0; top: 11px;
	width: 7px; height: 7px; border-radius: 2px;
	background: var(--brand-line);
}
.doc-card__media {
	background: var(--bg-soft);
	display: flex; align-items: center; justify-content: center;
	min-height: 220px; padding: 18px;
}
.doc-card__media .doc-figure { margin: 0; width: 100%; }
.doc-card__media img {
	border: 0; box-shadow: none; border-radius: 10px; background: transparent;
	max-height: 320px; width: auto; margin: 0 auto; object-fit: contain;
}
.doc-card__media figcaption { display: none; }

/* Card split into three equal text columns (方案特色: 适用范围 / 功能特点 / 客户价值) */
.doc-card--triple {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
}
.doc-card--triple > .doc-card__body {
	padding: 34px 34px 30px;
	border-left: 1px solid var(--line);
}
.doc-card--triple > .doc-card__body:first-child { border-left: 0; }
.doc-card--triple > .doc-card__body > h3:first-child { margin-top: 0; }
.doc-card--triple > .doc-card__body > p:last-child { margin-bottom: 0; }

/* Stacked card: text on top, full-width figure underneath (体系结构) */
.doc-card:has(.doc-card__media).doc-card--stack { grid-template-columns: minmax(0, 1fr); }
.doc-card--stack > .doc-card__media {
	border-top: 1px solid var(--line);
	padding: 0;
	min-height: 0;
	min-width: 0;
	display: block;
	order: 0;
}
.doc-card--stack > .doc-card__media .doc-figure { margin: 0; width: 100%; min-width: 0; }
.doc-card--stack > .doc-card__media img {
	width: 100%;
	max-width: 100%;
	max-height: none;
	height: auto;
	border-radius: 0;
	display: block;
}

/* Tables */
.doc-table { overflow-x: auto; margin: 0 0 28px; border-radius: 12px; border: 1px solid var(--line); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.doc-table th, .doc-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.doc-table th { background: var(--bg-soft); font-weight: 600; }
.doc-table tr:last-child td { border-bottom: 0; }

/* Figures inside document body */
.doc-body-wrap .doc-figure img { border-radius: 12px; }

/* Layout fixes for pages that nest a grid inside a section */
.section .article-layout { padding-top: 0; padding-bottom: 0; }
.section .post-list:first-child { margin-top: 0; }

@media (max-width: 900px) {
	.doc-card:has(.doc-card__media) { grid-template-columns: minmax(0, 1fr); }
	.doc-card__media { order: -1; min-height: 180px; }
	.doc-card--triple { grid-template-columns: minmax(0, 1fr); }
	.doc-card--triple > .doc-card__body { padding: 26px 24px 24px; border-left: 0; border-top: 1px solid var(--line); }
	.doc-card--triple > .doc-card__body:first-child { border-top: 0; }
	.doc-body-wrap .doc-section { padding: 56px 0; }
}

/* ---------- Post card (tech centre / topical lists) ---------- */
.mini-card--post {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 100%;
}
.mini-card--post .chip { align-self: flex-start; margin-bottom: 14px; }
.mini-card--post h3 {
	font-size: 16.5px;
	line-height: 1.55;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mini-card--post p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mini-card--post .link-arrow { margin-top: auto; padding-top: 18px; }

/* Case study hero artwork */
.case-figure { margin: 0 0 32px; }
.case-figure img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--bg-soft);
}

/* About-page showcase card: let the campus photo fill its column edge to edge
   instead of floating inside the padded media box. */
.doc-card--showcase .doc-card__media {
	padding: 0;
	min-height: 280px;
	min-width: 0;
	overflow: hidden;
	background: var(--bg-soft);
}
.doc-card--showcase .doc-card__media .doc-figure {
	display: flex;
	width: 100%;
	height: 100%;
	margin: 0;
}
.doc-card--showcase .doc-card__media img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center 62%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
@media (max-width: 900px) {
	.doc-card--showcase .doc-card__media { min-height: 220px; }
}

/* ==========================================================================
   Product spec sheet
   Blocks used by the product detail body: key-metric band, overview split,
   advantage cards, grouped spec tables, use-case chips and order info.
   ========================================================================== */

/* Section kicker above the centred h2 */
.doc-body-wrap .doc-kicker { text-align: center; margin: 0 0 10px; }
.doc-body-wrap .doc-kicker .eyebrow { margin-bottom: 0; }

/* Product renders are tall portraits — give them more room in the split hero. */
.single-product .page-hero__visual img { max-height: 400px; }
@media (max-width: 900px) {
	.single-product .page-hero__visual img { max-height: 260px; }
}

/* Legacy grids whose cells were emitted without a .doc-card wrapper */
.doc-grid > .doc-card__body {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

/* A card that only holds a figure must not reserve an empty text column. */
.doc-card:has(.doc-card__media):not(:has(.doc-card__body)) { grid-template-columns: minmax(0, 1fr); }

/* ---- Key metrics strip ---- */
.doc-body-wrap > .spec-band {
	width: min(1120px, calc(100% - 48px));
	margin: 56px auto 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.spec-band__item { padding: 26px 18px 24px; text-align: center; border-left: 1px solid var(--line); }
.spec-band__item:first-child { border-left: 0; }
.spec-band__value {
	font-family: var(--font-num);
	font-size: clamp(23px, 2.6vw, 33px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}
.spec-band__value small {
	font-size: .46em;
	font-weight: 600;
	color: var(--muted);
	margin-left: 4px;
	letter-spacing: 0;
}
.doc-body-wrap .spec-band__label { margin: 9px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---- Overview split ---- */
.overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
	gap: 44px;
	align-items: start;
}
.doc-body-wrap p.overview-lead {
	font-size: 17.5px;
	line-height: 1.95;
	color: #1d2b47;
	font-weight: 500;
	margin-bottom: 18px;
}
.overview-aside {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 26px 26px 14px;
}
.overview-aside h3 {
	font-size: 13px;
	font-family: var(--font-num);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 16px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 14px;
	font-size: 14.5px;
	line-height: 1.75;
	color: #33415c;
}
.check-list li:last-child { margin-bottom: 8px; }
.check-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 9px;
	width: 9px; height: 9px;
	border-radius: 2px;
	background: linear-gradient(135deg, var(--brand), var(--cyan));
}

/* ---- Advantage cards ---- */
.adv-grid { counter-reset: adv; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adv-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 28px 24px;
	counter-increment: adv;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.adv-card::before {
	content: counter(adv, decimal-leading-zero);
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-strong);
	font-family: var(--font-num);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	transition: background .25s var(--ease), color .25s var(--ease);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.adv-card:hover::before { background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; }
.doc-body-wrap .adv-card h3 { font-size: 17px; margin-bottom: 10px; }
.doc-body-wrap .adv-card p { font-size: 14.5px; line-height: 1.85; color: var(--muted); margin: 0; }

/* ---- Grouped spec tables ---- */
.spec-groups { display: grid; gap: 24px; }
.spec-group {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.spec-group__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #f8faff, #fff);
}
.doc-body-wrap .spec-group__head h3 {
	display: flex; align-items: center; gap: 10px;
	margin: 0; font-size: 15.5px; letter-spacing: -.005em;
}
.spec-group__head h3::before {
	content: ""; width: 4px; height: 15px; border-radius: 2px;
	background: linear-gradient(180deg, var(--brand), var(--cyan));
}
.spec-group__head span {
	font-family: var(--font-num);
	font-size: 11.5px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--muted-2);
	white-space: nowrap;
}
.spec-group table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.spec-group tr + tr { border-top: 1px solid var(--line); }
.spec-group th, .spec-group td {
	padding: 13px 22px;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}
.spec-group th { width: 19%; font-weight: 400; color: var(--muted); background: #fbfcff; }
.spec-group td {
	width: 31%;
	color: #1d2b47;
	font-weight: 600;
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.005em;
}
.spec-group td + th { border-left: 1px solid var(--line); }
.spec-group tr:hover td { background: #fafbff; }
.spec-group tr:hover th { background: #f6f9ff; }
.spec-group td.spec-wide { width: auto; }

/* ---- Note callout ---- */
.doc-body-wrap .note-callout {
	margin: 28px auto 0;
	padding: 16px 22px;
	border-left: 3px solid var(--brand);
	border-radius: 0 12px 12px 0;
	background: var(--bg-soft);
	font-size: 14px;
	line-height: 1.85;
	color: #46577a;
}
.note-callout strong { color: var(--text); }

/* ---- Use-case chips ---- */
.industry-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 8px; }
.industry-row .chip {
	padding: 10px 22px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--text);
	font-size: 14.5px;
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}
.doc-body-wrap .industry-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 22px auto 0; max-width: 720px; }

/* 原文数据矛盾的照录说明，跟在参数表后面，弱化处理但不隐藏。
   注意：.doc-section > * 用 margin-left/right:auto 做 1120px 居中，这里绝不能
   用 margin 简写把左右清成 0，否则说明文字会贴到视口最左侧。
   上下 32px 与 .doc-section > * + * 的既有间距保持一致。 */
.doc-body-wrap .spec-note {
	margin: 32px auto 0;
	font-size: 13px;
	line-height: 1.8;
	color: var(--muted-2);
}

/* ---- Order info ---- */
.order-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}
.kit-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 26px 18px;
}
.doc-body-wrap .kit-card h3 { font-size: 16px; margin-bottom: 6px; }
.kit-card > p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.kit-row {
	display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
	padding: 13px 0;
	border-top: 1px dashed var(--line);
	font-size: 14.5px;
	line-height: 1.6;
}
.kit-row:first-of-type { border-top: 0; }
.kit-row span:first-child { color: #1d2b47; font-weight: 500; min-width: 0; }
.kit-row .kit-code {
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	min-width: 0; max-width: 65%;
	white-space: normal; overflow-wrap: anywhere; text-align: right;
}
.kit-row .kit-code a.link-arrow { display: inline; white-space: normal; overflow-wrap: anywhere; }
.kit-row .kit-code em { font-style: normal; display: block; font-size: 12.5px; color: var(--muted-2); text-align: right; }

@media (max-width: 1000px) {
	.adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.overview-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 720px) {
	.doc-body-wrap > .spec-band {
		margin-top: 36px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.spec-band__item { padding: 20px 14px 18px; }
	.spec-band__item:nth-child(odd) { border-left: 0; }
	.spec-band__item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.adv-grid { grid-template-columns: minmax(0, 1fr); }
	.adv-card { padding: 24px 22px 22px; }
	.order-grid { grid-template-columns: minmax(0, 1fr); }
	.spec-group th, .spec-group td { padding: 11px 16px; font-size: 13.5px; }
	.kit-card { padding: 22px 20px 14px; }

	/* Spec tables: fold each label/value pair onto its own line. */
	.spec-group table, .spec-group tbody { display: block; }
	.spec-group tr { display: grid; grid-template-columns: 40% 60%; }
	.spec-group th, .spec-group td { width: auto; padding-left: 14px; padding-right: 14px; }
	.spec-group td + th { border-left: 0; }
	.spec-group th:nth-child(3), .spec-group td:nth-child(4) { border-top: 1px solid var(--line); }
	.spec-group td.spec-wide { border-top: 0; }
}

/* ---------- Photo products (scene renders on their own backdrop) ---------- */
/* Cut-out renders sit centred on the light card backdrop; photographed
   products fill the same frame edge to edge instead.
   `overflow: hidden` keeps the 16/10 frame authoritative: a near-square
   source (the mobile-robot family shot is 592×612) would otherwise push the
   media box to its intrinsic ratio, making that card ~150px taller than its
   neighbours and stretching the whole row. `contain` on a white backdrop then
   shows such a shot whole — its own studio-white edges blend into the frame,
   where `cover` would have cut the robots off mid-body. 16/10 photos still
   fill the frame, so the product pages are unaffected. */
.prod-card__media--photo { display: block; padding: 0; background: #fff; overflow: hidden; }
.prod-card__media--photo img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.prod-card__media--photo:hover img { transform: scale(1.03); }

.page-hero__visual--photo img {
	max-height: 320px;
	width: auto;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(6, 10, 18, .55);
	outline: 1px solid rgba(255, 255, 255, .10);
	outline-offset: -1px;
	filter: none;
}
.single-product .page-hero__visual--photo img { max-height: 340px; }

@media (max-width: 900px) {
	.page-hero__visual--photo img,
	.single-product .page-hero__visual--photo img { max-height: 220px; }
}

/* ---------- Long-form article extras (news posts) ---------- */
/* Key figures strip: three headline numbers above the fold. */
.article-figures {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px; margin: 2em 0 2.2em;
	background: var(--line); border: 1px solid var(--line);
	border-radius: 14px; overflow: hidden;
}
.article-figures > div { background: var(--bg-soft); padding: 22px 20px; }
.article-figures strong {
	display: block; font-family: var(--font-num); font-size: 25px; line-height: 1.2;
	color: var(--brand-strong); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.article-figures span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* Wide data tables scroll inside their own box on narrow screens. */
.prose .table-wrap { margin: 1.7em 0 .9em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { margin: 0; min-width: 660px; }
.prose .table-wrap th:first-child, .prose .table-wrap td:first-child { white-space: nowrap; }
.prose .table-wrap td, .prose .table-wrap th { font-variant-numeric: tabular-nums; }
.prose .article-caption {
	margin: -.2em 0 1.6em; font-size: 12.5px; line-height: 1.75; color: var(--muted-2);
}
.prose .article-sources {
	margin-top: 2.4em; padding-top: 20px; border-top: 1px solid var(--line);
	font-size: 13px; line-height: 1.9; color: var(--muted);
}
.prose .article-sources strong { color: var(--text); }

/* 表格类截图（开源/闭源模型汇总、指令数据集清单）：正文列只有约 800px，
   1080px 宽的表缩到 70% 后字号过小。窄屏改为固定宽度 + 横向滑动，
   保证字能看清；图注在滚动容器外，滑动时不跟着跑。 */
.prose .doc-figure--table .doc-figure__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .doc-figure--table img { max-width: none; }
@media (max-width: 900px) {
	.prose .doc-figure--table img { width: 720px; }
	.prose .doc-figure--table figcaption::after {
		content: "（左右滑动查看完整表格）";
		display: block; margin-top: 4px; font-size: 12px; color: var(--muted-2);
	}
}

@media (max-width: 720px) {
	.article-figures { grid-template-columns: minmax(0, 1fr); }
	.article-figures > div + div { border-top: 1px solid var(--line); }
	.article-figures strong { font-size: 22px; }
}

/* Multi-block doc sections: keep breathing room between stacked components
   (a section that holds both a grid/table and a figure, for example). */
.doc-body-wrap .doc-section > *:not(h2) + *:not(h2) { margin-top: 32px; }

/* ---------- Service detail closing CTA (移动机器人实施服务) ----------
   Scoped to .doc-body-wrap so the shared .cta-band (used by doc-single.php
   below every detail page) keeps its own layout. The higher specificity also
   keeps the dark card from inheriting the light document text colours. */
.doc-body-wrap .service-cta {
	position: relative; overflow: hidden;
	border-radius: var(--radius-lg);
	padding: 48px 52px;
	background: linear-gradient(120deg, #101a33 0%, #16244a 55%, #1d2f63 100%);
	color: #fff;
}
.doc-body-wrap .service-cta::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(600px 300px at 88% 20%, rgba(62, 99, 249, .55), transparent 70%);
}
.doc-body-wrap .service-cta > * { position: relative; z-index: 1; }
.doc-body-wrap .service-cta h3 {
	color: #fff; font-size: clamp(21px, 2.4vw, 28px);
	text-align: left; margin: 0 0 12px;
}
.doc-body-wrap .service-cta p {
	color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.9;
	margin: 0 0 24px; max-width: 780px;
}
.doc-body-wrap .service-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-body-wrap .service-cta .btn { white-space: normal; text-align: center; }
@media (max-width: 640px) {
	.doc-body-wrap .service-cta { padding: 32px 24px; }
	.doc-body-wrap .service-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.doc-body-wrap .service-cta .btn:hover { transform: none; }
}

/* ---------- 方案概述卡片 (/solutions/logistics/ 与 /solutions/education/) ----------
   Reuses the product-archive .prod-card component: light gradient equipment
   area, white body, 2-line description, solution_cat chip and "查看详情 →".
   Scoped to .doc-body-wrap .solution-overview so the generic migrated-document
   typography (.doc-body-wrap p / h3) cannot override the card text. */
.doc-body-wrap .solution-overview { align-items: stretch; }
.doc-body-wrap .solution-overview .prod-card { height: 100%; }
.doc-body-wrap .solution-overview .prod-card__media { aspect-ratio: 1.9 / 1; }
.doc-body-wrap .solution-overview .prod-card__media img {
	width: auto; height: auto; max-width: 100%; max-height: 200px;
	object-fit: contain;
}
.doc-body-wrap .solution-overview .prod-card__body { padding: 26px 28px 24px; }
.doc-body-wrap .solution-overview .prod-card__body h3 {
	font-size: 18.5px; line-height: 1.5; margin: 0 0 10px;
}
.doc-body-wrap .solution-overview .prod-card__body p {
	font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 20px;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	overflow: hidden;
}
.doc-body-wrap .solution-overview .prod-card__meta { margin-top: auto; gap: 12px; }
.doc-body-wrap .solution-overview .prod-card__meta .link-arrow { flex: none; }
.doc-body-wrap .solution-overview .link-arrow::after {
	content: "→"; display: inline-block;
	transition: transform .2s var(--ease);
}
.doc-body-wrap .solution-overview .prod-card:hover .link-arrow::after { transform: translateX(4px); }
@media (max-width: 640px) {
	.doc-body-wrap .solution-overview .prod-card__body { padding: 24px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.doc-body-wrap .solution-overview .prod-card:hover .link-arrow::after { transform: none; }
	.doc-body-wrap .solution-overview .prod-card:hover { transform: none; }
}

/* ---------- 单方案页 (/solutions/education/) ----------
   The source page lists only one solution. Keep the card at the same width
   as a two-column card and centre it, instead of leaving half the grid empty. */
.doc-body-wrap .solution-overview--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 560px;
	margin-inline: auto;
}
.doc-body-wrap .solution-overview--single .prod-card__media img {
	width: 220px; height: 220px; max-height: 220px;
}
@media (max-width: 640px) {
	.doc-body-wrap .solution-overview--single .prod-card__media img {
		width: 190px; height: 190px; max-height: 190px;
	}
}

/* ---------- 医药大模型产品架构图 (/solutions/medical-gpt/) ----------
   The generic .doc-card__media box is built for small illustrations: it caps
   images at 320px tall and centres them in a half-width grid column, which
   shrank the 1920x1590 HD diagram to ~387x320 on desktop. This variant keeps
   the full content width and the natural 1920:1590 ratio (no crop, no cap,
   no caption). */
.doc-body-wrap .doc-card.doc-card--figure-full {
	grid-template-columns: minmax(0, 1fr);
}
.doc-body-wrap .doc-card--figure-full > .doc-card__media {
	display: block;
	min-height: 0;
	min-width: 0;
	padding: 0;
	background: #fff;
	overflow: hidden;
}
.doc-body-wrap .doc-card--figure-full .doc-figure { margin: 0; width: 100%; min-width: 0; }
.doc-body-wrap .doc-card--figure-full .doc-card__media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
}
@media (max-width: 900px) {
	.doc-body-wrap .doc-card--figure-full > .doc-card__media { min-height: 0; }
}

/* ---------- Machine-vision DS5000 feature figure grid ----------
   The four source illustrations have very different aspect ratios (a tall
   906x1326 cut-out, a 1600x1007 render and two wide comparison strips).
   A fixed-height contain box keeps the grid tidy without cropping or
   stretching any of them. Only used by #highlights on the DS5000 page. */
.doc-body-wrap .mv-figure-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}
.doc-body-wrap .mv-figure-grid .doc-figure {
	margin: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.doc-body-wrap .mv-figure-grid .doc-figure img {
	width: 100%;
	height: 280px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
}
.doc-body-wrap .mv-figure-grid .doc-figure figcaption { margin-top: 10px; }
/* Four highlight cards read better as 2x2 next to the 2x2 figure grid.
   .adv-grid declares 3 columns later in this file, so a scoped selector
   with higher specificity is required to override it. */
.doc-body-wrap .doc-grid.mv-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Keep the product model on one line so the型号 is not split into two words. */
.doc-body-wrap .mv-product-list td:first-child { white-space: nowrap; font-weight: 600; }

@media (max-width: 720px) {
	.doc-body-wrap .mv-figure-grid { grid-template-columns: minmax(0, 1fr); }
	.doc-body-wrap .mv-figure-grid .doc-figure img { height: 220px; }
	.doc-body-wrap .doc-grid.mv-adv-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Batch machine-vision series pages ----------------------------------
   Some series publish hundreds of models (工业面阵相机全系列 = 730). Keep the
   full official list available but bounded, with a sticky header, so the page
   does not grow by tens of thousands of pixels. Dimension drawings are tall
   portraits; cap them instead of letting them fill the whole content width. */
.doc-body-wrap .doc-table.mv-table-scroll { max-height: 560px; overflow-y: auto; }
.doc-body-wrap .doc-table.mv-table-scroll thead th { position: sticky; top: 0; z-index: 1; }

/* The hero/product shot is a small transparent PNG. The generic
   .doc-figure img { width:100% } would stretch it into a 1120px white slab,
   so keep it at its intrinsic size, centred and borderless. */
.doc-body-wrap .doc-figure.mv-product-shot { max-width: 360px; margin: 32px auto 0; }
.doc-body-wrap .doc-figure.mv-product-shot img {
	width: 100%; height: auto;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.doc-body-wrap .doc-figure.mv-product-shot figcaption { margin-top: 8px; }
/* CTU 料箱机器人：双视角营销渲染比竖幅整机图宽，单独放宽显示。 */
.doc-body-wrap .doc-figure.mv-product-shot.ctu-shot--wide { max-width: 640px; }
@media (max-width: 640px) {
	.doc-body-wrap .doc-figure.mv-product-shot.ctu-shot--wide { max-width: 100%; }
}

/* Dimension drawings are tall portraits; bound both width and height. */
.doc-body-wrap .doc-figure.mv-dimension { max-width: 780px; margin-left: auto; margin-right: auto; }
.doc-body-wrap .doc-figure.mv-dimension img {
	width: 100%; height: auto; max-height: 620px; object-fit: contain;
}
@media (max-width: 640px) {
	.doc-body-wrap .doc-table.mv-table-scroll { max-height: 420px; }
	.doc-body-wrap .doc-figure.mv-dimension img { max-height: 380px; }
	.doc-body-wrap .doc-figure.mv-product-shot { max-width: 260px; }
}

/* 新闻文章的数据卡片：默认 3 列，四张卡时改 2×2，避免最后一行只落一张留白。 */
.prose .article-figures--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
	.prose .article-figures--four { grid-template-columns: minmax(0, 1fr); }
}
