/* ============================================================
   产品详情页 · 2026-11-16（第二版）
   左图（缩小 + 悬停放大透镜）｜右信息 + 功效高亮卡
   ============================================================ */

body.pp { background: var(--white); padding-top: 64px; }
body.pp .nav.is-solid { --nav-fg: var(--ink); }

.pp-crumb {
  padding: 18px 0 0; font-size:var(--fs-small); color: var(--slate);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.pp-crumb a { color: var(--slate); text-decoration: none; }
.pp-crumb a:hover { color: var(--navy); }
.pp-crumb i { font-style: normal; opacity: .5; }
.pp-crumb b { color: var(--ink); font-weight: 500; }

/* ---------- 主区：左图窄、右信息宽 ---------- */
.pp-hero {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 44px; padding: 22px 0 46px; align-items: stretch;
}

.pp-fig {
  position: relative; background: #ffffff;
  border: 1px solid var(--frost); border-radius: var(--r-lg);
  aspect-ratio: 1 / 1.02; display: grid; place-items: center; padding: 22px;
  overflow: hidden; cursor: zoom-in;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.pp-fig::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 92%, rgba(54,84,156,.10), transparent 60%);
}
.pp-fig::after {
  content: ""; position: absolute; inset: -40% -60% auto auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(120,164,236,.30), transparent 68%);
  animation: ppGlow 7s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes ppGlow {
  from { transform: translate(0, 0); opacity: .75; }
  to { transform: translate(-40px, 60px); opacity: 1; }
}
.pp-fig img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.pp-fig:hover { box-shadow: 0 18px 40px rgba(54,84,156,.14); border-color: #cfdff2; }

.pp-zoomhint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size:var(--fs-micro); color: var(--slate); background: rgba(255,255,255,.9);
  border: 1px solid var(--frost); border-radius: 12px; padding: 3px 10px;
  transition: opacity .25s ease; pointer-events: none;
}
.pp-fig:hover .pp-zoomhint { opacity: 0; }

/* 放大透镜 */
.pp-lens {
  position: fixed; z-index: 90; width: 520px; height: 420px; pointer-events: none;
  border-radius: var(--r-card); border: 1px solid #d5e1f0; background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 22px 60px rgba(13,33,64,.28), 0 0 0 6px rgba(255,255,255,.7);
  opacity: 0; transform: scale(.96); transition: opacity .2s ease, transform .2s ease;
}
.pp-lens.is-on { opacity: 1; transform: none; }

/* ---------- 右信息 ---------- */
.pp-info { padding-top: 4px; min-width: 0; }
.pp-toprow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pp-line { font-size:var(--fs-small); color: var(--brand); letter-spacing: .04em; }
.pp-back {
  flex: none; font-size:var(--fs-small); color: var(--slate); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 12px; border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.pp-back:hover { color: var(--navy); background: var(--vellum); border-color: var(--frost); }
/* lint-ok: 版面专用字号，随区块排版走 */

.pp-info h1 {
  font-family: var(--font-title); font-size: clamp(25px, 2.8vw, 32px); line-height: 1.34;
  color: var(--ink); margin: 10px 0 0; font-weight: 600; letter-spacing: -.01em;
}
.pp-sub { margin: 10px 0 0; font-size:var(--fs-note); line-height: 1.8; color: var(--graphite); }

.pp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0; }
.pp-tags span {
  font-size:var(--fs-micro); color: var(--graphite); background: var(--vellum);
  border: 1px solid var(--frost); border-radius: 13px; padding: 4px 11px;
}
.pp-tags span.rx { background: #fdeceb; border-color: #f6c9c6; color: #c0392b; font-weight: 500; }

/* ---------- 功效高亮卡 ---------- */
.pp-hl {
  position: relative; margin: 22px 0 0; padding: 20px 22px 18px;
  border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(160deg, #24477a 0%, var(--navy) 52%, #12233d 100%);
  color: #fff; box-shadow: 0 14px 34px rgba(54,84,156,.22);
}
.pp-hl::before,
.pp-hl::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px);
}
.pp-hl::before {
  width: 260px; height: 260px; right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(120,164,236,.32), transparent 66%);
  animation: ppFloat 9s ease-in-out infinite alternate;
}
.pp-hl::after {
  width: 200px; height: 200px; left: -80px; bottom: -120px;
  background: radial-gradient(circle, rgba(120,180,255,.24), transparent 68%);
  animation: ppFloat 11s ease-in-out infinite alternate-reverse;
}
@keyframes ppFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-26px, 30px) scale(1.12); }
}
.pp-hl__head {
  position: relative; display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.pp-hl__head b { font-size:var(--fs-small); color: var(--yellow); letter-spacing: .1em; font-weight: 500; }
.pp-hl__head span { font-size:var(--fs-micro); color: rgba(255,255,255,.5); letter-spacing: .08em; }
.pp-hl__list {
  position: relative; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
}
.pp-hl__list li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size:var(--fs-small); line-height: 1.55; color: rgba(255,255,255,.94);
  opacity: 0; transform: translateY(6px);
  animation: ppItem .5s cubic-bezier(.2,.8,.2,1) forwards;
}
/* lint-ok: 版面专用字号，随区块排版走 */
.pp-hl__list li i {
  font-style: normal; font-size:var(--fs-micro); color: var(--yellow); font-variant-numeric: tabular-nums;
  border: 1px solid rgba(120,164,236,.45); border-radius: 4px; padding: 1px 4px; flex: none;
  margin-top: 1px; transition: transform .25s ease, background .25s ease;
}
.pp-hl__list li:hover i { transform: scale(1.15); background: rgba(120,164,236,.16); }
@keyframes ppItem { to { opacity: 1; transform: none; } }
.pp-hl__list li:nth-child(1) { animation-delay: .05s; }
.pp-hl__list li:nth-child(2) { animation-delay: .12s; }
.pp-hl__list li:nth-child(3) { animation-delay: .19s; }
.pp-hl__list li:nth-child(4) { animation-delay: .26s; }
.pp-hl__list li:nth-child(5) { animation-delay: .33s; }
.pp-hl__list li:nth-child(6) { animation-delay: .40s; }

