/* ==========================================================================
   SEDX 公司介绍网页 · 样式
   设计系统：藏青 + 金色（取自 SEDX logo / PDF 原稿），手机优先，克制留白
   ========================================================================== */

:root {
  --navy: #0b2158;
  --navy-2: #133a7a;
  --blue: #105caa;
  --gold: #f2b90d;
  --gold-2: #d99e00;
  --ink: #1f2733;
  --muted: #66707c;
  --muted-2: #9aa3ad;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e7ebf0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #e8ebef;
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- 手机外框：电脑上居中显示，不拉伸成宽屏 ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 560px) {
  html, body { display: flex; align-items: center; justify-content: center; }
  body { min-height: 100%; padding: 28px 0; }
  .phone {
    /* 2026-09-24 修：宽度写死。body 在这里是 flex 子项、按内容收缩宽度；封面改版后用了
       container-type:size（不对外报告内容宽度），.phone 的 width:100% 于是塌成一根细条。 */
    flex: none;
    width: 430px;
    height: min(900px, 92vh);
    max-height: 900px;
    border-radius: 40px;
    box-shadow: 0 30px 70px rgba(11, 33, 88, 0.28), 0 0 0 10px #0b2158,
      0 0 0 13px #1c2b44;
  }
}

/* ---------- 滚动分页容器：竖向一屏一页 ---------- */
.scroller {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.page {
  position: relative;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  padding: calc(28px + var(--safe-top)) 24px calc(28px + var(--safe-bottom));
  overflow: hidden;
}

/* ---------- 右侧翻页圆点 ---------- */
.dots {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 30;
}
.dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 33, 88, 0.22);
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
}
.dots button.active {
  background: var(--gold);
  height: 20px;
  border-radius: 5px;
}
.dots.on-dark button { background: rgba(255,255,255,0.4); }
.dots.on-dark button.active { background: var(--gold); }

/* ---------- 通用元素 ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
}
.h1 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--navy);
  margin-top: 6px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.brand-logo { height: 26px; width: auto; } /* 已无引用（③a 页头改用 .head-logo-chip），CSS 保留不删，无副作用 */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
/* 2026-09-21 Grace 反馈③a：页头 logo 从「放大低清横版 jpg」改成跟首页一样的 icon+文字排版，尺寸按页头缩小 */
.page-head .head-logo-chip { display: flex; align-items: center; gap: 6px; }
.page-head .head-logo-mark { height: 22px; width: auto; display: block; }
.page-head .head-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.page-head .head-logo-text .zh { font-size: 11px; font-weight: 800; color: var(--navy); }
.page-head .head-logo-text .en {
  font-size: 7px; font-weight: 700; letter-spacing: .06em; color: var(--blue);
  text-transform: uppercase; margin-top: 1px;
}
.page-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ==========================================================================
   封面
   ========================================================================== */
/* 2026-09-24 封面改版（Jacob 给的 GPT 设计图·先上 preview）：
   白底 + 右侧竖幅大楼照片 + 左侧标题/细线/八项图标 + 底部藏青品牌带。
   取代原「蓝色对角斜带 + 斜切大楼」版（旧版源码见 tag intro-20260921e）。
   整页作尺寸容器：字号/间距用 cqw/cqh，电脑上 430px 外框里也按外框算，不按窗口算。 */
.page-cover {
  padding: 0;
  background: #ffffff;
  color: var(--ink);
  position: relative;
  container-type: size;
}
/* 右侧照片（2026-09-25 改）：高度固定 = 页面 84%，宽度按原图比例（502×1353）→
   照片实边位置可算：图左 41% 是白色过渡，实边距页面右边 = 84cqh × 502/1353 × 59% ≈ 18.4cqh。
   不再用 object-fit:cover 横向裁切（那样实边会随屏幕长宽比漂移，9/25 Grace 截图标题压图即此因）。 */
