/* Quodara 融资资料站 —— 全局样式。
   规范见 docs/frontend.md：只用系统字体，不加载任何外部资源，
   全站只有 body 一个滚动区（唯一例外是 .toc，已白名单）。 */

:root {
  --c-bg: #f6f7f9;
  --c-surface: #ffffff;
  --c-surface-2: #f0f3f7;
  --c-ink: #14202e;
  --c-ink-2: #405061;
  --c-muted: #68778a;
  --c-line: #e2e7ee;
  --c-accent: #12507f;
  --c-accent-hover: #0d3f66;
  --c-accent-soft: #e8f0f7;
  --c-ok: #17734f;
  --c-ok-soft: #e6f4ee;
  --c-wait: #8a5a12;
  --c-wait-soft: #fbf1e0;
  --c-danger: #a4342c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --topbar-h: 56px;
  --page-max: 1120px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-bg);
  color: var(--c-ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
}

body.body--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
}

h1, h2, h3 { color: var(--c-ink); line-height: 1.35; margin: 0; }
p { margin: 0; }
img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: var(--c-ink);
  color: #fff;
}

.topbar__inner {
  max-width: var(--page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.brand { display: flex; align-items: center; gap: var(--s3); color: #fff; }
.brand:hover { text-decoration: none; }

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--c-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: var(--fs-base); }
.brand__text em { font-style: normal; font-size: var(--fs-xs); color: #b8c4d2; }

.topnav { display: flex; flex-wrap: wrap; gap: var(--s2); }

.topnav__link {
  color: #cdd8e4;
  font-size: var(--fs-sm);
  padding: var(--s1) var(--s3);
  border-radius: var(--r-sm);
}

.topnav__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; }
.topnav__link.is-active { background: var(--c-accent); color: #fff; }

/* 下拉菜单：用 <details> 实现，没有 JS 也能开合 */
.topnav__menu { position: relative; }

.topnav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.topnav__toggle::-webkit-details-marker { display: none; }

.topnav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.15s ease;
}

.topnav__menu[open] > .topnav__toggle { background: rgba(255, 255, 255, 0.1); color: #fff; }
.topnav__menu[open] .topnav__caret { transform: rotate(180deg); }

.topnav__panel {
  position: absolute;
  top: calc(100% + var(--s2));
  right: 0;
  min-width: 180px;
  padding: var(--s2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}

.topnav__option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  color: var(--c-ink);
}

.topnav__option:hover { background: var(--c-bg); color: var(--c-ink); text-decoration: none; }
.topnav__option strong { font-size: var(--fs-sm); font-weight: 600; }
.topnav__option em { font-style: normal; font-size: var(--fs-xs); color: var(--c-muted); }

/* ------------------------------------------------------------------ 骨架 */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s6) var(--s5) var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.footer { border-top: 1px solid var(--c-line); background: var(--c-surface); }

.footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s5);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s5);
}

.section-title { font-size: var(--fs-lg); margin-bottom: var(--s3); }
.subsection-title { font-size: var(--fs-md); margin: var(--s6) 0 var(--s3); }
.section-lead { color: var(--c-muted); margin-bottom: var(--s4); max-width: 76ch; }

/* ------------------------------------------------------------------ 要点格与事实卡 */
/* .facts/.fact：后台看板统计卡复用（admin.css 只改列宽） */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
}

.fact {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s4);
}

.fact__value { font-size: var(--fs-xl); font-weight: 700; color: var(--c-ink); line-height: 1.2; }
.fact__label { color: var(--c-ink-2); margin-top: var(--s1); }
.fact__hint { color: var(--c-muted); font-size: var(--fs-sm); margin-top: var(--s1); }

.placeholder {
  background: var(--c-surface-2);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s5);
  /* 浅灰底上 --c-muted 达不到 4.5:1，用正文色 */
  color: var(--c-ink-2);
}

.placeholder--sm { padding: var(--s4); font-size: var(--fs-sm); text-align: center; }

/* 交互演示按钮：A 档，宽度由文案决定，不设 width */
.demo-cta { margin-top: var(--s4); }
/* 一张卡挂多个外链时按钮横排，窄屏换行，仍是 A 档宽度 */
.demo-cta__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.demo-cta__hint { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--c-muted); }

