/* Product catalog pages of the corporate site. Builds on ../assets/site.css tokens and components.
   Every rule here is scoped to body.pp: the homepage loads this file too (for .pcard / .goods-rail,
   which live in site.css), and unscoped rules have collided with the film before (.rail, .facts). */
body.pp [hidden] { display: none !important; }
body.pp { background: var(--bg-soft); padding-top: var(--header-h); }
body.pp .site-header { background: rgba(6, 18, 38, .92); }
body.pp .nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
body.pp .label { font-size: .82rem; font-weight: 650; color: var(--ink-3); }
html:not([lang="zh-CN"]) body.pp .label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }

/* Catalog hero with a product collage */
body.pp .pp-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(44px, 6vw, 80px) 0 clamp(44px, 6vw, 80px);
  background: radial-gradient(900px 420px at 85% -10%, #15406f 0%, rgba(21,64,111,0) 62%), radial-gradient(700px 400px at 0% 100%, rgba(0,169,157,.16), rgba(0,169,157,0) 62%), var(--navy-950); }
body.pp .pp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
body.pp .pp-hero h1 { margin: 14px 0 14px; font-size: var(--step-4); line-height: 1.08; text-wrap: balance; }
html[lang="zh-CN"] body.pp .pp-hero h1 { line-height: 1.18; }
html:not([lang="zh-CN"]) body.pp .pp-hero h1 { font-size: var(--step-3); line-height: 1.1; }
body.pp .pp-hero p { margin: 0; color: rgba(255,255,255,.76); font-size: var(--step-1); max-width: 620px; text-wrap: pretty; }
body.pp .pp-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.pp .collage { position: relative; height: 340px; }
body.pp .collage .cl { position: absolute; display: grid; place-items: center; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
body.pp .collage .cl img { width: 78%; height: 78%; object-fit: contain; }
body.pp .collage .cl0 { width: 200px; height: 200px; left: 8%; top: 18%; z-index: 2; }
body.pp .collage .cl1 { width: 140px; height: 140px; left: 50%; top: 0; }
body.pp .collage .cl2 { width: 150px; height: 150px; right: 2%; top: 38%; z-index: 3; }
body.pp .collage .cl3 { width: 124px; height: 124px; left: 40%; bottom: 0; z-index: 1; }
body.pp .collage .cl4 { width: 104px; height: 104px; left: 0; bottom: 4%; }

/* Sticky category bar */
body.pp .cats-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(245, 247, 250, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { body.pp .cats-bar { background: rgba(11, 24, 41, .9); } }
body.pp .cats-row { display: flex; align-items: center; gap: 12px; }
body.pp .cats { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
body.pp .search { flex: none; display: flex; align-items: center; gap: 8px; width: 280px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-3); transition: border-color .15s, box-shadow .15s; }
body.pp .search:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0,133,124,.15); }
body.pp .search svg { width: 17px; height: 17px; flex: none; }
body.pp .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 .92rem/1 var(--font); }
body.pp .search input::-webkit-search-cancel-button { cursor: pointer; }
body.pp .empty { margin: 8px 0 0; padding: 40px 0; text-align: center; color: var(--ink-3); }
body.pp .cats::-webkit-scrollbar { display: none; }
body.pp .cats button { flex: none; appearance: none; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); padding: 9px 16px; border-radius: 999px; font: 500 .9rem/1 var(--font); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
body.pp .cats button:hover { border-color: var(--teal-600); color: var(--accent-ink); }
body.pp .cats button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
body.pp .pp-grid-sec { padding-top: clamp(28px, 4vw, 44px); }
body.pp .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 34px 18px; }
body.pp .pp-band { padding-bottom: clamp(56px, 7vw, 96px); }

