:root {
  --page-max: 790px;
  --green-main: #A3B18A;
  --green-dark: #7a8f68;
  --green-light: #B8C9A0;
  --green-bg: #F5F5F0;
  --green-bg2: #EDEAE3;
  --wood-accent: #D2B48C;
  --text-dark: #2D2D2D;
  --text-muted: #666;
  --text-light: #fff;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* 电商详情页字号体系 */
  --fs-xs: 13px;
  --fs-sm: 15px;
  --fs-base: 17px;
  --fs-md: 19px;
  --fs-lg: 22px;
  --fs-xl: 28px;
  --fs-2xl: 34px;
  --fs-hero: clamp(38px, 8.5vw, 54px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  color: var(--text-dark);
  background: #e8e8e8;
  line-height: 1.65;
}

.detail-page {
  max-width: var(--page-max);
  margin: 0 auto;
  background: #fff;
  box-shadow: var(--shadow-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.detail-page h1,
.detail-page h2,
.detail-page h3 {
  text-wrap: balance;
}

.detail-page p,
.detail-page li {
  text-wrap: pretty;
}

.block {
  position: relative;
}

.block-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* ── Hero ── */
.block-hero {
  position: relative;
}

.block-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px 40px;
  background: linear-gradient(180deg, rgba(245, 245, 240, 0.05) 0%, rgba(245, 245, 240, 0.55) 55%, rgba(245, 245, 240, 0.92) 100%);
}

.block-overlay--hero {
  justify-content: flex-start;
  padding-top: 48px;
  background: linear-gradient(180deg, rgba(245, 245, 240, 0.88) 0%, rgba(245, 245, 240, 0.2) 45%, rgba(245, 245, 240, 0.75) 100%);
}

.brand-name {
  margin: 0 0 8px;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
}

.hero-title {
  margin: 0 0 12px;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
}

.hero-sub {
  margin: 0 0 18px;
  font-size: var(--fs-md);
  color: var(--text-muted);
}

.hero-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--text-dark);
  color: var(--text-light);
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ── Strip ── */
.block-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px;
  background: var(--green-bg);
  border-bottom: 1px solid rgba(163, 177, 138, 0.2);
}

.strip-item {
  flex: 1;
  text-align: center;
}

.strip-item strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}

.strip-item span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.strip-divider {
  width: 1px;
  height: 36px;
  background: rgba(163, 177, 138, 0.35);
}

/* ── Section head ── */
.block-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 24px 20px;
}

.block-head h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  flex: 0 1 auto;
  max-width: calc(100% - 48px);
}

.block-head--light h2 {
  color: var(--text-light);
}

.head-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--green-main);
}

.head-dot--wood {
  border-color: var(--wood-accent);
  background: var(--wood-accent);
}

.card-en {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green-dark);
}

/* ── Pain ── */
.block-pain {
  background: #fff;
  padding-bottom: 32px;
}

.pain-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 20px;
}

.pain-item {
  background: var(--green-bg);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border-top: 3px solid var(--green-main);
}

.pain-item:last-child {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.pain-item h3 {
  margin: 0 0 8px;
  font-size: var(--fs-md);
  font-weight: 800;
  white-space: nowrap;
}

.pain-item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.pain-answer {
  margin: 20px 24px 0;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--green-dark);
  padding: 12px;
  background: linear-gradient(90deg, transparent, rgba(163, 177, 138, 0.12), transparent);
}

/* ── Selling rows ── */
.block-selling {
  background: var(--green-bg2);
  padding-bottom: 36px;
}

.selling-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sell-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid rgba(163, 177, 138, 0.15);
}

.sell-row--reverse {
  direction: rtl;
}

.sell-row--reverse > * {
  direction: ltr;
}

.sell-row__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.sell-row__copy {
  padding: 28px 24px;
}

.sell-row__copy h3 {
  margin: 0 0 12px;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.35;
}

.sell-row__copy h3 span,
.sell-row__copy h3 .sell-sub {
  display: block;
  color: var(--green-dark);
}

.sell-row__copy p {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Full-bleed banners ── */
.block-banner {
  position: relative;
}

.block-overlay--science {
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(245, 245, 240, 0.92) 0%, rgba(245, 245, 240, 0.5) 55%, transparent 100%);
  max-width: 62%;
}

.block-overlay--science h2 {
  margin: 0 0 10px;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.25;
}

.block-overlay--science p {
  margin: 0 0 14px;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overlay-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: var(--fs-base);
  color: var(--text-dark);
}

.overlay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-main);
}

.block-overlay--bottom {
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(45, 45, 45, 0.55) 100%);
  color: var(--text-light);
  padding-bottom: 28px;
}