.demo__video { width: 100%; border-radius: var(--r-md); border: 1px solid var(--c-line); background: #000; }
.demo__steps { margin: var(--s4) 0; padding-left: var(--s5); color: var(--c-ink-2); }
.demo__steps li { margin-bottom: var(--s2); }

/* ------------------------------------------------------------------ 时间线 */
.timeline { list-style: none; margin: var(--s4) 0 0; padding: 0 0 0 var(--s5); border-left: 2px solid var(--c-line); }
.timeline__item { position: relative; padding: 0 0 var(--s5) var(--s2); }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: calc(var(--s5) * -1 - 5px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-surface);
}

.timeline__item--pivot .timeline__dot { background: var(--c-wait); }
.timeline__item--plan .timeline__dot { background: var(--c-surface); border-color: var(--c-muted); }
.timeline__date { font-size: var(--fs-sm); color: var(--c-muted); }
.timeline__title { font-size: var(--fs-md); margin: var(--s1) 0; }
.timeline__text { color: var(--c-ink-2); }
.timeline--plan { border-left-style: dashed; }

/* ------------------------------------------------------------------ 案例 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.case { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s4); background: var(--c-surface); }
.case-grid--full { gap: var(--s5); }
.case-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.case__tag { font-size: var(--fs-xs); color: var(--c-accent); background: var(--c-accent-soft); padding: 2px var(--s2); border-radius: var(--r-pill); display: inline-block; }
.case__title { font-size: var(--fs-md); margin: var(--s3) 0 var(--s2); }
.case__summary { color: var(--c-ink-2); }
.case__media { width: 100%; border-radius: var(--r-md); border: 1px solid var(--c-line); margin: var(--s3) 0; }

/* 号码单独占一列，标题折行时对齐到标题起点，不会缩回号码底下 */

/* ------------------------------------------------------------------ BP 两栏 */
/* 目录栏 288px：章标题最长一行放得下 16 个中文字，再窄就会折成三行糊在一起 */
.bp-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: var(--s6); align-items: start; }

.toc-col { position: sticky; top: calc(var(--topbar-h) + var(--s4)); }

.toc__label {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  margin-bottom: var(--s2);
  padding-left: var(--s2);
}

.toc { /* layout-check: allow —— 目录是全站唯一允许自带滚动条的容器 */
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-height: calc(100vh - var(--topbar-h) - var(--s8));
  max-height: calc(100dvh - var(--topbar-h) - var(--s8));
  overflow-y: auto;
  padding-right: var(--s2);
}

/* 桌面目录多了一行「目录」标签，可视高度相应减掉一档 */
.toc--desktop { max-height: calc(100vh - var(--topbar-h) - var(--s8) - var(--s5)); max-height: calc(100dvh - var(--topbar-h) - var(--s8) - var(--s5)); }

/* 一章一组，组之间用细线断开，避免整栏连成一片 */
.toc__group + .toc__group { border-top: 1px solid var(--c-line); padding-top: var(--s3); }

/* 节挂在一条缩进导引线上，层级不靠猜 */
.toc__sections { display: flex; flex-direction: column; gap: 1px; margin: var(--s1) 0 0 var(--s2); padding-left: var(--s3); border-left: 1px solid var(--c-line); }

.toc__chapter,
.toc__section { display: flex; align-items: baseline; gap: var(--s2); border-radius: var(--r-sm); line-height: 1.55; }
.toc__chapter { color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600; padding: var(--s2); }
.toc__section { color: var(--c-ink-2); font-size: var(--fs-sm); padding: var(--s1) var(--s2); }
/* 号码固定一列，标题折行时对齐到标题起点 */
.toc__no { flex: none; min-width: 2.2em; color: var(--c-accent); font-weight: 400; }
.toc__no--sub { min-width: 2.6em; color: var(--c-ink-2); }
.toc__text { flex: 1; min-width: 0; }
.toc__chapter:hover, .toc__section:hover { background: var(--c-accent-soft); color: var(--c-accent); text-decoration: none; }
.toc__section.is-active, .toc__chapter.is-active { background: var(--c-accent-soft); color: var(--c-accent); }
.toc__chapter:hover .toc__no--sub, .toc__section:hover .toc__no--sub,
.toc__section.is-active .toc__no--sub { color: var(--c-accent); }

.toc-mobile { display: none; }

.bp-col { display: flex; flex-direction: column; gap: var(--s6); min-width: 0; }

