/* ============================================================
   喜盟集團 官網 — 樣式表 (PC + H5 響應式 · 一比一還原)
   ============================================================ */

:root {
  --red: #D91A2C;
  --red-dark: #DE2719;
  --red-deep: #b3141c;
  --ink: #2B1309;
  --text: #2B1309;
  --muted: #555;
  --line: #ececec;
  --bg-gray: #f6f7f9;
  --bg-soft: #fafafa;
  --dark: #1f1f23;
  --dark-2: #161618;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang HK", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

em,
i {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 10px rgba(0, 0, 0, .06);
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(8px);
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo with subtitle (PC) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  height: 44px;
  width: auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
}

.logo__text em {
  font-size: 12px;
  color: var(--text);
  margin-top: 6px;
  letter-spacing: .5px;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  /* transition: width .25s; */
}

.nav__link:hover {
  color: var(--red);
}

.nav__link.is-active {
  color: var(--red);
}

.nav__link.is-active::after {
  width: 22px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  display: none;
}

/* ----- Language switcher (參考 xunxiao .lang-switch：左竖线分隔 + 独立胶囊) ----- */
/* PC 端：侧边栏内的 lang-pill 隐藏（仅移动端显示） */
.lang-pill--sidebar {
  display: none;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 30px;
  /* margin-left: 18px; */
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.lang-pill__btn {
  appearance: none;
  border: 0;
  background: transparent;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
  line-height: 1;
  user-select: none;
}

.lang-pill__btn:hover {
  color: var(--red);
}

.lang-pill__btn.is-active {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(222, 39, 25, .25);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* ============================================================
   HERO  (參考 xunxiao .hero：固定高度 + 全屏背景图 + 居中内容)
   ============================================================ */
.hero {
  position: relative;
  height: 600px;
  margin-top: 72px;
  /* 固定 header 偏移 */
  background: url("../pc/1.png") center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左侧白渐变蒙层：让深色文字更清晰 */
.hero::before {
  /* content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .18) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none; */
}

.hero-content {
  position: relative;
  z-index: 1;
  /* 浮在 ::before 蒙层之上 */
  text-align: left;
  padding: 0 24px;
  /* 与全局 .container 內边距对齐 */
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0;
  letter-spacing: 1px;
  max-width: 600px;
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}

/* 标题下方：红色短横线分隔（参考 .section__title::after） */
.hero-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* 标题高亮词「福利數碼化」：默认继承色（移动端不变），仅 PC(≥769px) 变红 */
.hero-title__hl {
  color: inherit;
}

@media (min-width: 769px) {
  .hero-title__hl {
    color: #CE2B39;
  }
}

.hero-sub {
  font-size: 20px;
  line-height: 1.85;
  color: var(--text);
  max-width: 560px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   STATS (獨立模塊 · 參考 xunxiao .stats：紅底 + pc/2.png + 3 欄網格)
   ============================================================ */
.stats {
  position: relative;
  background-image: url("../pc/0.png");
  background-size: cover;
  background-position: center;
  z-index: 10;
  padding: 22px 20px;
}

.stats::before {
  /* 第二層 bg 圖（與 xunxiao 一致：雙層疊加避免意外穿透） */
  /* content: "";
  position: absolute;
  inset: 0;
  background: url("../h5/2.png") center/cover no-repeat;
  pointer-events: none; */
}

.stats-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 10px;
  position: relative;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
}

.check::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 3px;
  width: 5.5px;
  height: 10px;
  border: solid #c52a32;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section {
  padding: 40px 0;
}

.section--gray {
  background: var(--bg-gray);
}

.section__head {
  text-align: center;
  margin-bottom: 50px;
}

.section__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section__lead {
  margin-top: 20px;
  font-size: 28px;
  color: var(--ink);
  font-weight: 500;
}

.section__desc {
  margin-top: 10px;
  font-size: 20px;
  color: var(--text);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section__head--light .section__title {
  color: #fff;
}

.section__head--light .section__title::after {
  background: #fff;
}

.section__head--light .section__lead {
  color: #fff;
}

.section__head--light .section__desc {
  color: rgba(255, 255, 255, .85);
}

.t-en {
  color: var(--text);
  letter-spacing: 1px;
}

/* ============================================================
   ABOUT （参照 xunxiao 关于我们样式 · about__boxes 模块不变）
   ============================================================ */
.about {
  background: var(--bg-soft);
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.acard {
  position: relative;
  background: #f5f5f4;
  overflow: hidden;
  transition: transform 0.3s;
}

.acard:hover {
  transform: translateY(-6px);
}

.acard__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.acard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acard__body {
  padding: 28px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.acard__title {
  font-size: 26px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 30px;
  position: relative;
  padding-top: 16px;
  display: inline-block;
  letter-spacing: 0.5px;
  line-height: 1;
}

.acard__title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.acard__text {
  font-size: 16px;
  color: var(--text);
  padding: 0;
  line-height: 1.5;
}

/* Red-wave header box (use pc/5.png as decorative ribbon) — ul/li 布局 */
.about__boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 40px;
}

.mbox {
  background: var(--bg-gray);
  /* border-radius: var(--radius); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* 让 .mbox__list 通过 flex: 1 撑满剩余高度，保证两个 box 视觉等高 */
}

.mbox__head {
  position: relative;
  background: url("../pc/5.png") right center/auto 100% no-repeat var(--red);
  color: #fff;
  padding: 16px 24px;
}

.mbox__ribbon {
  display: none;
}

.mbox__title {
  font-size: 24px;
  font-weight: normal;
  color: #fff;
}

/* ul/li 列表区：左右下三边描边 + 圆角收口 */
.mbox__list {
  list-style: none;
  margin: 0;
  padding: 20px 24px 26px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* border-radius: 0 0 var(--radius) var(--radius); */
  flex: 1;
  /* 撑满 .mbox 剩余高度（两个 box 视觉等高） */
}

.mbox__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

/* 红色圆点项目符号 */
.mbox__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

.mbox__list li:last-child {
  margin-bottom: 0;
}

/* 高亮行（核心定位）：灰色底胶囊 + 无圆点 */
.mbox__list li.mbox__hl {
  margin-top: 6px;
  padding: 12px 16px;
  background: #f4f3f3;
  /* border-radius: 4px; */
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.mbox__list li.mbox__hl::before {
  display: none;
}

/* ============================================================
   SOLUTION  (参照 xunxiao 核心业务：两模块布局)
   ------------------------------------------------------------
   模块 1：.section__head--bg  =  背景图 + 标题区（红底，撑高让卡片浮起覆盖）
   模块 2：.sol__cards         =  卡片网格（margin-top: 负值 上浮覆盖模块 1）
   ============================================================ */
.section--solution {
  position: relative;
  overflow: hidden;
}

/* ----- 模块 1：背景图 + 标题 ----- */
.section__head--bg {
  position: relative;
  isolation: isolate;
  z-index: 1;
  /* 创建独立堆叠上下文 + 显式 z-index:1，让 ::before 的 z-index: -1 仅在父元素内生效（不被外层背景覆盖），
     同时确保兄弟节点 .sol__cards（z-index: 5）能稳定盖在 .section__head--bg 之上 */
  padding: 0;
  /* 顶部 40：内容上移（原 90 → 40，节省 50px），保留底部 60 让卡片浮起覆盖 */
  height: 580px;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}

.section__head--bg::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  /* 全屏宽度背景图，突破 .container 1200px 限制 */
  height: 100%;
  background: var(--red) url("../pc/6.png") center bottom/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.section__head--bg .section__title {
  color: #fff;
  padding-bottom: 18px;
  /* margin-bottom: 20px; */
}

.section__head--bg .section__title::after {
  background: #fff;
}

.section__head--bg .section__lead {
  color: #fff;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.section__head--bg .section__desc {
  color: #fff;
  max-width: 760px;
  line-height: 1.7;
  letter-spacing: .5px;
}

/* ----- 模块 2：卡片网格 ----- */
.sol__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -300px;
  /* 卡片上浮覆盖模块 1 的底部红底 */
  position: relative;
  z-index: 5;
  /* 显式高于 .section__head--bg(z-index:1)，保证卡片始终叠在背景图之上 */
  background: #fff;
}

.scard {
  background: #fff;
  /* border-radius: var(--radius); */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .3s;
  color: var(--text);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.scard__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.scard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scard__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  /* border-radius: 2px; */
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  z-index: 1;
}

.scard__body {
  padding: 26px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.scard__title {
  font-size: 26px;
  color: var(--red);
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: .5px;
}

.scard__list {
  margin-bottom: 0;
  flex: 1;
  padding: 4px 0 10px;
}

/* li 改为标题+描述两个块，标题块使用红字+浅红底+左侧红边 */
.scard__list li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.scard__list li:last-child {
  margin-bottom: 0;
}

.scard__list b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: .3px;
}

/* 标题左侧红色圆形勾图标 */
.scard__list b::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("../h5/1Overlay.png");
  background-size: 100%;
  flex-shrink: 0;
}

.scard__list span {
  display: block;
  color: var(--ink);
  padding: 0 0 0 27px;
}

.scard__foot {
  font-size: 14px;
  color: var(--muted);
  background: #F4F3F3;
  /* 底部浅灰横条 */
  padding: 10px 14px;
  margin: 0px -22px -22px;
  /* 拉伸到 scard__body 左右边缘（抵消 body 内边距） */
  text-align: center;
  letter-spacing: .3px;
}

/* ============================================================
   TECH PLATFORM
   ============================================================ */
.section#tech {
  position: relative;
  isolation: isolate;
  /* PC 端背景图：pc/技术平台BG.png，--gray 兜底色 */
  background: var(--bg-gray) url("../h5/技术平台BG.png") no-repeat;
  background-size: cover;
}

.tech__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tcard {
  position: relative;
  background: #fff;
  /* border-radius: 4px; */
  padding: 22px 20px 20px 22px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  overflow: hidden;
  min-height: 180px;
  transition: .3s;
}

/* 左侧顶部红色装饰竖条（仅顶部一半高度） */
.tcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 4px;
  height: 10%;
  background: var(--red);
  z-index: 2;
}

.tcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tcard__no {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 64px;
  font-weight: 800;
  color: rgba(222, 39, 25, .1);
  letter-spacing: -2px;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.tcard__icon {
  width: 38px;
  height: 38px;
  margin: 0 0 14px;
  display: flex;
  position: relative;
  z-index: 1;
  transition: all .3s;
}

.tcard__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tcard__title {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: .5px;
  line-height: 1.2;
}

.tcard__list {
  position: relative;
  z-index: 1;
}

.tcard__list li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.tcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.tech__bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.tfeat {
  background: #fff;
  /* border-radius: var(--radius); */
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* 标题条：浅灰底 + 下边框分隔 */
.tfeat h4 {
  font-size: 17px;
  color: var(--ink);
  padding: 14px 22px;
  background: #f3f3f3;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0;
}

/* 列表区：内嵌白底面板，2 列网格 */
.tfeat__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  padding: 16px 22px;
}

.tfeat__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text);
  line-height: 22px;
}

/* 红圈对勾：用 h5/1Overlay.png 图片替代 CSS 绘制 */
.tfeat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url("../h5/1Overlay.png") no-repeat;
  background-size: cover;
}