.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.pp-note { margin: 12px 0 0; font-size:var(--fs-small); color: var(--slate); }

/* ---------- 正文 ---------- */
.pp-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 46px;
  padding: 0 0 72px; border-top: 1px solid var(--frost);
}
.pp-main { padding-top: 32px; min-width: 0; }
.pp-tabs {
  display: flex; gap: 22px; border-bottom: 1px solid var(--frost); margin-bottom: 24px;
  position: sticky; top: 64px; background: #fff; z-index: 20; padding-top: 4px;
}
.pp-tabs a {
  font-size:var(--fs-note); color: var(--slate); text-decoration: none; padding: 10px 0 12px;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.pp-tabs a:hover { color: var(--navy); border-bottom-color: #c9d8ea; }

.pp-blk { padding: 4px 0 28px; scroll-margin-top: 100px; }
.pp-blk h2 {
  font-family: var(--font-title); font-size:var(--fs-body); color: var(--ink); margin: 0 0 14px;
  font-weight: 600; letter-spacing: .01em;
}
.pp-blk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pp-blk li { position: relative; padding-left: 16px; font-size:var(--fs-note); line-height: 1.85; color: var(--graphite); }
.pp-blk li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--yellow);
}
.pp-blk p {
  margin: 0; font-size:var(--fs-note); line-height: 1.95; color: var(--graphite);
  background: var(--vellum); border-left: 2px solid var(--frost);
  padding: 14px 18px; border-radius: 0 var(--r-input) var(--r-input) 0;
}
.pp-spec {
  margin: 0; border: 1px solid var(--frost); border-radius: var(--r-card);
  overflow: hidden; display: grid; grid-template-columns: repeat(2, 1fr);
}
.pp-spec div { padding: 12px 16px; border-right: 1px solid var(--frost); border-bottom: 1px solid var(--frost); }
.pp-spec div:nth-child(2n) { border-right: 0; }
.pp-spec div:nth-last-child(-n+2) { border-bottom: 0; }
.pp-spec dt { font-size:var(--fs-small); color: var(--slate); margin: 0 0 3px; }
.pp-spec dd { margin: 0; font-size:var(--fs-note); color: var(--ink); font-weight: 500; }