.bp-head { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
.bp-head__eyebrow { color: var(--c-muted); font-size: var(--fs-sm); }
.bp-head__title { font-size: var(--fs-xl); margin: var(--s2) 0; }
.bp-head__meta { color: var(--c-ink-2); }
.bp-head__note { color: var(--c-wait); font-size: var(--fs-sm); margin-top: var(--s3); }

/* 正文最前方的公测站点入口。整块用强调底色兜住，第一屏就能看见并点进去。 */
.bp-sites {
  margin-top: var(--s5);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.bp-sites__lead { color: var(--c-ink-2); font-size: var(--fs-sm); }
.bp-sites__list { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.bp-sites__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); }
.bp-sites__label { color: var(--c-muted); font-size: var(--fs-sm); min-width: 4em; }
.bp-sites__link { color: var(--c-accent); font-size: var(--fs-md); font-weight: 600; word-break: break-all; }
.bp-sites__link:hover { color: var(--c-accent-hover); text-decoration: underline; }
.bp-sites__hint { color: var(--c-muted); font-size: var(--fs-sm); }
.bp-sites__note { color: var(--c-muted); font-size: var(--fs-sm); margin-top: var(--s3); }

.bp-chapter { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s5); scroll-margin-top: calc(var(--topbar-h) + var(--s4)); }
.bp-chapter__title { font-size: var(--fs-lg); display: flex; gap: var(--s3); align-items: baseline; }
.bp-chapter__no { color: var(--c-accent); font-size: var(--fs-base); }
.bp-chapter__summary { color: var(--c-muted); margin: var(--s3) 0 0; max-width: 76ch; }

.bp-section { margin-top: var(--s6); scroll-margin-top: calc(var(--topbar-h) + var(--s4)); }
.bp-section__title { font-size: var(--fs-md); margin-bottom: var(--s3); }
.bp-section__no { color: var(--c-accent); margin-right: var(--s2); }

.prose { max-width: 76ch; margin-bottom: var(--s3); }
.prose-list { max-width: 76ch; margin: 0 0 var(--s3); padding-left: var(--s5); }
.prose-list li { margin-bottom: var(--s2); }
.prose-list--tight li { margin-bottom: var(--s1); font-size: var(--fs-sm); color: var(--c-muted); }

.callout {
  background: var(--c-accent-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s4);
  margin: 0 0 var(--s4);
  max-width: 76ch;
}

.callout__title { font-weight: 700; color: var(--c-ink); margin-bottom: var(--s1); }
.callout__text { color: var(--c-ink-2); }

