/* ============================================================
   CNBS 中商智诚 · 官网样式
   设计源：Ardot 文件 722994145076922（港式商务母版）
   品牌：墨黑 #1A1A1A / 米色 #F5F0EB / 米色浅 #F8F6F2
        金色 #C9A87C / 正文灰 #666666 / 浅灰 #888888
   ============================================================ */

:root {
  --ink: #1A1A1A;
  --beige: #F5F0EB;
  --beige-light: #F8F6F2;
  --gold: #C9A87C;
  --gray: #666666;
  --gray-light: #888888;
  --white: #FFFFFF;
  --line: #DDD8D0;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);

  --maxw: 1440px;
  --pad-x: 80px;

  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 全站保护：页面多页签切换（pain 卡/时间线/资料区/FAQ）靠 JS 增删 hidden 属性显隐。
   author 的 display 会覆盖 UA 的 [hidden]{display:none}，导致 hidden 失效、面板不切换。
   此规则保证 hidden 始终隐藏，根治此类切换 BUG（2026-10-21） */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; zoom: 0.90; }

body {
  font-family: var(--font-cn);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 移动端双保险：任何元素意外超宽都裁掉，禁止整页横向滑动（clip 不建滚动容器，不影响 sticky 页头） */
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: 80px var(--pad-x); }
.section--beige { background: var(--beige-light); }
.section--white { background: var(--white); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
}
.eyebrow--en {
  font-family: var(--font-en);
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cn);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #bda173; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--cta {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.btn--cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}
/* 玻璃药丸（浅色背景反色版，样式基因同 .btn--cta：药丸圆角 + 半透明 + 模糊 + hover 提亮） */
.btn--glass {
  background: rgba(26, 26, 26, 0.85);
  color: var(--white);
  border-color: rgba(26, 26, 26, 0.85);
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.btn--glass:hover {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(26, 26, 26, 0.95);
}
/* 白底黑字深红框（页头「查询服务及报价」、首页关于栏「了解更多」；hover 填充深红反白）
   深红取「发送留言」按钮同色 #B14434（2026-10-16 用户指定统一） */
.btn--outline-red {
  background: var(--white);
  color: var(--ink);
  border-color: #B14434;
  border-radius: 50px;
}
.btn--outline-red:hover {
  background: #B14434;
  color: var(--white);
}
/* 客户评价区顶部行距：80 → 56（-30%）→ 45（再 -20%，2026-10-16 用户指定） */
.section--tight-top { padding-top: 45px; }
/* 公司简介区与统计区之间的留白 -40%（148 → 88：checks 自带 mb 28 + 本区 padding-bottom 20 + 统计区顶部 40；2026-10-16 用户指定） */
.section--tight-bottom { padding-bottom: 20px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray);
}
.lang-switch a {
  color: var(--gray);
  text-decoration: none;
  transition: color .2s;
}
.lang-switch a:hover,
.lang-switch a.is-active { color: var(--ink); font-weight: 600; }
.lang-switch span { color: var(--gray-light); }

