/* product-collection-v3.css — v3-template-only extras (4.8.26 split).
   Loads on top of product-shared.css for v3 template pages. Contains
   blocks that pd template never uses:
     - Connected sections (Types Intro ↔ first Category gap reducer)
     - Banner Hero variant (full-width bg + overlay)
     - 5 · Categories grid + item layout
     - 10 · Contact card (left text + right form, gray bg) */

/* Connected sections — used between Types Intro and first Category.
   Reduce padding so the visible gap is ~50px (25 + 25) instead of 140px. */
.hs-pcv3-section--connected-bottom { padding-bottom: 25px; }
.hs-pcv3-section--connected-top    { padding-top: 25px; }
/* -------------------------------------------------------------------------
   1b · Hero — Banner variant (full-width bg image + overlay)
   Activated when ACF field `hero_layout` = "banner".
   ------------------------------------------------------------------------- */

.hs-pcv3-hero--banner {
  position: relative;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: var(--hs-title);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--hs-text-inverse);
  overflow: hidden;
}

.hs-pcv3-hero--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hs-pcv3-hero__inner--banner {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
  padding: 80px 0;
  text-align: left;
  grid-template-columns: none;
  gap: 0;
}
/* 4.8.89: banner 文字行长控制 —— 容器 1140px 但文字不该跨全幅。
   H1 720px（每行 4-6 词，长标题收 2-3 行）；lead 640px（60-65 字符/行
   可读区间）。右侧让出 400px+ 给背景图主体。 */
.hs-pcv3-hero__inner--banner .hs-pcv3-hero__title {
  max-width: 720px;
}
.hs-pcv3-hero__inner--banner .hs-pcv3-hero__desc {
  max-width: 640px;
}

/* All text inside banner hero is WHITE. */
.hs-pcv3-hero--banner,
.hs-pcv3-hero--banner *,
.hs-pcv3-hero--banner .hs-eyebrow,
.hs-pcv3-hero--banner .hs-pcv3-richtext,
.hs-pcv3-hero--banner .hs-pcv3-richtext p,
.hs-pcv3-hero--banner .hs-pcv3-richtext strong,
.hs-pcv3-hero--banner .hs-pcv3-richtext em,
.hs-pcv3-hero--banner .hs-pcv3-richtext a,
.hs-pcv3-hero--banner .hs-pcv3-richtext li,
.hs-pcv3-hero--banner .hs-pcv3-richtext h2,
.hs-pcv3-hero--banner .hs-pcv3-richtext h3,
.hs-pcv3-hero--banner .hs-pcv3-richtext h4 {
  color: var(--hs-text-inverse);
}

.hs-pcv3-hero--banner .hs-pcv3-hero__title {
  margin: 0 0 20px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  color: var(--hs-text-inverse);
}

.hs-pcv3-hero--banner .hs-pcv3-hero__desc {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  width: auto;
}
.hs-pcv3-hero--banner .hs-pcv3-hero__desc p { font-size: 18px; }
.hs-pcv3-hero--banner .hs-pcv3-hero__desc a { text-decoration: underline; }

/* Banner buttons (.hs-btn / .hs-btn-inquiry on .hs-pcv3-hero--banner)
   forced to transparent + white outline so they stay readable on the
   banner's dark or image background. */
.hs-pcv3-hero--banner .hs-btn,
.hs-pcv3-hero--banner .hs-btn-inquiry {
  background: transparent;
  color: var(--hs-text-inverse);
  border-color: #ffffff;
}
.hs-pcv3-hero--banner .hs-btn:hover,
.hs-pcv3-hero--banner .hs-btn:focus-visible,
.hs-pcv3-hero--banner .hs-btn-inquiry:hover,
.hs-pcv3-hero--banner .hs-btn-inquiry:focus-visible {
  background: #ffffff;
  color: var(--hs-accent);
}


/* =========================================================================
   10 · Contact card (left text + right image, centered on gray bg)
   ========================================================================= */

/* Contact section uses zebra bg (no forced color). Card stays white with
   shadow + subtle border so it reads as elevated on either white or alt bg. */
