/* =========================================================
   H5 手机端专用样式
   —— 独立于桌面站，为拇指操作重新设计
   ========================================================= */

:root {
  --h5-bg: #FBFAF7;
  --h5-card: #FFFFFF;
  --h5-ink: #0B1F3A;
  --h5-ink2: #4A5568;
  --h5-mute: #8A93A0;
  --h5-line: #E3E7EC;
  --h5-gold: #C9A45C;
  --h5-gold-lt: #E3C489;
  --h5-green: #0F6E56;
  --h5-red: #A32D2D;
  --h5-blue: #1B3A5C;
  --h5-tap: 44px;          /* 最小点击区 */
  --h5-safe-b: env(safe-area-inset-bottom, 0px);
}

body.h5 {
  background: var(--h5-bg);
  color: var(--h5-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + var(--h5-safe-b));   /* 给底部 Tab 留位 */
  overflow-x: hidden;
  max-width: 100vw;
}

/* 长串内容（邮箱、URL、英文标题）不得撑宽页面 */
body.h5 * { min-width: 0; max-width: 100%; }
body.h5 img, body.h5 video { max-width: 100%; height: auto; }
body.h5 h1, body.h5 h2, body.h5 h3, body.h5 p, body.h5 span, body.h5 a {
  overflow-wrap: break-word; word-break: break-word;
}

/* 全局盒模型
   缺了这一条，表单控件 width:100% 会再加上 padding 与 border，
   实测联系页 4 个输入框各超出容器 30px，导致整页出现横向滚动。 */
body.h5 *, body.h5 *::before, body.h5 *::after {
  box-sizing: border-box;
}

.h5-wrap { padding: 0 18px; }

/* ---------- 顶栏 ---------- */
.h5-top {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11,31,58,0.97);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: #fff;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
}

.h5-top .logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em;
}

.h5-top .logo img {
  height: 22px; width: auto;
  filter: brightness(0) invert(1);   /* 深色底上反白 */
  opacity: 0.94;
}

.h5-top .en {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-gold-lt); letter-spacing: 0.2em;
}

/* 顶栏右侧动作 */
.h5-top-actions { display: flex; align-items: center; gap: 8px; }

.h5-top-actions a, .h5-top-actions button {
  min-width: var(--h5-tap); min-height: var(--h5-tap);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 3px;
  padding: 0 12px;
  /* button 元素带浏览器默认灰底，不重置的话会变成浅底白字、几乎看不见 */
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.h5-top-actions a:active, .h5-top-actions button:active {
  background: rgba(255,255,255,0.12);
}

/* ---------- Hero ---------- */
/* 用 clamp + min() 而不是 vh 百分比，避免在大视口下被拉得过高 */
.h5-hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 18px 30px;
  background: #05070C;
  overflow: hidden;
}

.h5-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}

.h5-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0.55) 0%, rgba(5,7,12,0.25) 40%, rgba(5,7,12,0.92) 100%);
}

.h5-hero .inner { position: relative; z-index: 2; }

.h5-hero .eyebrow {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-gold-lt); letter-spacing: 0.24em;
  margin-bottom: 16px;
}

.h5-hero h1 {
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  line-height: 1.24; letter-spacing: 0.01em;
}

.h5-hero h1 em {
  display: block; font-style: normal;
  color: var(--h5-gold-lt);
}

.h5-hero .slogan {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: 0.16em;
  margin-top: 16px;
}

.h5-hero .desc {
  font-size: 14.5px; color: rgba(255,255,255,0.72);
  line-height: 1.85; margin-top: 18px;
}

.h5-cta {
  display: flex; gap: 10px; margin-top: 24px;
}

.h5-cta a {
  flex: 1;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; letter-spacing: 0.04em; font-weight: 600;
  border-radius: 3px;
}

.h5-cta a.primary { background: var(--h5-gold-lt); color: #0B1F3A; }
.h5-cta a.ghost { border: 1px solid rgba(255,255,255,0.32); color: #fff; }
.h5-cta a:active { opacity: 0.82; }

/* ---------- 视频条 ---------- */
.h5-video {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05070C;
}

.h5-video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.h5-video .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, transparent, rgba(5,7,12,0.88));
}

.h5-video .cap .badge {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-gold-lt); letter-spacing: 0.2em;
}