.tech__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tech__tags span {
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 22px;
}

/* ============================================================
   ADVANTAGE  (一比一：左核心競爭力 + 右 VS 對比表)
   ============================================================ */
.adv__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}

/* ---------- Left card ---------- */
.adv__left {
  background: #fff;
  /* border-radius: var(--radius); */
  padding: 32px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.adv__h {
  font-size: 28px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 26px;
  line-height: 1.4;
  position: relative;
}

.adv__list {
  flex: 1;
  position: relative;
}

/* 竖向虚线：贯穿所有 .adv__num 的中心，连接各序号 */
.adv__list::before {
  content: "";
  position: absolute;
  left: 13px;
  /* 26px 序号块的中心 = 13px */
  top: 26px;
  /* 从第一个序号底部开始 */
  bottom: 26px;
  /* 到最后一个序号顶部结束 */
  width: 0;
  border-left: 1.5px dashed var(--line);
  z-index: 0;
}

.adv__list li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
  position: relative;
}

.adv__list li:last-child {
  margin-bottom: 0;
}

/* 覆盖虚线在最后一个 num 块以下的延伸（list 底部包含描述文字，超出 num 范围） */
.adv__list li:last-child::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 26px;
  width: 6px;
  height: calc(100% - 26px);
  background: #fff;
  z-index: 0;
}

