/* 盛元汇诚官网 —— 简约大气 · 单一来源样式表
   注意：本文件由人工维护，构建器不会改写它。
   设计令牌：8pt 间距栅格 + 流体字号，改一处全站跟着变。 */

:root {
  /* 品牌色 */
  --brand: #0b5cff;
  --brand-dark: #0847c9;
  --brand-deep: #063a9e;
  --brand-soft: #eaf0ff;
  --brand-soft-2: #f3f7ff;

  /* 中性色阶 */
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #697586;
  --ink-4: #98a2b3;
  --line: #e4e7ec;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #fbfcfe;

  /* 圆角语言（统一，不再有两套） */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* 阴影：三层，越往上越远 */
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .05);
  --shadow-md: 0 2px 6px rgba(16, 24, 40, .05), 0 12px 28px rgba(16, 24, 40, .08);
  --shadow-lg: 0 4px 12px rgba(16, 24, 40, .07), 0 24px 56px rgba(16, 24, 40, .11);
  --ring: 0 0 0 3px rgba(11, 92, 255, .14);

  /* 间距栅格：8 的倍数 */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;

  /* 流体字号：小屏不挤、大屏有气势 */
  --fs-h1: clamp(32px, 4.4vw, 50px);
  --fs-h2: clamp(25px, 3.1vw, 36px);
  --fs-h3: clamp(18px, 1.7vw, 21px);
  --fs-lead: clamp(16px, 1.45vw, 18.5px);
  --fs-body: 16.5px;
  --fs-sm: 15px;
  --fs-xs: 13.5px;

  --wrap: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.78;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 标题层级：h1→h4 逐级递减，与正文拉开差距 */
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 17px; }
p { margin: 0 0 1.05em; }
a { color: var(--brand); text-decoration: none; transition: color .16s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { font-weight: 650; }

/* 焦点可见性：键盘导航与无障碍 */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); }
.wrap-narrow { max-width: 780px; }
.wrap-mid { max-width: 940px; }
.muted { color: var(--ink-3); font-size: var(--fs-xs); }
.hidden { display: none !important; }
/* HTML 的 hidden 属性和 .hidden 一样必须压得住组件样式：
   .btn 等类会声明 display，作者样式优先于浏览器默认样式，不加 !important 会露出来。 */
[hidden] { display: none !important; }
.empty-note { color: var(--ink-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
  text-decoration: none; white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(11, 92, 255, .3); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 92, 255, .26); }
.btn-outline { background: #fff; color: var(--brand); border-color: #c9d6ff; }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft-2); color: var(--brand-dark); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-deep); transform: translateY(-1px); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-mini { padding: 5px 12px; font-size: var(--fs-xs); font-weight: 500; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* 文字链接箭头 */
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
.card-link::after { content: "→"; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #3d7bff);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: -.5px;
  box-shadow: 0 2px 8px rgba(11, 92, 255, .28);
}
/* 后台上传的 Logo 图片：撑满方块，继承圆角 */
.brand-mark--img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text strong { font-size: 16.5px; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 10.5px; color: var(--ink-3); letter-spacing: .16em; }
/* margin-right 负值抵消容器 gap：导航末项到操作区与导航项间距一致（14+32-18=28px） */
.site-nav { margin-left: auto; margin-right: -18px; }
/* 导航等距：不用 flex gap（依赖文字宽度），改为每项固定水平内边距，任意相邻两项间距一致 */
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; padding: 6px 14px; position: relative; }
.site-nav a:hover { color: var(--brand); }
.site-nav .active a { color: var(--brand); font-weight: 600; }
.site-nav .active a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -22px; height: 2.5px;
  background: var(--brand); border-radius: 3px;
}
.header-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.header-phone {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.header-phone svg { color: var(--brand); }
.header-phone:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: var(--sp-3) 0 0; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); color: var(--ink-3);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0 clamp(56px, 7vw, 92px);
  background:
    radial-gradient(1000px 480px at 84% -12%, var(--brand-soft), transparent 68%),
    radial-gradient(760px 400px at 6% 112%, #f2f6ff, transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-dark); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .08em; margin-bottom: var(--sp-2);
  padding: 6px 14px; background: #fff; border: 1px solid #d5e0ff; border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 92, 255, .18);
}
.hero h1 { margin-bottom: var(--sp-2); }
.hero-sub { font-size: clamp(15.5px, 1.5vw, 18px); color: var(--brand-dark); font-weight: 600; margin-bottom: var(--sp-2); letter-spacing: -.005em; }
.hero-desc { color: var(--ink-2); font-size: var(--fs-lead); max-width: 640px; line-height: 1.8; margin-bottom: 0; }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-4) 0 var(--sp-5); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: var(--sp-5);
  list-style: none; margin: 0; padding: var(--sp-3) 0 0;
  border-top: 1px solid #dde4f2; justify-content: start;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.hero-stats span { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 2px; }