.h5-video .cap p {
  font-size: 13px; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-top: 7px;
}

/* ---------- 区块 ---------- */
.h5-sec { padding: 44px 0; }
.h5-sec.tint { background: #F2F0EA; }

.h5-sec-head { margin-bottom: 22px; }

.h5-sec-head .kick {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-gold); letter-spacing: 0.22em;
  margin-bottom: 10px;
}

.h5-sec-head h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  line-height: 1.3;
}

.h5-sec-head .lead {
  font-size: 14px; color: var(--h5-ink2);
  line-height: 1.8; margin-top: 12px;
}

/* ---------- 卡片 ---------- */
.h5-card {
  background: var(--h5-card);
  border: 1px solid var(--h5-line);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
  display: block;
  position: relative;
  overflow: hidden;
}

.h5-card .cat {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-gold); letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.h5-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  line-height: 1.4;
}

.h5-card p {
  font-size: 13.5px; color: var(--h5-ink2);
  line-height: 1.75; margin-top: 10px;
}

.h5-card .meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--h5-mute); letter-spacing: 0.06em;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--h5-line);
}

.h5-card.accent::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--h5-gold);
}
.h5-card.blue::before { background: var(--h5-blue); }
.h5-card.green::before { background: var(--h5-green); }
.h5-card.red::before { background: var(--h5-red); }

/* 四宫格快捷入口 */
.h5-grid4 {
  /* minmax(0,1fr) 而非 1fr：1fr 的最小尺寸是 auto，
     英文标签（SUSPEDE GREEN / GLOBAL BUSINESS）加字距后
     撑不破就会把网格顶宽，导致整页出现横向滚动。 */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.h5-tile {
  background: var(--h5-card);
  border: 1px solid var(--h5-line);
  border-radius: 4px;
  padding: 16px 15px;
  min-height: 84px;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}

.h5-tile .t {
  font-family: var(--mono); font-size: 9px;
  color: var(--h5-mute); letter-spacing: 0.16em;
  /* 长英文标签允许断行，避免撑破卡片 */
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.h5-tile .n {
  font-family: var(--serif); font-size: 15.5px; font-weight: 700;
  margin-top: 7px; line-height: 1.35;
}

/* ---------- 底部 Tab ---------- */
.h5-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--h5-line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: var(--h5-safe-b);
}

.h5-tabbar a {
  min-height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--h5-mute);
  min-width: 0;
}

.h5-tabbar a .ic { font-size: 17px; line-height: 1; }
.h5-tabbar a .lb {
  font-size: 10px; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.h5-tabbar a.on { color: var(--h5-ink); }
.h5-tabbar a.on .ic { color: var(--h5-gold); }
.h5-tabbar a:active { background: rgba(11,31,58,0.05); }

/* ---------- 抽屉菜单 ---------- */
.h5-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,12,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  overflow: hidden;
}

.h5-drawer.on { opacity: 1; visibility: visible; }

.h5-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 82%; max-width: 330px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 calc(24px + var(--h5-safe-b));
}

.h5-drawer.on .h5-drawer-panel { transform: none; }

.h5-drawer-head {
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--h5-line);
  display: flex; align-items: center; justify-content: space-between;
}

.h5-drawer-head .t {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-mute); letter-spacing: 0.2em;
}

.h5-drawer-close {
  width: var(--h5-tap); height: var(--h5-tap);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--h5-ink);
}

.h5-drawer-group { padding: 14px 0 6px; }

.h5-drawer-group .g {
  font-family: var(--mono); font-size: 9px;
  color: var(--h5-mute); letter-spacing: 0.2em;
  padding: 0 20px 8px;
}

.h5-drawer a {
  display: flex; align-items: center;
  min-height: var(--h5-tap);
  padding: 0 20px;
  font-size: 15px; color: var(--h5-ink);
}

.h5-drawer a:active { background: rgba(11,31,58,0.05); }

/* ---------- 表单 ---------- */
.h5-field { margin-bottom: 16px; }

.h5-field label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  color: var(--h5-mute); letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.h5-field input, .h5-field select, .h5-field textarea {
  width: 100%;
  min-height: 48px;
  font-family: var(--sans); font-size: 16px;   /* 16px 防止 iOS 自动缩放 */
  color: var(--h5-ink);
  background: var(--h5-card);
  border: 1px solid var(--h5-line);
  border-radius: 4px;
  padding: 12px 14px;
}

