/* ==========================================================================
   M28-03 / M28-05 / M28-06 / M28-07 · Homepage interaction & visual polish
   --------------------------------------------------------------------------
   选择器全部对齐 demos/a/index.html 的真 DOM（2026-11-30 实测）：
     · 缩略网格 .fy3-collection .fy3-card[data-shape][data-tier]
     · 工艺描述 .fy3-finishes .fy3-craft-card__desc
     · 套装舞台 .fy3-sets__stage[data-stage] img[data-set-img]
     · 画册翻页 .fy3-book__bar--m28 / .fy3-book__goto
   包内原稿用的 .finish-card / .fy-finish-card__desc / .set-card__media
   在真页面里命中 0 节点，故按同口径改写真选择器，不照搬失效类名。
   ========================================================================== */

/* ── M28-03 · 52px 绿色悬浮定制钮避让规格面板 ─────────────────────────────
   桌面 1440 实测：.fy-cta-fab 固定在 x=1366..1418，而规格值右缘在 1405；
   滚动到 NECK FINISH / WEIGHT 两行时会被圆钮压住。给规格表右侧留 80px
   安全区（22px inset + 52px 圆钮 + 6px 余量），值整体左移到 1325 以内。 */
@media (min-width: 901px) {
  .fy3-collection .fy3-spec-dl { padding-right: 80px !important; }
}

/* ── M28-05 · Page 输入框归入底部翻页条 ──────────────────────────────────
   输入框由 site.js 的 m28CataloguePager() 搬进 .fy3-book__bar；本段只管外观。 */
.fy3-book__bar--m28 {
  flex-wrap: wrap;
  justify-content: center !important;
}
.fy3-book__bar--m28 .fy3-book__goto {
  width: 64px !important;
  height: 36px !important;
  flex: 0 0 auto;
  margin: 0 4px !important;
  padding: 4px 6px !important;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(20, 19, 17, 0.35) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-family: var(--fy-font-mono);
  font-size: 13px !important;
  color: #181816;
}
.fy3-book__bar--m28 .fy3-book__goto:focus-visible {
  outline: 2px solid #1b4d3e;
  outline-offset: 2px;
}

/* ── M28-06 · Surface finishes 01–05 描述严格统一 14px / 1.6 ──────────────
   实测原值：01=17px/29.75px，02/03/05=12px/18px，04 无描述节点。 */
.fy3-finishes .fy3-craft-card__desc {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #524f49 !important;
  font-weight: 400 !important;
  margin-top: 8px !important;
}

/* WHATSAPP：深森绿描边胶囊（特殊卡为 #181816 深底，文字保留浅色保证对比） */
.fy3-craft-card--special .fy3-craft-card__actions a[href*="wa.me"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 18px !important;
  border: 1px solid #1b4d3e !important;
  border-radius: 999px !important;
  /* 深底上给描边加一道极淡的高光，既保持"深森绿描边"又看得清轮廓 */
  box-shadow: 0 0 0 1px rgba(200, 164, 100, 0.28) !important;
  background: rgba(27, 77, 62, 0.42) !important;
  color: #f7f5f0 !important;
  font-family: var(--fy-font-mono);
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}
.fy3-craft-card--special .fy3-craft-card__actions a[href*="wa.me"]:hover {
  border-color: #2f7a62 !important;
  background: #1b4d3e !important;
  color: #ffffff !important;
}

/* ── M28-07 · The set is the product：纯白底 + contain 不裁泵头/瓶底 ────────
   实测原值：.fy3-sets__stage 底 #faf8f5、img object-fit:cover（1400×2100
   竖图塞进 313×235 横框，上下泵头/瓶底被裁）。 */
.fy3-sets__stage,
.fy3-sets__result-figure {
  background: #ffffff !important;
  padding: 18px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.fy3-sets__stage img[data-set-img],
.fy3-sets__result-figure img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* ALPINE 两排瓶罐：上下多留 12px 呼吸，不贴标签 */
.fy3-sets__card[data-set-card="alpine"] .fy3-sets__stage {
  padding-block: 30px !important;
}

/* MORE FROM INSIDE THE PLANT：浅米底上现有 ghost 按钮 border-width=0，
   补真描边 + 深森绿文字（WCAG 对比度明显高于原 #181816 on #f7f5f0 的无框态）。 */
#section-company a.fy3-btn--ghost[href*="about.html#factory-tour"] {
  border: 1px solid rgba(27, 77, 62, 0.62) !important;
  border-radius: 999px !important;
  background: rgba(27, 77, 62, 0.07) !important;
  color: #1b4d3e !important;
  font-weight: 600 !important;
}
#section-company a.fy3-btn--ghost[href*="about.html#factory-tour"]:hover {
  border-color: #1b4d3e !important;
  background: rgba(27, 77, 62, 0.14) !important;
  color: #12382c !important;
}
