/* ==========================================================================
   天安信达财税 — 基础样式层（公用文件）
   只负责：设计令牌 / 排版 / 版式骨架 / 通用组件 / 页头页脚 / 表单
   页面专属样式一律放各自的 css 文件，不写进本文件
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色：正红（主按钮/强调/图标）+ 暖金（描边/点缀）
     取值参考 www.tuobayun-china.com 实测主色 rgb(192,0,0) / rgb(201,149,30) */
  --c-brand: #c00000;
  --c-brand-deep: #9c0000;
  --c-brand-dark: #6e0000;
  --c-brand-soft: rgba(192, 0, 0, .08);
  --c-brand-soft2: rgba(192, 0, 0, .13);

  /* 辅金：小面积点缀（描边、顶线、序号） */
  --c-gold: #c9951e;
  --c-gold-2: #e0b455;
  --c-gold-soft: rgba(201, 149, 30, .13);

  /* 中性 */
  --c-ink: #1a1a1a;
  --c-paper: #f5f2ed;
  --c-paper-2: #faf8f4;
  --c-band: #efe5d2;
  --c-white: #ffffff;
  --c-line: #e8e5df;
  --c-line-2: #d8d3c8;
  --c-text: #333333;
  --c-muted: #6b6b6b;
  --c-muted-2: #8c8c8c;

  /* 语义 */
  --c-ok: #1f7a5c;

  /* 字体 */
  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-serif: Georgia, "Times New Roman", "Songti SC", serif;

  /* 尺寸 */
  --w: 1240px;
  --gutter: 28px;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(26, 26, 26, .05);
  --shadow: 0 8px 30px rgba(26, 26, 26, .08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 26, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 必须设在 html 上：仅 body{overflow-x:hidden} 时，body 内 overflow:hidden 容器的
     溢出内容仍会计入 html 的 scrollWidth，导致窄屏出现整页横向滚动 */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  /* 不要在此设 overflow-x:hidden：body 会成为滚动容器，
     破坏 .site-header 的 position:sticky（下滑后整条导航跟着滚走）。
     防整页横向滚动由 html 上的 overflow-x:hidden 承担。 */
}

/* 抽屉展开时用 clip 而非 hidden：hidden 会让 body 成为滚动容器，
   破坏 .site-header 的 sticky（下滑后开菜单，整条导航会消失）。
   clip 不创建滚动容器；不支持 clip 的旧浏览器退化为 visible，同样不破坏 sticky。 */
body.nav-open { overflow: clip; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--c-ink); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }

::selection { background: var(--c-gold); color: #fff; }

/* ---------- 3. 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 980px; }

/*
  区块节奏：三级间距规格，用来建立页面层次（避免所有区块都一样重）
    .section          主段  96px  —— 核心业务展示
    .section--tight   次段  72px  —— 支撑性内容
    .section--compact 紧凑段 56px + 顶部分隔线 —— 轻量内容
*/
.section { padding: 82px 0; position: relative; }
.section--tight { padding: 62px 0; }
.section--compact { padding: 56px 0; }
.section--paper { background: var(--c-paper-2); }
.section--white { background: var(--c-white); }
.section--ink { background: #241010; color: rgba(255, 255, 255, .8); }
.section--ink h2, .section--ink h3 { color: #fff; }

/* 紧凑段：顶部一条细分隔线，与上一区块拉开又不占空间 */
.section--compact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--c-line);
}

/* 区块序号：建立清晰的阅读序列，替代千篇一律的 eyebrow */
.sec-index {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.sec-index::before {
  content: attr(data-num);
  font-family: var(--f-serif); font-size: 50px; font-weight: 700;
  color: var(--c-brand); line-height: 1; letter-spacing: -.02em;
  position: relative;
}
.sec-index__txt { display: flex; flex-direction: column; line-height: 1.2; }
.sec-index b {
  font-size: 14px; font-weight: 700; color: var(--c-ink);
  letter-spacing: .02em;
}
.sec-index__en {
  font-size: 10.5px; font-weight: 600; color: var(--c-muted-2);
  letter-spacing: .22em; text-transform: uppercase; margin-top: 4px;
}
.sec-index::after {
  content: ""; width: 34px; height: 1px; background: var(--c-line-2); display: block;
}
/* 居中标题时，编号居中、去掉右侧单线，改为编号两侧对称装饰 */
.sec-head--center .sec-index { justify-content: center; gap: 10px; }
.sec-head--center .sec-index::after { display: none; }
.sec-head--center .sec-index::before {
  background-image: linear-gradient(var(--c-line-2), var(--c-line-2));
  background-size: 18px 1px; background-position: -26px center; background-repeat: no-repeat;
}
/* 深底区块内的编号反白 */
.sec-index--light::before {
  color: var(--c-gold-2);
  background-image: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28));
}
.sec-index--light b { color: rgba(255, 255, 255, .55); }
.sec-index--light::after { background: rgba(255, 255, 255, .28); }