.bp-cta { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.bp-cta .btn + .btn { margin-left: var(--s2); }

/* ------------------------------------------------------------------ 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s4);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.data-table th {
  text-align: left;
  background: var(--c-surface-2);
  color: var(--c-ink);
  font-weight: 600;
  padding: var(--s3);
  border-bottom: 2px solid var(--c-line);
}

.data-table td { padding: var(--s3); border-bottom: 1px solid var(--c-line); vertical-align: top; color: var(--c-ink-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--c-ink); font-weight: 600; }

.pending {
  display: inline-block;
  background: var(--c-wait-soft);
  color: var(--c-wait);
  font-size: var(--fs-xs);
  padding: 0 var(--s2);
  border-radius: var(--r-pill);
  line-height: 22px;
}

/* ------------------------------------------------------------------ 内页页头 */
.page-head { padding-top: var(--s4); }
.page-head__title { font-size: var(--fs-xl); }
.page-head__lead { color: var(--c-ink-2); max-width: 76ch; margin-top: var(--s3); }

.badge {
  display: inline-block;
  font-size: var(--fs-xs);
  line-height: 22px;
  padding: 0 var(--s3);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.badge--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.badge--wait { background: var(--c-wait-soft); color: var(--c-wait); }
.badge--accent { background: var(--c-accent-soft); color: var(--c-accent); }

/* ------------------------------------------------------------------ 控件 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 var(--s4);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn:hover { text-decoration: none; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-accent); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.btn--sm { height: 30px; padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn.is-busy { opacity: 0.6; cursor: progress; pointer-events: none; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); max-width: 720px; }
.form--narrow { grid-template-columns: 1fr; max-width: 360px; }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: var(--fs-sm); color: var(--c-ink); }
.req { color: var(--c-danger); }

.field__input {
  width: 100%;
  max-width: 420px;
  height: 38px;
  padding: 0 var(--s3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: inherit;
  font-size: var(--fs-base);
}

.field__input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px var(--c-accent-soft); }

.field__input--area { height: auto; min-height: 96px; max-width: 560px; padding: var(--s3); line-height: 1.7; resize: vertical; }
.field__input--inline { max-width: 140px; }

.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.form-msg { font-size: var(--fs-sm); color: var(--c-muted); min-height: 1.5em; }
.form-msg.is-ok { color: var(--c-ok); }
.form-msg.is-error { color: var(--c-danger); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); margin: 0; }
.contact-list dt { font-size: var(--fs-sm); color: var(--c-muted); }
.contact-list dd { margin: var(--s1) 0 0; color: var(--c-ink); }

.auth-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s6); width: 100%; max-width: 400px; }
.auth-card--plain { text-align: center; }
.auth-card__title { font-size: var(--fs-lg); }
.auth-card__lead { color: var(--c-muted); margin: var(--s2) 0 var(--s5); }
.auth-card__back { margin-top: var(--s5); font-size: var(--fs-sm); }

/* ------------------------------------------------------------------ 响应式 */
/* 适合 / 不适合 */
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.fit { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s4); }
.fit--yes { background: var(--c-ok-soft); border-color: transparent; }
.fit--no { background: var(--c-surface-2); }
.fit__title { font-size: var(--fs-base); margin-bottom: var(--s2); }
.fit--yes .fit__title { color: var(--c-ok); }
.fit--no .fit__title { color: var(--c-ink-2); }
.fit__list { margin: 0; padding-left: var(--s4); color: var(--c-ink-2); font-size: var(--fs-sm); }
.fit__list li + li { margin-top: var(--s2); }

/* ------------------------------------------------- /fde 企业服务页专用 */
.hero-points { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s2); color: var(--c-ink); font-size: var(--fs-sm); font-weight: 600; }
.hero-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-accent); }

/* 痛点：浅灰底小卡 + 序号 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); }
.feature { background: var(--c-surface-2); border-radius: var(--r-md); padding: var(--s5); }
.feature__no { color: var(--c-accent); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--s2); }
.feature__title { font-size: var(--fs-md); margin-bottom: var(--s2); }
.feature__text { color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* 优势：描边卡 + 顶部主色条 + 维度标签 */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.adv { display: flex; flex-direction: column; gap: var(--s2); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); border-radius: var(--r-md); padding: var(--s5); }
.adv__tag { align-self: flex-start; }
.adv__title { font-size: var(--fs-md); }
.adv__text { color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* 服务内容：两到三列紧凑条目，一条一句话 */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s4) var(--s5); }
.svc { border-top: 1px solid var(--c-line); padding-top: var(--s3); }
.svc__title { font-size: var(--fs-base); margin-bottom: var(--s1); }
.svc__text { color: var(--c-ink-2); font-size: var(--fs-sm); }

/* 合作流程：桌面横排步骤条，窄屏纵排 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); counter-reset: flow; }
.flow__step { counter-increment: flow; position: relative; padding-top: var(--s7); }
.flow__step::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow__step::after { content: ""; position: absolute; top: 16px; left: 40px; right: calc(var(--s2) - var(--s4)); height: 1px; background: var(--c-line); }
.flow__step:last-child::after { display: none; }
.flow__title { font-size: var(--fs-base); margin-bottom: var(--s1); }
.flow__text { color: var(--c-ink-2); font-size: var(--fs-sm); }

/* 本地团队 / 研发中心两栏 */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.split__item { background: var(--c-surface-2); border-radius: var(--r-md); padding: var(--s5); }
.split__title { font-size: var(--fs-md); margin-bottom: var(--s2); }
.split__text { color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* 页尾咨询入口 */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); background: var(--c-accent-soft); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
.cta-band__title { font-size: var(--fs-lg); margin-bottom: var(--s1); }
.cta-band__text { color: var(--c-ink-2); }
/* 主色浅底上 --c-muted 对比度不足，用正文色 */
.cta-band__note { margin-top: var(--s2); color: var(--c-ink-2); font-size: var(--fs-sm); }