/* ---------- 侧栏 ---------- */
.pp-side { padding-top: 32px; display: grid; gap: 16px; align-content: start; }
.pp-box { border: 1px solid var(--frost); border-radius: var(--r-card); padding: 18px; background: #fff; }
.pp-box h3 {
  font-size:var(--fs-note); color: var(--ink); margin: 0 0 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.pp-box h3 a { font-size:var(--fs-small); color: var(--brand); font-weight: 400; text-decoration: none; }
.pp-rel { display: grid; gap: 10px; }
.pp-rel a {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 8px; border-radius: var(--r-input); transition: background .2s ease;
}
.pp-rel a:hover { background: var(--vellum); }
.pp-rel img { width: 46px; height: 46px; object-fit: contain; flex: none; background: var(--vellum); border-radius: 6px; }
.pp-rel b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size:var(--fs-small); color: var(--ink); font-weight: 500; line-height: 1.45;
}
.pp-faq details { border-bottom: 1px solid var(--frost); padding: 10px 0; }
.pp-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-faq summary {
  font-size:var(--fs-small); color: var(--graphite); cursor: pointer; list-style: none;
  position: relative; padding-right: 18px;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; position: absolute; right: 0; top: -1px; color: var(--slate); font-size: 15px; }
.pp-faq details[open] summary::after { content: "−"; }
.pp-faq p { margin: 8px 0 0; font-size:var(--fs-small); line-height: 1.8; color: var(--slate); }

@media (max-width: 900px) {
  body.pp { padding-top: 68px; }
  .pp-hero { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; }
  .pp-fig { aspect-ratio: 1 / .92; }
  .pp-lens { display: none; }
  .pp-body { grid-template-columns: 1fr; gap: 26px; }
  .pp-tabs { position: static; overflow-x: auto; }
  .pp-side { padding-top: 0; }
  .pp-spec { grid-template-columns: 1fr; }
  .pp-spec div { border-right: 0; }
  .pp-spec div:nth-last-child(-n+2) { border-bottom: 1px solid var(--frost); }
  .pp-spec div:last-child { border-bottom: 0; }
  .pp-hl__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-hl::before, .pp-hl::after, .pp-fig::after { animation: none; }
  .pp-hl__list li { opacity: 1; transform: none; animation: none; }
}

.pp-hl { padding-bottom: 20px; }
.pp-hl__list li span { padding-top: 1px; }

.pp-actions .btn { height: 46px; }
@media (hover: none) { .pp-zoomhint { display: none; } }

/* 让产品图的白底融进浅色容器 */
.pp-fig img { mix-blend-mode: normal; }
.pp-fig::before { opacity: .35; }

/* ============================================================
   2026-11-16 第三次调整
   一、字面统一：标题与正文同为思源黑体，字号收成八档（见 字体与字阶规范.md）
   二、放大镜：缩到 380×300，位置钉在图片右侧、纵向居中，不跟鼠标上下跑
   三、功效卡：正面功效 / 卖点，背面配料表 + 适用范围，3D 翻转，5 秒自动 + 悬停暂停 + 点击
   ============================================================ */

/* ---------- 一、字面统一 ---------- */
.pp-crumb { font-size:var(--fs-small); }
.pp-line { font-size:var(--fs-small); }
/* lint-ok: 版面专用字号，随区块排版走 */
.pp-info h1 {
  font-family: var(--font-title);
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.36;
  font-weight: 650; letter-spacing: -.01em;
}
.pp-sub { font-size: 15px; line-height: 1.8; }
.pp-tags span { font-size:var(--fs-small); }
.pp-back { font-size:var(--fs-small); }
.pp-note { font-size:var(--fs-small); }

.pp-tabs a { font-size:var(--fs-note); }
.pp-blk h2 { font-size: var(--fs-h3); font-weight: var(--fw-h3); line-height: 1.45; }
.pp-blk li { font-size:var(--fs-body); line-height: 1.85; }
.pp-blk p { font-size:var(--fs-body); line-height: 1.9; }

.pp-spec dt { font-size:var(--fs-small); }
.pp-spec dd { font-size:var(--fs-note); }

.pp-box h3 { font-family: var(--font-title); font-size:var(--fs-note); font-weight: 600; }
.pp-box h3 a { font-size:var(--fs-small); font-family: var(--font); }
.pp-rel b { font-size:var(--fs-note); }
.pp-faq summary { font-size:var(--fs-note); }
.pp-faq p { font-size:var(--fs-small); line-height: 1.8; }

.pp-hl__head b { font-size:var(--fs-micro); letter-spacing: .1em; font-weight: 600; }
.pp-hl__head span { font-size:var(--fs-micro); }
.pp-hl__list li { font-size:var(--fs-note); line-height: 1.6; }
.pp-hl__list li i { font-size:var(--fs-small); }

.pp-actions .btn { font-size:var(--fs-note); }

/* ---------- 二、放大镜：图内圆形取景，跟着指针走，不出图片边界 ---------- */
.pp-lens {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 176px; height: 176px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
  background: #fff;
  box-shadow: 0 12px 30px rgba(13,33,64,.26), inset 0 0 0 1px rgba(54,84,156,.06);
  opacity: 0; transform: scale(.92); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.pp-lens img {
  position: absolute; max-width: none; max-height: none; display: block;
}
.pp-lens.is-on { opacity: 1; transform: none; }
.pp-fig { cursor: zoom-in; }
.pp-zoomhint { font-size:var(--fs-micro); }

/* ---------- 三、功效卡翻转 ---------- */
.pp-flip {
  padding: 0; background: none; box-shadow: none; overflow: visible;
  perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pp-flip::before, .pp-flip::after { display: none !important; animation: none !important; }

.pp-flip__inn {
  position: relative; transform-style: preserve-3d;
  width: 100%; max-width: 100%; min-width: 0;
  transition: transform .72s cubic-bezier(.32,.86,.24,1);
  will-change: transform;
}
.pp-flip.is-back .pp-flip__inn { transform: rotateY(180deg); }

.pp-flip__face {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  width: 100%; max-width: 100%; min-width: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(160deg, #24477a 0%, var(--navy) 52%, #12233d 100%);
  color: #fff; box-shadow: 0 14px 34px rgba(54,84,156,.22);
}
.pp-flip__face::before {
  content: ""; position: absolute; right: -80px; top: -100px; width: 230px; height: 230px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(120,164,236,.24), transparent 68%);
}
/* 两面在 90° 处换面。0.72s + cubic-bezier(.32,.86,.24,1) 走到 90° 是 128ms，
   visibility 用 0s 过渡在这一刻硬切换：不早不晚，正好两张面都侧对着屏幕。
   原来用 opacity 延时 .26s 交替，卡片早已转过 90°，正面仍以镜像画着，
   背面又半透明压上来，看到的就是先露一行错字、再被换成正确的字。
   这里不依赖 backface-visibility：部分 WebKit 内核不剔除背面。
   改时长或缓动曲线时，128ms 要跟着改。 */
.pp-flip__face--f { transition: visibility 0s linear .128s; }
.pp-flip__face--b {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column;
  visibility: hidden; transition: visibility 0s linear .128s;
}
.pp-flip.is-back .pp-flip__face--f { visibility: hidden; }
.pp-flip.is-back .pp-flip__face--b { visibility: visible; }
.pp-flip__face--f { display: flex; flex-direction: column; }
.pp-flip__face--f .pp-hl__list { margin-top: auto; margin-bottom: auto; gap: 14px 18px; }

.pp-flip__go {
  font-style: normal; color: rgba(120,164,236,.9); letter-spacing: 0;
}

/* 右下角翻转提示 */

/* 背面：成分表（左原料、右保证值，两列并排省高度） */
.pp-ing {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.12fr 1fr;
  grid-template-rows: auto minmax(0, 1fr); gap: 8px 20px;
}
.pp-ing__head {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.pp-ing__head b { font-size:var(--fs-micro); color: var(--yellow); letter-spacing: .1em; font-weight: 600; }
.pp-ing__head span { font-size:var(--fs-micro); color: rgba(255,255,255,.42); letter-spacing: .04em; }

.pp-ing__raw {
  grid-column: 1; margin: 0; font-size:var(--fs-small); line-height: 1.7; color: rgba(255,255,255,.82);
  min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.24) transparent;
}
.pp-ing__raw::-webkit-scrollbar { width: 4px; }
.pp-ing__raw::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 2px; }

/* 背面右列：适用范围（与配料表并排，2026-11-18） */
.pp-ing__use {
  grid-column: 2; margin: 0; font-size:var(--fs-small); line-height: 1.7;
  color: rgba(255,255,255,.82); min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.24) transparent;
}
.pp-ing__use::-webkit-scrollbar { width: 4px; }
.pp-ing__use::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 2px; }

