/* ============================================================
   LAVMAY · product.css
   ============================================================ */

/* ---------- Hero ---------- */
.p-hero { padding: clamp(30px, 5vw, 60px) 0 clamp(34px, 5vw, 64px); }
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.p-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  margin: 16px 0 20px;
}
.p-lead { max-width: 560px; }
.p-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1.5px solid var(--lm-line);
}
.p-hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.p-hero-meta b {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--lm-teal);
}
.p-hero-meta span { font-size: 11px; color: var(--lm-muted); line-height: 1.4; }
.p-hero-art svg { width: 100%; height: auto; }

/* ---------- 科学 ---------- */
.section-sci { padding-block: clamp(44px, 6vw, 90px); background: var(--lm-paper); border-block: 1.5px solid var(--lm-line); }
.sci-head { max-width: 760px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.sci-head h2 { margin-top: 14px; }
.sci-head--light h2 { color: var(--lm-cream); }

.sci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.sci-card {
  background: var(--lm-mint-wash);
  border: 1.5px solid var(--lm-line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
}
.sci-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lm-teal);
}
.sci-card h3 { font-size: 16.5px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -.01em; }
.sci-card p { font-size: 13px; line-height: 1.75; color: var(--lm-muted); }
.sci-tag {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  color: var(--lm-teal);
  font-weight: 600;
  letter-spacing: .02em;
}

/* 菌株面板 */
.strain-panel {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(24px, 4vw, 50px);
  background: var(--lm-cream);
  border: 1.6px solid var(--lm-ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: var(--sh-hard);
}
.strain-copy .h2 { margin: 14px 0 14px; }
.strain-bars { margin-top: 22px; }
.sb { margin-bottom: 16px; }
.sb-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--lm-muted);
  margin-bottom: 7px;
}
.sb-top b { font-size: 16px; color: var(--lm-teal); font-weight: 700; }
.sb-track {
  height: 12px;
  background: rgba(8, 24, 20, .07);
  border-radius: 6px;
  overflow: hidden;
}
.sb-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lm-teal-mid), var(--lm-teal));
  border-radius: 6px;
}
.sb p { font-size: 10.5px; color: var(--lm-muted-2); margin-top: 5px; }

.strain-side { display: flex; flex-direction: column; gap: 1px; background: var(--lm-line); border: 1.5px solid var(--lm-line); border-radius: var(--r-md); overflow: hidden; }
.mini-fact {
  background: var(--lm-paper);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-fact b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--lm-ink); line-height: 1.15; }
.mini-fact span { font-size: 11.5px; color: var(--lm-muted); line-height: 1.5; }

/* ---------- 四重配方 ---------- */
.formula-detail { padding-block: clamp(44px, 6vw, 90px); }
.fx {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
}
.fx-item {
  background: var(--lm-paper);
  border: 1.5px solid var(--lm-line);
  border-radius: var(--r-md);
  padding: 20px;
  border-top: 5px solid var(--c);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.fx-item:hover { transform: translateY(-5px); box-shadow: var(--sh-soft); }
.fx-item header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fx-n { font-size: 10.5px; letter-spacing: .1em; color: var(--lm-muted-2); }
.fx-badge {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--lm-ink);
  color: var(--lm-lime);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.fx-item h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.fx-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--lm-teal);
  letter-spacing: .08em;
  margin: 5px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lm-line-soft);
}
.fx-item > p:last-child { font-size: 12.5px; line-height: 1.72; color: var(--lm-muted); }

/* ---------- 临床 ---------- */
.p-clinical { background: var(--lm-ink); color: var(--lm-cream); padding-block: clamp(44px, 6vw, 92px); }
.p-clinical .kicker { color: var(--lm-lime); }
.p-clinical .kicker::before { background: var(--lm-lime); }