/* 产品目录：一个产品一张卡，产品变多时自动铺成多列 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: var(--s5); }
.product-card { display: flex; flex-direction: column; gap: var(--s4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); }
.product-card__head { display: flex; align-items: center; gap: var(--s4); }
.product-card__mark { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--c-accent); color: #fff; font-size: var(--fs-lg); font-weight: 700; display: grid; place-items: center; }
.product-card__name { font-size: var(--fs-lg); }
.product-card__tagline { color: var(--c-accent); font-size: var(--fs-sm); font-weight: 600; }
.product-card__summary { color: var(--c-ink); font-size: var(--fs-md); line-height: 1.7; }
.product-card__example { background: var(--c-surface-2); border-radius: var(--r-md); padding: var(--s4); }
.product-card__example-label { color: var(--c-accent); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--s1); }
.product-card__example-text { color: var(--c-ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.product-card__example-more { color: var(--c-ink-2); font-size: var(--fs-sm); margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--c-line); }
.product-card__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.product-card__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: auto; }

/* 联系页的来信分类 */
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.topic { border-left: 3px solid var(--c-accent); padding-left: var(--s4); }
.topic__title { font-size: var(--fs-base); margin-bottom: var(--s1); }
.topic__text { color: var(--c-ink-2); font-size: var(--fs-sm); }
.contact-cta { margin-top: var(--s5); }

/* 内页页头的补充件 */
.page-head__eyebrow { font-size: var(--fs-sm); color: var(--c-accent); margin-bottom: var(--s2); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.page-head__note { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--c-ink-2); max-width: 76ch; }
.section-note { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--c-muted); max-width: 76ch; }

/* 页脚的次级入口：商业计划书 / 联系我们 */
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s5); margin-bottom: var(--s4); }
.footer__link { display: flex; flex-direction: column; gap: 2px; }
.footer__link strong { font-size: var(--fs-base); }
.footer__link em { font-style: normal; font-size: var(--fs-sm); color: var(--c-muted); }
.footer__link:hover em { color: var(--c-accent); }

/* ------------------------------------------------------------------ 前沿洞见 */
/* 日期 / 金额等数字列：等宽数字，上下行能对齐 */
.num { font-variant-numeric: tabular-nums; }

/* 栏目头的 RSS 入口：内联 SVG 小图标 + 文字链接 */
.rss-link { margin-top: var(--s3); }
.rss-link a { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-sm); }
.rss-link svg { flex: none; }

/* 分类筛选：A 档胶囊，宽度由内容决定，当前项主色浅底 */
.cat-filter { display: flex; flex-wrap: wrap; gap: var(--s2); }

.cat-filter__item {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--s4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.cat-filter__item:hover { background: var(--c-surface-2); color: var(--c-ink); text-decoration: none; }
.cat-filter__item.is-active { background: var(--c-accent-soft); border-color: var(--c-accent-soft); color: var(--c-accent); }

/* 文章列表：一张 .card 内的行列表，行间 --c-line 细线，不逐条开卡 */
.post-list { display: flex; flex-direction: column; }

.post-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--s1) var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--c-line);
}

.post-list .post-row:first-child { border-top: none; padding-top: 0; }
.post-list .post-row:last-child { padding-bottom: 0; }
.post-row__body { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.post-row__date { color: var(--c-muted); font-size: var(--fs-sm); }
.post-row__title { font-size: var(--fs-md); line-height: 1.5; }
.post-row__title a { color: var(--c-ink); }
.post-row__title a:hover { color: var(--c-accent); }

/* 摘要最多两行，超出截断 */
.post-row__summary {
  color: var(--c-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); color: var(--c-muted); font-size: var(--fs-sm); }


/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s3); }
.pager__info { color: var(--c-muted); font-size: var(--fs-sm); }
.pager__off { color: var(--c-muted); font-size: var(--fs-sm); line-height: 30px; padding: 0 var(--s3); opacity: 0.6; }

/* 文章页：面包屑与 meta 行 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s2); }
.crumbs__here { color: var(--c-muted); }
.post-meta { margin-top: var(--s3); color: var(--c-muted); font-size: var(--fs-sm); }

/* 正文后的常见问题区块 */
.faq { margin-top: var(--s6); max-width: 76ch; }
.faq__item + .faq__item { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--c-line); }
.faq__q { color: var(--c-ink); font-weight: 700; }
.faq__a { margin-top: var(--s1); color: var(--c-ink-2); }