/* ---------- 4. 区块标题 ---------- */
.sec-head { max-width: 760px; margin-bottom: 42px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-head--split .sec-head__main { max-width: 640px; }

.sec-head__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  color: var(--c-gold); text-transform: uppercase; margin-bottom: 16px;
}
.sec-head__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--c-gold); display: block;
}
.sec-head--center .sec-head__eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--c-gold); display: block;
}
.sec-head__title { font-size: 40px; line-height: 1.28; margin-bottom: 18px; }
.sec-head__desc { font-size: 16px; color: var(--c-muted); }
/* 居中标题的引言限宽，避免尾字单独成行 */
.sec-head--center .sec-head__desc { max-width: 620px; margin: 0 auto; }
.section--ink .sec-head__desc { color: rgba(255, 255, 255, .62); }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 26px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: all .28s var(--ease); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
}
.btn svg { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* 主按钮：正红实心（参考站同款处理） */
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-deep); box-shadow: 0 10px 26px rgba(192, 0, 0, .28); transform: translateY(-2px); }

/* 次按钮：红色描边 */
.btn--outline { border-color: var(--c-brand); color: var(--c-brand); background: transparent; }
.btn--outline:hover { background: var(--c-brand); color: #fff; box-shadow: 0 10px 26px rgba(192, 0, 0, .22); transform: translateY(-2px); }

/* 金色按钮：仅用于深底场景的小面积点缀 */
.btn--gold { background: var(--c-gold); color: #2a2005; }
.btn--gold:hover { background: var(--c-gold-2); box-shadow: 0 10px 26px rgba(201, 149, 30, .32); transform: translateY(-2px); }

/* 幽灵按钮：深底场景 */
.btn--ghost { border-color: rgba(255, 255, 255, .42); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--lg { height: 54px; padding: 0 34px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }

/* 文字链接箭头 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--c-brand);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; }
.link-arrow:hover { gap: 13px; color: var(--c-brand-deep); }
.section--ink .link-arrow { color: var(--c-gold-2); }

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s var(--ease);
}
/* 毛玻璃效果挂在 ::before 上而非 header 本身：
   backdrop-filter 直接作用于 .site-header 会使其成为 fixed 后代（移动端抽屉 .mainnav）
   的包含块，抽屉被压成 header 高度导致栏目看不全；伪元素不是抽屉祖先，无此问题 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(11, 29, 49, .08); }
.header__inner { display: flex; align-items: center; gap: 36px; height: var(--header-h); }

/* Logo：红色横版字标（assets/logo.png，透明底）。
   页眉浅底用原红；页脚深红底用 filter 转白，避免红叠红糊掉 */
.logo { display: flex; align-items: center; flex: none; }
.logo__img { display: block; height: 38px; width: auto; }
.logo__img:hover { opacity: .85; }

/* 主导航 */
.mainnav { flex: 1; display: flex; justify-content: center; }
.mainnav__list { display: flex; align-items: center; gap: 4px; }
.mainnav__item { position: relative; }
.mainnav__link {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--c-text);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.mainnav__link:hover, .mainnav__item.is-open > .mainnav__link { color: var(--c-brand); background: var(--c-paper-2); }
.mainnav__link.is-active { color: var(--c-brand); font-weight: 700; }
.mainnav__link.is-active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--c-gold); border-radius: 2px;
}
.mainnav__link svg { width: 10px; height: 10px; opacity: .5; transition: transform .25s var(--ease); }
.mainnav__item.is-open > .mainnav__link svg { transform: rotate(180deg); }

/* 下拉 */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 8px);
  min-width: 262px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .26s var(--ease); z-index: 20;
}
.mainnav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__item { display: block; }
.dropdown__item a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-radius: var(--r-sm); font-size: 14px; color: var(--c-text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.dropdown__item a:hover { background: var(--c-paper-2); color: var(--c-brand); }
.dropdown__item a span { color: var(--c-muted-2); font-size: 12px; }

/* 头部右侧 */
.header__aside { display: flex; align-items: center; gap: 18px; flex: none; }
.head-tel { text-align: right; line-height: 1.3; }
.head-tel__label { display: block; font-size: 12px; color: var(--c-muted); letter-spacing: .04em; }
.head-tel__num {
  font-size: 20px; font-weight: 800; color: var(--c-ink);
  font-family: var(--f-serif); letter-spacing: .01em;
  /* 移动端会由 common.js 包成 tel: 链接，避免继承链接下划线 */
  text-decoration: none;
}
.header__aside .btn { height: 42px; padding: 0 20px; }

/* 汉堡 */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  place-items: center; border: 1px solid var(--c-line);
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--c-ink); position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--c-ink); transition: .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 8. 页脚 ---------- */
/* 页脚改 tuobayun 式深正红收底，与上方红色 CTA 条形成连贯的红金收尾，压住页面重心 */
.site-footer { background: linear-gradient(180deg, #8c0d0d 0%, #6e0000 100%); color: rgba(255, 255, 255, .74); font-size: 14px; position: relative; }
/* 页脚顶部红金渐变线，呼应参考站的品牌色处理 */
.site-footer::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-brand) 0%, var(--c-gold) 50%, var(--c-brand) 100%);
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 54px; padding: 72px 0 56px; }
/* 页脚深红底：红色 logo 会糊，用 filter 转纯白并放大，强化品牌存在感 */
.footer__brand .logo__img { height: 46px; filter: brightness(0) invert(1); }
.footer__desc { margin-top: 20px; max-width: 320px; line-height: 1.9; font-size: 13.5px; }
.footer__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer__trust span {
  font-size: 12px; padding: 5px 11px; border-radius: 3px;
  border: 1px solid rgba(201, 149, 30, .35); color: var(--c-gold-2);
}
.footer__col-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer__col-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--c-gold); }
.footer__links li { margin-bottom: 11px; }
.footer__links a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__links a:hover { color: var(--c-gold-2); padding-left: 5px; }
.footer__contact li { display: flex; gap: 11px; margin-bottom: 15px; line-height: 1.7; }
.footer__contact svg { width: 15px; height: 15px; color: var(--c-gold); flex: none; margin-top: 5px; }
.footer__contact b { color: #fff; font-weight: 600; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 12.5px; color: rgba(255, 255, 255, .6);
}
.footer__bottom-tags { display: flex; flex-wrap: wrap; gap: 18px; }
/* 底部备案号：可辨识为链接（工信部要求链接至备案系统）
   nowrap：390px 下「川ICP备XXXXXXXX号-1」曾被拆成两行、尾号「号-1」单独掉落 */