.adv__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  position: relative;
  z-index: 1;
  /* 让数字块叠在虚线之上 */
}

.adv__list b {
  display: block;
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.adv__list p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}

/* ---------- Right comparison table (參考 xunxiao .advantages-vs) ---------- */
.adv__right {
  background: #fff;
  /* border-radius: 4px; */
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* 顶部标题：喜盟集團 VS 傳統福利模式
   左侧红边（仅移动端）通过 ::before 伪元素实现 */
.adv__vs-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  line-height: 1.4;
  position: relative;
}

.adv__vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .5px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(222, 39, 25, .25);
}

.ctable__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border: 1px solid var(--line);
  border-bottom: none;
  /* border-radius: 4px 4px 0 0; */
  overflow: hidden;
  background: #fff;
}

.ctable__brand {
  background: var(--red);
  color: #fff;
  padding: 14px 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctable__trad {
  background: #979697;
  color: #fff;
  padding: 14px 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-left: 1px solid var(--line); */
}

.ctable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
  flex: 1;
  border: 1px solid var(--line);
  /* border-radius: 0 0 4px 4px; */
  overflow: hidden;
}

.ctable td {
  padding: 20px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  vertical-align: middle;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ctable td:last-child {
  border-right: none;
  background: #f4f5f7;
  color: var(--text);
}

.ctable tr:last-child td {
  border-bottom: none;
}

/* 偶数行：浅灰底（xunxiao 风格斑马纹） */
.ctable tr:nth-child(even) td {
  /* background: #fafafa; */
}

.ctable tr:nth-child(even) td:last-child {
  /* 偶数行右列保持白底，避免两列同色 */
  /* background: #fff; */
}

/* Row icons: 用图片替代 CSS 绘制（h5/1Overlay.png ✓, h5/Overlay.png ✕） */
.tick {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  background: url("../h5/1Overlay.png") center/contain no-repeat;
  flex-shrink: 0;
  margin-right: 10px;
}

.cross {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  background: url("../h5/Overlay.png") center/contain no-repeat;
  flex-shrink: 0;
  margin-right: 10px;
}

.ctable td .row-cell {
  display: flex;
  align-items: center;
}

/* ============================================================
   QUALIFICATION (參考 xunxiao .qualifications / .qual-grid)
   ============================================================ */
.qual__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 50px auto 0;
}

.qcard {
  /* background: #fff; */
  /* border: 1px solid var(--line); */
  border-radius: 6px;
  /* padding: 16px 14px 18px; */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: .3s;
}

.qcard:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 8px 20px rgba(192,0,0,0.12); */
  /* border-color: var(--red); */
}

