/* ============================================================
   web202 · 2026-10-15 首屏转化改造（门锁站 smartdoorlocksign.com）
   说明：本文件故意放在 public/css/ 而不是并入 Tailwind 产物 ——
   站点部署链路（scripts/web202-live-align.mjs + scripts/live-align/ops.json）
   用「构建后的 CSS 文件名哈希」做定位锚点，改动 Tailwind 产物会让
   ops.json 里的 20 条插入 op 失配 → 构建 exit 1。自定义类名 + 独立
   CSS 文件可以既改样式、又不改变产物哈希。
   ============================================================ */

/* Hero 左侧深色遮罩：原 Tailwind 写法 from-steel-dark 用的是
   tailwind.config 里的 backgroundImage 令牌、不是颜色令牌，
   渐变整条失效（computed background-image: none），白字压浅色 hero 图不可读 */
.hero-scrim {
  background-image: linear-gradient(
    to right,
    #2e3c49 0%,
    rgba(46, 60, 73, 0.78) 46%,
    rgba(46, 60, 73, 0.28) 100%
  );
}

/* 首屏「一句话结论」块（问句型关键词就地作答，勿改 title/desc/H1） */
.hero-answer {
  border-left: 2px solid #a3bccf;
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-answer p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.68;
}

@media (min-width: 768px) {
  .hero-answer p {
    font-size: 0.875rem;
  }
}

/* 博客文章页首屏「短答」块 */
.qa-box {
  border-left-width: 2px;
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.85);
}

.qa-box p {
  color: #454545;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.75;
}

/* 手机端：把四条数字压成一行四格，抬到首屏内（390×844 实测：原 806–990 落在
   底部导航之下）。用 !important 是因为本文件可能早于 Tailwind 产物样式加载。 */
@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-top: 1.1rem !important;
  }

  .hero-stats > div {
    padding: 0.5rem 0.45rem !important;
  }

  .hero-stats > div > p:first-child {
    font-size: 1.02rem !important;
    line-height: 1.2 !important;
  }

  .hero-stats > div > p:last-child {
    font-size: 0.58rem !important;
    line-height: 1.25 !important;
  }

  /* 两个按钮并排 + 去掉与按钮重复的样品说明，给数字条腾出首屏空间 */
  .hero-ctas {
    gap: 0.5rem !important;
    margin-top: 1.15rem !important;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.85rem !important;
  }

  .hero-ctas .hero-sample-note {
    display: none !important;
  }
}