/* Hero 右侧：AI 对话示意面板（纯 CSS，不依赖图片，移动端同样可见） */
.hero-art { min-width: 0; }
/* 后台配图形态：与 CSS 示意面板保持同一套圆角与投影 */
.hero-art--photo { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-art--photo img { width: 100%; height: auto; display: block; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-panel__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-2); background: var(--bg-soft-2);
}
.hero-panel__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dce6; display: block; }
.hero-panel__bar i:first-child { background: #ffbdb8; }
.hero-panel__bar i:nth-child(2) { background: #ffe0a3; }
.hero-panel__bar i:nth-child(3) { background: #b9ebc9; }
.hero-panel__bar span { margin-left: 4px; font-size: 12px; color: var(--ink-3); }
.hero-panel__body { padding: var(--sp-3); display: grid; gap: 14px; }
.hero-msg { display: flex; gap: 10px; align-items: flex-start; }
.hero-msg__ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--ink-4);
}
.hero-msg--ai .hero-msg__ico { background: linear-gradient(135deg, var(--brand), #3d7bff); }
.hero-msg__bubble {
  background: var(--bg-soft); border-radius: 4px 12px 12px 12px;
  padding: 11px 15px; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.65;
}
.hero-msg--ai .hero-msg__bubble {
  background: var(--brand-soft-2); border: 1px solid #dbe5ff;
  border-radius: 12px 12px 12px 4px; color: var(--ink);
}
.hero-msg__bubble b { color: var(--brand-dark); }
.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.hero-metric {
  background: var(--bg-soft-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center;
}
.hero-metric span { display: block; font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.hero-metric b { font-size: 17px; color: var(--brand-dark); letter-spacing: -.02em; }

/* 旧版漂浮卡片：保留选择器以兼容历史内容，但改用正常流布局 */
.hero-card {
  position: static; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow);
}
.hero-card span { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.hero-card b { font-size: 20px; color: var(--brand); }

/* ---------- 区块 ---------- */
.section { padding: clamp(52px, 6.6vw, 92px) 0; }
.section-alt { background: var(--bg-soft); }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.sec-head { max-width: 760px; margin-bottom: var(--sp-5); }
.sec-head-center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow { color: var(--brand); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .09em; margin-bottom: 10px; }
.sec-desc { color: var(--ink-2); font-size: var(--fs-lead); margin: 0; line-height: 1.78; }

/* ---------- 事实块（GEO：可被 AI 引擎直接抽取的键值对） ---------- */
.fact-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; margin: 0; padding: 0;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.fact-list > div { background: #fff; padding: var(--sp-3) var(--sp-3); }
/* 末行不满时让最后一条横跨整行，消除行尾空格（类由构建期按条数计算） */
.fact-list > .fact-wide { grid-column: 1 / -1; }
.fact-list > .fact-wide dd { max-width: 720px; }
.fact-list dt { font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: 5px; font-weight: 500; }
.fact-list dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); font-weight: 600; line-height: 1.6; }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; gap: var(--sp-3); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-3) var(--sp-4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #cfdcfb; transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; line-height: 1.75; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: var(--sp-2);
  transition: background .2s ease;
}
.card:hover .card-icon { background: var(--brand); }
.card:hover .card-icon svg { fill: #fff; }
.card-icon svg { width: 22px; height: 22px; fill: var(--brand); transition: fill .2s ease; }
.card-icon-lg { width: 56px; height: 56px; border-radius: 14px; }
.card-icon-lg svg { width: 28px; height: 28px; }

/* 后台配了真人配图时的替换形态：卡片里改成顶到边的横幅，读起来才不浪费图 */
.card .card-icon-photo {
  width: auto; height: auto; display: block; background: var(--brand-soft);
  margin: calc(var(--sp-4) * -1) calc(var(--sp-3) * -1) var(--sp-2);
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  overflow: hidden; aspect-ratio: 16 / 9;
}
.card .card-icon-photo img { width: 100%; height: 100%; object-fit: cover; }
/* 服务详情页的头图仍是左侧小图，保持与文字并排的行布局 */
.service-block__head .card-icon-photo {
  width: 88px; height: 88px; flex: 0 0 auto; margin-bottom: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.service-block__head .card-icon-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-en {
  font-size: 11.5px; color: var(--ink-4); letter-spacing: .09em; text-transform: uppercase;
  margin: -6px 0 10px; font-weight: 500;
}
.service-card { display: flex; flex-direction: column; }
/* 服务卡头部：SVG 图标与标题同一行（配图横幅形态不走此结构，见 pages_main._service_cards） */
.service-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.service-card__head .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.service-card__head h3 { margin: 0; }
.service-card .card-en { margin-top: 0; }   /* 负 margin 是为贴旧版 h3 底，行头结构下会顶到标题 */
.service-card .card-link { margin-top: auto; padding-top: var(--sp-2); }

/* ---------- 服务详情块 ---------- */
.service-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px); margin-bottom: var(--sp-3);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-block__head { display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-2); }
.service-block__head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.service-block__summary { color: var(--ink-2); font-size: var(--fs-lead); margin-bottom: var(--sp-4); line-height: 1.8; }
.service-block__cols {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--sp-4); margin-bottom: var(--sp-3);
}
.service-block__cols h3 { font-size: 15px; color: var(--ink-3); text-transform: none; letter-spacing: .02em; margin-bottom: var(--sp-2); }
.ul-check { list-style: none; padding: 0; margin: 0; }
.ul-check li { position: relative; padding-left: 28px; margin-bottom: 11px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.ul-check li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row-lg .tag { padding: 8px 16px; font-size: var(--fs-xs); }
.tag {
  display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); font-size: var(--fs-xs); line-height: 1.6;
}

/* 服务间交叉链接（内链权重传导） */
.service-nav {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-3);
  padding-top: var(--sp-3); border-top: 1px dashed var(--line);
}
.service-nav span { font-size: var(--fs-xs); color: var(--ink-3); align-self: center; }
.service-nav a {
  font-size: var(--fs-xs); padding: 5px 13px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2); background: var(--bg-soft-2);
}
.service-nav a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.steps-plain { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-3); position: relative;
}
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: var(--fs-xs); margin: 0; line-height: 1.75; }
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700;
  margin-bottom: var(--sp-2); font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq-list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  cursor: pointer; padding: 19px var(--sp-3); font-weight: 600; font-size: var(--fs-body);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-2); transition: background .16s ease; line-height: 1.6;
}
.faq-item summary:hover { background: var(--bg-soft-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #cfdcfb; position: relative;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 10px 1.6px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 1.6px 10px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 10px 1.6px no-repeat,
    linear-gradient(#fff, #fff) center / 1.6px 10px no-repeat,
    var(--brand);
  border-color: var(--brand);
}
.faq-answer { padding: 0 var(--sp-3) 22px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.85; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0847c9 0%, #0b5cff 45%, #2f7bff 100%);
  color: #fff; padding: clamp(44px, 5.5vw, 68px) 0;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 88% 120%, rgba(255, 255, 255, .16), transparent 70%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; font-size: clamp(23px, 2.6vw, 30px); }
.cta-inner p { color: rgba(255, 255, 255, .88); margin: 0; font-size: var(--fs-lead); }
/* 底部横幅微信二维码位：白卡托底保证扫码对比度，图上标签下 */
.cta-qr-row { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cta-qr { margin: 0; text-align: center; }
.cta-qr img {
  display: block; width: 84px; height: 84px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.cta-qr figcaption { margin-top: 6px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .9); }

/* ---------- 内页头 ---------- */
.page-hero {
  padding: clamp(40px, 5vw, 60px) 0 clamp(32px, 4vw, 44px);
  background:
    radial-gradient(760px 320px at 88% -30%, #eaf0ff, transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 900px; }
.page-hero-desc { color: var(--ink-2); max-width: 760px; margin: 0; font-size: var(--fs-lead); line-height: 1.8; }
/* 页面头图区可选配图 */
.page-hero-photo {
  margin-top: var(--sp-4); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.page-hero-photo img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }

/* ---------- 正文排版 ---------- */
.prose { max-width: 780px; }
.prose > p { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.9; }
.prose h2 { margin-top: var(--sp-5); }
.prose h2:first-child { margin-top: 0; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 38px; margin-bottom: var(--sp-3); }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
}
.tl-item h3 { font-size: 17px; margin-bottom: 5px; }
.tl-item p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; line-height: 1.75; }

/* ---------- 文章列表 / 卡片 ---------- */
/* 文章列表：单列纵向排布，卡片内部左图右文 */
.post-list { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.post-card {
  display: flex; flex-direction: row; align-items: stretch; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: #cfdcfb; transform: translateY(-3px); }
/* 左侧封面：固定宽度，高度撑满卡片，裁切填充 */
.post-card__cover {
  width: 300px; height: auto; min-height: 168px; flex-shrink: 0;
  background: var(--bg-soft); object-fit: cover; align-self: stretch;
}
.post-card__body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; min-width: 0; }
.post-card__body h2 { font-size: 20px; margin-bottom: 10px; }
.post-card__body h2 a { color: var(--ink); }
.post-card__body h2 a:hover { color: var(--brand); }
.post-card__summary {
  color: var(--ink-2); font-size: var(--fs-sm); margin: 0 0 var(--sp-2); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { margin-top: auto; font-size: var(--fs-xs); color: var(--ink-4); }
/* 无封面文章：正文占满整行 */
.post-card:not(:has(.post-card__cover)) .post-card__body { padding: var(--sp-3) var(--sp-4); }
/* 窄屏回退：图片在上、文字在下 */
@media (max-width: 640px) {
  .post-card { flex-direction: column; }
  .post-card__cover { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
}

/* 文章正文 */
.article-body { max-width: 780px; }
.article-body p { font-size: var(--fs-lead); line-height: 1.9; color: var(--ink-2); }
.article-body h2 { margin-top: var(--sp-5); }
.article-body ul, .article-body ol { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.9; }
.article-meta { font-size: var(--fs-xs); color: var(--ink-4); margin-bottom: var(--sp-4); }

/* ---------- 表单 ---------- */
.form { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.field { display: block; margin-bottom: var(--sp-2); }
.field > span { display: block; font-size: var(--fs-xs); font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field-tip { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field input, .field select, .field textarea, .content-area {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfd4de; }
.field input:focus, .field select:focus, .field textarea:focus, .content-area:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field-row { display: flex; gap: 12px; align-items: flex-end; }
.field-row .field { flex: 1; margin-bottom: 0; }
.field-row .btn { height: 45px; }
.form-foot { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-1); }
.form-note { margin: 0; font-size: var(--fs-xs); color: var(--brand-dark); min-height: 1.2em; }
.form-note.error { color: #d92d20; }
.form-note.ok { color: #067647; }
.form-privacy { font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--sp-2); line-height: 1.7; }
.form-links { margin: 8px 0 0; font-size: var(--fs-xs); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.contact-main h2 { font-size: 21px; margin-bottom: var(--sp-3); }
.contact-side { position: sticky; top: calc(var(--header-h) + 20px); }
.lead-form { max-width: 720px; }
.map-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.map-card__art {
  height: 156px; position: relative;
  background:
    linear-gradient(rgba(11, 92, 255, .07) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(11, 92, 255, .07) 1px, transparent 1px) 0 0 / 26px 100%,
    linear-gradient(135deg, #eef3ff, #f6f8fb);
}
.map-card__pin {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(11, 92, 255, .16);
}
.map-card__body { padding: var(--sp-3); }
.map-card__body h3 { font-size: 17px; }
.info-list { list-style: none; margin: 0 0 var(--sp-2); padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--ink-3); min-width: 76px; flex-shrink: 0; }
.info-list strong { font-weight: 600; word-break: break-all; }
.map-card__actions { display: flex; gap: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0d1424; color: #c3cbd9; padding: clamp(40px, 5vw, 60px) 0 var(--sp-3); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--sp-4); margin-bottom: var(--sp-5);
}
.site-footer .brand { color: #fff; margin-bottom: var(--sp-2); }
.site-footer .brand-mark { box-shadow: none; }
.site-footer .brand-text em { color: #8b96a9; }
.footer-desc { font-size: var(--fs-xs); color: #9aa5b8; line-height: 1.85; max-width: 420px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: var(--sp-2); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #9aa5b8; font-size: var(--fs-xs); }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
/* 联系方式：标签左列、内容右列的单行网格——四项共用同一标签列宽，
   视觉上垂直对齐；地址换行时在标签列右侧悬挂缩进，不会顶到行首 */
.footer-contact li {
  display: grid; grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 2px 12px; align-items: baseline;
  margin-bottom: 12px; font-size: var(--fs-xs); line-height: 1.7;
}
.footer-contact span { color: #7d8798; font-size: 12px; }
.footer-contact strong { color: #dbe2ec; font-weight: 500; word-break: break-word; }

/* 联系方式做成可点击（拨号 / 邮件 / 地图）：继承容器颜色，避免浏览器默认蓝紫破坏配色 */
.info-list strong a,
.footer-contact strong a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.info-list strong a:hover,
.footer-contact strong a:hover { color: var(--brand); border-bottom-color: currentColor; }
.site-footer .footer-contact strong a:hover { color: #fff; }

.footer-inner { padding-top: 4px; }
.footer-bottom {
  border-top: 1px solid #1e2637; padding-top: var(--sp-3);
  display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: var(--fs-xs); color: #7d8798; }
.footer-tip { color: #6b7688; }

/* ---------- 登录 ---------- */
.auth-wrap { padding: clamp(48px, 6vw, 80px) var(--sp-3); background: var(--bg-soft); }
.auth-card {
  max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: clamp(23px, 2.6vw, 28px); }
.auth-tip { color: var(--ink-2); font-size: var(--fs-xs); margin-bottom: var(--sp-3); line-height: 1.75; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: var(--radius-sm); margin-bottom: var(--sp-3); }
.tab {
  flex: 1; padding: 10px 0; border: 0; background: none; border-radius: 8px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit;
  transition: .18s ease;
}
.tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.sub-panel { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.auth-notice {
  margin-top: var(--sp-2); padding: 12px 15px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-dark); font-size: var(--fs-xs); line-height: 1.7;
}
.auth-notice.error { background: #fef3f2; color: #b42318; }

/* ---------- 用户中心 ---------- */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.account-head h2 { margin: 0 0 4px; font-size: 22px; }
.account-grid { display: grid; gap: var(--sp-3); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-3); }
.panel h3 { margin-bottom: var(--sp-2); }
.upload-row { display: flex; gap: 12px; align-items: center; margin: var(--sp-2) 0; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--ink-3); font-weight: 600; font-size: 12.5px; background: var(--bg-soft); white-space: nowrap; }
.table td { color: var(--ink-2); }
.table .row-actions { display: flex; gap: 8px; }
.status-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.status-pill[data-s="new"] { background: #eaf0ff; color: var(--brand-dark); }
.status-pill[data-s="contacted"], .status-pill[data-s="pending"] { background: #fffaeb; color: #b54708; }
.status-pill[data-s="won"], .status-pill[data-s="done"] { background: #ecfdf3; color: #067647; }
.status-pill[data-s="lost"], .status-pill[data-s="closed"] { background: #f2f4f7; color: var(--ink-3); }

/* ---------- 后台 ---------- */
.admin { padding: var(--sp-5) 0 var(--sp-7); background: var(--bg-soft); min-height: 70vh; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.admin-head h1 { font-size: 26px; margin-bottom: 4px; }
.admin-head-right { display: flex; align-items: center; gap: 12px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-default { background: #f2f4f7; color: var(--ink-3); }
.badge-saved { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.badge-dirty { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.admin-gate, .admin-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-3);
}
.admin-gate h2 { font-size: 20px; }
.claim-box { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-3); }
.admin-tab {
  padding: 10px 18px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit;
  transition: .18s ease;
}
.admin-tab:hover { border-color: #cfdcfb; color: var(--brand); }
.admin-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 页面内容分类栏：横向切换 + 吸顶，长页面滚动到一半也能随时换分类 */
.admin-tabs--cb {
  position: sticky; top: 0; z-index: 30;
  padding: 10px 0; background: var(--bg-soft);
  margin-bottom: var(--sp-2);
}
.admin-tabs--cb .admin-tab .badge { margin-left: 6px; }
.admin-tabs--cb .admin-tab.active .badge { background: rgba(255, 255, 255, .22); color: #fff; }
.admin-panel { margin-bottom: var(--sp-3); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 18px; }
.panel-head > div { display: flex; gap: 10px; }
.hint { font-size: var(--fs-xs); color: var(--ink-3); margin: 0 0 var(--sp-2); line-height: 1.7; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-2) var(--sp-3); }
.stat b { display: block; font-size: 26px; color: var(--ink); line-height: 1.2; }
.stat span { font-size: var(--fs-xs); color: var(--ink-3); }
.settings-group { margin-bottom: var(--sp-4); }
.settings-group h4 { font-size: 15px; margin-bottom: var(--sp-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-2); }
.content-group { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-3); margin-bottom: var(--sp-2); background: #fff; }
.content-group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.content-group__head h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.content-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; white-space: pre; overflow-wrap: normal; overflow-x: auto;
}
.admin-table-wrap { overflow-x: auto; }
.table select, .table input[type="text"] {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px;
  font-family: inherit; background: #fff;
}

/* ---------- 后台内容编辑器（cb-* / adv-panel） ---------- */
/* 这一组样式只服务 admin.html，站点前台不会用到。 */
.admin-body { display: block; }
.panel-ops { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* 页面分组 */
.cb-page { margin-bottom: var(--sp-5); }
.cb-page__head { margin-bottom: var(--sp-2); padding-left: 12px; border-left: 3px solid var(--brand); }
.cb-page__head h3 { margin: 0 0 2px; font-size: 19px; }
.cb-page__head p { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }

/* 区块：折叠卡片。summary 里放「标题 + 状态徽标」 */
.cb-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: var(--sp-2); overflow: hidden;
}
.cb-block > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 13px var(--sp-3); font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--bg-soft-2); list-style: none; user-select: none;
}
.cb-block > summary::-webkit-details-marker { display: none; }
.cb-block > summary::before {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-4);
  border-bottom: 2px solid var(--ink-4); transform: rotate(-45deg); flex: 0 0 auto;
  transition: transform .18s ease; margin-left: 2px;
}
.cb-block[open] > summary::before { transform: rotate(45deg); }
.cb-block > summary:hover { background: var(--brand-soft-2); }
.cb-block[open] > summary { border-bottom: 1px solid var(--line); }
.cb-block__body { padding: var(--sp-3); }
.cb-block__body > .cb-field + .cb-field { margin-top: var(--sp-2); }

/* 列表：条目卡片 */
.cb-list { margin-top: 4px; }
.cb-list__items { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.cb-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft-2); }
.cb-item__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.cb-item__no {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 700;
}
.cb-item__name { flex: 1 1 auto; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-item__ops { flex: 0 0 auto; display: flex; gap: 6px; }
.cb-item__body {
  padding: 14px; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
/* 多行输入占满整行，避免窄列里打字 */
.cb-item__body > .cb-field:has(textarea) { grid-column: 1 / -1; }

/* 单个字段 */
.cb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.cb-field > span { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }

/* 图片位 */
.cb-img { border: 1px dashed #cfdcfb; border-radius: var(--radius-sm); padding: 12px; background: var(--brand-soft-2); }
.cb-field.cb-img { display: block; }
.cb-img__head { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
/* 图片位旁的建议尺寸标注（来自内容模型 IMG 的 size 字段） */
.cb-img__size { font-style: normal; font-weight: 500; margin-left: 10px; color: var(--brand-dark); }
.cb-img__size::before { content: "建议尺寸 "; font-weight: 400; color: var(--ink-3); }
.cb-img__body { display: grid; grid-template-columns: 168px 1fr; gap: 14px; align-items: start; }
.cb-img__preview {
  width: 168px; height: 112px; border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cb-img__preview img { width: 100%; height: 100%; object-fit: cover; }
.cb-img__empty { font-size: 12px; color: var(--ink-4); text-align: center; padding: 0 10px; line-height: 1.5; }
/* 两个按钮并排；下方的说明输入框独占整行 */
.cb-img__ops { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.cb-img__alt { flex: 1 0 100%; display: block; margin-top: 2px; }
.cb-img__alt > span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.cb-img__alt > input { width: 100%; }

/* 高级模式：整块 HTML 覆盖 */
.adv-panel {
  margin-top: var(--sp-3); border: 1px solid #fedf89; border-radius: var(--radius);
  background: #fffdf5; padding: var(--sp-2) var(--sp-3);
}
.adv-panel > summary {
  cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: #b54708;
  padding: 4px 0; list-style: none;
}
.adv-panel > summary::-webkit-details-marker { display: none; }
.adv-panel > summary::before { content: "⚠ "; }
.adv-panel[open] > summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #fedf89; }
.adv-panel .content-area { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 100%; }

/* 表格里的小字备注 */
.cell-note { display: block; font-size: 12px; color: var(--ink-4); margin-top: 2px; }

/* 窄屏：图片位与条目字段改为单列 */
@media (max-width: 760px) {
  .cb-img__body { grid-template-columns: 1fr; }
  .cb-img__preview { width: 100%; height: 170px; }
  .cb-item__body { grid-template-columns: 1fr; }
  .cb-item__name { white-space: normal; }
}

/* ---------- 响应式 ---------- */
/* 中等屏：导航与 hero 开始吃紧 */
@media (max-width: 1080px) {
  .site-nav a { padding: 6px 9px; }       /* 收窄导航内边距 */
  .site-nav .active a::after { left: 9px; right: 9px; }
  .header-phone { display: none; }         /* 电话在窄屏让位，页脚仍有完整联系方式 */
  .header-inner { gap: var(--sp-3); }
  .service-block__cols { grid-template-columns: 1fr; gap: var(--sp-3); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-art { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}

@media (max-width: 768px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px var(--sp-3); box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-2); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 13px 0; }
  .site-nav .active a::after { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .wrap { padding: 0 var(--sp-3); }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: var(--sp-3); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-qr-row { gap: 12px; }
  .cta-qr img { width: 68px; height: 68px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, auto); gap: var(--sp-3) var(--sp-4); }
  .hero-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .card { padding: var(--sp-3) var(--sp-2); }
  .service-block { padding: var(--sp-3) var(--sp-2); }
  .brand-text em { display: none; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 打印 */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ================= 后台 · 文章编辑器增强 ================= */

.post-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.post-cover-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-cover-row input[type="text"] { flex: 1 1 260px; }

.post-cover-preview {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e6ef;
  background: #f6f7fb;
}

.post-preview {
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  min-height: 120px;
}

/* 正文 textarea 用等宽字体，编辑 HTML 更易读 */
[data-post-editor] textarea[name="p-content"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}