/* 背面：规格 + 适用范围（无成分表的产品） */

@media (max-width: 900px) {
  .pp-lens { display: none; }
  .pp-ing { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .pp-ing__raw { grid-column: 1; grid-row: 2; max-height: 78px; }
  .pp-ing__use { grid-column: 1; grid-row: 3; max-height: 78px; }
  
}
@media (prefers-reduced-motion: reduce) {
  .pp-flip__inn { transition: none; }
  .pp-flip__face--f, .pp-flip__face--b { transition: none; }
}

/* ---------- 两栏等高对齐（2026-11-18） ----------
   左图按 aspect-ratio 定高，右栏撑满同一行高；
   信息卡用 flex 填掉剩余空间，按钮与尾注贴底，两侧底边齐平。 */
.pp-info { display: flex; flex-direction: column; height: 100%; }
.pp-hl { flex: 1 1 auto; display: flex; }
.pp-flip__inn { flex: 1 1 auto; }
.pp-flip__face--f { height: 100%; }
.pp-actions { margin-top: 20px; }
.pp-note { margin-top: 0; }
@media (max-width: 900px) {
  .pp-info { display: block; height: auto; }
  .pp-hl { display: block; }
}

/* 图框随行高拉伸，不再用 aspect-ratio 定高，避免与 stretch 打架导致左列溢出 */
.pp-fig { aspect-ratio: auto; height: 100%; min-height: 480px; }

/* 背面内容不足时垂直居中，避免拉伸后上方堆字、下方大片空白 */
.pp-flip__face--b .pp-ing { height: 100%; align-content: center; }

