/* ==========================================================================
   首页 Hero + 通用内页组件
   （关于我们 / 定制服务 / FAQ / 首页各区块）
   —— 全部使用逻辑属性，阿语 RTL 下自动镜像
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg) 100%);
  padding-block: 40px 32px;
}
.hero__eyebrow {
  display: inline-block; margin-block-end: 10px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: .8125rem; font-weight: 600;
}
.hero__title { font-size: 1.875rem; margin-block-end: 12px; color: var(--ink); }
.hero__sub { color: var(--ink-2); font-size: 1rem; margin-block-end: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 auto; }

/* ==========================================================================
   首页 Banner 轮播（第 70 轮，业主：0–5 张，要好看）
   —— 图铺满、文字压在图上；遮罩只用**竖向渐变**，这样阿语 RTL 下
      不需要另写一份（左右翻转的横向渐变在 RTL 里会跑到错误的一侧）。
   ========================================================================== */
.hero--bn { padding-block: 16px 4px; background: none; }

.bn-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #10151f;
  box-shadow: 0 20px 46px -24px rgba(16, 21, 31, .48);
}

.bn-hero__track {
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bn-hero__track::-webkit-scrollbar { display: none; }

.bn-hero__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  /* 2.16:1 —— 比 16:9 更"电影感"，1600×948 的素材只裁掉极少一条 */
  aspect-ratio: 16 / 7.4;
}

.bn-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* 遮罩：以 **文字所在的一侧** 为主（文字贴左栏、垂直居中），
   底部再补一层薄渐变给圆点垫底。
   ★ 第 71 轮：文字整体上移后，原来"底部 90% 深"的遮罩就失效了 ——
     字到了中间偏上，那里几乎没有暗度，压不住亮图。遮罩必须跟着文字走。 */
.bn-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(11, 16, 26, .86) 0%,
      rgba(11, 16, 26, .62) 30%,
      rgba(11, 16, 26, .18) 58%,
      rgba(11, 16, 26, 0) 78%),
    linear-gradient(to top,
      rgba(11, 16, 26, .58) 0%,
      rgba(11, 16, 26, .12) 24%,
      rgba(11, 16, 26, 0) 44%);
}

/* 阿语：文字在右边 → 侧向暗化翻到「从右往左」。 */
[dir="rtl"] .bn-hero__veil {
  background:
    linear-gradient(to left,
      rgba(11, 16, 26, .86) 0%,
      rgba(11, 16, 26, .62) 30%,
      rgba(11, 16, 26, .18) 58%,
      rgba(11, 16, 26, 0) 78%),
    linear-gradient(to top,
      rgba(11, 16, 26, .58) 0%,
      rgba(11, 16, 26, .12) 24%,
      rgba(11, 16, 26, 0) 44%);
}

/* 文字块：**垂直居中 + 再整体上抬一点**，贴 inline-start（LTR 左 / RTL 右自动翻转）。
   ★ 第 71 轮（业主："文本应该整体往上一点，贴底排版很难看"）：
     原来是 `inset-block-end: 0`（死死贴底），字被压在图的下沿，
     跟圆点、图里的产品叠在一起。现在改成撑满整块 + flex 垂直居中，
     再用「底留白 > 顶留白」把视觉重心往上提 —— 这比写死 top 像素稳，
     换图、换字号、三语长短不同都不会跑位。 */
.bn-hero__body {
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;                       /* 上下都贴边 → 交给 flex 居中 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* ★ 必须是 flex-start：flex 容器默认 `align-items: stretch`，
     眉标那个胶囊（inline-block）会被拉成**通栏长条**（业主报过）。
     flex-start 跟随书写方向，LTR 靠左 / RTL 靠右，不用另写一份。 */
  align-items: flex-start;
  max-inline-size: min(760px, 84%);
  /* 顶部留白 < 底部留白 → 整体偏上（不是垂直正中，正中看着还是偏低） */
  padding-block-start: clamp(20px, 2.4vw, 36px);
  padding-block-end: clamp(52px, 6.8vw, 96px);
  /* 左侧留出箭头的位置（箭头 46px + 贴边 14px ≈ 60px），否则文字会压到箭头上 */
  padding-inline-start: clamp(64px, 5.4vw, 80px);
  padding-inline-end: clamp(18px, 4.6vw, 58px);
  color: #fff;
  text-align: start;
}

/* 阿语 RTL：文字落在右边，把图水平镜像 → 产品主体转到左侧，两者不打架。
   这里的三张素材是无文字、无 logo 的通用产品图，镜像不会出现反字。 */
