/* ============================================================
   产品详情正文 · 按 docx 章节逐条呈现（2026-11-27）
   与 product-page.css 的 .pp-blk 配合：这里只补条目、表格、说明块
   ============================================================ */

/* 页签横向滚动，标题再多也不换行 */
.pp-tabs { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs a { flex: none; white-space: nowrap; }

/* 长串不撑破容器 */
.pp-main, .pp-body, .pp-blk, .pp-pair { min-width: 0; }
.pp-blk p, .pp-blk li, .pp-pair h3, .pp-tbl th, .pp-tbl td, .pp-spec dt, .pp-spec dd {
  overflow-wrap: anywhere; word-break: break-word;
}

/* ---------- 普通段落 ---------- */
.pp-blk .pp-para {
  margin: 0 0 10px; padding: 0; background: none; border: 0; border-radius: 0;
  font-size: var(--fs-body); line-height: 1.9; color: var(--graphite);
}
.pp-blk .pp-para:last-child { margin-bottom: 0; }

/* ---------- 小标题 + 说明 ---------- */
.pp-pair { margin: 0 0 18px; }
.pp-pair:last-child { margin-bottom: 0; }
.pp-pair h3 {
  position: relative; margin: 0 0 4px; padding-left: 14px;
  font-family: var(--font); font-size: var(--fs-body); font-weight: 600;
  color: var(--navy); line-height: 1.6; letter-spacing: 0;
}
.pp-pair h3::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--yellow);
}

/* ---------- 保证值表 ---------- */
.pp-tbl {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  border: 1px solid var(--frost); border-radius: var(--r-card); overflow: hidden;
}
.pp-tbl tr:nth-child(odd) { background: var(--vellum); }
.pp-tbl th, .pp-tbl td {
  padding: 11px 16px; line-height: 1.7;
  text-align: left; border-bottom: 1px solid var(--frost); vertical-align: top;
}
.pp-tbl th { font-size: var(--fs-note); }
.pp-tbl td { font-size: var(--fs-body); }
.pp-tbl th { width: 46%; color: var(--slate); font-weight: 400; }
.pp-tbl td { color: var(--ink); font-weight: 500; }
.pp-tbl tr:last-child th, .pp-tbl tr:last-child td { border-bottom: 0; }

/* 使用说明表：多列喂量表，表头不做 46% 定宽 */
.pp-tbl.pp-use-tbl { table-layout: auto; margin: 12px 0 16px; }
.pp-tbl.pp-use-tbl th,
.pp-tbl.pp-use-tbl td { width: auto; font-size: var(--fs-small); padding: 9px 12px; }
.pp-tbl.pp-use-tbl thead th { background: var(--frost); color: var(--ink); font-weight: 600; white-space: nowrap; }
.pp-tbl.pp-use-tbl caption { caption-side: top; text-align: left; padding: 0 0 6px; font-size: var(--fs-small); color: var(--slate); font-weight: 600; }
.pp-tips-title { margin: 14px 0 6px; font-size: var(--fs-small); color: var(--slate); font-weight: 600; }
.pp-tips-list li { color: var(--graphite); }

/* ---------- 说明 / 备注 ---------- */
.pp-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pp-notes li {
  position: relative; padding-left: 16px;
  font-size: var(--fs-small); line-height: 1.85; color: var(--slate);
}
.pp-notes li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--frost);
}

/* ---------- 参数表条目变多时的分隔 ---------- */
.pp-spec div:nth-last-child(-n+2) { border-bottom: 1px solid var(--frost); }
.pp-spec div:last-child { border-bottom: 0; }

@media (max-width: 720px) {
  .pp-tabs { gap: 16px; }
  .pp-tbl th, .pp-tbl td { padding: 9px 12px; }
  .pp-tbl th { width: 42%; }
}

