/* ── 首页分区：按 03-ui/compare-log.md 的分区预算落位 ── */

/* M1 首屏：左侧浅蓝文案区 + 右侧实拍图，渐变衔接 */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 362px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 52%;
  padding: 20px 0 47px var(--wrap-pad);
}
.hero-title {
  margin: 0 0 14px;
  font-size: 51px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--c-ink);
}
.hero-lead {
  margin: 0;
  max-width: 566px;
  font-size: 22px;
  line-height: 1.62;
  color: var(--c-ink-soft);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 19.5px;
  font-weight: 600;
  color: var(--c-ink);
}
.hero-stats li { display: inline-flex; align-items: center; gap: 8px; }
.stat-ic {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-actions { display: flex; gap: 14px; }
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 150px;
  z-index: 1;
  background: linear-gradient(90deg, #e2effb 0%, rgba(226, 239, 251, 0) 100%);
}

/* M2 分类索引：2 列 × 2 行，列优先（01–02 左列，03–04 右列） */
.section { padding-block: 20px; }
.section-cats { background: var(--c-bg-band); padding-block: 10px 38px; }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-flow: column;
  column-gap: 96px;
  row-gap: 18px;
}
.cat-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-decoration: none;
}
.cat-icon { width: 52px; height: 52px; object-fit: contain; flex: none; }
.cat-text {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.46;
  color: var(--c-body);
}
.cat-num {
  margin-right: 4px;
  color: var(--c-accent);
  font-weight: 600;
}
.cat-text strong { color: var(--c-ink); font-size: 19px; font-weight: 700; }
.cat-item:hover strong { color: var(--c-accent-deep); }
.cat-item:hover .cat-num { color: var(--c-accent-deep); }

/* M3 条目速览：8 张图标卡一行 */
.section-items { background: var(--c-white); padding-block: 4px 32px; }
.item-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px 10px;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: #c8dcf0;
  box-shadow: 0 10px 22px rgba(31, 53, 80, 0.1);
}
.item-card img { width: 62px; height: 60px; object-fit: contain; }
.item-name { font-size: 17px; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.item-note { font-size: 13.5px; line-height: 1.45; color: var(--c-muted); }

/* M4 四步配齐：左图 + 右 2×2 步骤，列优先 */
.section-steps { background: #f2f8fd; padding-block: 6px 44px; }
.steps-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.steps-media img {
  width: 100%;
  height: 222px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, auto));
  grid-auto-flow: column;
  gap: 20px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0 0 5px;
  font-size: 18.5px;
  color: var(--c-ink);
}
.step-num { color: var(--c-accent); font-size: 15.5px; font-weight: 700; }
.step-head strong { font-weight: 700; }
.step-text { margin: 0; font-size: 15.8px; line-height: 1.62; color: var(--c-body); }

/* M5 材质对照：4 列 × 2 行 */
.section-materials { background: var(--c-white); padding-block: 4px 40px; }
.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
}
.mat-item { display: flex; align-items: flex-start; gap: 12px; }
.mat-item img { width: 58px; height: 60px; object-fit: contain; flex: none; margin-top: 2px; }
.mat-name { margin: 0 0 3px; font-size: 17.5px; font-weight: 700; color: var(--c-ink); }
.mat-text { margin: 0; font-size: 14.5px; line-height: 1.48; color: var(--c-body); }

/* M6 更换周期：4 列卡 */
.section-replace { background: #f5f9fd; padding-block: 8px 28px; }
.replace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.replace-card {
  padding: 12px 16px 13px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.replace-name {
  margin: 0 0 6px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--c-ink);
}
.replace-text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--c-body); }

/* M7 收录说明 + M8 收尾引导：左右双栏 */
.section-cta { background: var(--c-bg); padding-block: 8px 10px; }
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.scope-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--grad-navy);
  color: #eaf3fc;
}
.scope-icon { width: 58px; height: 58px; object-fit: contain; flex: none; }
.scope-title { margin: 0 0 8px; font-size: 23px; font-weight: 700; color: #fff; }
.scope-text { margin: 0; font-size: 14.5px; line-height: 1.7; }
.scope-note-line { margin: 4px 0 0; font-size: 13.2px; line-height: 1.55; color: #cfe2f4; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
}
.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24%;
  background: url("../images/scene-cta.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  pointer-events: none;
}
.cta-title { position: relative; z-index: 1; margin: 0 0 8px; font-size: 23px; font-weight: 700; color: var(--c-ink); }
.cta-text { position: relative; z-index: 1; margin: 0 0 14px; max-width: 76%; font-size: 14.5px; line-height: 1.65; color: var(--c-ink-soft); }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; }

/* 平板 */
@media (max-width: 1180px) {
  .hero-copy { width: 56%; }
  .cat-grid { column-gap: 48px; }
  .steps-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
  .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mat-item:last-child { grid-column: span 1; }
  .replace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 移动端 */
@media (max-width: 860px) {
  :root { --wrap-pad: 20px; --header-h: 64px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-logo-text { font-size: 20px; }
  .nav-toggle { display: none; }
  .header-inner { gap: 14px; }
  .site-nav {
    position: static;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin-left: 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 6px 0; border-bottom: 0; font-size: 15px; }
  .nav-link.is-active::after { display: block; }

  .hero { flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; padding: 24px var(--wrap-pad) 26px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 16px; line-height: 1.75; }
  .hero-stats { flex-wrap: wrap; gap: 12px 20px; margin: 18px 0 20px; font-size: 15px; }
  .hero-media { position: static; width: 100%; height: 220px; }
  .hero-media::before { display: none; }

  .section { padding-block: 18px; }
  .sec-title { font-size: 21px; }
  .cat-grid { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; row-gap: 14px; }
  .cat-text { font-size: 14.5px; }
  .cat-icon { width: 44px; height: 44px; }
  .item-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    text-align: left;
    padding: 10px;
  }
  .item-card img { grid-row: span 2; width: 52px; height: 52px; }
  .item-name { grid-column: 2; font-size: 15px; }
  .item-note { grid-column: 2; font-size: 12px; }
  .steps-layout { grid-template-columns: 1fr; gap: 18px; }
  .steps-media img { height: 180px; }
  .steps { grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .mat-grid { grid-template-columns: 1fr; gap: 14px; }
  .replace-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta-layout { grid-template-columns: 1fr; gap: 16px; }
  .cta-card::after { display: none; }
  .cta-text { max-width: 100%; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .footer-text p { font-size: 12.5px; }
}