.hs-pcv3-contact__card {
  display: grid;
  grid-template-columns: 6fr 4fr; /* 4.8.81: 左文案 6 / 右表单 4（原 1:1）*/
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  /* 4.8.80: min-height 520px 删除 —— 表单较矮时硬撑出大片空白，
     卡片显得过高。高度改由内容驱动。 */
}

/* 4.8.82: 左列品牌色 + 白字 —— Contact 是全页最后一个转化位，
   之前白卡+灰半区是全页视觉最弱的段。用 --hs-accent token，
   后台改品牌色自动跟随。左列文字少也不显空（色块即视觉重量）。
   4.8.83: 渐变改纯色（用户要求）。 */
.hs-pcv3-contact__body {
  padding: 48px 56px; /* 4.8.83: 上下 56 → 48，压卡片高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: var(--hs-accent);
}

.hs-pcv3-contact__eyebrow {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85); /* 4.8.82: accent 底上反白（.hs-eyebrow 默认 accent 色会隐形）*/
}

.hs-pcv3-contact__title {
  font-size: 36px;
  line-height: 1.2;
  color: #ffffff; /* 4.8.82: 深底反白 */
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hs-pcv3-contact__desc {
  color: rgba(255, 255, 255, 0.92); /* 4.8.82: 深底反白 */
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
  width: 100%;
}
.hs-pcv3-contact__desc p { margin: 0 0 12px; }
.hs-pcv3-contact__desc p:last-child { margin-bottom: 0; }
.hs-pcv3-contact__desc a { color: #ffffff; text-decoration: underline; }

/* Right column: inquiry form */
.hs-pcv3-contact__form {
  padding: 40px 48px; /* 4.8.83: 56 → 40/48，压卡片高度 */
  background: #ffffff; /* 4.8.82: 灰底 → 纯白，左深右白对比干净 */
  display: flex;
  align-items: center;
}
/* 4.8.80: 拍平"卡中卡" —— .hs-form 全站默认自带白卡壳（边框 + accent
   左竖线 + 阴影 + 24px padding），嵌进本列的灰底卡片里形成第二层卡，
   缝隙一窄就像贴边，还叠高整卡。此处让表单融入灰底列，只留字段本体。 */
.hs-pcv3-contact__form .hs-form {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
/* 4.8.83: 表单紧凑化 —— 用户反馈卡片仍太高。只在 Contact 上下文压缩，
   全站其它表单（询盘弹窗 / 留评页）不受影响。 */
.hs-pcv3-contact__form .hs-form-field { margin-bottom: 10px; }
.hs-pcv3-contact__form .hs-form-row { gap: 12px; }
.hs-pcv3-contact__form .hs-form label { margin-bottom: 4px; }
.hs-pcv3-contact__form .hs-form textarea { min-height: 84px; }
.hs-pcv3-contact__form .hs-form-privacy { margin: 8px 0 10px; }


/* v3-only mobile (<768px) overrides for Contact / Banner Hero / 2-col Hero
   image — base styles live in this file, so responsive overrides do too. */
@media (max-width: 768px) {
  .hs-pcv3-contact { padding: 50px 0; }
  .hs-pcv3-contact__card { grid-template-columns: 1fr; min-height: 0; }
  .hs-pcv3-contact__body { padding: 36px 28px; }
  .hs-pcv3-contact__title { font-size: 26px; }
  .hs-pcv3-contact__form { padding: 28px; }
  .hs-pcv3-hero__image { max-width: 100%; justify-self: stretch; }
  .hs-pcv3-hero--banner { min-height: 360px; }
  .hs-pcv3-hero__inner--banner { padding: 56px 0; }
  .hs-pcv3-hero--banner .hs-pcv3-hero__title { font-size: 32px; }
  .hs-pcv3-hero--banner .hs-pcv3-hero__desc { font-size: 16px; }
  .hs-pcv3-hero--banner .hs-pcv3-hero__desc p { font-size: 16px; }
}

/* === v3 2-col Hero image (right column, 4:3 box, never used on pd) === */
.hs-pcv3-hero__image {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 450;
  margin-left: auto;
  justify-self: end;
}
.hs-pcv3-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: block;
}
