/* =========================================================
   TTA 新版官网 · 基础骨架(所有主题共享)
   主题通过覆盖下方 CSS 变量 + theme-*.css 做差异化
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #454a55;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #bf3f48;
  --brand-2: #9e2b35;
  --on-brand: #ffffff;
  --accent: #bf3f48;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 40, .18);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: var(--font-body);
  --head-weight: 700;
  --head-ls: -0.02em;
  --wrap: 1200px;
  --gutter: 24px;
  --sec-pad: 104px;
  --header-bg: rgba(255, 255, 255, .92);
  --header-ink: var(--ink);
  --field-bg: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-ls); line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
mark { background: none; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 文字组件 ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
a:hover > .link-arrow svg, .link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 页头 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { display: none; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-contact { display: flex; gap: 24px; }
.topbar a, .topbar-note { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; }
.navbar { background: var(--header-bg); color: var(--header-ink); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s, background .25s; }
.scrolled .navbar { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.navbar-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { height: 38px; width: auto; }
.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; gap: 4px; }
.mainnav > ul > li { position: relative; }
.mainnav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; border-radius: 8px; transition: color .2s, background .2s; }
.mainnav > ul > li > a svg { width: 14px; height: 14px; opacity: .6; }
.mainnav > ul > li > a:hover, .mainnav > ul > li > a.active { color: var(--brand); }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14.5px; }
.sub a:hover, .sub a.active { background: var(--bg-alt); color: var(--brand); }
.sub-right { left: auto; right: 0; min-width: 180px; }
.sub-mega { display: grid; grid-template-columns: repeat(4, 210px); gap: 6px 10px; left: 50%; transform: translate(-50%, 6px); padding: 18px; }
.has-sub:hover > .sub-mega, .has-sub:focus-within > .sub-mega { transform: translate(-50%, 0); }
.sub-cap { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 8px; }
.sub-mega a b { display: block; font-weight: 600; font-size: 14.5px; }
.sub-mega a small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 50%; transition: background .2s, color .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--brand); }
.lang-btn { border-radius: 22px; font-size: 13px; font-weight: 600; }
.nav-cta { height: 44px; padding: 0 20px; margin-left: 8px; }
.menu-toggle { display: none; }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 18, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); color: var(--ink); padding: 18px 22px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.nav-open .drawer { opacity: 1; visibility: visible; }
.nav-open .drawer-in { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-top img { height: 30px; width: auto; }
.drawer-in > a, .drawer-in summary { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.drawer-in summary { display: flex; justify-content: space-between; align-items: center; list-style: none; }
.drawer-in summary::-webkit-details-marker { display: none; }
.drawer-in summary::after { content: "+"; font-weight: 400; font-size: 20px; opacity: .5; }
.drawer-in details[open] summary::after { content: "–"; }
.drawer-in details a { display: block; padding: 8px 0 8px 14px; color: var(--ink-2); font-size: 15px; }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0; font-size: 14px; color: var(--muted); }
.drawer-in .btn { margin-top: auto; }

/* ---------- 通用区块 ---------- */
.sec { padding: var(--sec-pad) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 22ch; }
.sec-lead { margin-top: 14px; font-size: 17.5px; color: var(--ink-2); max-width: 58ch; }
.sec-head > .link-arrow { flex-shrink: 0; }