.cl-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  -webkit-overflow-scrolling: touch;
}
.cl-table { min-width: 640px; font-size: 13px; }
.cl-table caption {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: #8fa39c;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cl-table th, .cl-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  line-height: 1.5;
}
.cl-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #8fa39c;
  font-weight: 600;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  white-space: nowrap;
}
.cl-table thead th span { display: block; font-weight: 400; opacity: .7; margin-top: 2px; }
.cl-table tbody th { font-weight: 500; color: #cfdcd6; white-space: nowrap; }
.cl-table td { color: #a8bcb5; font-variant-numeric: tabular-nums; }
.cl-table em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7f938c;
  margin-top: 2px;
}
.cl-table .hl { background: rgba(217, 242, 107, .07); color: var(--lm-cream); }
.cl-table .hl b { color: var(--lm-lime); font-weight: 700; }
.cl-table thead .hl { background: rgba(217, 242, 107, .14); color: var(--lm-lime); }
.cl-table tbody tr:last-child th, .cl-table tbody tr:last-child td { border-bottom: none; }

.cl-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
  margin-top: 20px;
}
.cl-note {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  padding: 18px;
  background: rgba(255, 255, 255, .03);
}
.cl-note h4 { font-size: 13.5px; font-weight: 700; color: var(--lm-cream); margin-bottom: 8px; }
.cl-note p { font-size: 12px; line-height: 1.8; color: #a8bcb5; }
.cl-note i { font-style: italic; }
.cl-note--warn {
  border-color: rgba(255, 106, 70, .34);
  background: rgba(255, 106, 70, .07);
}
.cl-note--warn h4 { color: #ffb9a6; }
.cl-note--warn b { color: var(--lm-cream); }
.cl-src {
  font-size: 11px;
  line-height: 1.75;
  color: #7f938c;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ---------- 安全 ---------- */
.p-safety { padding-block: clamp(44px, 6vw, 90px); background: var(--lm-paper); border-block: 1.5px solid var(--lm-line); }
.safe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
}
.safe-card {
  border: 1.5px solid var(--lm-line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--lm-cream);
}
.safe-card--hl {
  background: var(--lm-mint);
  border-color: var(--lm-ink);
  box-shadow: var(--sh-hard-sm);
}
.safe-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--lm-ink);
  color: var(--lm-lime);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.safe-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.safe-card p { font-size: 12.5px; line-height: 1.75; color: var(--lm-muted); }
/* 薄荷底比 cream 深，全局 muted(#5f7263) 在此只有 4.25:1。
   只对这张强调卡压深正文色，不动全局（否则其他卡会过黑）。
   ⚠️ 必须用 .safe-card--hl p 且写在 .safe-card p 之后 —— 两者同为 0,1,1
   优先级，后写的胜出。写在前面会被静默覆盖（曾踩过一次）。 */
.safe-card--hl p { color: #3c4d42; }

.mfg {
  margin-top: clamp(20px, 2.6vw, 28px);
  border: 1.5px solid var(--lm-line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--lm-cream);
}
.mfg-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.mfg-certs span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1.4px solid var(--lm-ink);
  background: var(--lm-paper);
}
.mfg-note { font-size: 12.5px; line-height: 1.78; color: var(--lm-muted); }

/* ---------- CTA ---------- */
.p-cta { padding-block: clamp(40px, 6vw, 84px); }
.p-cta-inner { text-align: center; }
.p-cta-inner .lead { max-width: 480px; margin: 16px auto 0; }

@media (max-width: 980px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-hero-art { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .p-hero-meta { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sci-grid { grid-template-columns: 1fr; }
  .strain-panel { grid-template-columns: 1fr; }
  .fx { grid-template-columns: repeat(2, 1fr); }
  .cl-notes { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .fx { grid-template-columns: 1fr; }
  .p-hero-meta { grid-template-columns: 1fr 1fr; }
  .cl-table-wrap { margin-inline: calc(clamp(18px, 5vw, 48px) * -1); border-radius: 0; border-inline: none; }
}