.block-overlay--bottom h2 {
  margin: 0 0 6px;
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.overlay-sub {
  margin: 0 0 18px;
  font-size: var(--fs-base);
  opacity: 0.85;
}

.block-overlay--foam,
.block-overlay--scent {
  justify-content: center;
  max-width: 58%;
  background: linear-gradient(90deg, rgba(245, 245, 240, 0.93) 0%, rgba(245, 245, 240, 0.4) 100%);
}

.block-overlay--foam h2,
.block-overlay--scent h2 {
  margin: 0 0 10px;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.25;
}

.block-overlay--foam p,
.block-overlay--scent p {
  margin: 0;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.block-overlay--scent {
  align-items: flex-end;
  margin-left: auto;
  max-width: 58%;
  background: linear-gradient(270deg, rgba(245, 245, 240, 0.93) 0%, rgba(245, 245, 240, 0.35) 100%);
  text-align: right;
}

/* ── Ingredients on banner ── */
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ingredient-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 14px 14px;
  text-align: center;
}

.ingredient-card:last-child {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.ingredient-card h3 {
  white-space: nowrap;
}

.ingredient-num {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 6px;
}

.ingredient-card h3 {
  margin: 0 0 6px;
  font-size: var(--fs-md);
  font-weight: 800;
}

.ingredient-desc {
  margin: 0 0 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0.9;
}

.ingredient-detail {
  margin: 0;
  font-size: var(--fs-xs);
  opacity: 0.75;
  line-height: 1.45;
}

/* ── Cert ── */
.block-cert {
  background: #fff;
  padding-bottom: 32px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 20px;
}

.cert-card {
  background: var(--green-bg);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(163, 177, 138, 0.2);
}

.cert-card:last-child {
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.cert-card h3 {
  margin: 0 0 6px;
  font-size: var(--fs-md);
  font-weight: 800;
  white-space: nowrap;
}

.cert-seal {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--green-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--green-dark);
  font-family: "Songti SC", serif;
}

.cert-card p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Compare ── */
.block-compare {
  background: var(--green-bg);
  padding-bottom: 36px;
}

.compare-sub {
  margin: -8px 0 16px;
  text-align: center;
  font-size: var(--fs-base);
  color: var(--text-muted);
}

.compare-figure {
  margin: 0 16px;
}

.compare-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.compare-labels span:last-child {
  color: var(--green-dark);
}

/* ── Features ── */
.block-features {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-main) 100%);
  padding: 36px 20px 44px;
}

.features-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 14px;
}

.feature-card {
  text-align: center;
  color: var(--text-light);
}

.feature-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
}

.feature-card p {
  margin: 0;
  font-size: var(--fs-sm);
  opacity: 0.7;
  text-transform: capitalize;
}

/* ── Usage ── */
.block-usage {
  background: var(--green-dark);
  padding-bottom: 36px;
}

.usage-figure {
  margin: 0 16px 20px;
}

.usage-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.usage-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  color: var(--text-light);
}

.usage-list li {
  padding: 12px 0;
  font-size: var(--fs-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.55;
}

.usage-list li:last-child {
  border-bottom: 0;
}

.usage-list strong {
  display: inline-block;
  width: 32px;
  font-size: var(--fs-md);
  color: var(--wood-accent);
}

/* ── Closing ── */
.block-closing {
  position: relative;
}

.block-overlay--closing {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(45, 45, 45, 0.5) 0%, rgba(45, 45, 45, 0.65) 100%);
  color: var(--text-light);
}

.block-overlay--closing .brand-name {
  color: rgba(255, 255, 255, 0.95);
}

.block-overlay--closing h2 {
  margin: 0 0 10px;
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.block-overlay--closing p {
  margin: 0;
  font-size: var(--fs-md);
  opacity: 0.85;
  letter-spacing: 0.06em;
}

/* ── Specs ── */
.block-specs {
  background: #fff;
  padding-bottom: 48px;
}

.spec-table {
  margin: 0 20px;
  background: var(--green-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid rgba(163, 177, 138, 0.15);
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-label,
.spec-value {
  padding: 16px 20px;
  font-size: var(--fs-base);
}

.spec-label {
  background: rgba(255, 255, 255, 0.55);
  color: var(--green-dark);
  font-weight: 700;
}

.brand-footer {
  margin: 28px 0 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pain-list,
  .cert-grid,
  .ingredient-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .pain-item:last-child,
  .cert-card:last-child,
  .ingredient-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .pain-item h3,
  .cert-card h3,
  .ingredient-card h3,
  .feature-card h3 {
    white-space: normal;
  }

  .sell-row,
  .sell-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .block-overlay--science,
  .block-overlay--foam,
  .block-overlay--scent {
    max-width: 100%;
    background: linear-gradient(180deg, rgba(245, 245, 240, 0.15) 0%, rgba(245, 245, 240, 0.92) 100%);
    text-align: left;
    align-items: flex-start;
  }

  .block-overlay--scent {
    margin-left: 0;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .spec-label {
    border-bottom: 1px solid rgba(163, 177, 138, 0.12);
    padding-bottom: 4px;
  }

  .compare-labels {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 375px) {
  :root {
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-md: 18px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-2xl: 28px;
    --fs-hero: clamp(34px, 9vw, 44px);
  }

  .block-overlay {
    padding: 24px 18px 28px;
  }
}