.qcard img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 12px;
  transition: transform .3s;
}

.qcard:hover img {
  transform: scale(1.02);
}

.qcard figcaption {
  font-size: 16px;
  color: var(--text);
  padding: 4px 2px;
  line-height: 1.5;
  font-weight: 500;
}

/* ============================================================
   CLIENTS (placeholder)
   ============================================================ */
#clients {
  padding: 60px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #b9b9b9;
  padding-top: 50px;
}

.footer__brand {
  padding-bottom: 30px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo .logo__img {
  /* filter: brightness(0) invert(1); */
}

.footer__logo .logo__text strong {
  color: #fff;
}

.footer__logo .logo__text em {
  color: #fff;
}

/* 分隔线：品牌 / 信息 / 版权 三段之间 */
.footer__sep {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 0;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 36px 0;
}

.footer__col h5 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}

.footer__col p {
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer__col a {
  color: #b9b9b9;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  padding-bottom: 20px;
  text-align: center;
  line-height: 0;
}

.footer__bottom span {
  font-size: 12.5px;
  color: #8a8a8a;
}

/* ============================================================
   RESPONSIVE — Tablet (≤980px)
   ============================================================ */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: calc(100vh - 72px);
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .3s;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 14px 26px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  .nav__link::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* 移动端：隐藏 header 内的 lang-pill */
  .lang-pill {
    display: none;
  }

  /* 移动端：侧边栏内的 lang-pill —— 显示、上下留白与 nav__link 区分 */
  .lang-pill--sidebar {
    display: inline-flex;
    margin: 16px 26px 0;
    padding: 12px 0 0;
    border-left: none;
    height: auto;
    gap: 14px;
  }

  .logo__text em {
    display: none;
  }

  .logo__img {
    height: 32px;
  }

  .hero-title {
    font-size: 36px;
  }

  .stats-inner {
    gap: 10px 20px;
  }

  .about__cards,
  .sol__cards,
  .tech__top,
  .tech__bottom,
  .qual__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__boxes,
  .adv__grid {
    grid-template-columns: 1fr;
  }

  .header__actions {
    display: block;
  }
}

/* ============================================================
   RESPONSIVE — H5 Mobile (≤768px · rem 自适应)
   ------------------------------------------------------------
   设计稿基准：375px（iPhone X 标准屏宽）
   换算公式：  rem = px / 100
   根字号由 js/rem.js 根据视口宽度动态计算并写入 <html>：
     320px 屏 → 85.3px  (MIN_ROOT_FONT 兜底)
     375px 屏 → 100px   (设计稿 1:1)
     ≥768px 屏 → 100px  (MAX_ROOT_FONT 钳制，避免 iPad 撑大)
   ============================================================ */