/* 实心深红（服务区头「查看更多服务 / 港企专区」；与「发送留言」同色 #B14434） */
.btn--primary {
  background: #B14434;
  color: var(--white);
  border-color: transparent;
  border-radius: 50px;
}
.btn--primary:hover { background: #96382B; }
.btn--white-red { background: var(--white); color: #B14434; border-color: #B14434; border-radius: 50px; } /* 续141 白底红字药丸；续147 撤 font-weight:400 恢复 .btn 基础 600 加粗 */
.btn--white-red:hover { background: #B14434; color: var(--white); }
.btn--solid-red { background: #B14434; color: var(--white); border-color: #B14434; }
.btn--sm { padding: 12px 24px; font-size: 14px; }
/* 方形直角（页头「预咨询」按钮用） */
.btn--square { border-radius: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #EFEAE2;
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 80px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo__mark { height: 72px; width: auto; }
.logo__text {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.nav { display: flex; align-items: center; gap: 40px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  transition: color .2s;
}
/* 悬停/激活：文字变色 + 底部短下划线（居中、略宽于文字、展开动画） */
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: calc(100% + 10px);
  height: 2px;
  border-radius: 2px;
  background: #B14434;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav a:hover, .nav a.is-active { color: #B14434; }
.nav a:hover::after, .nav a.is-active::after { transform: translateX(-50%) scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 16px; margin-left: 40px; }
.hamburger {
  display: none;
  width: 24px; height: 24px;
  background: none; border: none; cursor: pointer;
}

/* mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid #EFEAE2;
  padding: 16px var(--pad-x) 24px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid #F0EBE3;
}
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(26,26,26,.55), rgba(26,26,26,.15)), url("../assets/images/hero-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}
/* 移动端改用 1280 宽版本（89KB），首屏加载更快 */
@media (max-width: 767px) {
  .hero {
    background-image: linear-gradient(90deg, rgba(26,26,26,.55), rgba(26,26,26,.15)), url("../assets/images/hero-banner-1280.jpg");
  }
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 100px var(--pad-x) 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero__content { max-width: 680px; }
.hero__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--beige);
  margin-bottom: 20px;
}
.hero__title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.33;
  color: var(--white);
  max-width: 680px;
  margin-bottom: 24px;
}

/* index hero：两句标题各自一行、桌面端不折行 */
.hero__title-line { display: inline; }
@media (min-width: 769px) { .hero__title-line { white-space: nowrap; } }
.hero__sub {
  font-size: 16px;
  color: #E5E0D8;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__visual {
  flex: 0 0 320px;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background: rgba(26, 26, 26, 0.38);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.hero__number {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero__number-label {
  font-size: 16px;
  color: var(--white);
  margin-top: 16px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid #F0EBE3;
}
.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat__num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
}
.stat__label {
  font-size: 14px;
  color: var(--gray);
  margin-top: 8px;
}

/* ---------- Section header ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.sec-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sec-head__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
}
.sec-head__sub {
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 520px;
}
.sec-head__sub--nowrap { white-space: nowrap; max-width: none; }
.sec-head__eyebrow { color: var(--gold); }

/* ---------- Services grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.service-card__icon {
  width: 40px; height: 40px;
  margin-bottom: 16px;
}
.service-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about__gallery {
  flex: 0 0 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about__gallery img {
  width: 100%;
  /* 统一宽 3 : 高 2（源文件亦为 360×240 3:2，老浏览器按固有比例兜底） */
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  /* 画廊用直角，与资质/评价卡的圆角区分开 */
  border-radius: 0;
}
.about__content { flex: 1; }
.about__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.about__desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
}
.checks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #444;
}
.check img { width: 20px; height: 20px; flex: 0 0 20px; }
.about__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Certifications ---------- */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  text-align: left;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cert-card__img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  object-position: top; /* 裁切取图片上段，保住证书/截图顶部的标题（2026-10-16 用户指定，默认 center 会裁掉） */
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--beige-light);
}
.cert-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
}
.cert-card__sub {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* ---------- Reviews ---------- */
.review-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.review-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.review-card__body { padding: 24px 28px 28px; }
.review-card__tag {
  display: inline-block;
  background: #D65746;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.review-card__text {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin-bottom: 16px;
}
.review-card__meta {
  font-size: 13px;
  color: #999;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.faq__left { flex: 0 0 520px; }
.faq__right { flex: 1; display: flex; flex-direction: column; gap: 16px; }
/* FAQ 卡加柔和阴影：section--beige(#F8F6F2) 与纯白卡片色差极小，
   无描边时卡片边缘在手机屏上"隐身"，视觉上像贴到视口右缘 */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.faq-item__a p { margin-bottom: 8px; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: #B14434; background: #F7EFEC; border-radius: 6px;
  padding: 2px 8px; margin-right: 8px;
}
.faq-tag--do { color: var(--gold); background: #FBF6EF; }
.faq-item__q {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.faq-item__a {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.5;
}
/* 答案内链接：加粗下划线（参照 WorkBuddy FAQ 内链样式） */
.faq-item__a a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}
.faq-item__a a:hover { color: var(--gold); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ---------- Message（留言给我） ---------- */
.msg-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
/* 标题前加 Momo 头像（2026-10-16 用户指定） */
.msg-card__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 联系页留言卡标题改为与表单「称谓」标签同字号（续，2026-11-02）：15px/600/#444，头像同步缩小 */
.msg-card__title.msg-card__title--note { font-size: 15px; font-weight: 600; color: #444; gap: 8px; margin-bottom: 36px; }
.msg-card__title--note .msg-card__avatar { width: 56px; height: 56px; box-shadow: none; }
.msg-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.msg-card__sub { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
/* 称谓 : 邮箱 : 标题 = 1 : 1 : 2（2026-10-16 用户指定） */
.msg-form__row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.msg-form__field { margin-bottom: 16px; }
.msg-form__field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  margin-bottom: 10px;
}
.msg-form__field input,
.msg-form__field textarea {
  width: 100%;
  background: #F8F6F2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-cn);
  color: var(--ink);
  transition: border-color .2s ease;
}
.msg-form__field input:focus,
.msg-form__field textarea:focus { outline: none; border-color: var(--gold); }
.msg-form__field textarea { resize: vertical; min-height: 96px; }
.msg-form__btn {
  width: 100%;
  background: #B14434;
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-cn);
  cursor: pointer;
  transition: background .2s ease;
}
.msg-form__btn:hover { background: #96382B; }
/* 宽度 = 行宽 1/4（2026-10-16 用户指定；窄屏放宽到 1/2，见文件末尾媒体查询） */
.msg-form__btn { width: 25%; max-width: none; }
/* 表单提交状态提示 */
.form-status { font-size: 14px; margin-top: 14px; }
.form-status--ok { color: #2E7D32; }
.form-status--err { color: #B14434; }
/* ---------- CTA band ---------- */
.cta-band {
  background: var(--beige-light);
  text-align: center;
}
.cta-band__title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.cta-band__sub { font-size: 16px; color: var(--gray); margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer {
  /* 续124：页脚上间距不放全局 margin——彩色末块页(index/hk-finance/hk-forex/contact)会露出白条；需加大间距的白底页在各页内联 .footer{margin-top:40px}，hk-finance/hk-forex 用 .final-cta{padding-bottom:80px} */
  background: var(--ink);
  color: var(--white);
  padding: 80px 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}
.footer__brand { flex: 0 0 300px; }
.footer__logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__creds { font-size: 13px; color: #E8E8E8; line-height: 2.0; } /* 2026-11-22 移入品牌列 logo 下方，字号 13px 同版权行 */
.footer__tagline { font-size: 15px; color: #AAA; line-height: 1.7; }
.footer__cols { display: flex; gap: 80px; flex: 1; }
.footer__col h4 {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 13px;
  color: #AAA;
  padding: 6px 0;
}
.footer__col a:hover { color: var(--gold); }
.footer__qrs {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
}
.footer__qr { text-align: center; }
.footer__qr img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  background: var(--white);
  padding: 6px;
  display: block;
  margin-bottom: 10px;
}
.footer__qr span { font-size: 13px; color: #AAA; } /* 2026-11-22 页脚文字统一 13px（同版权行，logo 28px 除外） */
.footer__contact { flex: 0 0 300px; }
/* 联系方式列（.footer__contact，flex:0 0 300px）为 .footer__inner 末项，自然贴
   内容区右缘；底部 .footer__copy 法务行 space-between 贴同一 --maxw 容器右缘，
   二者右缘天然对齐。2026-11-10 移除旧 alignFooterContact() 的 translateX 位移。 */
.footer__contact h4 {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
/* 电话放在地址后面，字号/字重/颜色与地址一致（用户 2026-10-16 指定） */
.footer__phone { font-size: 13px; font-weight: 400; color: #AAA; margin-top: 8px; }
.footer__addr { font-size: 13px; color: #AAA; line-height: 1.6; white-space: nowrap; margin-top: 24px; } /* 2026-11-22 地址上方空一行 */
/* 窄屏（页脚纵向堆叠后）恢复自动换行，避免横向溢出被裁切 */
@media (max-width: 767px) {
  .footer__addr { white-space: normal; }
}
.footer__copy {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #888;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive — 自适应目标设备宽度（响应式重排）
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .hero__title { font-size: 34px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about { flex-direction: column; align-items: stretch; }
  .about__gallery { flex: none; }
  .faq { flex-direction: column; gap: 40px; }
  .faq__left { flex: none; }
  .footer__inner { gap: 48px; }
  .footer__cols { gap: 48px; }
  .sec-head__sub--nowrap { font-size: 14px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav, .header__actions .btn { display: none; }
  .hamburger { display: block; }
  .hero { min-height: auto; }
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 20px;
  }
  .hero__title { font-size: 27px; max-width: 100%; }
  .hero__visual { flex: none; width: 100%; min-height: 280px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .sec-head__title { font-size: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6, .faq-grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 32px 20px; }
  .about__gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__brand, .footer__contact { flex: none; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .msg-card { padding: 28px 24px; }
  .msg-form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__copy { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sec-head__sub--nowrap { font-size: clamp(9px, 2.55vw, 12px); letter-spacing: -0.5px; }
  /* 40+ 字长文案单行：更小流体字号（320px 起不溢出） */
  .sec-head__sub--long { font-size: clamp(7px, 2.2vw, 12px); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
  z-index: 90;
  box-shadow: var(--shadow-card);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #000; }

/* ============================================================
   HK Clients page（港企专区）
   ============================================================ */
.hk-hero { background: var(--beige-light); position: relative; overflow: hidden; }
.hk-hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 86px var(--pad-x);   /* 96 × 0.9 */
  min-height: 421px;            /* 468 × 0.9：HERO 主图整体缩 10% */
  display: flex;
  align-items: center;
  gap: 0;
}
.hk-hero__content { position: relative; z-index: 2; flex: 0 0 56%; max-width: 700px; padding-right: 24px; }
@media (min-width: 1025px) { .hk-hero__title .nw { white-space: nowrap; } }
.hk-hero__tag { font-size: 13px; font-weight: 500; color: var(--gold); margin-bottom: 20px; }
.hk-hero__title { font-size: 44px; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 24px; }
.hk-hero__sub { font-size: 16px; color: var(--gray); line-height: 1.8; margin-bottom: 36px; }
.hk-hero__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 0.5px; } /* 续156 gap 10→8→6px：4 项单行放下不折行 */
.hk-pill { display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 999px; background: #F0EDE8; border: 1px solid #E3DDD4; color: #444; font-size: 15px; font-weight: 500; white-space: nowrap; letter-spacing: normal; } /* 续156 padding 8/18→8/14→8/11，去 0.5px 字距 */
.hk-pill--hl { background: #B14434; border-color: #B14434; color: #fff; }
.hk-hero__steps .btn--white-red { padding: 8px 11px; font-size: 15px; border-radius: 999px; letter-spacing: normal; } /* 续153b pill 行内「留言及咨询」白底红字胶囊；续156 对齐 8/11、去字距 */
.hk-hero__hl { color: #B14434; }
.hk-hero__steps .hk-hero__hl { color: #B14434; }
.hk-tabs-bar { background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.04); }
.hk-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; padding: 26px 20px; }
.hk-tab {
  appearance: none; font-family: inherit;
  padding: 11px 28px; border-radius: 10px;
  background: #F0EDE8; border: 1px solid #E3DDD4;
  color: #444; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.hk-tab:hover { background: #E7E1D9; }
.hk-tab.is-active { background: #B14434; border-color: #B14434; color: #fff; }
.hk-hero__media { position: absolute; inset: 0; z-index: 0; }
.hk-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.hk-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,246,242,0.96) 0%, rgba(248,246,242,0.78) 40%, rgba(248,246,242,0.38) 62%, rgba(248,246,242,0) 80%);
  pointer-events: none;
}

.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.page-hk .section, .page-svc .section { padding-top: 48px; padding-bottom: 48px; }
.pain-card { background: var(--beige-light); border-radius: var(--radius-card); padding: 32px; }
.pain-card__title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.pain-card__desc { font-size: 15px; color: var(--gray); line-height: 1.7; }

.hk-svc__title { font-family: var(--font-cn); font-size: 36px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.hk-svc__title em { font-style: normal; color: #B14434; }
.hk-svc__sub { font-size: 16px; color: var(--gray); margin-bottom: 44px; }
.hk-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hk-svc-card { display: block; background: var(--beige-light); border-radius: var(--radius-card); padding: 36px 30px; transition: transform .2s, box-shadow .2s; }
.hk-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.hk-svc-card__eyebrow { font-family: var(--font-en); font-size: 28px; font-weight: 700; letter-spacing: 0; color: var(--gold); margin-bottom: 12px; }
.hk-svc-card__title { font-family: var(--font-cn); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.hk-svc-card__desc { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 26px; }
.hk-svc-card__more { font-size: 14px; font-weight: 600; color: #B14434; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { background: var(--beige-light); border-radius: var(--radius-card); padding: 32px; }
.process-step__num { font-family: var(--font-en); font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.process-step__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.process-step__desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* 服务项目页：HERO 文案块整体居中（图镜像后主体在左、留白在右） */
.page-svc .hk-hero__content {
  flex: 0 0 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
/* 续154 删除 .page-svc .hk-hero__title .nw { white-space: normal } —— 44px 标题下「规」被挤转行；
   恢复基础规则（≥1025 nowrap），首行 704px 居中溢出 ~20px 压在柔光渐变上（实测无碍） */
.page-svc .hk-hero__steps { justify-content: center; }
/* 文案居中后压在图的中部：改为中部加重的米色柔光，两侧保留图像质感 */
.page-svc .hk-hero__media::after {
  background: linear-gradient(90deg, rgba(248,246,242,0.45) 0%, rgba(248,246,242,0.85) 30%, rgba(248,246,242,0.85) 72%, rgba(248,246,242,0.35) 100%);
}
@media (max-width: 1024px) {
  .page-svc .hk-hero__content {
    flex: 0 0 100%;
    max-width: none;
    padding-left: 0;
    text-align: center;
  }
  .page-svc .hk-hero__steps { justify-content: center; }
}

.trust-band { background: var(--ink); color: var(--white); }

/* 服务项目页：同一套通栏效果，用本页主图 */
.page-svc .trust-band {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.page-svc .trust-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/page-hero-services.jpg') center / cover no-repeat;
}
.page-svc .trust-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.page-svc .trust-band__inner { position: relative; z-index: 2; }
.trust-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.trust-stat__num { font-size: 40px; font-weight: 700; color: var(--gold); font-family: var(--font-en); }
.trust-stat__label { font-size: 14px; color: #AAA; margin-top: 8px; }

.final-cta { background: var(--beige-light); text-align: center; }
.final-cta__title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.final-cta__sub { font-size: 16px; color: var(--gray); margin-bottom: 32px; }

/* ---------- HK page responsive ---------- */
@media (max-width: 1024px) {
  .hk-hero__inner { padding: 72px var(--pad-x); min-height: 389px; } /* 80/432 × 0.9 */
  .hk-hero__content { max-width: 460px; padding-right: 20px; }
  .hk-tabs { gap: 12px; }
  .hk-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  .hk-hero__inner { flex-direction: column; align-items: flex-start; padding: 56px 20px; min-height: 468px; }
  .hk-hero__content { flex: none; width: 100%; max-width: none; padding-right: 0; margin-bottom: 0; }
  .hk-hero__title { font-size: 30px; }
  .hk-hero__title br { display: none; }
  .hk-tabs { gap: 10px; padding: 20px 16px; }
  .hk-tab { padding: 9px 18px; font-size: 14px; }
  .hk-hero__media { position: absolute; inset: 0; width: 100%; }
  .hk-hero__media::after { background: linear-gradient(180deg, rgba(248,246,242,0.95) 0%, rgba(248,246,242,0.75) 55%, rgba(248,246,242,0.3) 100%); }
  .pain-grid, .hk-svc-grid, .process-grid { grid-template-columns: 1fr; }
  .trust-band__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 40px 20px; }
}

/* ============================================================
   Inner pages（关于我们 / 服务项目）
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero {
  background: var(--beige-light);
  border-bottom: 1px solid var(--line);
}
/* 服务项目页横幅：bannar 11 实拍图 + 深色遮罩（仅 .page-hero--banner 生效，其他子页横幅不受影响） */
.page-hero--banner {
  background: var(--ink);
  background-image: linear-gradient(90deg, rgba(26, 26, 26, .62), rgba(26, 26, 26, .18)), url("../assets/images/page-hero-services.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
}
.page-hero--banner .page-hero__crumb,
.page-hero--banner .page-hero__crumb a { color: rgba(255, 255, 255, .75); }
.page-hero--banner .page-hero__crumb a:hover { color: var(--gold); }
.page-hero--banner .page-hero__title { color: var(--white); }
.page-hero--banner .page-hero__sub { color: rgba(255, 255, 255, .88); }
/* 移动端用 1280 宽版本（62KB），加载更快 */
@media (max-width: 767px) {
  .page-hero--banner {
    background-image: linear-gradient(90deg, rgba(26, 26, 26, .62), rgba(26, 26, 26, .18)), url("../assets/images/page-hero-services-1280.jpg");
  }
}
/* 联系页横幅：bannar1 实拍图（红→白渐变，保持原图色彩，不加深色遮罩） */
.page-hero--contact {
  background: var(--ink);
  background-image: url("../assets/images/page-hero-contact.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: none;
  display: flex;
  align-items: center;
  min-height: 460px;
}
/* 表单+二维码双栏嵌入渐变 HERO：与上方欢迎语拉开间距（2026-11-02 续34） */
.page-hero--contact .contact-grid { margin-top: 36px; }
/* 面包屑 + 欢迎语改为白字（叠在红→白渐变顶部红区，白字可读；标题「Welcome」保持墨色 2026-11-02 续35） */
.page-hero--contact .page-hero__crumb,
.page-hero--contact .page-hero__crumb a { color: var(--ink); }
.page-hero--contact .page-hero__crumb a:hover { color: var(--gold); }
.page-hero--contact .page-hero__sub { color: var(--white); text-align: left; font-size: 16px; line-height: 2.2; }
  .page-hero--contact .page-hero__title-sub { display: block; color: var(--ink); max-width: 640px; margin-top: 8px; font-size: 15px; font-weight: 400; line-height: 1.6; }
  .page-hero--contact .page-hero__title-hi { color: var(--white); }
.page-hero--contact .page-hero__welcome-lead { font-size: 44px; font-weight: 700; line-height: 1.1; display: block; margin: 24px 0 8px; } /* 续144 恢复并缩小 56→44px，仅剩 Welcome👋 */
  .page-hero--contact .page-hero__title-sm { font-size: 18px; font-weight: 600; line-height: 1.3; }
.page-hero--contact .page-hero__title { margin-bottom: 10px; }
/* 文字块与 LOGO 左缘对齐：inner 在 flex 下按内容收缩导致整体居中，撑满容器宽即恢复左对齐（2026-11-02 续32） */
.page-hero--contact .page-hero__inner { width: 100%; }
/* 原图偏亮（红→白渐变）：沿用基础 .page-hero 深色文字（crumb/title/sub），不叠加深色遮罩以免改变图片色彩 */
@media (max-width: 767px) {
  .page-hero--contact {
    background-image: url("../assets/images/page-hero-contact-1280.png");
    aspect-ratio: auto;
    min-height: 300px;
  }
}
.page-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x) 56px;
}
.page-hero__crumb {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 16px;
}
.page-hero__crumb a:hover { color: var(--gold); }
.page-hero__title {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 16px;
}
.page-hero__sub {
  font-size: 16px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.8;
}

/* ---------- Story ---------- */
.story { display: flex; gap: 60px; align-items: center; }
.story__media { flex: 0 0 520px; }
.story__media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-card); }
.story__content { flex: 1; }
.story__title { font-size: 32px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; }
.story__desc { font-size: 16px; color: var(--gray); line-height: 1.9; margin-bottom: 16px; }
.story__desc strong, .ink-strong { color: var(--ink); font-weight: 700; }
/* 关于页公司简介：无图版——内容在左，小标题在右（2026-10-16 用户指定） */
.story--reversed { align-items: flex-start; }
.story--reversed .story__body { flex: 1; }
/* 标题与内容之间加灰色分隔线（2026-10-16 用户指定）；窄屏纵向堆叠时移除 */
/* 标题列加宽 300 → 380（缩小左列宽度），保证「合规筑底 廿载深耕」单行不折行 */
.story--reversed .story__heading { flex: 0 0 380px; padding-top: 6px; border-left: 1px solid var(--line); padding-left: 40px; }
.story--reversed .story__heading .story__title { margin-bottom: 0; }
@media (max-width: 1024px) {
  /* 覆盖下方通用 .story 纵向规则：小标题排到正文上方 */
  .story.story--reversed { flex-direction: column-reverse; align-items: stretch; gap: 24px; }
  .story--reversed .story__heading { flex: none; border-left: none; padding-left: 0; }
}

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 32px; }
.value-card__icon { width: 44px; height: 44px; margin-bottom: 16px; color: var(--gold); }
.value-card__title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.value-card__desc { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__item { display: flex; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: none; }
.timeline__year { flex: 0 0 120px; font-family: var(--font-en); font-size: 24px; font-weight: 700; color: var(--gold); }
.timeline__body { flex: 1; }
.timeline__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.timeline__desc { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* ---------- Service category ---------- */
.svc-cat { padding: 40px 0; border-top: 1px solid var(--line); }
.svc-cat:first-of-type { border-top: none; padding-top: 0; }
.svc-cat__head { margin-bottom: 32px; }
.svc-cat__no { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: 2px; }
.svc-cat__title { font-size: 28px; font-weight: 700; margin: 8px 0 12px; }
.svc-cat__desc { font-size: 16px; color: var(--gray); max-width: 680px; line-height: 1.8; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sub-service {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 28px;
}
.sub-service__icon { width: 40px; height: 40px; flex: 0 0 40px; }
.sub-service__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sub-service__desc { font-size: 14px; color: var(--gray); line-height: 1.7; }
.sub-service__more { font-size: 13px; color: var(--gold); margin-top: 12px; display: inline-block; font-weight: 600; }

/* ---------- Inner page responsive ---------- */
@media (max-width: 1024px) {
  .page-hero__title { font-size: 36px; }
  .story { flex-direction: column; align-items: stretch; }
  .story__media { flex: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline__year { flex: 0 0 92px; }
}
@media (max-width: 768px) {
  .page-hero__inner { padding: 56px 20px 40px; }
  .page-hero__title { font-size: 28px; }
  .story__media img { height: 280px; }
  .values-grid { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .timeline__item { flex-direction: column; gap: 8px; }
}

/* ---------- Materials / info list ---------- */
.list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 24px; }
.list li { position: relative; padding-left: 24px; font-size: 15px; color: #444; line-height: 1.7; }
.list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Page hero eyebrow ---------- */
.page-hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Article body ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 24px; font-weight: 700; margin: 36px 0 16px; }
.article-body p { font-size: 16px; color: var(--gray); line-height: 1.9; margin-bottom: 18px; }
.article-body .article-meta { font-size: 14px; color: var(--gray-light); margin-bottom: 24px; }
.article-body .note { background: var(--beige-light); border-left: 3px solid var(--gold); padding: 16px 20px; border-radius: 8px; font-size: 14px; color: var(--gray); line-height: 1.8; margin: 24px 0; }

/* ---------- HK related strip ---------- */
/* ---------- Contact form ---------- */
/* 联系页：表单卡（左，flex 撑满）+ 二维码卡（右，自适应宽）双栏，整体嵌入渐变 HERO（2026-11-02 续34；回退：改回 flex column 单列） */
.contact-grid { display: flex; align-items: stretch; gap: 24px; }
.contact-grid > .contact-side { flex: 0 0 auto; }
.contact-grid > .msg-card { flex: 1 1 auto; min-width: 0; }
/* 联系页留言卡：表单撑满卡片高度，「您的需求」文本域弹性增高吸收右栏拉伸的富余高度，
   消除发送按钮下方留白（2026-11-02 续57；仅限联系页，不影响首页在线咨询弹窗） */
.page-hero--contact .msg-card { display: flex; flex-direction: column; }
.page-hero--contact .msg-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.page-hero--contact .msg-form > .msg-form__field { flex: 1 1 auto; display: flex; flex-direction: column; }
.page-hero--contact .msg-form > .msg-form__field textarea { flex: 1 1 auto; min-height: 120px; }

.contact-form { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 36px; }
.contact-form__row { display: flex; gap: 16px; }
.contact-form__field { flex: 1; margin-bottom: 18px; }
.contact-form__field label { display: block; font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.contact-form__field input, .contact-form__field textarea {
  width: 100%; font-family: var(--font-cn); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--beige-light);
}
.contact-form__field input:focus, .contact-form__field textarea:focus { outline: none; border-color: var(--gold); }
.contact-form__field textarea { min-height: 110px; resize: vertical; }

/* ---------- New responsive ---------- */
@media (max-width: 768px) {
  .contact-grid { flex-direction: column; gap: 40px; }
  .contact-form__row { flex-direction: column; gap: 0; }
}

/* 页脚备案链接：继承法务行颜色，hover 出下划线 */
.footer__legal a { color: inherit; }
.footer__legal a:hover { text-decoration: underline; }

/* ============================================================
   用户协议弹窗（Terms Modal）
   ============================================================ */
.footer__legal-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.footer__legal-btn:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footer__legal-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.terms-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.terms-modal {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 680px;
  max-height: min(85vh, 780px);
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  transition: transform .25s ease;
}
.terms-overlay.is-open .terms-modal {
  transform: translateY(0);
}

.terms-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.terms-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.terms-modal__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--beige);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.terms-modal__close:hover {
  background: var(--gold);
  color: var(--white);
}
.terms-modal__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.terms-modal__body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.terms-modal__body p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.9;
}
.terms-modal__en {
  font-family: var(--font-en);
  font-size: 14px;
}
.terms-modal__divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

@media (max-width: 768px) {
  .terms-overlay { padding: 16px; }
  .terms-modal { max-height: 88vh; }
  .terms-modal__head { padding: 20px 20px 14px; }
  .terms-modal__title { font-size: 18px; }
  .terms-modal__body { padding: 20px 20px 28px; }
  .terms-modal__body p { font-size: 14px; }
  .terms-modal__en { font-size: 13px; }
}

/* ---------- About page: photo hero + gallery (about.html only) ---------- */
.page-hero--photo {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(62%, 980px);
  background: url("../assets/images/about/about-hero.jpg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  pointer-events: none;
}
.page-hero--photo .page-hero__inner { position: relative; }
/* 关于我们：主图区标题改深灰（2026-10-16 用户指定） */
.page-hero--photo .page-hero__title { color: #4A4A4A; }
/* 关于我们：主图上下加高（2026-10-16 用户指定；原 80/56） */
.page-hero--photo .page-hero__inner { padding-top: 140px; padding-bottom: 110px; }
/* 「廿载」强调酒红 #B14434（2026-10-16 用户指定） */
.page-hero__title .title-accent,
.page-hero--photo .page-hero__title .title-accent { color: #B14434; }

.ab-gallery { display: block; }
/* 风采掠影去分类（2026-10-16）：27 图统一 3 列 × 9 行，.ab-gallery__group h3 规则已随分类删除 */
/* 办公室实拍：9 列（2026-10-16 用户指定；3 列 → 9 列 → 7 列 → 恢复 9 列） */
.ab-gallery__grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
}
.ab-gallery__item {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0; /* 直角（2026-10-16 用户指定） */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.ab-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2; /* W3 : H2（2026-10-16 用户指定，原 4/3） */
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ab-gallery__item:hover img { transform: scale(1.04); }
.ab-gallery__item figcaption {
  padding: 8px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

@media (max-width: 768px) {
  .page-hero--photo::before {
    width: 100%;
    opacity: 0.28;
    /* 手机端改用 1280px 版本（21KB），省流量 */
    background-image: url("../assets/images/about/about-hero-sm.jpg");
  }
  .page-hero--photo .page-hero__inner { padding-top: 96px; padding-bottom: 76px; }
  .ab-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ============ 联系我们 · 留言弹窗 + 主图按钮（2026-10-16） ============ */
.msgpop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.msgpop-overlay.is-open { opacity: 1; visibility: visible; }
.msgpop {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 26px 28px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  transform: translateY(12px);
  transition: transform .25s ease;
}
.msgpop-overlay.is-open .msgpop { transform: translateY(0); }
.msgpop__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.msgpop__title { font-size: 20px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.msgpop__sub { font-size: 13px; color: var(--gray); margin-bottom: 18px; line-height: 1.7; }
.msgpop__close {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--gray);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.msgpop__close:hover { background: var(--beige); color: var(--ink); }

/* 主图副标题下方按钮（实心胶囊 #B14434）；上方间距减半 26 → 13（2026-10-16 用户指定） */
.hero__cta { margin-top: 13px; }
.hero__cta + .hero__cta { margin-left: 12px; }

@media (max-width: 768px) {
  .msgpop { padding: 20px; max-height: 92vh; }
  .msgpop__title { font-size: 18px; }
  .msg-form__btn { width: 50%; }
}

/* ---------- 导航栏语言切换（简/繁/EN） ---------- */
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.nav-lang__btn {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}
.nav-lang__btn:hover { border-color: var(--ink); }
.nav-lang__btn.is-active {
  background: #7A2E2E;
  border-color: #7A2E2E;
  color: var(--white);
}
.mobile-nav .nav-lang { margin: 10px 0 0; }

/* ---------- 语言筹备中轻提示 ---------- */
.nav-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(26, 26, 26, 0.92);
  color: var(--white);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 50px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  z-index: 10001;
  white-space: nowrap;
}
.nav-toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hk-stat__sub { font-size: 12px; color: #888; margin-top: 3px; line-height: 1.4; }
.trust-stat__sub { font-size: 12px; color: #888; margin-top: 4px; line-height: 1.4; }
.stat__sub { font-size: 13px; color: #888; margin-top: 4px; line-height: 1.4; }

/* ---------- 延伸阅读 / 相关链接卡片（全局） ---------- */
.xlink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 28px; }
@media (max-width: 1024px) { .xlink-grid { grid-template-columns: 1fr; } }
.xlink-card { display: block; background: var(--beige-light, #F8F6F2); border-radius: var(--radius-card, 12px); padding: 24px 22px; text-decoration: none; }
.xlink-card:hover { background: #fff; box-shadow: 0 8px 24px rgba(26,26,26,.08); }
.xlink-card__title { font-size: 16px; font-weight: 700; color: var(--ink, #1A1A1A); margin-bottom: 6px; }
.xlink-card__desc { font-size: 13.5px; color: var(--gray, #666); line-height: 1.7; }
.xlink-card__more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #B14434; }

/* ---------- 首页 FAQ：参照 Buddy One 实测排版参数（单列 + 分隔线） ---------- */
#faq { padding-top: 56px; padding-bottom: 32px; }
/* 常见问题标题区宽度撑满（2026-11-02；回退：恢复 max-width: 1000px; margin: 0 auto 48px;） */
#faq .sec-head { margin: 0 0 48px; }
/* 常见问题宽度撑满（2026-11-02；回退：恢复 max-width: 1000px; margin: 0 auto;） */
#faq .faq-grid { display: block; }
#faq .faq-item {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 28px;
  margin: 0 0 23px;
  border-bottom: 1px solid var(--line);
}
#faq .faq-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#faq .faq-item__q { font-size: 16px; line-height: 24px; font-weight: 600; color: #1A1A1A; margin: 0; }
#faq .faq-item__a { font-size: 16px; line-height: 24px; color: #646464; margin-top: 15px; }
@media (max-width: 600px) {
  #faq .faq-item { padding-bottom: 22px; margin-bottom: 18px; }
}

/* ============================================================
   整页字号对齐 workbuddy.cn 实测口径（2026-10-23 用户确认）
   正文基准 16px / 次要 15px / 栏目标题 36-40px；FAQ 已另行对齐不动
   回退：删除本块，或还原 .tmp/wb_analyze/style.css.bak
   ============================================================ */
.nav a { font-size: 16px; }
.hero__tag { font-size: 13px; }
.stat__num { font-size: 40px; }
.stat__label { font-size: 15px; }
.about__title { font-size: 36px; }
.service-card__desc { font-size: 15px; }
.cert-card__title { font-size: 15px; }
.review-card__text { font-size: 15px; }
.msg-card__title { font-size: 28px; }
.footer__creds { font-size: 13px; } /* 2026-11-22 同版权行 13px（原 15px 覆盖主规则） */
.footer__tagline { font-size: 15px; }
.btn--sm { font-size: 15px; }
.list li { font-size: 16px; }
.sub-service__desc { font-size: 15px; }
.xlink-card__desc { font-size: 14px; }

/* ============================================================
   整页行距 / 段落间距对齐 Buddy One 实测口径（2026-10-28 用户确认）
   行距：16px 正文 1.6→1.5（Buddy One 16px→24）；14-15px 正文→1.55
   段落间距：正文段 mB 28→36（Buddy One 段 mB≈40）；栏目间距见 index.html <style>
   回退：删除本块即可
   ============================================================ */
/* 行距：16px 正文统一 1.5（Buddy One 16px→24） */
.about__desc { line-height: 2.0; margin-bottom: 36px; } /* 续157 index 公司简介段落增加行距 1.6→2.0 */
.review-card__text { line-height: 1.5; }
.service-card__desc { line-height: 1.55; }
.sec-head__sub { line-height: 1.5; }
/* .footer__creds 行距已并入上方主规则（续158 1.6→2.0） */
.list li { line-height: 1.6; }
.hero__tag { line-height: 1.5; }

.certs--sm-title .cert-card__title { font-size: 12px; } .certs--sm-title .cert-card__sub { font-size: 11px; } /* 续139 index 质质背书卡标题 12px，仅 index 加类名生效 */

/* 关于页标题间隔号缩小 30%（2026-11-02；回退：删除本块） */
.about__title .title-sep { font-size: 70%; vertical-align: middle; }

/* 联系页 HERO 欢迎语（内容复刻自在线咨询欢迎卡，2026-11-02；回退：删除本块及 contact.html 对应欢迎区块） */
.hero-welcome { margin-top: 24px; }
.hero-welcome__hello { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.hero-welcome__line { font-size: 15px; color: var(--gray); line-height: 1.9; }

/* 联系页右栏二维码卡（白底、仅两枚二维码，2026-11-02；回退：删除本块、contact-grid 恢复 1fr 1fr 并还原 contact-info 列） */
.contact-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px 28px; box-shadow: var(--shadow-card); }
.contact-side__qrs { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 0; }
.contact-side__qr { text-align: center; }
.contact-side__qr img { width: 108px; height: 108px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); padding: 6px; display: block; margin-bottom: 10px; object-fit: contain; }
.contact-side__qr span { font-size: 13px; color: var(--gray); }
/* 邮件按钮瓦片：复用二维码瓦片样式，icon 居中缩小、hover 金边反馈 */
.contact-side__qr--mail { text-decoration: none; }
.contact-side__qr--mail img { padding: 22px; }
.contact-side__qr--mail:hover img { border-color: var(--gold); }
.contact-side__qr--mail:hover span { color: var(--ink); }

/* ---------- 在线咨询弹窗（2026-11-02 新增） ---------- */
.chat-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.chat-modal[hidden] { display: none; }
.chat-modal__mask { position: absolute; inset: 0; background: rgba(26,26,26,.55); }
.chat-modal__card { position: relative; width: 100%; max-width: 520px; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(26,26,26,.32); }
.chat-modal__top { position: relative; background: linear-gradient(160deg, #C35A41, #B14434); padding: 20px 24px 26px; color: #fff; }
.chat-modal__menu { position: absolute; top: 14px; left: 16px; background: none; border: none; color: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.chat-modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: rgba(255,255,255,.9); font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.chat-modal__ava { position: relative; width: 56px; height: 56px; margin: 12px auto 0; }
.chat-modal__ava img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.75); }
.chat-modal__dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #3FBF6B; border: 2px solid #C35A41; }
.chat-modal__hello { text-align: center; font-family: var(--font-en); font-size: 40px; font-weight: 700; line-height: 1.15; margin: 12px 0 6px; }
.chat-modal__line { text-align: center; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.92); }
.chat-modal__panel { padding: 24px 28px 28px; }
.chat-modal__panel .msg-card__title { margin-top: 0; }
@media (max-width: 480px) {
  .chat-modal__hello { font-size: 30px; }
  .chat-modal__panel { padding: 20px 18px 22px; }
}

/* 续67→续102 Knocket 浮窗定位（2026-11-04 定案）：
   机制=SDK 把入口按钮+聊天窗全部挂在宿主 #contact-widget-auto 的 open Shadow DOM 内，
   页面 CSS 元素选择器(.widget-sdk-* / .widget-new-*)一律不可达——此前按元素写规则全部无效（续97/100/101 教训）；
   唯一穿透通道是 CSS 变量（继承进 shadow）。变量方向铁律：--contact-widget-bottom 越大越靠上。
   续91/94/续126 累计上移 305px（续126 由 310 下移 5px）：桌面 calc(45vh+305px)，移动端 calc(32vh+305px)。
   聊天窗「垂挂在按钮下方」的 top/bottom/max-height 覆盖由 js/main.js 向 shadowRoot 注入（续102）。 */
#contact-widget-auto,
body {
  --contact-widget-top: auto !important;
  --contact-widget-right: 24px !important;
  --contact-widget-bottom: calc(45vh + 305px) !important;
  --contact-widget-left: auto !important;
  --contact-widget-z-index: 999 !important;
}
@media (max-width: 767px) {
  #contact-widget-auto,
  body {
    --contact-widget-right: 16px !important;
    --contact-widget-bottom: calc(32vh + 305px) !important;
  }
}

/* ===== 2026-11-22 全站统一：常见痛点 / 服务流程卡片（参照 services.html） ===== */
/* 白底暖渐变 + 金色顶线 + 轻阴影 + 悬停浮起 */
.section--white .pain-card,
.section--white .process-step {
  background: linear-gradient(180deg, #fff 0%, #FCFAF7 100%);
  border: 1px solid #EFEAE3;
  border-top: 3px solid var(--gold, #C9A87C);
  box-shadow: 0 6px 18px rgba(26, 26, 26, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.section--white .pain-card:hover,
.section--white .process-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 26, 26, .10);
}
/* 痛点卡标题前金色竖条 */
.section--white .pain-card__title { position: relative; padding-left: 16px; }
.section--white .pain-card__title::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 4px; height: .95em; border-radius: 2px; background: var(--gold, #C9A87C);
}
/* 流程卡：编号与标题同一行（编号金色圆章 + 标题同行 + 说明独占一行） */
.section--white .process-step {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start;
}
.section--white .process-step__num {
  flex: 0 0 46px; width: 46px; height: 46px; margin: 0 14px 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold, #C9A87C); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
}
.section--white .process-step__title { flex: 1 1 auto; margin: 0; }
.section--white .process-step__desc { flex: 0 0 100%; margin-top: 12px; }

/* ===== 2026-11-22 移动端自适应增强 ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
  .container, .wrap, section { padding-left: max(16px, env(safe-area-inset-left));
                               padding-right: max(16px, env(safe-area-inset-right)); }
  .nav-lang__btn, .btn, .btn-primary, .btn-ghost, .nav-cta, footer a, .faq-q, .tab-btn {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  p, li, td, h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }
  .hero-actions, .cta-group { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