.footer__bottom a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .35);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.footer__bottom a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---------- 9. 表单 ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.field label span { color: var(--c-gold); margin-left: 3px; }
.field input, .field textarea, .field select {
  height: 48px; padding: 0 15px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm);
  background: #fff; font-size: 14.5px; transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
  width: 100%; font-family: inherit;
}
.field textarea { height: 116px; padding: 13px 15px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(192, 0, 0, .1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted-2); }
.form__tip { font-size: 12.5px; color: var(--c-muted); }
.form__status {
  font-size: 14px; padding: 12px 16px; border-radius: var(--r-sm); display: none;
}
.form__status.is-ok { display: block; background: rgba(31, 122, 92, .1); color: var(--c-ok); border: 1px solid rgba(31, 122, 92, .25); }
.form__status.is-err { display: block; background: rgba(183, 62, 62, .09); color: #b73e3e; border: 1px solid rgba(183, 62, 62, .25); }

/* ---------- 10. 通用小件 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 100px;
  background: var(--c-gold-soft); color: #8a6d12; border: 1px solid rgba(201, 149, 30, .28);
}
.tag--brand { background: rgba(192, 0, 0, .08); color: var(--c-brand); border-color: rgba(192, 0, 0, .16); }
.tag--line { background: transparent; color: var(--c-muted); border-color: var(--c-line-2); }
.section--ink .tag { background: rgba(201, 149, 30, .14); color: var(--c-gold-2); border-color: rgba(201, 149, 30, .3); }

.num-badge {
  font-family: var(--f-serif); font-size: 15px; font-weight: 700; color: var(--c-gold);
  letter-spacing: .04em;
}

/* 数据（HTML 静态写死，JS 只负责滚动动效） */
.datanum { font-family: var(--f-serif); font-weight: 700; line-height: 1; color: var(--c-ink); letter-spacing: -.01em; }
.datanum sup { font-size: .46em; top: -.62em; margin-left: 2px; color: var(--c-gold); }

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

/* ---------- 11. 滚动显现动画（JS 加 .is-in） ---------- */
/*
  安全策略：内容**默认可见**。只有 JS 确认接管后，才给 <html> 加 .js-motion，
  此时 .reveal 才进入隐藏态并等待 .is-in。
  这样 JS 异常、脚本 404、被拦截或截图工具不滚动时，都不会出现整块空白。
*/
.js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal-d1 { transition-delay: .08s; }
.js-motion .reveal-d2 { transition-delay: .16s; }
.js-motion .reveal-d3 { transition-delay: .24s; }
.js-motion .reveal-d4 { transition-delay: .32s; }

/* 兜底：JS 未接管时强制显示全部内容 */
.no-js .reveal, .js-fallback .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed; right: 28px; bottom: 32px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--c-brand); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease); z-index: 90;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-gold); color: #2a2005; }
.to-top svg { width: 17px; height: 17px; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1200px) {
  .mainnav__link { padding: 0 11px; font-size: 14.5px; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: grid; }
  /* 移动端右上角保留咨询热线（原为 display:none）；平板档收紧字号避免挤压 logo */
  .head-tel { display: block; }
  /* 衬线体 Georgia 是旧式数字（1/3/5/9 高低不齐），移动端改用站点标准无衬线 + 等高数字 */
  .head-tel__num {
    font-size: 16px; font-family: var(--f-sans); font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
  }
  /* 导航转抽屉后脱离文档流，把右侧操作区（CTA/汉堡）推到最右 */
  .header__aside { margin-left: auto; }
  .mainnav {
    position: fixed; inset: var(--header-h) 0 0; top: var(--header-h);
    background: #fff; flex-direction: column; align-items: stretch;
    /* 覆盖桌面端 justify-content:center——纵向模式下会变成垂直居中，抽屉应从 header 下开始排 */
    justify-content: flex-start;
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    /* 用透明度+位移做抽屉，位移方向朝内，避免移出视口造成横向溢出 */
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
    z-index: 99;
  }
  body.nav-open .mainnav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .mainnav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav__link { height: 52px; font-size: 16px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .mainnav__link.is-active::after { display: none; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--c-gold);
    border-radius: 0; margin: 0 0 6px 12px; padding: 0 0 0 8px;
    display: none; min-width: 0;
  }
  .mainnav__item.is-open .dropdown { display: block; transform: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .sec-head__title { font-size: 29px; }
  .sec-head--split { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sec-head--split .sec-head__main { max-width: none; }
  .sec-head--split .link-arrow { align-self: flex-start; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .logo__img { height: 28px; }
  /* 窄屏：logo + 汉堡已占满，收起头部 CTA 按钮避免溢出 */
  .header__aside .btn { display: none; }
  .header__inner { gap: 12px; }
  /* 右上角电话：窄屏只留号码、收紧间距，避免与 logo / 汉堡挤压或溢出 */
  .head-tel__label { display: none; }
  .head-tel__num { font-size: 14px; letter-spacing: 0; }
  .header__aside { gap: 8px; }
  /* 返回顶部：紧凑化并避开底部安全区，减小对右下角正文的遮挡（页脚声明安全边距 58px 仍足够） */
  .to-top { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 40px; height: 40px; }
  .to-top svg { width: 15px; height: 15px; }
  /* iOS Safari：输入字号 <16px 时聚焦会触发整页自动放大 */
  .field input, .field textarea, .field select { font-size: 16px; }
  /* 装饰性小字号移动端可读性下限 */
  .sec-index__en { font-size: 12px; }
}

/* ---------- 页脚栏目手风琴（仅窄屏；.footer__col / is-open 由 common.js 注入，无 JS 时全展开） ---------- */
@media (max-width: 680px) {
  .footer__col .footer__col-title {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    margin-bottom: 0; padding: 16px 0 12px;
  }
  /* ::after 在移动端改作下拉箭头，金色下划线由 ::before 接管（桌面端仍是 ::after） */
  .footer__col .footer__col-title::before {
    content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--c-gold);
  }
  .footer__col .footer__col-title::after {
    content: ""; position: static; width: 9px; height: 9px; flex: none; margin-left: 12px;
    background: transparent; /* 重置桌面端 ::after 的金色下划线底色，否则箭头变成实心菱形 */
    border-right: 2px solid rgba(255, 255, 255, .8); border-bottom: 2px solid rgba(255, 255, 255, .8);
    transform: rotate(45deg); transition: transform .25s var(--ease);
  }
  .footer__col.is-open .footer__col-title::after { transform: rotate(-135deg); }
  .footer__col .footer__links { display: none; padding: 14px 0 4px; }
  .footer__col.is-open .footer__links { display: block; }
}

/* ---------- 移动端底部咨询条（DOM 由 common.js 注入，桌面端不出现） ---------- */
.mcontact {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 26px rgba(26, 26, 26, .16);
}
.mcontact__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 999px; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.mcontact__btn:active { transform: scale(.97); filter: brightness(.94); }
.mcontact__btn svg { width: 19px; height: 19px; flex: none; }
.mcontact__btn--wechat { background: linear-gradient(135deg, #ff6d61 0%, #ef3f3c 100%); }
.mcontact__btn--tel { background: linear-gradient(135deg, #c00000 0%, #9e0505 100%); }
.mcontact__toast {
  position: fixed; left: 50%; z-index: 96;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 8px);
  /* left:50% 的 fixed 元素默认 shrink-to-fit 只剩半屏宽，按内容撑开才能保持一行 */
  width: max-content; max-width: calc(100vw - 40px);
  padding: 10px 16px; border-radius: 9px;
  background: rgba(26, 26, 26, .92); color: #fff;
  font-size: 13px; line-height: 1.6; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
  -webkit-user-select: text; user-select: text;
}
.mcontact__toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 680px) {
  .mcontact { display: grid; }
  /* 固定条会压住页脚最后一行：给深红页脚留等高延伸，视觉不断层 */
  body.has-mcontact .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* 返回顶部红钮上移，避免被咨询条压住（高特异性覆盖上面的 bottom:16px） */
  body.has-mcontact .to-top { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   中文排版微调（2026-11-14 移动端排版审计 · A+B 修复）
   均为渐进增强：不支持 text-wrap 的浏览器自动降级到原换行，无副作用。
   ========================================================================== */
/* 正文末行孤字/孤行：Chromium 117+ / Safari 17.5+ 会把末行单词前移重排 */
p, li, dd, .sec-head__desc, .qa__a-lead { text-wrap: pretty; }
/* 多行标题与数据条标签：让各行字数均衡，避免「适用情 / 形」这类词被腰斩、
   也避免「核心团队平均从业经 / 验」末行只剩一个字 */
.sec-head__title, .stats__label, .qa__q-text { text-wrap: balance; }
/* 由 common.js 注入的不可断词组：数字时效、法规短语、备案号等 */
.nowrap { white-space: nowrap; }