@media (max-width: 768px) {
  body {
    font-size: 0.13rem;
  }

  .container {
    padding: 0 0.16rem !important;
  }

  /* ============== HEADER ============== */
  .header {
    height: 0.6rem;
  }

  .header__inner {
    height: 0.6rem;
    gap: 0.1rem;
  }

  .logo__img {
    height: 0.32rem;
  }

  .logo__text em {
    display: none;
  }

  .logo__text strong {
    font-size: 0.16rem;
  }

  .header__actions {
    gap: 0.1rem;
    display: block;
  }

  .lang-pill {
    padding: 0.02rem;
  }

  .lang-pill__btn {
    padding: 0.04rem 0.1rem;
    font-size: 0.14rem;
  }

  .hamburger {
    display: flex;
    width: 0.28rem;
    height: 0.22rem;
  }

  .hamburger span {
    height: 0.03rem;
  }

  .nav {
    position: fixed;
    top: 0.6rem;
    right: 0;
    width: 70%;
    max-width: 3.2rem;
    height: calc(100vh - 0.6rem);
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0.08rem 0;
    box-shadow: -0.04rem 0 0.2rem rgba(0, 0, 0, .12);
    transform: translateX(100%);
    transition: transform .3s;
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 0.14rem 0.26rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.15rem;
  }

  .nav__link::after {
    display: none;
  }

  /* 移动端：侧边栏内 lang-pill —— rem 单位对齐 */
  .lang-pill--sidebar {
    margin: 0.16rem 0.26rem 0;
    padding-top: 0.12rem;
    border-left: none;
    height: auto;
    gap: 0.14rem;
  }

  /* ============== HERO ============== */
  .hero {
    height: 3.8rem;
    margin-top: 0.6rem;
    /* 移动端：背景图切换为 h5/1.png */
    background-image: url("../h5/1.png");
    background-size: 100% 100%;
  }

  /* 移动端：渐变方向改为纵向（白在上方） */
  .hero::before {
    /* background: linear-gradient(180deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, .2) 60%, rgba(255, 255, 255, 0) 100%); */
  }

  .hero-content {
    padding: 0 0.16rem;
    max-width: 100%;
    margin-top: -1.25rem;
  }

  .hero-title {
    font-size: 0.28rem;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 100%;
  }

  /* 移动端：分隔线缩短 */
  .hero-title::after,
  .section__title::after {
    width: 0.24rem;
    height: 0.03rem;
    /* margin-top: 0.18rem; */
  }

  .hero-sub {
    font-size: 0.14rem;
    line-height: 1.85;
    max-width: 2.8rem;
    text-align: center;
    margin: 0.1rem auto 0;
  }

  /* ============== STATS ============== */
  .stats {
    padding: 0.16rem 0.16rem;
    /* 移动端：背景图切换为 h5/2.png */
    background-image: url("../h5/2.png");
  }

  .stats::before {
    background-image: url("../h5/2.png");
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    /* 移动端一行两个（保持原 ximeng 設計） */
    gap: 0.08rem 0.12rem;
  }

  .stat-item {
    font-size: 0.14rem;
    gap: 0.06rem;
    padding: 0.06rem 0.08rem;
  }

  /* 奇数项隐藏右侧分隔（每行第一个不需要） */
  .stat-item:nth-child(2n)::after {
    display: none;
  }

  .check {
    width: 0.2rem;
    height: 0.2rem;
  }

  .check::after {
    left: 0.06rem;
    top: 0.03rem;
    width: 0.05rem;
    height: 0.09rem;
  }

  /* ============== SECTION ============== */
  .section {
    padding: 0.3rem 0 0.2rem;
  }

  .section-container {
    padding: 0 !important;
  }

  .section__head {
    margin-bottom: 0.32rem;
  }

  .section__title {
    font-size: 0.24rem;
    padding-bottom: 0.14rem;
  }

  .section__lead {
    font-size: 0.20rem;
    margin-top: 0.16rem;
  }

  .section__desc {
    font-size: 0.16rem;
    margin-top: 0.08rem;
  }

  .section__head--bg .section__desc {
    max-width: 3.6rem;
  }

  /* ============== ABOUT ============== */
  .about__cards,
  .sol__cards,
  .tech__top,
  .tech__bottom,
  .qual__grid {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  /* 移动端：TECH PLATFORM 背景图切换为 h5/bg.png */
  .section#tech {
    background-image: url("../h5/bg.png");
  }

  .about__cards {
    margin-bottom: 0.32rem;
  }

  .acard__img {
    /* ABOUT 图片：移动端正方形 + 水平居中
       容器限定为 65% 宽 + aspect-ratio:1/1，图片用 object-fit:cover 填充保证不变形
       （原 width:100%; height:auto 让图按原比例显示成扁矩形） */
    width: 65%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 0.2rem;
    height: auto;
  }

  .acard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 定位线：父元素 .acard 最左边的红色竖线
     挂在 .acard 上（已有 position:relative），图片区域高度用 65vw 近似
     （移动端 .about__cards 为单列，卡片 ≈ 100% 视口宽，图片 = 65% 卡片宽 = 65vw）*/
  .acard::before {
    content: "";
    position: absolute;
    left: 0;             /* 父元素 .acard 最左边 */
    top: 0.24rem;         /* 与图片顶部对齐（图片 margin-top: 0.2rem） */
    width: 3px;      /* 4px 红条 */
    height: 26px;        /* 高度跟随图片宽度自适应 */
    background: var(--red);
    z-index: 3;
  }

  .acard__body {
    padding: 0.22rem 0.2rem 0.26rem;
    text-align: center;
  }

  .acard__title {
    font-size: 0.2rem;
    margin-bottom: 0.2rem;
    padding-top: 0;
  }

  .acard__title::before {
    bottom: -0.14rem;
    width: 0.24rem;
    height: 0.03rem;
    display: none;
  }

  .acard__text {
    font-size: 0.14rem;
    line-height: 1.5;
    padding: 0;
    text-align: left;
  }

  .about__boxes {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    margin-top: 0.32rem;
  }

  .mbox__head {
    padding: 0.14rem 0.2rem;
  }

  .mbox__title {
    font-size: 0.18rem;
  }

  .mbox__list {
    padding: 0.18rem 0.2rem 0.22rem;
  }

  .mbox__list li {
    font-size: 0.14rem;
    padding-left: 0.16rem;
    margin-bottom: 0.12rem;
    line-height: 1.5;
  }

  .mbox__list li::before {
    width: 0.06rem;
    height: 0.06rem;
    top: 0.08rem;
  }

  .mbox__list li.mbox__hl {
    margin-top: 0.06rem;
    padding: 0.1rem 0.14rem;
    font-size: 0.14rem;
    line-height: 1.7;
  }

  /* ============== SOLUTION (red bg) ============== */
  /* 原样照搬 xunxiao 核心业务 H5 布局：
     1. 红底固定高度 + overflow:hidden 裁掉 h5/6.png 下方的装饰区
     2. background-position: center top 只露纯红顶部
     3. ::before 背景图 + width:100vw 实现全屏宽
     4. 卡片 margin-top: -0.8rem 大幅上浮覆盖下方 */
  .section__head--bg {
    margin-bottom: 0 !important;
    padding: 0.3rem 0 0;
    position: relative;
    /* 红底加高到 4.7rem：原可视高度 3.5rem（350px）+ 卡片上浮量 1.2rem（120px）
       = 露出 3.5rem（350px），背景图可视高度不变，"背景图变矮"错觉彻底消失 */
    height: 3rem;
    /* overflow: hidden; */
  }

  .section__head--bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url("../h5/6.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
  }

  /* 卡片上浮覆盖上方的建筑背景图：
     只用 margin-top 单方向上浮 1.2rem（120px），覆盖红底新增的 1.2rem 空白区，
     背景图原始可视高度 3.5rem 完全不受影响。
     （之前 margin-top + transform 双重上浮累计 240px，导致背景图被盖一半） */
  .sol__cards {
    margin-top: -0.8rem;
    /* 改 -0.2rem → -1.2rem：按注释设计意图，把卡片上浮 120px 覆盖红底底部 1.2rem 空白区 */
    position: relative;
    z-index: 99;
    padding: 0 0.15rem;
    /* 网格容器必须保持透明；否则它上移时整块白底会先盖住标题背景，
       视觉上就像背景图跟着负 margin 一起变矮。白底只交给每张 .scard。 */
    background: transparent;
  }

  .scard {
    background: #fff;
  }

  .scard__img {
    height: auto;
  }

  .scard__body {
    padding: 0.22rem 0 0.12rem;
  }

  .scard__title {
    font-size: 0.22rem;
    margin-bottom: 0.14rem;
  }

  .scard__list {
    /* margin-bottom: 0.14rem; */
  }

  .scard__list li {
    font-size: 0.14rem;
    margin-bottom: 0.12rem;
    line-height: 1.6;
  }

  .scard__list b {
    display: inline-block;
    font-size: 0.16rem;
    background: #fbeaea;
    padding: 0.04rem 0.16rem;
    margin-bottom: 0.06rem;
    border-radius: 0 99px 99px 0;

  }

  .scard__list span {
    padding: 0 0.12rem;
  }

  .scard__foot {
    font-size: 0.13rem;
    background: #F4F3F3;
    padding: 0.1rem 0.14rem;
    margin: 0.12rem 0.12rem 0rem;
    text-align: left;
  }

  .scard__badge {
    font-size: 0.11rem;
    padding: 0.04rem 0.12rem;
    /* border-radius: 0 0 0 0.08rem; */
  }

  /* ============== TECH PLATFORM ============== */
  /* 卡片内部：图标与标题居中显示，列表保持左对齐便于阅读 */
  .tcard {
    padding: 0.22rem 0.16rem 0.18rem 0.2rem;
    text-align: center;
  }

  /* 图标块：margin: 0 auto 水平居中 */
  .tcard__icon {
    width: 0.32rem;
    height: 0.32rem;
    margin: 0 auto 0.12rem;
  }

  .tcard__title {
    font-size: 0.17rem;
    margin-bottom: 0.12rem;
  }

  /* 列表项恢复左对齐（不被父级 text-align: center 影响），用 grid 实现一行两个 */
  /* ul 整体居中：max-width 限制宽度，margin: 0 auto 在卡片内水平居中 */
  .tcard__list {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.04rem 0.16rem;
    /* 上下间距 4 / 左右间距 16 */
    max-width: 3.8rem;
    /* ul 块最大 280px（与 PC 单卡宽度接近） */
    margin: 0 auto;
    /* 居中 */
    padding-left: 0.2rem;
  }

  .tcard__list li {
    font-size: 0.14rem;
    padding: 0.06rem 0 0.06rem 0.16rem;
  }

  .tcard__no {
    font-size: 0.62rem;
    top: 0;
    right: 0;
  }

  .tcard__list li::before {
    width: 0.05rem;
    height: 0.05rem;
  }

  .tfeat {
    padding: 0;
  }

  .tfeat h4 {
    font-size: 0.16rem;
    padding: 0.12rem 0.2rem;
  }

  .tfeat__list {
    gap: 0.1rem 0.16rem;
    padding: 0.16rem 0.2rem;
  }

  .tfeat__list li {
    font-size: 0.14rem;
    padding-left: 0.26rem;
    line-height: 0.22rem;
  }

  .tfeat__list li::before {
    width: 0.18rem;
    height: 0.18rem;
    top: 0.02rem;
  }

  .tech__tags {
    gap: 0.08rem;
    margin-top: 0.24rem;
  }

  .tech__tags span {
    font-size: 0.125rem;
    padding: 0.06rem 0.14rem;
  }

  /* ============== ADVANTAGE ============== */
  .adv__grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .adv__left {
    padding: 0.22rem 0.2rem;
  }

  .adv__h {
    font-size: 0.2rem;
    margin-bottom: 0.18rem;
  }

  /* 移动端：左侧红色定位线（伪元素实现） */
  .adv__h::before {
    content: "";
    position: absolute;
    left: -0.22rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 26px;
    background: var(--red);
  }

  .adv__list li {
    gap: 0.12rem;
    margin-bottom: 0.18rem;
  }

  /* 移动端竖向虚线：贯穿 .adv__num 中心 */
  .adv__list::before {
    left: 0.12rem;
    top: 0.24rem;
    bottom: 0.24rem;
    border-left-width: 0.015rem;
  }

  /* 移动端：覆盖最后一个 num 块以下的虚线延伸 */
  .adv__list li:last-child::after {
    left: 0.1rem;
    top: 0.24rem;
    width: 0.06rem;
    height: calc(100% - 0.24rem);
  }

  .adv__num {
    width: 0.24rem;
    height: 0.24rem;
    font-size: 0.13rem;
    border-radius: 0.04rem;
  }

  .adv__list b {
    font-size: 0.16rem;
    margin-bottom: 0.04rem;
  }

  .adv__list p {
    font-size: 0.14rem;
    line-height: 1.7;
  }

  .adv__right {
    overflow-x: auto;
    padding: 0.2rem;
  }

  /* 移动端：顶部 VS 标题缩小 */
  .adv__vs-title {
    font-size: 0.2rem;
    margin-bottom: 0.14rem;
    gap: 0.08rem;
  }

  /* 移动端：左侧红色定位线（伪元素实现） */
  .adv__vs-title::before {
    content: "";
    position: absolute;
    left: -0.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 26px;
    background: var(--red);
  }

  .adv__vs-badge {
    width: 0.24rem;
    height: 0.24rem;
    padding: 0 0.06rem;
    border-radius: 50%;
    font-size: 0.1rem;
  }

  .ctable__head {
    grid-template-columns: 1fr 1fr;
  }

  .ctable__brand,
  .ctable__trad {
    font-size: 0.16rem;
    padding: 0.1rem 0.08rem;
  }

  .ctable td {
    padding: 0.12rem 0.1rem;
    font-size: 0.14rem;
    line-height: 1.5;
  }

  /* 移动端：偶数行斑马纹 */
  .ctable tr:nth-child(even) td {
    /* background: #fafafa; */
  }

  .ctable tr:nth-child(even) td:last-child {
    /* background: #fff; */
  }

  .tick,
  .cross {
    width: 0.2rem;
    height: 0.2rem;
    margin-right: 0.08rem;
    /* 移动端共用图片 */
  }

  /* ============== QUALIFICATION ============== */
  .qual__grid {
    grid-template-columns: repeat(2, 1fr);
    /* 移动端一行两个证书 */
    margin-top: 0.3rem;
    gap: 0.16rem;
  }

  .qcard {
    /* padding: 0.12rem 0.1rem 0.14rem; */
  }

  .qcard img {
    height: 2.4rem;
    /* 加大证书图高度，更突出 */
    margin-bottom: 0.08rem;
  }

  .qcard figcaption {
    font-size: 0.14rem;
  }

  /* ============== CLIENTS ============== */
  #clients {
    padding: 0.6rem 0;
  }

  /* ============== FOOTER ============== */
  .footer {
    padding-top: 0.36rem;
  }

  .footer__brand {
    padding-bottom: 0.2rem;
  }

  .footer__logo {
    gap: 0.08rem;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 0.22rem;
    padding: 0.26rem 0;
  }

  .footer__col h5 {
    font-size: 0.14rem;
    margin-bottom: 0.12rem;
  }

  .footer__col p {
    font-size: 0.125rem;
    margin-bottom: 0.08rem;
    line-height: 1.7;
  }

  .footer__bottom {
    padding: 0.16rem 0;
  }

  .footer__bottom span {
    font-size: 0.12rem;
  }

  /* ============== 返回顶部 ============== */
  .back-top {
    right: 0.16rem;
    bottom: 0.16rem;
    width: 0.4rem;
    height: 0.4rem;
    font-size: 0.18rem;
    box-shadow: 0 0.04rem 0.12rem rgba(192, 0, 0, 0.3);
  }
}