[dir="rtl"] .bn-hero__img { transform: scaleX(-1); }

.bn-hero__eyebrow {
  display: inline-block; margin-block-end: 12px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .30);
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.bn-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.1vw, 2.75rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.015em;
  color: #fff; text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}

.bn-hero__sub {
  margin: 0 0 20px;
  max-inline-size: 54ch;
  font-size: clamp(.875rem, 1.05vw, 1.05rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, .85);
}

.bn-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; }
/* 次要按钮：半透明白描边，压在图上不抢主按钮 */
.bn-hero__ghost {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .46);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bn-hero__ghost:hover {
  color: #fff; background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .9);
}

/* 左右箭头：与产品详情页图库同一套"半透明 + 毛玻璃"语言 */
.bn-nav {
  position: absolute; inset-block-start: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; cursor: pointer; z-index: 3;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .40);
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);
  opacity: 0;
  transition: opacity .2s ease, background-color .15s ease, transform .15s ease;
}
.bn-hero:hover .bn-nav,
.bn-hero:focus-within .bn-nav { opacity: 1; }
.bn-nav:hover { background: rgba(255, 255, 255, .30); }
.bn-nav:active { transform: translateY(-50%) scale(.94); }
.bn-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bn-nav--prev { inset-inline-start: 14px; }
.bn-nav--next { inset-inline-end: 14px; }

/* 圆点：右下角一排，选中那颗拉长成胶囊 */
.bn-dots {
  position: absolute; inset-block-end: 16px; inset-inline-end: 18px;
  display: flex; align-items: center; gap: 6px; z-index: 3;
}
.bn-dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: width .22s ease, background-color .22s ease;
}
.bn-dot:hover { background: rgba(255, 255, 255, .75); }
.bn-dot.is-active { width: 26px; background: #fff; }

/* 触屏没有 hover：箭头常显，否则用户不知道能翻 */
@media (hover: none) {
  .bn-nav { opacity: .9; }
}

@media (max-width: 860px) {
  .bn-hero { border-radius: 14px; }
  .bn-hero__slide { aspect-ratio: 16 / 9; }
  .bn-hero__body { max-inline-size: 100%; }
}

@media (max-width: 640px) {
  .hero--bn { padding-block: 12px 2px; }
  /* 手机上横图会被裁得很狠，改成竖一些，主体才不会被切掉 */
  .bn-hero__slide { aspect-ratio: 4 / 5; }
  /* 竖版裁切后图片主体更大、更容易压到文字 → 手机改成"整屏压深"，
     因为文字现在是垂直居中，只有底部深是压不住的（第 71 轮）。 */
  .bn-hero__veil,
  [dir="rtl"] .bn-hero__veil {
    background: linear-gradient(to top,
      rgba(11, 16, 26, .96) 0%,
      rgba(11, 16, 26, .86) 38%,
      rgba(11, 16, 26, .58) 66%,
      rgba(11, 16, 26, .20) 100%);
  }
  .bn-hero__body {
    /* 手机上文字也整体偏上：底部留出圆点的位置 */
    padding-block-start: 14px;
    padding-block-end: clamp(64px, 16vw, 88px);
    padding-inline: 16px;
    max-inline-size: 100%;
  }
  .bn-hero__eyebrow {
    margin-block-end: 8px; padding: 4px 10px;
    font-size: .66rem; letter-spacing: .08em;
  }
  .bn-hero__title { font-size: 1.32rem; margin-block-end: 8px; }
  .bn-hero__sub { font-size: .8125rem; margin-block-end: 14px; line-height: 1.5; }
  /* 两个按钮并排：竖排会让首屏被按钮吃满 */
  .bn-hero__acts { gap: 8px; }
  .bn-hero__acts .btn {
    flex: 1 1 0; min-width: 0; padding-inline: 8px;
    font-size: .8125rem;
  }
  /* 触屏用左右滑动翻页（原生手势），箭头反而会压住文字 → 收起 */
  .bn-nav { display: none; }
  .bn-dots { inset-block-end: 8px; inset-inline-end: 14px; gap: 7px; }
  .bn-dot { width: 10px; height: 10px; }
  .bn-dot.is-active { width: 22px; }
}

/* ---------- 询盘区（深底） ----------
   ⚠️ 这是一整块深色区域（--secondary），里面所有文字都要反色，
      否则黑字压深蓝底根本看不见。表单控件本身仍是白底黑字（可读性优先），
      只有 label / hint / 标题需要反色。 */
.inquiry { background: var(--secondary); color: var(--on-accent); }
.inquiry .section__title { color: var(--on-accent); }
.inquiry .section__sub { color: rgba(255, 255, 255, .8); }
.inquiry .form__label { color: rgba(255, 255, 255, .92); }
.inquiry .form__hint { color: rgba(255, 255, 255, .72); }

/* ---------- 关于我们：图文左右分栏 ---------- */
.about-intro { display: grid; gap: 24px; }
.about-intro__text .section__title { text-align: start; margin-block-end: 12px; }
.about-intro__text .card__text + .card__text { margin-block-start: 12px; }
.about-intro__media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
}

