/* ==========================================================================
   /laser-engraving-vending-machine/ 页面专属样式
   由 shell.php 按 seo id 自动注入。
   ========================================================================== */

/* ==========================================================================
   /snowflake-ice-vending-machine/ 页面专属样式
   由 shell.php 按 seo id 自动注入（assets/css/page-<seo-id>.css）。
   ========================================================================== */

/* ==========================================================================
   Engrave landing (/laser-engraving-vending-machine/)  ·  2026-11-12
   Only what the shared blocks cannot express: a portrait machine shot, the
   flavour rail and the stacked consumables cards. The three-column spec table,
   the text-only why-cards and the numbered placement cards live in style.css
   because three landing pages share them.
   ========================================================================== */
.eg-page .lhero__plate img {
  width: auto; max-width: 100%; max-height: 560px;
  aspect-ratio: auto; margin: 0 auto;
}
.eg-page .mpanel__stage { padding: 22px 22px 26px; }
.eg-page .mpanel__stage img { aspect-ratio: 4 / 5; }

/* print library: an endless rail of printed faces, no photograph needed */
.egstrip { margin-top: 46px; }
.egstrip__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 18px; }
.egstrip__cap b {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.egstrip__cap span { font-size: 12.5px; color: var(--ink-2); }
.egstrip__rail { overflow: hidden; padding: 4px 0 8px; }
.egstrip__track { display: flex; gap: 14px; width: max-content; animation: egrail 112s linear infinite; }
.egstrip__i {
  position: relative; display: block; width: 128px; height: 168px; border-radius: 18px;
  background: linear-gradient(158deg,
    hsl(calc(var(--i) * 15) 84% 68%),
    hsl(calc(var(--i) * 15 + 38) 70% 50%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 16px 28px -20px rgba(58, 32, 120, .55);
}
.egstrip__i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, 0) 46%);
}
.egstrip__note { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); }
@keyframes egrail { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .egstrip__track { animation: none; } }
@media (max-width: 620px) {
  .egstrip__i { width: 118px; height: 132px; }
}

/* --- phone case landing · revisions after first render ------------------- */
/* the H1 carries 64 characters; at 54px it took five lines and pushed the
   hero past a laptop fold */
/* 2026-11-13 SEO 改写后中英标题都变长（中文 27 字 / 英文 84 字符）：
   45px + text-wrap:balance 会把中文均分成 3 行、英文 4 行。压到 40px
   上限后中文 2 行、英文 3 行，左列不再顶到 CTA 按钮。 */
.eg-page .lhero__title { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; letter-spacing: -.025em; }
.eg-page .lhero__lede { margin-top: 18px; }

/* 四条卖点文案变长后 .badgebar 的 flex-wrap 排成 3+1，最后一枚孤挂左侧；
   固定 2×2 网格，窄屏单列。 */
.eg-page .badgebar { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
@media (max-width: 560px) {
  .eg-page .badgebar { grid-template-columns: 1fr; }
}

/* the light box sits at the very top of the machine shot — give the
   "bracket-free printing" pill its own band so it never sits on the artwork */
.eg-page .lhero__plate { padding-top: 46px; }

/* 中文 H2 带型号/长定语后变长，CJK 允许任意断行会把「参数」「雕刻板材」这类词拆开；
   keep-all 把断点收回空格与冒号处。 */
#models .she__title .bi-zh,
#materials .she__title .bi-zh { word-break: keep-all; }

/* anchored sections used to slide under the sticky nav */
.eg-page section[id] { scroll-margin-top: 92px; }

/* 16 款真实成品：玻璃内白色点阵 + 木底座暖光，透明底直接摆在浅色带上。
   原来的彩色渐变方块（8 种口味配色）已由甲方提供的实拍素材替代。
   宽高比按素材 322:360 定，contain 后不留白边。 */
.egstrip__i {
  width: 150px; height: 168px;
  background: none; border-radius: 0; box-shadow: none;
}
.egstrip__i::after { display: none; }
.egstrip__i img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* consumables: these two are illustrations, not product photography —
   run the artwork edge to edge across the top instead of letterboxing it */
.eg-page .matgrid .matcard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.eg-page .matgrid .matcard__media {
  min-height: 232px; border-right: 0; border-bottom: 1px solid var(--line-soft);
  border-radius: 16px 16px 0 0;
}
.eg-page .matgrid .matcard__media img {
  inset: 0; width: 100%; height: 100%; border-radius: 0;
  /* 换成抠透明的实拍产品图后不能用 cover：会切掉玻璃板边缘和 USB 线。
     img 是 absolute + 100% 高，padding 必须算进盒内（border-box），
     否则元素盒变成 100%+padding 超出卡面，更高的那张（底座）底部会被裁掉。 */
  object-fit: contain; padding: 16px 20px; box-sizing: border-box;
}
