/* ==========================================================================
   Contact Us 页（contact-v5）正式样式 —— 纯流式响应式
   （由 2026-11-19 业务验收版 preview.css 变换生成，DOM/CSS 与验收版一致；
    字体声明在 assets/site/css/flowx-fonts.css，页头页脚 2200 锁宽在
    assets/home-v5/css/home-v5.css）
   ========================================================================== */

/* ==========================================================================
   Contact Us 预览版 v2 样式（预览专用，正式合并时迁入 assets/contact-v5/）
   v2 修正（对应用户三点反馈）：
   1) 零触碰正式文件：字体/图片全部走 .ai-outputs/figma-contact-fluid/preview/
   2) 500–1000 严格按 1000 画布稿等比缩放（几何全部 vw 化），字号按规范恒定
   3) 居中交互 = 三卡换位（悬浮卡移入中槽，原中槽卡移左槽，第三张归右槽；
      纵向布局同理上/中/下），移出恢复原排序 —— 槽位状态机见 preview-app.js
   箭头动效：双箭头反相位呼吸（单箭头透明度 100%→35%→100%，1.6s ease-in-out，
   第二颗延迟半周期），保证任意时刻至少一颗清晰可见。
   --------------------------------------------------------------------------

   流体模型：三段仿射
     500–999.98    几何以 1000 画布稿等比（value * 100vw / 1000），字号恒定
     1000–1500     A(1000稿)→B(1500稿) 线性
     1500–2200     B→C(2200稿) 线性，≥2200 锁定；1500 DOM 断点切横/纵排
   锚点速查（A@1000 / B@1500 / C@2200，px）：
     主标题 fs 32/64/80 lh 38.73/77.45/96.82；卡片标题 15/20/26 lh 18.15/24.2/31.47
     正文/提示 10/16/20 lh 15/20/30；致谢 15/20/26 lh 18.15/24.2/31.47
     段间隙 50/100/100；标题内边 80；标题上 80；标题→箭头 30；箭头 30/45/55；
     双箭头错位 6.7/10/15；列卡 550x305→840x454；行卡=(100vw-90)/3，高比 650/703.29
     卡内标题左 30/正文左 40；卡3 条目间隙 10 恒定；marker 宽 0.53em 高 8 恒定
     邮箱悬挂缩进 1.1em（实测 22px@fs20）；致谢带高 145 恒定 rgba(82,187,122,.10)
     底部主图全宽 aspect 2200/829
   ========================================================================== */


/* ---------- 流体变量（基础段 1000–1500） ---------- */
.ct-main {
  --fs-title: clamp(32px, calc(32px + 0.064 * (100vw - 1000px)), 64px);
  --lh-title: clamp(38.73px, calc(38.73px + 0.0774 * (100vw - 1000px)), 77.45px);
  --fs-ctitle: clamp(15px, calc(15px + 0.01 * (100vw - 1000px)), 20px);
  --lh-ctitle: clamp(18.15px, calc(18.15px + 0.0121 * (100vw - 1000px)), 24.2px);
  --fs-body: clamp(10px, calc(10px + 0.012 * (100vw - 1000px)), 16px);
  --lh-body: clamp(15px, calc(15px + 0.01 * (100vw - 1000px)), 20px);
  --fs-thanks: var(--fs-ctitle);
  --lh-thanks: var(--lh-ctitle);
  --gap-sec: clamp(50px, calc(50px + 0.1 * (100vw - 1000px)), 100px);
  --chev-size: clamp(30px, calc(30px + 0.03 * (100vw - 1000px)), 45px);
  --chev-drop: clamp(6.7px, calc(6.7px + 0.0066 * (100vw - 1000px)), 10px);
  --card-w: clamp(550px, calc(550px + 0.58 * (100vw - 1000px)), 840px);
  --card-h: clamp(305px, calc(305px + 0.298 * (100vw - 1000px)), 454px);
  /* 卡内左内边：按段恒定（每帧管一段）：500-1000 段 30/40（500 画布）；
     1000-1500 段 80/90（1500 画布，列式宽卡）；≥1500 段 30/40（2200 画布，行式卡） */
  --card-pad-t: 30px;
  --card-pad-b: 40px;
  --card-radius: 15px;
  font-family: 'FlowXInter', 'FlowXZhuoJian', 'SourceHanSansTC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #000;
}