/* ---------- 关键数字 ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.stat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
}
.stat__num {
  display: block; font-size: 1.5rem; font-weight: 700;
  color: var(--primary); line-height: 1.1; margin-block-end: 4px;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .8125rem; color: var(--ink-3); }

/* ---------- 步骤条 ---------- */
.step {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.step__num {
  display: inline-block; font-size: 1.125rem; font-weight: 700;
  color: var(--primary); margin-block-end: 8px;
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: .9375rem; margin-block-end: 6px; }
.step__text { color: var(--ink-3); font-size: .8125rem; margin: 0; }

/* ---------- 图文分栏（研发能力） ---------- */
.feature-split { display: grid; gap: 24px; }
.feature-split__media img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); aspect-ratio: 3 / 2; object-fit: cover;
}
.feature-split__text .section__title { text-align: start; margin-block-end: 8px; }
.feature-split__text .section__sub { margin-block-end: 12px; }
.feature-split__text .card__text + .card__text { margin-block-start: 12px; }

/* ---------- 勾选列表 ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list__item {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: .875rem; color: var(--ink-2);
}
.check-list__icon { flex: 0 0 auto; color: var(--primary); margin-block-start: 1px; }

/* ---------- 案例缩略 ---------- */
.case-card {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.case-card img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 3 / 2; display: block;
  transition: transform .3s ease;
}
.case-card:hover img { transform: scale(1.03); }

/* ---------- FAQ 手风琴 ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item[open] { border-color: var(--primary-border); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; font-size: .9375rem; color: var(--ink);
  min-height: 44px;
  /* 问题行不加粗（业主 2026-10-13 要求）：4~6 个问题连成一列，
     每行都加粗会糊成一片、反而看不出重点；靠"可点 + 展开箭头"表达可交互即可。 */
  font-weight: 400;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chevron { flex: 0 0 auto; color: var(--ink-3); transition: transform .2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--primary); }
.faq__a { padding: 0 16px 16px; color: var(--ink-3); font-size: .875rem; }
.faq__a p { margin: 0; }
.faq__ask { margin-block-start: 10px; }
.faq__ask a { color: var(--primary); font-weight: 600; font-size: .8125rem; }

.faq-cta {
  margin-block-start: 28px; padding: 24px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); text-align: center;
}
.faq-cta p { font-size: 1rem; font-weight: 600; margin-block-end: 14px; }
.faq-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 宽屏适配 ---------- */
@media (min-width: 640px) {
  .hero { padding-block: 56px 44px; }
  .hero__title { font-size: 2.25rem; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero__title { font-size: 2.5rem; }
  .inquiry .form { max-width: 720px; margin-inline: auto; }
}
@media (min-width: 768px) {
  .page-hero { padding-block: 56px 40px; }
  .page-hero__title { font-size: 2rem; }
  .about-intro { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature-split { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature-split--reverse .feature-split__media { order: 2; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .check-list { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   关于我们 · 资质证书图集（2026-10-12 第 25 轮）

   后台可上传证书图 + 三语标题/说明。图与语言无关（一张图三语共用），
   所以这里只负责排版：图够大看得清 + 说明不被挤压。
   auto-fit 栅格：证书多少张都排得整齐，不用回来改列数。
   ========================================================================== */
.cert-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cert-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert-card__imgwrap { display: block; background: #fff; }   /* 证书多是白底扫描件 */
.cert-card__img {
  display: block;
  inline-size: 100%;
  /* 证书长宽比差异大（A4 竖版 / 横版都有），固定高度的画框比强行裁成方形好读 */
  block-size: 200px;
  object-fit: contain;
  padding: 10px;
}
.cert-card__imgwrap:hover .cert-card__img { background: var(--bg-soft); }

.cert-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-block-start: 1px solid var(--line);
}
.cert-card__title { font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.cert-card__desc { font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }
/* 图集里的代号标签不再撑满一行，跟标题并排就好 */
.cert-card__body .cert-badge { align-self: flex-start; }