.h5-field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }

.h5-field input:focus, .h5-field select:focus, .h5-field textarea:focus {
  outline: none; border-color: var(--h5-gold);
}

.h5-submit {
  width: 100%; min-height: 52px;
  background: var(--h5-ink); color: #fff;
  border: none; border-radius: 4px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.04em;
}

.h5-submit:active { background: #14304F; }

.h5-msg {
  display: none;
  margin-top: 14px; padding: 13px 15px;
  font-size: 13.5px; line-height: 1.7;
  background: rgba(15,110,86,0.08);
  border-left: 3px solid var(--h5-green);
  color: var(--h5-ink2);
  border-radius: 0 3px 3px 0;
}

.h5-msg.on { display: block; }

/* ---------- 时间线 ---------- */
.h5-tl { position: relative; padding-left: 22px; }

.h5-tl::before {
  content: ""; position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 1px; background: var(--h5-line);
}

.h5-tl-item { position: relative; padding-bottom: 22px; }

.h5-tl-item::before {
  content: ""; position: absolute;
  left: -22px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--h5-gold);
  box-shadow: 0 0 0 3px var(--h5-bg);
}

.h5-tl-item:first-child::before { background: var(--h5-red); }

.h5-tl-item .d {
  font-family: var(--mono); font-size: 11px;
  color: var(--h5-ink); letter-spacing: 0.06em;
}

.h5-tl-item .k {
  display: inline-block;
  font-family: var(--mono); font-size: 9px;
  color: var(--h5-gold); letter-spacing: 0.14em;
  border: 1px solid currentColor;
  padding: 2px 8px; border-radius: 2px;
  margin: 8px 0 9px;
}

.h5-tl-item h3 {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700;
  line-height: 1.4;
}

.h5-tl-item p {
  font-size: 13.5px; color: var(--h5-ink2);
  line-height: 1.78; margin-top: 9px;
}

.h5-tl-item .who {
  font-family: var(--mono); font-size: 10px;
  color: var(--h5-mute); letter-spacing: 0.05em;
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid var(--h5-line);
}

/* ---------- 页脚 ---------- */
.h5-foot {
  background: var(--h5-ink);
  color: rgba(255,255,255,0.62);
  padding: 34px 18px calc(30px + var(--h5-safe-b));
  margin-bottom: 0;
}

.h5-foot .logo {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.h5-foot .mail {
  font-family: var(--mono); font-size: 13px;
  color: var(--h5-gold-lt); letter-spacing: 0.06em;
  display: inline-block;
  min-height: var(--h5-tap); line-height: var(--h5-tap);
}

.h5-foot-links {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 14px;
}

.h5-foot-links a {
  min-height: var(--h5-tap);
  display: inline-flex; align-items: center;
  padding-right: 18px;
  font-size: 13px; color: rgba(255,255,255,0.68);
}

/* ICP 备案号 */
.h5-foot .icp { margin-top: 14px; }
.h5-foot .icp a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4); text-decoration: none;
}

/* ---------- 通用 ---------- */
.h5-hero + .h5-sec { padding-top: 40px; }
.h5-divider { height: 1px; background: var(--h5-line); margin: 0 18px; }

.h5-tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.h5-tagrow span {
  font-family: var(--mono); font-size: 9.5px;
  color: var(--h5-ink2); letter-spacing: 0.06em;
  border: 1px solid var(--h5-line);
  padding: 4px 9px; border-radius: 2px;
  background: var(--h5-card);
}

/* =========================================================
   H5 尺寸优化层（2026-11-05）
   —— 修字号下限、Logo 可辨识度、导航点击区、内容密度
   ========================================================= */

/* ---------- 1. Logo：改用浅色专用小图，去掉反白滤镜 ---------- */
.h5-top .logo img,
.h5-foot .logo {
  height: 26px; width: auto;
  filter: none;          /* 浅色图本身适配深色底，不再反白 */
  opacity: 1;
}
.h5-foot .logo { height: 30px; }