/* ---------- 500–999.98：真实 500 稿（copy 文件 10:449，500 画布）----------
   除卡宽 400→550 插值（斜率 0.3，500 时恰满幅 400+2×50）外，
   其余全部恒定 = 1000 稿值（标题内边 80 / 箭头 30 / 段间隙 50 /
   卡内边 30、40 / 卡高 305 / 字号 10·15）——基础段 clamp 下限即 A 值恒定，
   仅卡宽需要本段公式（1000 处两段同为 550，连续）。 */
@media (max-width: 999.98px) {
  .ct-main {
    --card-w: clamp(400px, calc(400px + 0.3 * (100vw - 500px)), 550px);
  }
}

/* ---------- 1000–1499.98：1500 画布稿恒定值（列式宽卡段） ---------- */
@media (min-width: 1000px) and (max-width: 1279.98px) {
  .ct-main {
    --card-pad-t: 80px;
    --card-pad-b: 90px;
  }
}

/* ---------- 行排段 ≥1280（2026-11-19 重构）----------
   2200 帧是行排唯一设计锚：整段（字号/行高/段隙/箭头/内边/块隙）按 100vw/2200
   等比缩放，2200 处与设计精确重合，≥2200 锁定；1280 起为设计的等比微缩版，
   卡内文字呼吸比例与设计一致（内容约占卡高 65%，不再顶边）。 */
@media (min-width: 1280px) {
  .ct-main {
    --fs-title: clamp(46.55px, calc(80px * 100vw / 2200px), 80px);
    --lh-title: clamp(56.34px, calc(96.82px * 100vw / 2200px), 96.82px);
    --fs-ctitle: clamp(15.13px, calc(26px * 100vw / 2200px), 26px);
    --lh-ctitle: clamp(18.31px, calc(31.47px * 100vw / 2200px), 31.47px);
    --fs-body: clamp(11.64px, calc(20px * 100vw / 2200px), 20px);
    --lh-body: clamp(17.45px, calc(30px * 100vw / 2200px), 30px);
    --gap-sec: clamp(58.18px, calc(100px * 100vw / 2200px), 100px);
    --chev-size: clamp(32px, calc(55px * 100vw / 2200px), 55px);
    --chev-drop: clamp(8.73px, calc(15px * 100vw / 2200px), 15px);
    --card-pad-t: clamp(17.45px, calc(30px * 100vw / 2200px), 30px);
    --card-pad-b: clamp(23.27px, calc(40px * 100vw / 2200px), 40px);
  }
}

/* ---------- 页面骨架 ---------- */
.ct-main {
  display: block;
  overflow: hidden;
  position: relative;
  /* 设计稿上界 2200：超宽视口（如 3840）锁定 2200 居中，两侧留白（2026-11-19） */
  max-width: 2200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 整帧背景纹理（Figma 帧级填充，置于所有内容之下）----------
   三段忠实还原 Figma 各帧 scaleMode：
   500–999.98 独立素材 ba813126 FILL(cover)；
   1000–1499.98 f64a3bf3 FILL(cover)；
   ≥1500 f64a3bf3 STRETCH(100% 100%，2200 帧语义)。 */
.ct-pagebg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../img/page-bg-1500.png') center / cover no-repeat;
}
@media (max-width: 999.98px) {
  .ct-pagebg { background-image: url('../img/page-bg-500.png'); }
}
@media (min-width: 1500px) {
  .ct-pagebg { background-size: 100% 100%; }
}
.ct-main > :not(.ct-pagebg) { position: relative; z-index: 1; }

