/* ============================================================
   Shifang Packaging — customization.css
   定制页：定制范围 / 材质 / 尺寸与颜色与内衬 / 防护等级
   （认证、合作伙伴轮播、公司新闻、询盘表单、CTA 等共用组件见 main.css）
   ============================================================ */

/* ---------- Banner（ACF 背景图，不传则无静态底图） ---------- */
.custom-hero .hero-card {
  background-image:
    linear-gradient(95deg, #fff 0%, #fff 46%, rgba(255, 255, 255, 0) 76%),
    var(--custom-hero-img, none);
}

/* ---------- 1. 定制范围（9 项） ---------- */
.cust-opts { padding: 72px 0; }
.cust-opts__panel {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
}
.cust-opt { text-align: center; }
.cust-opt img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}
.cust-opt span {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* ---------- 2. 材质（5 项） ---------- */
.cust-material { padding: 72px 0; }
.cust-material__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}
.cust-mat { text-align: center; }
.cust-mat img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.cust-mat span {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* ---------- 3. 定制图文块 ---------- */
.cust-blocks { padding: 72px 0; }
.cust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cust-row + .cust-row { margin-top: 64px; }
.cust-row--noimg { grid-template-columns: 1fr; }
.cust-row__img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.cust-row__body h2 { font-size: var(--fs-h2); }
.cust-row__body p { margin-top: 16px; }
.cust-row__body .btn { margin-top: 28px; }

/* ---------- 4. 防护等级 ---------- */
.cust-protect { padding: 72px 0; }
.cust-protect__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin-inline: auto;
}
.cust-protect__item { text-align: center; }
.cust-protect__badge {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-inline: auto;
  color: var(--c-teal);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50%;
}
.cust-protect__badge svg { width: 38px; height: 38px; }
.cust-protect__badge img { width: 38px; height: 38px; object-fit: contain; }
.cust-protect__item span {
  display: block;
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

/* ---------- 5. 响应式（三端适配） ---------- */
@media (max-width: 1200px) {
  .cust-opts__panel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .custom-hero .hero-card {
    background-image:
      linear-gradient(95deg, #fff 0%, #fff 56%, rgba(255, 255, 255, 0) 88%),
      var(--custom-hero-img, none);
  }
  .cust-material__grid,
  .cust-protect__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cust-row { grid-template-columns: 1fr; gap: 32px; }
  .cust-row + .cust-row { margin-top: 48px; }
}

@media (max-width: 860px) {
  .cust-opts,
  .cust-material,
  .cust-blocks,
  .cust-protect,
  .certs,
  .partner,
  .company-news { padding: 56px 0; }
}

@media (max-width: 720px) {
  .custom-hero .hero-card {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .8) 100%),
      var(--custom-hero-img, none);
  }
  .cust-opts__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 12px; }
  .cust-material__grid,
  .cust-protect__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cust-protect__badge { width: 80px; height: 80px; }
  .cust-protect__badge svg { width: 32px; height: 32px; }
  .cust-protect__badge img { width: 32px; height: 32px; }
}