/* Product page */
body.pp .crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--ink-3); padding: 20px 0 12px; }
body.pp .crumbs a { text-decoration: none; color: var(--ink-2); }
body.pp .crumbs a:hover { color: var(--accent-ink); }
body.pp .pp-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
body.pp .gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
body.pp .gallery .main { aspect-ratio: 1 / 1; border-radius: 28px; background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f0f3f7 100%); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
body.pp .gallery .main img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s; }
body.pp .gallery .thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
body.pp .gallery .thumbs button { flex: none; width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 6px; cursor: pointer; transition: border-color .15s; }
body.pp .gallery .thumbs button:hover { border-color: var(--line-2); }
body.pp .gallery .thumbs button[aria-current="true"] { border-color: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600); }
body.pp .gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
body.pp .buybox { display: grid; gap: 22px; padding-top: 6px; }
body.pp .buybox h1 { margin: -8px 0 0; font-size: var(--step-3); line-height: 1.14; text-wrap: balance; }
html[lang="zh-CN"] body.pp .buybox h1 { line-height: 1.25; }
body.pp .facts { border-top: 1px solid var(--line); }
body.pp .facts > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
body.pp .facts > div > span:first-child { color: var(--ink-3); white-space: nowrap; }
body.pp .facts > div > span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
body.pp .facts .where { display: inline-flex; align-items: center; gap: 6px; }
body.pp .facts .where svg { width: 16px; height: 16px; color: var(--accent-ink); }
body.pp .sw-block { display: grid; gap: 10px; }
body.pp .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
body.pp .swatches a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); text-decoration: none; font-size: .9rem; color: var(--ink); transition: border-color .15s; }
body.pp .swatches a:hover { border-color: var(--ink-3); }
body.pp .swatches a[aria-current="true"] { border-color: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600); }
body.pp .swatches i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
body.pp .ways { display: grid; gap: 10px; }
body.pp .way { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
body.pp .way i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-50); color: var(--accent-ink); flex: none; }
body.pp .way i svg { width: 20px; height: 20px; }
body.pp .way b { display: block; font-size: 1rem; }
body.pp .way p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
body.pp .ask { background: var(--navy-950); color: #fff; border-radius: 22px; padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); }
body.pp .ask h2 { margin: 0; font-size: var(--step-1); }
body.pp .ask p { margin: 0; color: rgba(255,255,255,.74); font-size: .95rem; }
body.pp .ask .reply { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .88rem; color: rgba(255,255,255,.6); }
body.pp .ask .reply b { color: #fff; font-weight: 600; }
body.pp .ask .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
body.pp .ask .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
body.pp .ask .btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }

body.pp .pp-points { padding-top: clamp(40px, 5vw, 64px); background: var(--bg); }
body.pp .points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
body.pp .point { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; }
body.pp .point b { font: 700 .8rem/1 var(--font-lat); letter-spacing: .1em; color: var(--accent-ink); }
body.pp .point p { margin: 0; line-height: 1.6; }
body.pp .none { color: var(--ink-3); margin: 0; }
body.pp .pp-points + section { background: var(--bg); padding-bottom: clamp(56px, 7vw, 96px); }
body.pp .pp-points + section .rail-wrap::after { background: linear-gradient(90deg, transparent, var(--bg)); }
body.pp .rail-wrap::after { background: linear-gradient(90deg, transparent, var(--bg-soft)); }

@media (max-width: 900px) {
  body.pp .pp-hero-in, body.pp .pp-top { grid-template-columns: 1fr; }
  body.pp .collage { height: 220px; }
  body.pp .collage .cl0 { width: 140px; height: 140px; left: 4%; top: 12%; }
  body.pp .collage .cl1 { width: 100px; height: 100px; }
  body.pp .collage .cl2 { width: 110px; height: 110px; }
  body.pp .collage .cl3 { width: 90px; height: 90px; }
  body.pp .collage .cl4 { display: none; }
  body.pp .gallery { position: static; }
}
@media (max-width: 760px) {
  body.pp .cats-row { flex-direction: column-reverse; align-items: stretch; gap: 0; padding-top: 10px; }
  body.pp .search { width: auto; }
}
@media (max-width: 560px) {
  body.pp .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  body.pp .pcard .nm { font-size: .92rem; }
  body.pp .ask .row .btn { flex: 1 1 auto; }
}

/* 在线询价表单 (2026-10-01) — 蜜罐字段移出屏幕, 不用 display:none (部分机器人会跳过) */
body.pp .ask .inq { display: grid; gap: 10px; margin-top: 8px; }
body.pp .ask .inq[hidden] { display: none; }
body.pp .ask .inq label { display: grid; gap: 4px; font-size: .88rem; color: rgba(255,255,255,.74); }
body.pp .ask .inq input, body.pp .ask .inq textarea { font: inherit; font-size: 1rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
body.pp .ask .inq input:focus-visible, body.pp .ask .inq textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.pp .ask .inq .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
body.pp .ask .inq .inq-msg { min-height: 1.4em; margin: 0; font-size: .92rem; color: #fff; }
body.pp .ask .inq .inq-msg a { color: #fff; text-decoration: underline; }