/* ---------- 标题区 ---------- */
.ct-hero { padding: 80px 80px 0; }
.ct-title {
  margin: 0;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 700;
  color: #52BB7A;
  text-align: left;
}
.ct-chev {
  position: relative;
  height: calc(var(--chev-size) + var(--chev-drop));
  margin: 30px auto 0;
  width: var(--chev-size);
}
.ct-chev img {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--chev-size);
  height: var(--chev-size);
  display: block;
  animation: ctChevPulse 1.6s ease-in-out infinite;
}
/* 双箭头反相位：各按 100%→35%→100 呼吸，第二颗延迟半周期，任一时刻至少一颗可见 */
.ct-chev img + img { top: var(--chev-drop); animation-delay: -0.8s; }
@keyframes ctChevPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- 卡片区（默认 <1500 纵向堆叠） ---------- */
.ct-cards-wrap { margin-top: var(--gap-sec); }
.ct-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.ct-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: var(--card-w);
  min-height: var(--card-h);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 calc(4 / 1920 * 100vw) calc(15 / 1920 * 100vw) rgba(0, 0, 0, .25);
  transition: transform 450ms cubic-bezier(.22, .61, .36, 1);
}
.ct-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;   /* <1500 两帧为 STRETCH（拉伸） */
  display: block;
}
@media (min-width: 1500px) {
  /* 2200 帧卡底图为 FILL（等比裁剪）：拉伸会把弧线压窄、
     标题到弧线的视觉间距缩水一半（用户反馈"缩进是2变1"的根因） */
  .ct-card-bg { object-fit: cover; }
}
.ct-card-body {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding-left: var(--card-pad-b);
  display: flex;
  flex-direction: column;
}
.ct-ctitle {
  margin: 0 0 0 calc(var(--card-pad-t) - var(--card-pad-b));
  font-size: var(--fs-ctitle);
  line-height: var(--lh-ctitle);
  font-weight: 700;
  color: #52BB7A;
  text-align: left;
}
.ct-desc {
  margin: 0;
  /* 垂直对齐体系（用户定稿）：desc 文字落在标题『Group』r 字位 =
     正文左内边 + 0.53em（Figma 三帧 50.5/98.5/45.2 实测同式） */
  margin-left: .53em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #000;
}
.ct-mail::before, .ct-region::before {
  /* 黑色圆点（用户口谕）：条目行行首，二级缩进列位上 */
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  margin-right: .5em;
  vertical-align: middle;
}
.ct-mail, .ct-region {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #000;
  /* 悬挂缩进（用户定稿对齐体系）：
     首行（●+标签）悬挂回 r 位（= pad-b + 0.53em，与 desc 同列）；
     E 列 = r 位 + 圆点6px + 间距0.5em；地址行落 E 列 → flow 与 E 垂直对齐 */
  padding-left: calc(.53em + 6px + .5em);
  text-indent: calc(-6px - .5em);
}
.ct-mail-addr { color: #000; text-decoration: none; text-indent: 0; }
.ct-mail-addr:hover, .ct-mail-addr:focus { text-decoration: underline; }
.ct-twoline .ct-mail-addr { display: block; }

/* 卡内间距：一律用「盒间隙」语义（设计稿盒顶差 - 前盒行高），三稿实测：
   卡1 标题→desc 30 恒定；desc→条目 35（小屏 20）；条目间同值
   卡2/卡3 标题→desc 10 恒定；卡2 desc→Email 10 恒定；区块间 30（小屏 15）
   卡3 desc→条目区 30（小屏 10）；国家条目间 10 恒定 */
.ct-card--c1 .ct-desc { margin-top: 30px; }
.ct-card--c1 .ct-list { margin-top: 35px; display: flex; flex-direction: column; gap: 35px; }
.ct-card--c2 .ct-block + .ct-block { margin-top: 30px; }
.ct-card--c2 .ct-desc { margin-top: 10px; }
.ct-card--c2 .ct-mail { margin-top: 10px; }
.ct-card--c3 .ct-desc { margin-top: 10px; }
.ct-card--c3 .ct-regions { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 999.98px) {
  .ct-card--c1 .ct-list { margin-top: 20px; gap: 20px; }
  .ct-card--c2 .ct-block + .ct-block { margin-top: 15px; }
  .ct-card--c3 .ct-regions { margin-top: 10px; }
}

/* ---------- ≥1280：三卡横排（DOM 顺序不变；2026-11-19 用户拍板：
   2880 物理宽 @200% 缩放 = 1440 CSS 视口须横排，断点对齐 home 结构断点族 1280） ---------- */
@media (min-width: 1280px) {
  .ct-cards {
    flex-direction: row;
    align-items: stretch;
    padding: 0 clamp(17.45px, calc(30px * 100vw / 2200px), 30px);
    gap: clamp(8.73px, calc(15px * 100vw / 2200px), 15px);
  }
  .ct-card {
    width: auto;
    flex: 1 1 0;
    min-height: calc((min(100vw, 2200px) - 90px) * 650 / 703.29 / 3);
  }
}

/* ---------- 换位交互（JS 内联 transform：translate×scale 并行同缓动） ---------- */
.ct-freeze .ct-card { transition: none !important; }

/* ---------- 提示行 / 致谢带 / 底部主图 ---------- */
.ct-tip {
  margin: var(--gap-sec) 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #4B4B4B;
  text-align: center;
}
.ct-band {
  margin-top: var(--gap-sec);
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(82, 187, 122, .10);
}
.ct-thanks {
  margin: 0;
  text-shadow: 5px 4px 4px rgba(0, 0, 0, .19);
  font-size: var(--fs-thanks);
  line-height: var(--lh-thanks);
  font-weight: 700;
  color: #52BB7A;
  text-align: center;
}
.ct-mainbg {
  /* <picture> 三份素材（Figma 按帧节点导出的 STRETCH 成品，各含设计比例与透明区），
     原生比例直接显示，不再裁剪 */
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--gap-sec);
}