/* ============== 返回顶部 (PC 基线样式) ============== */
.back-top {
  position: fixed;
  right: 0.3rem;
  bottom: 0.3rem;
  width: 0.46rem;
  height: 0.46rem;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.2rem;
  box-shadow: 0 0.04rem 0.12rem rgba(192, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-0.03rem);
}

/* ============== 右侧悬浮操作组：留言 + 返回顶部 ============== */
.fab-actions {
  position: fixed;
  right: 0.3rem;
  bottom: 0.3rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fab-action {
  width: 0.56rem;
  height: 0.56rem;
  background: #fff;
  border: none;
  border-radius: 0.14rem;
  box-shadow: 0 0.06rem 0.18rem rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.12rem;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

.fab-action:hover,
.fab-action:focus-visible {
  transform: translateY(-0.03rem);
  /* box-shadow: 0 0.1rem 0.24rem rgba(222, 39, 25, 0.18); */
  /* background: #fff5f4; */
  outline: none;
}

.fab-action:active {
  transform: translateY(-0.01rem);
}

.fab-action__icon {
  width: 0.22rem;
  height: 0.22rem;
  display: block;
  object-fit: contain;
}

.fab-action__label {
  font-size: 0.11rem;
  color: #555;
  letter-spacing: 0.005rem;
}

.fab-action:hover .fab-action__label,
.fab-action:focus-visible .fab-action__label {
  /* color: var(--red); */
}

/* 兼容主脚本里基于 .back-top + .show 的滚动显示控制 */
.back-top.fab-action {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.back-top.fab-action.show {
  opacity: 1;
  pointer-events: auto;
}

/* 隐藏主脚本对 .back-top 自身的固定定位样式（fab 容器已接管定位） */
.fab-actions .back-top.fab-action {
  position: static;
  right: auto;
  bottom: auto;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 0.14rem;
  background: #fff;
  color: var(--red);
  box-shadow: 0 0.06rem 0.18rem rgba(0, 0, 0, 0.08);
  font-size: 0;
}

.fab-actions .back-top.fab-action:hover {
  transform: translateY(-0.03rem);
}

@media (max-width: 768px) {
  .fab-actions {
    right: 0.16rem;
    bottom: 0.16rem;
    gap: 0.12rem;
  }

  .fab-action {
    width: 0.54rem;
    height: 0.54rem;
    border-radius: 0.12rem;
    gap: 0.04rem;
  }

  .fab-action__icon {
    width: 0.2rem;
    height: 0.2rem;
  }

  .fab-action__label {
    font-size: 0.11rem;
  }

  .fab-actions .back-top.fab-action {
    width: 0.54rem;
    height: 0.54rem;
    border-radius: 0.12rem;
  }
}

/* ============== 留言弹窗 ============== */
.site-body--message-open {
  overflow: hidden;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
}

.message-modal.is-open {
  display: flex;
}

.message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: modalFadeIn 0.2s ease-out;
}

.message-modal.is-open .message-modal__backdrop {
  opacity: 1;
}

.message-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 4.2rem;
  background: #fff;
  border-radius: 0.12rem;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.message-modal__header {
  position: relative;
  padding: 0.24rem 0.24rem 0.12rem;
  /* border-bottom: 1px solid #f0f0f0; */
  text-align: center;
}

.message-modal__title {
  margin: 0;
  font-size: 0.18rem;
  font-weight: 600;
  color: #222;
}

.message-modal__close {
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  width: 0.32rem;
  height: 0.32rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.message-modal__close:hover,
.message-modal__close:focus-visible {
  background: #f5f5f5;
  color: #333;
  outline: none;
}

.message-modal__close svg {
  width: 0.2rem;
  height: 0.2rem;
}

.message-form {
  padding: 0.2rem 0.24rem 0.24rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.message-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.message-form__label {
  font-size: 0.14rem;
  color: var(--text);
  line-height: 1.4;
}

.message-form__input,
.message-form__textarea {
  width: 100%;
  padding: 0.1rem 0.12rem;
  border: none;
  /* border-radius: 0.08rem; */
  font-size: 0.14rem;
  font-family: inherit;
  color: #222;
  background: #f7f7f7;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.message-form__input:focus,
.message-form__textarea:focus {
  outline: none;
  /* border-color: var(--red); */
  /* box-shadow: 0 0 0 0.03rem rgba(222, 39, 25, 0.12); */
}

.message-form__input::placeholder,
.message-form__textarea::placeholder {
  color: #b5b5b5;
}

.message-form__textarea {
  resize: vertical;
  min-height: 0.88rem;
  line-height: 1.5;
}

.message-form__field-group {
  position: relative;
  display: flex;
  align-items: stretch;
  border: none;
  background: #f7f7f7;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.message-form__field-group:focus-within {
  /* border-color: var(--red); */
  /* box-shadow: 0 0 0 0.03rem rgba(222, 39, 25, 0.12); */
}

.message-form__field-group .message-form__input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 0.12rem 0 0.12rem 0.12rem;
  background: #f7f7f7;
  box-shadow: none;
}

.message-form__field-group .message-form__input:focus {
  box-shadow: none;
}

.message-form__gender {
  padding: 0 0.12rem;
  font-size: 0.13rem;
  color: var(--text);
  /* border-left: 1px solid #f0f0f0; */
  display: flex;
  align-items: center;
  background: #f7f7f7;
  user-select: none;
}

.message-form__submit {
  margin-top: 0.04rem;
  padding: 0.1rem 0.2rem;
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 0.15rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}

.message-form__submit:hover {
  background: var(--red-deep);
}

.message-form__submit:active {
  transform: scale(0.98);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(0.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .message-modal__dialog {
    max-width: 92vw;
  }

  .message-modal__header {
    padding: 0.24rem 0.24rem 0.12rem;
  }

  .message-modal__title {
    font-size: 0.22rem;
  }

  .message-form {
    padding: 0.2rem 0.24rem 0.24rem;
    gap: 0.16rem;
  }

  .message-form__label {
    font-size: 0.14rem;
  }

  .message-form__input,
  .message-form__textarea {
    padding: 0.12rem 0.14rem;
    font-size: 0.14rem;
    border: none;
    background: #f7f7f7;
  }

  .message-form__textarea {
    min-height: 1rem;
  }

  .message-form__submit {
    padding: 0.12rem 0.2rem;
    font-size: 0.16rem;
  }

  .message-form__gender {
    padding: 0 0.14rem;
    font-size: 0.16rem;
  }
}

/* ============================================================
   滚动入场动画（滚动到视口时元素淡入 + 上滑）
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* 尊重系统「减少动态效果」偏好：直接显示，不做位移动画 */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