/* ---------- Hero:photo ---------- */
.hero { position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); }
.hero-photo { min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 28, .88) 0%, rgba(15, 18, 28, .6) 45%, rgba(15, 18, 28, .1) 100%); z-index: 1; }
.hero-photo .hero-in { position: relative; z-index: 2; padding: 120px var(--gutter) 150px; }
.hero-photo h1 { color: #fff; max-width: 14ch; }
.hero-photo .lead { color: rgba(255, 255, 255, .85); margin: 22px 0 36px; }
.hero-photo .eyebrow { color: #fff; }
.hero-photo .btn-ghost { color: #fff; }
.hero-photo .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.stat-strip { position: relative; z-index: 5; margin-top: -72px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.stat-strip .stat { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: 0; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--font-head); font-size: clamp(34px, 4vw, 48px); font-weight: var(--head-weight); line-height: 1; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14.5px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Hero:editorial ---------- */
.hero-editorial { padding: 72px 0 96px; }
.hero-meta { display: flex; gap: 32px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.hero-meta span:first-child { color: var(--ink); font-weight: 600; }
.hero-editorial h1 { font-size: clamp(48px, 8.4vw, 124px); line-height: .98; max-width: 12ch; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-top: 64px; align-items: end; }
.hero-copy .lead { margin-bottom: 28px; }
.link-arrow.big { font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 20px 16px 0 0; }
.facts dt .stat-num { font-size: 36px; color: var(--ink); }
.facts dd { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.hero-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-fig figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Hero:split ---------- */
.hero-split { padding: 96px 0 110px; overflow: hidden; }
.hero-split .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero-split .lead { margin: 24px 0 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.hero-badges span { font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.hero-visual { position: relative; }
.hv-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.hv-frame img { width: 100%; height: 100%; object-fit: cover; }
.hv-card { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; }
.hv-card b { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; }
.hv-card b svg { width: 18px; height: 18px; }
.hv-card .stat-num { font-size: 26px; }
.hv-a { left: -32px; top: 12%; }
.hv-b { right: -20px; bottom: 14%; }
.hv-c { left: 10%; bottom: -26px; }

/* ---------- Hero:center ---------- */
.hero-center { min-height: min(82vh, 720px); display: flex; align-items: center; text-align: center; overflow: hidden; }
.hero-center::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-center .hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 120px var(--gutter); }
.hero-center h1 { max-width: 16ch; }
.hero-center .lead { margin: 0 auto 36px; }
.rule { display: flex; align-items: center; gap: 14px; margin: 28px 0; }
.rule span { width: 64px; height: 1px; background: currentColor; opacity: .6; }
.rule svg { width: 22px; height: 22px; }
.seal-band { padding: 44px 0; border-bottom: 1px solid var(--line); }
.seal-band-in { display: grid; grid-template-columns: auto auto 1fr; gap: 48px; align-items: center; }
.seal { display: flex; align-items: center; gap: 16px; }
.seal b { display: block; font-size: 15px; }
.seal small { color: var(--muted); }
.seal-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 4px; font-weight: 700; letter-spacing: .06em; flex-shrink: 0; }
.seal-band p { color: var(--ink-2); font-size: 15px; }

/* ---------- Hero:rounded ---------- */
.hero-rounded { padding: 64px 0 96px; }
.hero-rounded .hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 22px; }
.pill svg { width: 16px; height: 16px; }
.hero-rounded .lead { margin: 22px 0 32px; }
.hero-trust { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 15px; }
.hero-trust b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.hero-trust svg { width: 18px; height: 18px; }
.hero-rounded .hero-visual img { position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 40px; z-index: 1; }
.blob { position: absolute; inset: -6% -8% -8% 6%; border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%; z-index: 0; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.chip-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.chip-ico svg { width: 22px; height: 22px; }
.chip .stat-num { font-size: 22px; }
.chip b { display: block; font-size: 18px; }
.chip small { display: block; font-size: 12.5px; color: var(--muted); }
.chip-a { left: -28px; bottom: 12%; }
.chip-b { right: -20px; top: 10%; }

/* ---------- 资质 ---------- */
.accred-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.accred-text h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; }
.accred-text p { color: var(--ink-2); font-size: 17px; }
.accred-bodies { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.body-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.body-code { font-family: var(--font-head); font-size: 38px; font-weight: 800; letter-spacing: .02em; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.body-card b { font-size: 15px; line-height: 1.35; }
.body-card small { color: var(--muted); }

/* ---------- 认证好处 ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.benefit { position: relative; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.b-no { display: none; }
.b-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--brand); color: #fff; margin-bottom: 24px; }
.b-icon svg { width: 30px; height: 30px; }
.benefit h3 { font-size: 19px; margin-bottom: 10px; }
.benefit p { color: var(--ink-2); font-size: 15px; }
.benefits.compact { grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0; }
.benefits.compact .benefit { padding: 24px; }

/* ---------- 服务:卡片 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-cat { position: relative; z-index: 1; max-width: calc(100% - 96px); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.svc-code { position: absolute; right: 20px; top: 14px; font-family: var(--font-head); font-size: 54px; font-weight: 800; letter-spacing: -0.04em; color: var(--bg-alt); line-height: 1; pointer-events: none; }
.svc-card h3 { position: relative; font-size: 24px; margin-top: 18px; }
.svc-full { display: block; font-size: 14.5px; font-weight: 600; color: var(--brand); margin: 6px 0 14px; }
.svc-card p { color: var(--ink-2); font-size: 15px; flex: 1; margin-bottom: 22px; }
.svc-card .link-arrow { font-size: 14.5px; align-self: flex-start; }

/* ---------- 服务:索引列表 ---------- */
.svc-index { border-top: 1px solid var(--ink); counter-reset: none; }
.svc-index a { display: grid; grid-template-columns: 70px 1.1fr 1.6fr 1fr 40px; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .25s, background .25s, color .25s; }
.i-no { font-size: 13px; color: var(--muted); }
.i-name { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 34px); }
.i-full { color: var(--ink-2); }
.i-cat { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.i-go svg { width: 22px; height: 22px; transition: transform .25s; }
.svc-index a:hover { padding-left: 16px; padding-right: 16px; background: var(--ink); color: var(--bg); }
.svc-index a:hover .i-full, .svc-index a:hover .i-cat, .svc-index a:hover .i-no { color: inherit; opacity: .75; }
.svc-index a:hover .i-go svg { transform: rotate(-45deg); }

/* ---------- 服务:bento ---------- */
.svc-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.bento { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, border-color .25s; }
.bento:hover { transform: translateY(-3px); }
.bento .mono { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); position: relative; z-index: 1; }
.bento-code { position: absolute; right: 16px; top: 34px; font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.bento h3 { font-size: 21px; position: relative; z-index: 1; }
.bento p { font-size: 14px; color: var(--muted); margin-top: 6px; position: relative; z-index: 1; }
.bento.big { grid-column: span 2; grid-row: span 2; padding: 30px; }
.bento.big h3 { font-size: 34px; }
.bento.big p { font-size: 16px; max-width: 34ch; }
.bento.big .bento-code { font-size: 120px; top: 56px; }
.bento.big img { position: absolute; right: -40px; bottom: -40px; width: 55%; opacity: .5; border-radius: 16px; transform: rotate(-8deg); }
.bento.wide { grid-column: span 2; }

/* ---------- 服务:四大支柱 ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.pillar { padding: 36px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.pillar:first-child { border-left: 0; }
.pillar-no { font-family: var(--font-head); font-size: 15px; color: var(--accent); margin-bottom: 18px; }
.pillar h3 { font-size: 23px; margin-bottom: 10px; }
.pillar > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 22px; min-height: 3.2em; }
.pillar ul { border-top: 1px solid var(--line); margin-top: auto; }
.pillar li a { display: grid; grid-template-columns: 1fr 18px; gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pillar li b { font-size: 15.5px; }
.pillar li span { grid-column: 1; font-size: 13px; color: var(--muted); }
.pillar li svg { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; opacity: .4; transition: opacity .2s, transform .2s; }
.pillar li a:hover svg { opacity: 1; transform: translateX(3px); }
.pillar li a:hover b { color: var(--accent); }

/* ---------- 服务:筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px; transition: all .2s; }
.chip-btn span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg-alt); }
.chip-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-btn.active span { background: rgba(255, 255, 255, .2); }

/* ---------- 流程 ---------- */
.steps { counter-reset: s; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step-no { font-family: var(--font-head); font-weight: 700; color: var(--brand); }
.steps-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; position: relative; }
.steps-row::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.steps-row .step { position: relative; }
.steps-row .step-no { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); margin-bottom: 20px; font-size: 15px; }
.steps-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; border-top: 1px solid var(--line); }
.steps-list .step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps-list .step-no { font-size: 15px; color: var(--muted); font-weight: 500; }
.steps-timeline { position: relative; display: grid; gap: 0; max-width: 760px; }
.steps-timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps-timeline .step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 14px 0; }
.steps-timeline .step-no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; position: relative; }
.steps-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.steps-cards .step { padding: 24px; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.steps-cards .step-no { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: var(--on-brand); margin-bottom: 18px; font-size: 14px; }

/* ---------- 培训 ---------- */
.training-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.training-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.training-copy h2 { font-size: clamp(30px, 3.4vw, 42px); }
.training-copy .sec-lead { margin-bottom: 30px; }
.train-list { display: grid; gap: 16px; }
.train-list.page { grid-template-columns: 1fr 1fr; gap: 24px; padding: 72px 0 32px; }
.train-card { display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: transform .25s, box-shadow .25s; }
.train-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.train-card h3 { font-size: 22px; margin-bottom: 8px; }
.train-card p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }

/* ---------- CTA 条 ---------- */
.cta-band { background: var(--brand); color: var(--on-brand); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 64px var(--gutter); }
.cta-band h2 { color: inherit; font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { opacity: .85; margin-top: 8px; font-size: 17px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.cta-phone svg { width: 20px; height: 20px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.contact-info > p { color: var(--ink-2); margin-bottom: 26px; }
.channels { display: grid; gap: 10px; }
.channels a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); transition: background .2s; }
.channels a:hover { background: var(--bg-alt); }
.ch-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); color: var(--brand); flex-shrink: 0; }
.ch-ico svg { width: 20px; height: 20px; }
.channels small { display: block; font-size: 12.5px; color: var(--muted); }
.channels b { font-size: 16px; word-break: break-all; }
.qr { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14.5px; color: var(--ink-2); }
.qr img { width: 76px; height: 76px; border-radius: 6px; }
.contact-form { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--field-bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 14px 8px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field textarea { min-height: 140px; }
.field span { position: absolute; left: 15px; top: 16px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all .18s; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span, .field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--brand); }
.field.invalid input, .field.invalid textarea { border-color: #d92d20; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.form-msg { font-size: 14px; }
.form-foot .btn { flex-shrink: 0; }
.form-msg.ok { color: #067647; }
.form-msg.err { color: #d92d20; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-alt); color: var(--ink-2); padding: 80px 0 32px; font-size: 14.5px; }
.footer-big { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: all .2s; }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.socials svg { width: 18px; height: 18px; }
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.site-footer h4.mt { margin-top: 28px; }
.site-footer a { display: block; padding: 4px 0; transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.site-footer .socials a { display: grid; place-items: center; padding: 0; }
.footer-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- 内页 ---------- */
.page-hero { position: relative; padding: 110px 0 90px; color: #fff; overflow: hidden; background: var(--ink); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero-in { position: relative; }
.page-hero h1 { color: inherit; font-size: clamp(34px, 4.6vw, 56px); max-width: 22ch; }
.page-hero .lead { color: inherit; opacity: .85; margin-top: 18px; }
.page-hero .eyebrow { color: inherit; opacity: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; opacity: .8; margin-bottom: 22px; }
.crumbs a:hover { text-decoration: underline; }
.page-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px; gap: 56px; padding-top: 72px; padding-bottom: 96px; align-items: start; }
.side-nav, .side-cta { position: sticky; top: 110px; }
.side-nav h4 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--font-body); }
.side-nav ul { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.side-nav a { display: block; padding: 8px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); transition: all .2s; }
.side-nav a:hover { color: var(--brand); }
.side-nav a.active { border-left-color: var(--brand); color: var(--ink); font-weight: 600; }
.side-card { padding: 28px; background: var(--bg-alt); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 10px; }
.side-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--on-brand); margin-bottom: 6px; }
.side-ico svg { width: 22px; height: 22px; }
.side-card h4 { font-size: 19px; }
.side-card p { font-size: 14.5px; color: var(--ink-2); }
.side-phone { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--brand); margin: 4px 0 6px; }
.side-card .btn { height: 46px; }
.side-line { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); justify-content: center; margin-top: 4px; }
.side-line svg { width: 16px; height: 16px; }