/* ---------- 按钮下方那行提示（2026-12-01） ----------
   原来 .pp-note 完全没有样式，紧贴按钮、字号和正文一样，看着像漏排的正文。
   现在：普通产品一行安静小字；处方产品给一个带缺口的提示条，与按钮留出 24px。 */
.pp-note {
  margin: 22px 0 0;
  font-size: 12.5px; line-height: 1.75; color: var(--slate);
}
.pp-note.is-rx {
  display: inline-flex; align-items: flex-start; gap: 9px;
  max-width: 640px; margin-top: 24px; padding: 10px 15px 10px 13px;
  background: #fff8ea; border: 1px solid #f0dfbb; border-radius: 10px;
  color: #7c5911; font-size: 12.5px; line-height: 1.7;
}
.pp-note.is-rx::before {
  content: "!"; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px;
  border-radius: 50%; background: #b4703a; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
@media (max-width: 640px) {
  .pp-note { margin-top: 18px; }
  .pp-note.is-rx { display: flex; margin-top: 20px; padding: 9px 12px; }
}

/* ---------- 免责说明（2026-12-01） ----------
   产品参数 / 配料表 / 营养成分保证值会随配方升级、包装更换、批次不同而变，
   分三层呈现，文案统一在 build.js 的 DISC 常量里改，不要写进 HTML：
     ① .pp-disc-bar    首屏标签下方，整条总声明（最显眼）
     ② .pp-disc        配料表 / 保证值 / 产品参数三个敏感区块内就地标注
     ③ .pp-blk--disc   正文末尾的完整免责说明（首屏「详细说明」锚点落点） */

/* ① 首屏总声明：一条浅底蓝边的信息条，不抢标题但一定看得见 */
.pp-disc-bar {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0 0; padding: 11px 14px;
  background: var(--vellum); border: 1px solid var(--frost);
  border-left: 3px solid var(--navy); border-radius: 0 var(--r-card) var(--r-card) 0;
  font-size: var(--fs-note); line-height: 1.7;
}
.pp-disc-bar b {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--navy); letter-spacing: .02em;
}
.pp-disc-bar b::before {
  content: "i"; flex: 0 0 15px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
  font-style: normal; letter-spacing: 0;
}
.pp-disc-bar span { flex: 1 1 auto; min-width: 0; color: var(--slate); }
.pp-disc-bar a {
  margin-left: 4px; white-space: nowrap; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid rgba(54, 84, 156, .4);
}
.pp-disc-bar a::after { content: " →"; }
.pp-disc-bar a:hover { color: var(--navy-deep); border-bottom-color: var(--navy-deep); }

/* ② 敏感区块标注：琥珀色小条，和处方提示同色系但更轻，贴在表格/配料下方 */
.pp-blk .pp-disc {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0 0; padding: 9px 13px 9px 11px;
  background: #fffdf6; border: 1px solid #e8dcc0; border-left: 2px solid #c58b3c;
  border-radius: 0 var(--r-input) var(--r-input) 0;
  font-size: var(--fs-note); line-height: 1.7; color: #7c5911;
}
.pp-blk .pp-disc::before {
  content: "!"; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%; background: #c58b3c; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}

/* ③ 正文末尾完整说明：虚线分隔 + 编号列表，收在页面最底部 */
.pp-blk--disc { padding-top: 26px; border-top: 1px dashed var(--frost); scroll-margin-top: 100px; }
.pp-blk .pp-disc-list {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; counter-reset: disc;
}
.pp-blk .pp-disc-list li {
  position: relative; padding-left: 26px; counter-increment: disc;
  font-size: var(--fs-note); line-height: 1.85; color: var(--slate);
}
.pp-blk .pp-disc-list li::before {
  content: counter(disc); position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--cream); color: var(--navy);
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}

@media (max-width: 640px) {
  .pp-disc-bar { display: block; padding: 10px 12px; }
  .pp-disc-bar b { display: flex; margin-bottom: 4px; }
}