/* 上一篇 / 下一篇：两栏，窄屏纵排 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-height: 44px;
  padding: var(--s3) var(--s4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color 140ms ease;
}

a.post-nav__item:hover { border-color: var(--c-accent); text-decoration: none; }
.post-nav__item--empty { visibility: hidden; }
.post-nav__label { font-size: var(--fs-xs); color: var(--c-muted); }
.post-nav__title { font-size: var(--fs-base); color: var(--c-accent); }

/* 文章页：整篇收成居中的阅读栏，白卡跟着正文宽度走，右侧不留空。
   76ch 在中文里只有约 40 字宽，所以文章页用固定栏宽控制行长（约 45 字一行） */
.article { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s6); }
.article .prose,
.article .faq,
.article .page-head__lead { max-width: none; }

/* Markdown 正文容器：行长 76ch，标题沿字号梯度 */
.prose { line-height: 1.75; }
.prose h2 { font-size: var(--fs-lg); margin: var(--s6) 0 var(--s3); }
.prose h3 { font-size: var(--fs-md); margin: var(--s5) 0 var(--s2); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 var(--s3); line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: var(--s5); color: var(--c-ink-2); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--c-accent); }

.prose blockquote {
  margin: 0 0 var(--s3);
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-ink-2);
}

/* 正文表格沿用 .data-table 的桌面样式（Markdown 渲染不出 data-label） */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s4); font-size: var(--fs-base); line-height: 1.6; }
.prose th { text-align: left; background: var(--c-surface-2); color: var(--c-ink); font-weight: 600; padding: var(--s3); border-bottom: 2px solid var(--c-line); }
.prose td { padding: var(--s3); border-bottom: 1px solid var(--c-line); vertical-align: top; color: var(--c-ink-2); }
.prose tr:last-child td { border-bottom: none; }

.prose code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  padding: 2px var(--s1);
  overflow-wrap: anywhere;
}

.prose pre { background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: var(--s3) var(--s4); margin: 0 0 var(--s3); overflow-wrap: anywhere; }
.prose pre code { background: transparent; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 0 0 var(--s3); }
.prose a { color: var(--c-accent); }

@media (max-width: 720px) {
  /* 正文表格没有 data-label，不转堆叠卡片：窄屏整表横向滚动 */
  .prose table { display: block; max-width: 100%; overflow-x: auto; /* layout-check: allow —— Markdown 正文表格，窄屏允许横向滚动 */ }
}

@media (max-width: 640px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row__title { font-size: var(--fs-base); }
  .post-nav { grid-template-columns: 1fr; }
  .article { gap: var(--s5); }
}

@media (max-width: 1024px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr); }
  .toc-col { position: static; }
  .toc--desktop { display: none; }
  .toc__label { display: none; }
  .toc-mobile { display: block; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s4); }
  .toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--c-ink); }
  .toc-mobile .toc { max-height: none; overflow: visible; margin-top: var(--s3); gap: 2px; }
  /* 手机上一行就是一个触控目标，按 44px 热区给内边距 */
  .toc-mobile .toc__chapter { padding: var(--s3) var(--s2); }
  .flow { grid-template-columns: 1fr; gap: var(--s5); }
  .flow__step { padding-top: 0; padding-left: var(--s7); min-height: 32px; }
  .flow__step::after { top: 40px; left: 16px; right: auto; bottom: calc(var(--s2) - var(--s5)); width: 1px; height: auto; }
}

@media (max-width: 720px) {
  .fit-grid, .topic-list { grid-template-columns: 1fr; }
  .footer__links { gap: var(--s4); }
  .data-table thead { display: none; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }

  .data-table tr { border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: var(--s3); padding: var(--s2); }
  .data-table td { border-bottom: 1px dashed var(--c-line); padding: var(--s2); }
  .data-table tr td:last-child { border-bottom: none; }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-xs);
    color: var(--c-muted);
    margin-bottom: 2px;
  }
}

@media (max-width: 640px) {
  .page { padding: var(--s5) var(--s4) var(--s7); gap: var(--s5); }
  .topbar__inner { padding: 0 var(--s4); }
  .brand__text em { display: none; }
  .card, .bp-chapter, .bp-head, .bp-cta { padding: var(--s4); }
  .feature, .adv, .split__item { padding: var(--s4); }
  .cta-band { padding: var(--s5) var(--s4); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: var(--s5) var(--s4); }
}

/* 系统级无障碍开关：用户打开「减弱动态效果」就别再做过渡与动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