.cover-hero-wrap {
  position: absolute;
  top: 0; right: 0;
  height: 84%;
  aspect-ratio: 502 / 1353;
  overflow: hidden;
  z-index: 0;
}
.cover-hero-wrap img {
  width: 100%; height: 100%;
  display: block;
}
.cover-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: calc(22px + var(--safe-top)) 22px 0;
}
.cover-logo-chip {
  /* 2026-09-21 Grace 修改意见①：logo 放大 + 左上角；图标用新高清透明底图，公司名用文字排版 */
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 4px 14px rgba(11,33,88,.08);
}
.cover-logo-chip .brand-mark { height: 40px; width: auto; display: block; }
.cover-logo-chip .cover-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.cover-logo-chip .cover-logo-text .zh { font-size: 14px; font-weight: 800; color: var(--navy); }
.cover-logo-chip .cover-logo-text .en {
  /* 2026-09-21 Grace 反馈①：SEDX 两端对齐撑满到与中文「東南鼎信」同宽（详见 git 历史注释） */
  display: block;
  font-size: 10px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; margin-top: 1px;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}
.cover-body {
  position: relative;
  z-index: 2;
  /* 固定文字栏：右边界 = 照片实边再往左留 4cqw。标题与八项都不许越过（超了由 fitCoverText 缩）。 */
  box-sizing: border-box;
  width: calc(100cqw - 18.4cqh - 4cqw);
  padding: 0 0 0 6.4cqw;
  margin: auto 0;               /* 标题块在 logo 与品牌带之间居中偏上 */
  transform: translateY(-4cqh);
}
.cover-headline {
  font-size: 26px;
  font-size: clamp(20px, 6.2cqw, 30px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.42;
  letter-spacing: .01em;
}
.cover-headline .hl {
  display: table;               /* 各占一行、宽度=文字本身宽度（fitCoverText 靠它量宽） */
  white-space: nowrap;          /* 永不折行：放不下由 fitCoverText 缩字号解决 */
}
.cover-rule {
  width: 10cqw; min-width: 36px;
  height: 2px;
  background: var(--navy);
  margin: 5cqh 0 4cqh;
}
.cover-words {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: calc(6cqw * var(--wk, 1));
  row-gap: 2.6cqh;
}
.cover-words .cw {
  display: flex;
  align-items: center;
  gap: calc(2.6cqw * var(--wk, 1));
  font-size: 14px;
  font-size: calc(clamp(13px, 3.6cqw, 15px) * var(--wk, 1));
  font-weight: 500;
  color: #2b3644;
  white-space: nowrap;
}
.cover-words .cw svg {
  width: 26px; height: 26px;
  width: calc(clamp(20px, 6cqw, 26px) * var(--wk, 1)); height: calc(clamp(20px, 6cqw, 26px) * var(--wk, 1));
  flex: none;
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 底部藏青品牌带：金色竖线 + 英文衬线 + 中文 */
.cover-banner {
  position: relative;
  z-index: 2;
  flex: 0 0 16%;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6.4cqw var(--safe-bottom) 9.8cqw;
}
.cover-banner-inner {
  border-left: 2px solid var(--gold);
  padding-left: 3.4cqw;
}
.cover-banner-inner .en {
  font-family: "Times New Roman", "Songti SC", Georgia, serif;
  font-size: clamp(13px, 4.6cqw, 19px);
  font-weight: 700;
  letter-spacing: .01em;
}
.cover-banner-inner .zh {
  font-size: clamp(13px, 3.9cqw, 16px);
  color: #d9e2f5;
  margin-top: 4px;
  letter-spacing: .06em;
}
.cover-swipe-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(6px + var(--safe-bottom));
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

/* ==========================================================================
   我们的服务
   ========================================================================== */
.service-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.service-card .thumb {
  flex: 0 0 78px;
  width: 78px; height: 78px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .thumb .no {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(11,33,88,.75);
  border-radius: 6px; padding: 1px 6px;
}
.service-card .info { flex: 1; min-width: 0; }
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.service-card p { margin-top: 5px; font-size: 13px; line-height: 1.65; color: var(--muted); }
/* 2026-09-21 Jacob 拍：优先级最低，顺手做——不动结构/字号/图片尺寸，只把卡片间距和内边距
   轻轻收一点，凑够 29px 溢出的空间。收不下就算了，不为它单独加变量。 */
.page-services .service-card { padding: 12px; margin-bottom: 10px; }

/* ==========================================================================
   企业发展赋能计划
   ========================================================================== */
/* 2026-09-21：唯一真正装不下一屏的特色页——全局 .page 留白已恢复成宽松版（28/24），
   这里单独把本页的外边距压回紧凑版，不影响其他页。压缩只留在本页作用域内。 */
.page.page-program {
  padding: calc(20px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
}
.page-program .page-head { margin-bottom: 10px; }
.program-hero {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  color: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.program-hero .en { font-size: 11px; opacity: .85; line-height: 1.4; }
.program-hero .zh { font-size: 17px; font-weight: 800; margin-top: 4px; }
.program-subtitle { font-size: 14px; font-weight: 800; color: var(--navy); margin: 2px 0 4px; }
.program-intro { font-size: 12px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }

.program-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 6px;
  background: var(--card);
}
.program-row .row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.program-row .row-no {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.program-row .row-service { font-size: 15px; font-weight: 800; color: var(--navy); }
/* 2026-09-21 排版压缩（不拆页·靠排版装进一屏）：原来 content 数组逐条 <li> 竖排，
   一条一行，最多的一行（公司秘书·7 条）单独就要 7 行。改成用间隔号"·"连排成一段
   流动文字，按容器宽度自然折行——条目文字一字不改、顺序不变、不合并不删减，
   只是展示层不再强制"一条一行"。*/
.program-row .row-content {
  font-size: 12px; color: var(--ink); line-height: 1.45;
}
.program-row .row-content .sep {
  color: var(--gold-2);
  margin: 0 4px;
  font-weight: 700;
}
.program-row .row-highlight {
  margin-top: 6px;
  background: #eef3fb;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--navy-2);
  line-height: 1.45;
}
.program-footnote { font-size: 11px; color: var(--muted-2); margin-top: 4px; }

/* 2026-09-22 Grace 反馈（特色页「字可以大一点，下面空的有点多」）：
   根因 = 9/21 按矮屏压了固定字号 → 高屏下内容只占上半截。改为两件事：
   ① 上下居中：内容（含 hero）整块在 logo 以下的空间里居中；用 margin:auto 而非
      justify-content:center —— 内容超出一屏时自动退回顶部对齐可滚动，不会把顶部切掉。
   ② 按本页高度缩放：以本页为尺寸容器（cqh = 本页高度的 1%），矮屏(≤640)保持原字号，
      高屏(≥840)放大到上限，中间线性过渡。公式 = 小值 + (100cqh − 640px) × 斜率。
      每条先写 px 旧值兜底：不支持容器单位的浏览器会忽略 clamp 那行，退回原样。
   作用域只在 .page-program，不外溢。 */
.page.page-program { container-type: size; }
.page-program .page-body { display: flex; flex-direction: column; }
.page-program .page-center { margin: auto 0; }
.page-program .page-head { margin-bottom: 10px; margin-bottom: clamp(10px, calc(10px + (100cqh - 640px) * 0.06), 22px); }
.page-program .program-hero { padding: 12px 14px; padding: clamp(12px, calc(12px + (100cqh - 640px) * 0.02), 16px) 14px; margin-bottom: 10px; margin-bottom: clamp(10px, calc(10px + (100cqh - 640px) * 0.03), 16px); }
.page-program .program-hero .en { font-size: 11px; font-size: clamp(11px, calc(11px + (100cqh - 640px) * 0.0075), 12.5px); }
.page-program .program-hero .zh { font-size: 17px; font-size: clamp(17px, calc(17px + (100cqh - 640px) * 0.015), 20px); }
/* 标题 18 个字必须一行：字号再受宽度封顶（可用宽 = 本页宽 − 左右留白 68px，÷ 18.5 字）·防 360 宽屏把「划」挤到第二行 */
.page-program .program-hero .zh { white-space: nowrap; font-size: min(clamp(17px, calc(17px + (100cqh - 640px) * 0.015), 20px), calc((100cqw - 68px) / 18.5)); }
.page-program .program-subtitle { font-size: 14px; font-size: clamp(14px, calc(14px + (100cqh - 640px) * 0.01), 16px); }
.page-program .program-intro { font-size: 12px; font-size: clamp(12px, calc(12px + (100cqh - 640px) * 0.0125), 14.5px); margin-bottom: 10px; margin-bottom: clamp(10px, calc(10px + (100cqh - 640px) * 0.03), 16px); }
.page-program .program-row { padding: 10px; padding: clamp(10px, calc(10px + (100cqh - 640px) * 0.02), 14px); margin-bottom: 6px; margin-bottom: clamp(6px, calc(6px + (100cqh - 640px) * 0.03), 12px); }
.page-program .program-row .row-service { font-size: 15px; font-size: clamp(15px, calc(15px + (100cqh - 640px) * 0.0125), 17.5px); }
.page-program .program-row .row-content { font-size: 12px; font-size: clamp(12px, calc(12px + (100cqh - 640px) * 0.0125), 14.5px); }
.page-program .program-row .row-highlight { font-size: 12px; font-size: clamp(12px, calc(12px + (100cqh - 640px) * 0.0125), 14.5px); padding: 6px 8px; padding: clamp(6px, calc(6px + (100cqh - 640px) * 0.01), 8px) 8px; }
/* 矮屏（≤660·如 iPhone SE 在微信里 ≈603）：字号守 12px 底线不动，只收间距（先收留白、不收字） */
@container (max-height: 660px) {
  .page-program .page-head { margin-bottom: 8px; }
  .page-program .program-hero { padding: 8px 12px; margin-bottom: 8px; }
  .page-program .program-subtitle { margin: 0 0 2px; }
  .page-program .program-intro { margin-bottom: 8px; }
  .page-program .program-row { padding: 7px 9px; margin-bottom: 5px; }
  .page-program .program-row .row-head { margin-bottom: 2px; }
  .page-program .program-row .row-highlight { margin-top: 4px; padding: 4px 8px; }
}
@media (max-height: 660px) {
  .page.page-program { padding-top: calc(14px + var(--safe-top)); padding-bottom: calc(12px + var(--safe-bottom)); }
}

/* ==========================================================================
   成功案例（列表）
   ========================================================================== */
.case-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--card);
  cursor: pointer;
}
.case-item .thumb {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 12px; overflow: hidden;
}
.case-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-item .meta { flex: 1; min-width: 0; }
.case-item .idx { font-size: 11px; color: var(--gold-2); font-weight: 800; }
.case-item h3 {
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-item .brief {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case-item .chevron { color: var(--muted-2); font-size: 18px; flex-shrink: 0; }

/* ==========================================================================
   案例详情（覆盖层）
   ========================================================================== */
.case-overlay {
  position: absolute;
  inset: 0;
  background: var(--card);
  z-index: 40;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.case-overlay.open { transform: translateX(0); }
.case-detail-hero { position: relative; flex-shrink: 0; }
.case-detail-hero img { width: 100%; height: 200px; object-fit: cover; }
.case-detail-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,33,88,.55), rgba(11,33,88,0) 45%);
}
.case-back {
  position: absolute;
  top: calc(14px + var(--safe-top)); left: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(11,33,88,.55);
  color: #fff;
  border: none;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.case-detail-body { padding: 20px 22px calc(28px + var(--safe-bottom)); flex: 1; }
.case-detail-idx { font-size: 12px; color: var(--gold-2); font-weight: 800; letter-spacing: .04em; }
.case-detail-title { font-size: 20px; font-weight: 800; color: var(--navy); margin: 6px 0 16px; line-height: 1.4; }
.case-para { font-size: 14px; line-height: 1.85; color: var(--ink); margin-bottom: 14px; }
.case-para b { color: var(--navy); font-weight: 800; }

.btn-share {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-share:active { opacity: .85; }

/* ==========================================================================
   合伙人
   ========================================================================== */
.partner-deco {
  width: 42px; height: 140px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--blue), #cfd9ea);
  margin-bottom: 20px;
}
.partner-name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.partner-block { margin-top: 18px; }
.partner-block .bar-label {
  font-size: 15px; font-weight: 800; color: var(--ink);
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.partner-block .bar-label::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.partner-block p { font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.qual-list { margin-top: 6px; }
.qual-list li {
  font-size: 13.5px; color: var(--ink);
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.qual-list li::before {
  content: "▸"; position: absolute; left: 0; top: 6px; color: var(--gold-2);
}
.qual-list li:last-child { border-bottom: none; }

/* 2026-09-21 Jacob 拍：合伙人页资质必须 4 条在 375×667 一屏内全可见（不是"溢出归零"）。
   验收判据 = 资质看全，不是数值达标。压缩锁在 .page-partner 作用域内，不外溢到别的页；
   正文字号不低于 12px、客户文案一字不改、资质条目不删不合并——全部靠"压间距/压纯装饰元素
   （.partner-deco 是无文字内容的渐变装饰条，先从它下手，不牺牲可读性）"。 */
.page.page-partner {
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
}
.page-partner .page-head { margin-bottom: 14px; }
.page-partner .section-title { margin-bottom: 14px; }
.page-partner .partner-deco { height: 84px; margin-bottom: 14px; }
.page-partner .partner-block { margin-top: 14px; }
.page-partner .partner-block .bar-label { padding-bottom: 6px; margin-bottom: 6px; }
.page-partner .partner-block p { line-height: 1.65; }
.page-partner .qual-list { margin-top: 5px; }
.page-partner .qual-list li { padding: 5px 0 5px 18px; }

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.contact-hero img { width: 100%; height: 150px; object-fit: cover; }
.contact-row { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-row .icon {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: #eef3fb; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.contact-row .label { font-size: 12px; font-weight: 800; color: var(--blue); }
.contact-row .value { font-size: 13.5px; color: var(--ink); margin-top: 3px; line-height: 1.6; word-break: break-all; }
/* 2026-09-21 Jacob 拍：联系页二维码不能压边——它是要被扫的。二维码本身（.qr-box/.qr-grid img）
   和文字字号一个不动，只压纯装饰的头图高度 + 行间距挤出空间，让二维码完整露出。 */
.page-contact .contact-hero { height: auto; margin-bottom: 12px; }
.page-contact .contact-hero img { height: 112px; }
.page-contact .contact-row { margin-bottom: 11px; }
.qr-grid { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.qr-grid .qr-box {
  flex: 0 1 calc(50% - 7px); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px; text-align: center;
}
.qr-grid img { width: 100%; border-radius: 6px; }

/* ==========================================================================
   分享图弹层
   ========================================================================== */
.share-modal {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(11,33,88,.72);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px 20px;
}
.share-modal.open { display: flex; }
.share-modal-inner {
  background: #fff;
  border-radius: 18px;
  padding: 10px 14px 16px;
  max-height: 90%;
  overflow: hidden; /* 只让下面的图片预览区自己滚动；工具条整段都在安全区内，不会被这个 hidden 切到 */
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}
/* 顶部工具条：分享图标 + 关闭图标，同一排、同一层级、视觉重量相当，都在卡片内边距以内 */
.share-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 6px;
}
.icon-btn {
  width: 44px; height: 44px; /* 触控区 44×44pt；视觉用居中的小图标，热区留满 */
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:active { opacity: .85; }
.icon-btn .share-icon { width: 19px; height: 19px; }
/* [hidden] 属性本该 display:none，但和上面 .icon-btn{display:flex} 特异性相同、
   源码顺序又在后面，会把 [hidden] 盖掉——显式写一条保证隐藏真的生效（微信里分享图标就靠它藏起来） */
.icon-btn[hidden] { display: none; }
.share-canvas-wrap {
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}
.share-canvas-wrap img { width: 100%; border-radius: 12px; display: block; }
.share-hint {
  flex-shrink: 0;
  min-height: 1.5em; /* 有提示才占位，没有提示时也不跳动 */
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.share-loading {
  padding: 60px 20px; text-align: center; color: var(--muted); font-size: 13px;
}

/* ---------- 离屏渲染模板（生成分享图专用，不参与页面可视布局） ---------- */
.share-offscreen {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 750px;
}
.share-template {
  width: 750px;
  background: #ffffff;
  font-family: var(--font);
  padding: 0 0 40px;
}
.share-template .st-top {
  display: flex; align-items: center; gap: 14px;
  padding: 30px 36px 22px;
  border-bottom: 1px solid #eee;
}
.share-template .st-top img { height: 34px; }
.share-template .st-hero { width: 100%; height: 320px; object-fit: cover; }
.share-template .st-body { padding: 30px 40px 10px; }
.share-template .st-idx { font-size: 20px; color: #d99e00; font-weight: 800; }
.share-template .st-title { font-size: 34px; font-weight: 800; color: #0b2158; margin: 10px 0 22px; line-height: 1.4; }
.share-template .st-para { font-size: 20px; line-height: 1.9; color: #1f2733; margin-bottom: 22px; }
.share-template .st-para b { color: #0b2158; }
.share-template .st-bottom {
  margin-top: 10px;
  padding: 30px 40px 0;
  display: flex; align-items: center; gap: 20px;
  border-top: 1px solid #eee;
}
.share-template .st-qr { flex-shrink: 0; line-height: 0; }
.share-template .st-bottom-text { font-size: 16px; color: #66707c; line-height: 1.6; }
.share-template .st-bottom-text b { color: #0b2158; font-size: 18px; display: block; margin-bottom: 4px; }

/* ==========================================================================
   2026-09-22 全站（除封面）统一规则 —— 特色页验证过的做法推到其余内容页
   Jacob：「每页要单独调，也可以先有个规范，比如上下位置居中，然后个性化微调」
   规范三条：
   ① 居中：标题+内容整块在 logo 以下居中（.page-center 用 margin:auto·溢出时退回顶部可滚）
   ② 缩放：每页自身作尺寸容器；--g = 本页高度超出 640px 的部分（0~200px 封顶）。
      各元素 = 矮屏基准值 + --g × 斜率 → 640 以下保持原样、840 以上到上限。
      每条先写 px 兜底（不支持容器单位的浏览器退回原样）。
   ③ 矮屏（本页 ≤660）：字号守底线不动，只收间距与纯装饰（头图/装饰条/缩略图）。
   个性化微调写在各页块里，作用域互不外溢。特色页（.page-program）规则见上方，不在此。
   ========================================================================== */
.page.page-services, .page.page-cases, .page.page-partner, .page.page-contact { container-type: size; }
:is(.page-services, .page-cases, .page-partner, .page-contact) .page-body { display: flex; flex-direction: column; }
:is(.page-services, .page-cases, .page-partner, .page-contact) .page-center {
  margin: auto 0;
  --g: clamp(0px, 100cqh - 640px, 200px);
}
:is(.page-services, .page-cases, .page-partner, .page-contact) .page-head {
  margin-bottom: 10px; margin-bottom: clamp(10px, calc(10px + (100cqh - 640px) * 0.06), 22px);
}
:is(.page-services, .page-cases, .page-partner, .page-contact) .page-center .section-title {
  margin-bottom: 14px; margin-bottom: calc(14px + var(--g) * 0.04);
}

/* —— 我们的服务 —— */
.page-services .service-card { padding: calc(12px + var(--g) * 0.02); margin-bottom: calc(10px + var(--g) * 0.04); }
.page-services .service-card .thumb { flex-basis: calc(78px + var(--g) * 0.08); width: calc(78px + var(--g) * 0.08); height: calc(78px + var(--g) * 0.08); }
.page-services .service-card h3 { font-size: calc(16px + var(--g) * 0.01); }
.page-services .service-card p { font-size: calc(13px + var(--g) * 0.0075); }

/* —— 成功案例（列表） —— */
.page-cases .case-item { padding: calc(12px + var(--g) * 0.02); margin-bottom: calc(12px + var(--g) * 0.04); }
.page-cases .case-item .thumb { flex-basis: calc(64px + var(--g) * 0.08); width: calc(64px + var(--g) * 0.08); height: calc(64px + var(--g) * 0.08); }
.page-cases .case-item h3 { font-size: calc(15px + var(--g) * 0.01); }
.page-cases .case-item .brief { font-size: calc(12px + var(--g) * 0.0075); }

/* —— 合伙人（装饰条随高度伸展，吃掉高屏多出的空间） —— */
.page-partner .partner-deco { height: calc(84px + var(--g) * 0.25); margin-bottom: calc(14px + var(--g) * 0.03); }
.page-partner .partner-block { margin-top: calc(14px + var(--g) * 0.04); }
.page-partner .partner-block p { font-size: calc(13.5px + var(--g) * 0.005); line-height: calc(1.65 + 0.001 * var(--g) / 1px); }
.page-partner .qual-list li { padding-top: calc(5px + var(--g) * 0.01); padding-bottom: calc(5px + var(--g) * 0.01); }

/* —— 联系我们（头图随高度伸展；二维码不压） —— */
.page-contact .contact-hero img { height: calc(112px + var(--g) * 0.3); }
.page-contact .contact-row { margin-bottom: calc(11px + var(--g) * 0.03); }
.page-contact .contact-row .value { font-size: calc(13.5px + var(--g) * 0.005); }

/* —— 矮屏（本页 ≤660）：只收间距与装饰 —— */
@container (max-height: 660px) {
  :is(.page-services, .page-cases, .page-partner, .page-contact) .page-head { margin-bottom: 8px; }
  :is(.page-services, .page-cases, .page-partner, .page-contact) .page-center .section-title { font-size: 20px; margin-bottom: 10px; }
  .page-services .service-card { padding: 10px; margin-bottom: 8px; gap: 12px; }
  .page-services .service-card .thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .page-services .service-card p { line-height: 1.55; }
  .page-cases .case-item { padding: 9px 10px; margin-bottom: 8px; }
  .page-cases .case-item .thumb { flex-basis: 54px; width: 54px; height: 54px; }
  .page-partner .partner-deco { display: none; } /* 压到 36px 会变成一个圆团，不像装饰条 → 矮屏直接不显示（纯装饰·无文字） */
  .page-partner .partner-name { margin-top: 2px; }
  .page-partner .partner-block { margin-top: 10px; }
  .page-partner .partner-block p { line-height: 1.6; }
  .page-partner .qual-list li { padding-top: 4px; padding-bottom: 4px; }
  .page-contact .contact-hero { margin-bottom: 10px; }
  .page-contact .contact-hero img { height: 72px; }
  .page-contact .contact-row { margin-bottom: 8px; }
}
@media (max-height: 660px) {
  .page.page-services, .page.page-cases, .page.page-contact { padding-top: calc(16px + var(--safe-top)); padding-bottom: calc(14px + var(--safe-bottom)); }
  .page.page-partner { padding-top: calc(16px + var(--safe-top)); padding-bottom: calc(14px + var(--safe-bottom)); }
}
/* 居中块最后一项不留下外边距，否则下方空白比上方多一截 */
:is(.page-services, .page-cases, .page-partner, .page-contact, .page-program) .page-center > :last-child { margin-bottom: 0; }