.prose { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose-lead { font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.prose h3 { font-size: 23px; margin-top: 44px; color: var(--ink); }
.prose h3 + h3 { margin-top: 18px; font-size: 19px; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); }
.prose .svc-figure { max-width: 300px; }
.prose .steps { margin-top: 32px; }
.prose .steps-row { grid-template-columns: 1fr; }
.prose .steps-row::before { left: 23px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
.prose .steps-row .step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 6px 0; }
.prose .steps-row .step-no { margin: 0; }
.prose .steps-list { grid-template-columns: 1fr; }
.prose .stat-grid.inline { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 36px; }
.prose .stat-grid.inline .stat-num { font-size: 34px; }
.prose .step h3, .prose .benefit h3 { margin-top: 0; }
.prose .step h3 { font-size: 18px; }
.prose .benefit h3 { font-size: 19px; }
.prose .steps-row .step > div { padding-top: 11px; }
.svc-badge { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1; max-width: 300px; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.svc-badge span { font-family: var(--font-head); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.svc-badge small { font-size: 14px; opacity: .85; margin-top: 8px; line-height: 1.35; }

.services-index { padding: 32px var(--gutter) 80px; }
.svc-group { padding-top: 56px; }
.svc-group-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.svc-group-head h2 { font-size: 28px; }
.svc-group-head p { color: var(--muted); }
.related { background: var(--bg-alt); }

.search-wrap { padding: 64px var(--gutter) 96px; max-width: 900px; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.search-form > span svg { width: 22px; height: 22px; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; font: inherit; font-size: 18px; border: 0; outline: 0; background: none; color: var(--ink); height: 48px; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 36px; }
.search-suggest a { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.search-suggest a:hover { color: var(--brand); }
.search-count { color: var(--muted); margin-bottom: 12px; }
.search-results li a { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-results h3 { font-size: 20px; margin-bottom: 6px; }
.search-results p { color: var(--ink-2); font-size: 15px; }
.search-results mark { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.search-results li a:hover h3 { color: var(--brand); }
.search-results .empty { padding: 24px 0; color: var(--muted); }

/* ---------- 进场动画 ---------- */
.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim .rv.in { opacity: 1; transform: none; }

/* =========================================================
   样式切换器(客户预览用,独立于主题)
   ========================================================= */
.sw { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1000; font-family: "Segoe UI", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; color: #111; font-size: 14px; line-height: 1.4; }
.sw svg { width: 16px; height: 16px; }
.sw-panel { display: none; width: min(760px, calc(100vw - 24px)); padding: 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(0, 0, 0, .08); border-radius: 18px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .35); }
.sw.open .sw-panel { display: block; }
.sw.open .sw-pill { display: none; }
.sw-head { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.sw-head > div { flex: 1; }
.sw-head b { font-size: 15px; }
.sw-head small { display: block; color: #6b7280; font-size: 12px; }
.sw-orig { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; background: #f3f4f6; font-weight: 600; font-size: 13px; }
.sw-orig:hover { background: #e5e7eb; }
.sw-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f3f4f6; }
.sw-x:hover { background: #e5e7eb; }
.sw-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sw-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e5e7eb; background: #fff; text-align: left; transition: border-color .15s, transform .15s; }
.sw-item:hover { border-color: #9ca3af; transform: translateY(-2px); }
.sw-item.active { border-color: #111; box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.sw-dots { display: flex; }
.sw-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); margin-right: -5px; }
.sw-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.sw-name em { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #111; color: #fff; font-size: 11px; }
.sw-en { font-size: 11.5px; color: #6b7280; }
.sw-desc { margin: 12px 4px 2px; font-size: 13px; color: #4b5563; }
.sw-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 16px; background: #111; color: #fff; border-radius: 999px; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); font-weight: 600; font-size: 14px; white-space: nowrap; }
.sw-pill-ico svg { width: 18px; height: 18px; }
.sw-nav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sw-nav:hover { background: rgba(255, 255, 255, .25); }
.sw-nav:first-of-type { margin-left: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .mainnav, .nav-cta, .lang, .topbar-note { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .page-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .side-nav { display: none; }
  .steps-row { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
  .steps-row::before { display: none; }
  .prose .steps-row::before { display: block; }
  .svc-bento { grid-template-columns: repeat(3, 1fr); }
  .bento.wide { grid-column: span 1; }
}
@media (max-width: 960px) {
  :root, html[data-theme]:not([data-theme="minimal"]):not([data-theme="authority"]) { --sec-pad: 76px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .hero-grid, .hero-split .hero-in, .hero-rounded .hero-in, .accred-in, .training-in, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .benefits, .stat-grid, .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-bento { grid-template-columns: repeat(2, 1fr); }
  .svc-index a { grid-template-columns: 50px 1fr 32px; }
  .i-full, .i-cat { display: none; }
  .steps-list { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(3) { border-left: 0; }
  .stat-strip .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .seal-band-in { grid-template-columns: 1fr 1fr; }
  .seal-band p { grid-column: 1 / -1; }
  .page-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side-cta { position: static; }
  .training-media img { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .train-list.page { grid-template-columns: 1fr; }
  .hv-a { left: 8px; } .hv-b { right: 8px; } .chip-a { left: 8px; } .chip-b { right: 8px; }
  .cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  :root, html[data-theme]:not([data-theme="minimal"]):not([data-theme="authority"]) { --sec-pad: 60px; }
  body { font-size: 15.5px; }
  .navbar-in { height: 64px; }
  .brand img { height: 30px; }
  .topbar-contact a:nth-child(n + 2) { display: none; }
  .hero-photo .hero-in { padding: 80px var(--gutter) 120px; }
  .benefits, .svc-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .svc-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento { min-height: 170px; }
  .bento.big { grid-column: auto; grid-row: auto; min-height: 320px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .benefits.compact { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .facts dt .stat-num { font-size: 26px; }
  .hero-meta { flex-wrap: wrap; gap: 8px 20px; }
  .seal-band-in { grid-template-columns: 1fr; gap: 20px; }
  .accred-bodies { grid-template-columns: 1fr; }
  .svc-group-head { flex-direction: column; gap: 4px; }
  .search-form .btn { padding: 0 16px; }
  .sw { bottom: 12px; }
  .sw-list { grid-template-columns: repeat(2, 1fr); }
  .sw-item:last-child { grid-column: span 2; }
  .sw-head small { display: none; }
  .sw-pill span:nth-child(2) { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   中文(简体)排版:各主题的中文字体搭配 + 字距;衬线主题配思源宋体
   选择器带 [data-theme] 提高优先级,才能盖过各主题自己设的字体变量
   ========================================================= */
html[data-lang="zh"][data-theme] { --head-ls: 0; }
html[data-lang="zh"][data-theme="classic"] { --font-body: "Inter", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Inter", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html[data-lang="zh"][data-theme="minimal"] { --font-body: "Inter", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Fraunces", "Noto Serif TC","Noto Serif SC", Georgia, "SimSun", serif; }
html[data-lang="zh"][data-theme="tech"] { --font-body: "Inter", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Space Grotesk", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", sans-serif; }
html[data-lang="zh"][data-theme="authority"] { --font-body: "Source Sans 3", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Playfair Display", "Noto Serif TC","Noto Serif SC", Georgia, "SimSun", serif; }
html[data-lang="zh"][data-theme="soft"] { --font-body: "Plus Jakarta Sans", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --font-head: "Plus Jakarta Sans", "Noto Sans TC","Noto Sans SC", "Microsoft YaHei", sans-serif; }
/* 中文正文行高略放宽,英文专用的斜体在中文下不使用 */
html[data-lang="zh"] .prose { line-height: 1.9; }
html[data-lang="zh"] .prose-lead { font-style: normal; }
html[data-lang="zh"] em { font-style: normal; }

/* 合作伙伴(中文站专有页面) */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 8px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.partner img { max-height: 110px; width: auto; object-fit: contain; }
.partner figcaption { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }

/* 语言切换(样式切换器内) */
.sw-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f3f4f6; }
.sw-lang button { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #4b5563; }
.sw-lang button.active { background: #111; color: #fff; }
.lang-opt { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 14.5px; }
.lang-opt:hover { background: var(--bg-alt); color: var(--brand); }
.lang-opt.active { color: var(--brand); font-weight: 600; }

/* =========================================================
   驗證新知(#/insights)/ 公開文件(#/documents)
   5 套主题共用:列表卡片沿用 .svc-card,正文沿用 .prose;这里只补新增元素。
   部分选择器刻意加长,是为了盖过 theme-*.css 里带 [data-theme] 的同名规则。
   ========================================================= */
/* 主导航增加两栏后变 7 项:禁止换行,收窄左右留白(html[data-theme] 前缀用来盖过各主题的 padding) */
html[data-theme] .navbar .mainnav > ul > li > a { white-space: nowrap; padding-left: 11px; padding-right: 11px; }
html[data-theme] .navbar .mainnav > ul > li > a::after { left: 11px; right: 11px; }
html[data-theme] .navbar .lang-btn span { white-space: nowrap; }
@media (max-width: 1320px) {
  html[data-theme] .navbar .mainnav > ul > li > a { padding-left: 8px; padding-right: 8px; }
  html[data-theme] .navbar .mainnav > ul > li > a::after { left: 8px; right: 8px; }
  html[data-theme] .navbar-in { gap: 20px; }
}

.insight-wrap { padding-top: 56px; padding-bottom: 88px; }
.insight-lang { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 24px; border-radius: var(--radius); background: var(--bg-alt); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.insight-lang svg { width: 18px; height: 18px; flex: none; color: var(--brand); }

/* 关键字筛选 */
.insight-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 28px; }
.insight-filter { display: flex; align-items: center; gap: 10px; flex: 1 1 300px; max-width: 520px; height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--field-bg); color: var(--muted); transition: border-color .2s; }
.insight-filter:focus-within { border-color: var(--brand); }
.insight-filter svg { width: 18px; height: 18px; flex: none; }
.insight-filter input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 15.5px; color: var(--ink); }
.insight-count { font-size: 14px; color: var(--muted); }
.insight-empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* 列表卡片:标题较长,字号比服务卡小一级 */
.insight-wrap .svc-grid .svc-card.insight-card h3,
.insight-wrap .svc-grid .svc-card.doc-card h3 { font-size: 19px; line-height: 1.45; letter-spacing: 0; margin-top: 14px; margin-bottom: 10px; }
.insight-wrap .svc-grid .svc-card.insight-card p,
.insight-wrap .svc-grid .svc-card.doc-card p { font-size: 14.5px; line-height: 1.7; }
.doc-card .doc-ico { position: absolute; right: 22px; top: 22px; }
.doc-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); color: var(--brand); }
.doc-ico svg { width: 20px; height: 20px; }
.doc-card h3 { max-width: calc(100% - 44px); }
.doc-card h3 a { color: inherit; }
.doc-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* 整张卡可点,PDF 链接浮在上层 */
.doc-code { align-self: flex-start; margin-bottom: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.doc-acts { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-pdf { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: color .2s, border-color .2s; }
.doc-pdf:hover { color: var(--brand); border-color: var(--brand); }
.doc-pdf svg { width: 15px; height: 15px; }

/* 懒加载占位 / 失败提示 */
.insight-state { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 240px; color: var(--muted); }
.insight-state.is-err { flex-direction: column; gap: 18px; text-align: center; color: var(--ink-2); }
.insight-state-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.insight-spin { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: insight-spin .8s linear infinite; }
@keyframes insight-spin { to { transform: rotate(360deg); } }

/* 文件操作按钮(不用 .btn:.prose a 会盖掉按钮配色) */
.doc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.doc-btn:hover { border-color: var(--brand); color: var(--brand); }
.doc-btn.is-primary { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.doc-btn.is-primary:hover { border-color: var(--brand-2); background: var(--brand-2); color: var(--on-brand); }
.doc-btn svg { width: 16px; height: 16px; }
.page-body .prose a.doc-btn { color: var(--ink); text-decoration: none; }
.page-body .prose a.doc-btn:hover { color: var(--brand); }
.page-body .prose a.doc-btn.is-primary, .page-body .prose a.doc-btn.is-primary:hover { color: var(--on-brand); }
.doc-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt); }
.doc-bar .doc-ico { background: var(--surface); }
.doc-bar-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-bar-meta small { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); line-height: 1.4; }
.doc-bar-meta b { display: block; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.doc-bar-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-note { font-size: 14.5px; color: var(--muted); }

/* 详情页 hero:文章标题长,字号收小(属性选择器叠加是为了盖过各主题的 .page-hero h1) */
html[data-article][data-lang][data-theme] .page-hero h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; letter-spacing: -0.01em; max-width: 24em; }

/* 侧栏:文章多,列表限高可滚动 */
.side-nav.insight-side ul { position: relative; max-height: calc(100vh - 200px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-nav.insight-side a { padding: 7px 12px; font-size: 13.5px; line-height: 1.5; }

/* 正文元素 */
html[data-article] .prose h4 { margin-top: 32px; font-size: 18px; line-height: 1.5; color: var(--ink); }
html[data-article] .prose h3 + h4 { margin-top: 18px; }
html[data-article] .prose h3 { line-height: 1.4; }
html[data-article] .prose ol { display: grid; gap: 10px; counter-reset: insight-ol; }
html[data-article] .prose ol > li { position: relative; padding-left: 34px; counter-increment: insight-ol; }
html[data-article] .prose ol > li::before { content: counter(insight-ol); position: absolute; left: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.insight-fig { text-align: center; }
.page-body .prose .insight-fig img { display: inline-block; width: auto; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.insight-note { margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 18px 22px; border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt); color: var(--ink); font-weight: 500; }
html[data-article] .page-body > .prose { min-width: 0; } /* 宽表格只在自身容器内横向滚动,不撑宽栏位 */
.insight-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.insight-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.65; }
.insight-table th, .insight-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.insight-table th + th, .insight-table td + td { border-left: 1px solid var(--line); }
.insight-table th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.insight-table tbody tr:last-child td { border-bottom: 0; }

/* 文末:上一篇 / 下一篇 / 返回列表 */
.page-body .prose .insight-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-body .prose .insight-pager a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.page-body .prose .insight-pager a:hover { border-color: var(--brand); }
.page-body .prose .insight-pager .insight-next { align-items: flex-end; text-align: right; }
.insight-pager small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.insight-pager svg { width: 14px; height: 14px; }
.insight-pager b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 600; line-height: 1.5; }
.page-body .prose .insight-back a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.insight-back svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .insight-wrap { padding-top: 36px; padding-bottom: 64px; }
  .insight-filter { flex-basis: 100%; max-width: none; }
  .page-body .prose .insight-pager { grid-template-columns: 1fr; }
  .page-body .prose .insight-pager .insight-next { align-items: flex-start; text-align: left; }
  .doc-bar { padding: 16px; }
  .doc-bar-acts { width: 100%; }
  .doc-bar-acts .doc-btn { flex: 1 1 auto; }
}