/* ---------- 2. 字号下限：中文移动端不低于 11px ---------- */
/* 顶栏英文副标 */
.h5-top .en { font-size: 10px; letter-spacing: 0.16em; }
/* 区块 kicker */
.h5-sec-head .kick { font-size: 10.5px; letter-spacing: 0.18em; }
/* 卡片分类标 */
.h5-card .cat { font-size: 10.5px; letter-spacing: 0.16em; }
/* 四宫格标签 */
.h5-tile .t { font-size: 10.5px; letter-spacing: 0.12em; }
/* 抽屉分组标题 */
.h5-drawer-group .g { font-size: 10.5px; letter-spacing: 0.16em; }
/* 抽屉头部 */
.h5-drawer-head .t { font-size: 10.5px; letter-spacing: 0.16em; }
/* 标签行 */
.h5-tagrow span { font-size: 11px; padding: 5px 10px; }
/* 时间线标签 */
.h5-tl-item .k { font-size: 10.5px; padding: 3px 9px; }
/* 视频角标 */
.h5-video .cap .badge { font-size: 10.5px; letter-spacing: 0.18em; }
/* Hero 眉标 */
.h5-hero .eyebrow { font-size: 10.5px; letter-spacing: 0.2em; }

/* ---------- 3. 底部 Tab：图标与文字放大，点击区加高 ---------- */
.h5-tabbar a {
  min-height: 62px;
  gap: 5px;
}
.h5-tabbar a .ic { font-size: 20px; }
.h5-tabbar a .lb { font-size: 11.5px; letter-spacing: 0.02em; }

/* ---------- 4. 顶栏动作按钮：加大字号与内边距 ---------- */
.h5-top-actions a,
.h5-top-actions button {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 0 15px;
  border-radius: 4px;
}

/* ---------- 5. 抽屉菜单项：字号与点击区提升 ---------- */
.h5-drawer a { font-size: 16px; padding: 0 20px; }
.h5-drawer-group { padding: 18px 0 8px; }
.h5-drawer-group .g { padding: 0 20px 9px; }
.h5-drawer-panel { padding: 22px 0 calc(28px + var(--h5-safe-b)); }

/* ---------- 6. 正文可读性：小屏正文略放大 ---------- */
.h5-card p { font-size: 14px; line-height: 1.78; }
.h5-sec-head .lead { font-size: 14.5px; }
.h5-hero .desc { font-size: 15px; }
.h5-tl-item p { font-size: 14px; }
.h5-tile .n { font-size: 16px; }
.h5-card .meta { font-size: 11px; }
.h5-tl-item .who { font-size: 11px; }
.h5-foot .icp a { font-size: 11.5px; }
.h5-foot-links a { font-size: 13.5px; }

/* ---------- 7. Hero 高度收敛，避免小屏被顶栏挤压 ---------- */
.h5-hero { min-height: min(58vh, 480px); padding: 34px 18px 26px; }
.h5-hero h1 { font-size: 32px; }

/* ---------- 8. 区块间距：小屏稍收紧，信息密度更合理 ---------- */
.h5-sec { padding: 38px 0; }
.h5-sec-head { margin-bottom: 18px; }

/* ---------- 9. 四宫格：标签可读后需要更多高度 ---------- */
.h5-tile { min-height: 92px; padding: 16px 14px; }

/* ---------- 10. 表单：iOS 缩放防护保持 16px，标签放大 ---------- */
.h5-field label { font-size: 11px; letter-spacing: 0.12em; }

/* ---------- 11. 时间线：节点与文字间距 ---------- */
.h5-tl-item { padding-bottom: 26px; }
.h5-tl-item h3 { font-size: 17px; }

/* ---------- 12. 兜底：任何元素不得撑破视口 ---------- */
.h5-wrap, .h5-sec, .h5-card, .h5-tile { max-width: 100%; }
.h5-tabbar a .lb, .h5-top .en { white-space: nowrap; }

/* ---------- 13. 全部可见文字不低于 11px（中文可读性底线）---------- */
.h5-top .en,
.h5-sec-head .kick,
.h5-card .cat,
.h5-tile .t,
.h5-drawer-group .g,
.h5-drawer-head .t,
.h5-tagrow span,
.h5-tl-item .k,
.h5-video .cap .badge,
.h5-hero .eyebrow {
  font-size: 11px;
}

/* ---------- 14. 备案号链接：合规必须可点，补足点击区 ---------- */
.h5-foot .icp a {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 2px;
}

/* ---------- 15. 所有链接/按钮点击区不低于 32px ---------- */
.h5-foot-links a,
.h5-tl-item .who a,
.h5-card a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
