/* ==========================================================================
   如何购买 / 选型顾问（2026-11-28 · 去复刻化第一页）
   ---------------------------------------------------------------------------
   对应模板：resources/views/pages/fluid/how-to-buy.blade.php
   前任：config/pages/how-to-buy.php（1440 绝对坐标 + 32 张定位图，高度写死 2463px）

   设计原则（后面 14 个复刻单页都照这个来）：
     · 只用 ui.css 的规格：H1 由统一层接管，卡片白底/边框/14 圆角，CTA 用 .ui-cta
     · 本文件只管这一个页面特有的布局（hero 背景、标签、步骤条、渠道卡）
     · 不写 !important，不覆盖统一层的字号
   ========================================================================== */

.hbuy { padding-bottom: 88px; }

/* ---------- ① 首屏 ---------- */
/* 旧站 01.webp 是浅色场景图，标题压在上面是黑字（原文 color rgb(0,0,0)），保持这个关系 */
.hbuy-hero {
  padding: 56px 0 76px;
  background-color: #f6f6f4;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 0%;
}
.hbuy-hero__in { width: 1256px; margin: 0 auto; }
.hbuy-hero h1 { color: #111; max-width: 720px; }
.hbuy-hero__lead {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.95;
  color: #3d3d3d;
}
.hbuy-hero__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- 按钮（三种，全站这套） ---------- */
.hbuy-btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.hbuy-btn:hover { transform: translateY(-1px); }
.hbuy-btn--pri { background: var(--c-primary); color: #fff; }
.hbuy-btn--pri:hover { background: #c81e16; }
.hbuy-btn--dark { background: #111; color: #fff; }
.hbuy-btn--dark:hover { background: #000; }
.hbuy-btn--line { background: #fff; border: 1px solid #d8d8d8; color: #111; }
.hbuy-btn--line:hover { border-color: #111; }

/* ---------- ② 四个客群 ---------- */
.hbuy-flow { width: 1256px; margin: 0 auto; padding-top: 76px; }
.hbuy-flow__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.4px;
  color: #111;
}
.hbuy-flow__lead {
  margin: 14px 0 0;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.95;
  color: #6b6b6b;
}

.hbuy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.hbuy-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.hbuy-card:hover { border-color: #f3c9c4; box-shadow: 0 10px 22px rgba(226, 35, 26, .08); }

.hbuy-card__pic { aspect-ratio: 16 / 9; background: #f7f7f7; overflow: hidden; }
.hbuy-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hbuy-card__txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}

/* 标签：原文是「设备选型｜团队协作｜部署运维｜防爆组网」一条竖线串，
   拆成胶囊后一眼能扫到关键词，也方便 AI 抽取能力项。 */
.hbuy-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.hbuy-card__tags span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: #f4f4f4;
  font-size: 14px;
  color: #555;
}

.hbuy-card__txt h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #111;
}
.hbuy-card__desc { margin: 12px 0 0; font-size: 15px; line-height: 1.9; color: #4a4a4a; }

/* 交付流程：原文「交付流程：A、B、C、D」一句话，改成带编号的步骤条 */
.hbuy-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}
.hbuy-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px 0 7px;
  border-radius: 15px;
  background: #f6f6f6;
  font-size: 14px;
  color: #3d3d3d;
}
.hbuy-steps em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: #c0c0c0;
  font-variant-numeric: tabular-nums;
}

.hbuy-card__act { margin: auto 0 0; padding-top: 22px; }

/* 地区选择（事业单位那一格） */
.hbuy-region {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.hbuy-region label { font-size: 14px; color: #6b6b6b; }
.hbuy-region select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;   /* 🔴 不能小于 16：iOS 会自动放大整页 */
  color: #111;
}
.hbuy-region__hint { flex-basis: 100%; font-size: 14px; line-height: 1.7; color: #8a8a8a; }

/* 电商渠道（个人家庭那一格）：4 个小方块 */
.hbuy-shops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.hbuy-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .18s, transform .18s;
}
.hbuy-shop:hover { border-color: #f3c9c4; transform: translateY(-2px); }
.hbuy-shop img { width: 38px; height: 38px; object-fit: contain; }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  /* 窄屏上背景图的人物会移到文字下面，黑字直接压在西装和头发上读不了。
     加一层从上到下渐隐的浅色遮罩：标题区域几乎全覆盖，底部才露出照片。 */
  .hbuy-hero { position: relative; padding: 40px 40px 56px; background-position: 62% 0%; }
  .hbuy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
      rgba(246, 246, 244, .97) 0%,
      rgba(246, 246, 244, .94) 55%,
      rgba(246, 246, 244, .72) 100%);
    z-index: 0;
  }
  .hbuy-hero__in { position: relative; z-index: 1; width: auto; }
  .hbuy-flow { width: auto; padding: 56px 40px 0; }
  .hbuy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hbuy { padding-bottom: 60px; }
  .hbuy-hero { padding: 28px 20px 44px; }
  .hbuy-hero h1 { max-width: none; }
  .hbuy-hero__lead { font-size: 15px; }
  .hbuy-flow { padding: 44px 20px 0; }
  .hbuy-flow__head h2 { font-size: 20px; }
  .hbuy-card__txt { padding: 20px 20px 22px; }
  .hbuy-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hbuy-hero__acts .hbuy-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- 二维码块（卡 1 / 卡 3） ----------
   旧站这两个位置是「灰底块 + 白卡 + 205×205 二维码 + 一句提示」，
   不是场景照片。当成 16:9 配图会显示成一张放大的二维码，很怪 —— 所以单独一套。
   两张卡的右栏一个是图一个是码，靠同高（flex 撑满）保持卡片对齐。 */
.hbuy-card__pic--qr {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  padding: 28px 20px;
  min-height: 220px;
}
.hbuy-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 18px;
  background: #fff;
  border-radius: 14px;
}
.hbuy-qr img { width: 170px; height: 170px; object-fit: contain; display: block; }
.hbuy-qr span { font-size: 14px; line-height: 1.6; color: #6b6b6b; text-align: center; }