/* ---------- 中文字体域 ----------
   !important + 类选择器特异性：反压正式 flowx-fonts.css 的
   body *:not(...){font-family:inherit!important} 全局继承规则（仅预览需要；
   正式合并时全站字体映射一并替换为思源，该冲突自然消除，可去除 important）。 */
.ct-main { font-family: 'FlowXInter', 'FlowXZhuoJian', 'SourceHanSansTC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important; }
html[lang="zh-CN"] .ct-main { font-family: 'FlowXZhuoJian', 'FlowXInter', 'SourceHanSansTC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important; }
html[lang="zh-TW"] .ct-main,
html[lang="zh-HK"] .ct-main { font-family: 'SourceHanSansTC', 'FlowXInter', 'FlowXZhuoJian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important; }
html[lang|="zh"] .ct-main .ct-title,
html[lang|="zh"] .ct-main .ct-ctitle,
html[lang|="zh"] .ct-main .ct-thanks { font-weight: 400; }
html[lang|="zh"] .ct-main .ct-thanks strong {
  font-family: 'FlowXInter', 'FlowXZhuoJian', 'SourceHanSansTC', sans-serif !important;
  font-weight: 700;
}

/* ---------- 七语显隐 ---------- */
.ct-main [data-lang] { display: none; }
html:not([lang]) .ct-main [data-lang="en"],
html[lang="en"] .ct-main [data-lang="en"],
html[lang="es"] .ct-main [data-lang="es"],
html[lang="pt-BR"] .ct-main [data-lang="pt-BR"],
html[lang="pt-PT"] .ct-main [data-lang="pt-PT"],
html[lang="zh-CN"] .ct-main [data-lang="zh-CN"],
html[lang="zh-TW"] .ct-main [data-lang="zh-TW"],
html[lang="zh-HK"] .ct-main [data-lang="zh-HK"] { display: inline; }

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ct-chev img { animation: none; }
  .ct-card { transition: none; }
}

/* ---------- 行排段卡内块隙等比（级联末尾覆盖定值；2200 锚=设计实测 60/35/30） ---------- */
@media (min-width: 1280px) {
  .ct-card--c2 .ct-block + .ct-block { margin-top: clamp(34.9px, calc(60px * 100vw / 2200px), 60px); }
  .ct-card--c1 .ct-list { margin-top: clamp(20.4px, calc(35px * 100vw / 2200px), 35px); gap: clamp(20.4px, calc(35px * 100vw / 2200px), 35px); }
  .ct-card--c3 .ct-regions { margin-top: clamp(17.5px, calc(30px * 100vw / 2200px), 30px); }
}

/* ---------- 设计稿显式折行（仅 EN、仅行排段 ≥1280 生效）----------
   卡2 desc 在 partnership 后折行、卡3 desc 在 inquiries, 后折行
   （2200 帧两行式结构；列式段与其余语言保持自然换行） */
.ct-ln2 { display: inline; }
@media (min-width: 1280px) {
  .ct-ln2 { display: block; }
}

