
/* ============================================================
   jahwa — 上海家化客户案例
   全部 class 以 jah 开头，独立作用域，不污染宿主页
   ============================================================ */
.jah-root {
  --jah-brand: #009273;
  --jah-brand-600: #007a5c;
  --jah-brand-50: #f2fcfa;
  --jah-ink: #1a1a1a;
  --jah-ink-2: #3d4a44;
  --jah-ink-3: #64706a;
  --jah-ink-4: #8b968f;
  --jah-line: #e8ece9;
  --jah-line-2: #d8e0db;
  --jah-bg: #ffffff;
  --jah-bg-soft: #f7f9f8;
  --jah-wrap: 1000px;
  --jah-gap: 40px;
  --jah-radius: 12px;
  --jah-shadow: 0 6px 24px rgba(9, 60, 45, .07);
  --jah-shadow-lg: 0 18px 48px rgba(9, 60, 45, .12);
  --jah-font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  background: var(--jah-bg);
  color: var(--jah-ink);
  font-family: var(--jah-font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
.jah-root *,
.jah-root *::before,
.jah-root *::after { box-sizing: inherit; }
.jah-root img { max-width: 100%; height: auto; border: 0; display: block; }
.jah-root a { color: var(--jah-brand); text-decoration: none; transition: color .2s ease; }
.jah-root a:hover { color: var(--jah-brand-600); }
.jah-root h1, .jah-root h2, .jah-root h3, .jah-root p, .jah-root ul, .jah-root ol, .jah-root figure, .jah-root blockquote { margin: 0; padding: 0; }
.jah-root ul, .jah-root ol { list-style: none; }

.jah-wrap { width: 100%; max-width: var(--jah-wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 1. 顶部横幅（满幅图 + 居中白色引言） ---------- */
.jah-hero {
  position: relative;
  overflow: hidden;
  background: #0d2a22;
  isolation: isolate;
}
.jah-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.jah-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.jah-hero__mask {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,32,25,.62) 0%, rgba(6,32,25,.42) 40%, rgba(6,32,25,.78) 100%),
    linear-gradient(90deg, rgba(6,32,25,.55) 0%, rgba(6,32,25,0) 60%);
}
.jah-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 400px;
  padding: 72px 20px 104px;
}
.jah-hero__quote {
  max-width: 760px;
  color: #fff;
  font-size: 20px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .2px;
  text-shadow: 0 1px 16px rgba(0,0,0,.28);
  text-wrap: balance;
}
.jah-hero__quote::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 0 auto 24px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--jah-brand), #48f8cc);
}
.jah-hero__by {
  margin-top: 22px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  letter-spacing: .4px;
}
.jah-hero__by b { font-weight: 600; color: #fff; }

/* ---------- 2. 浮层信息卡（） ---------- */
.jah-cardwrap { margin-top: -66px; position: relative; z-index: 2; }
.jah-card {
  display: flex;
  align-items: stretch;
  gap: 28px;
  background: var(--jah-bg);
  border-radius: var(--jah-radius);
  box-shadow: var(--jah-shadow-lg);
  padding: 26px 30px;
}
.jah-card__logo {
  flex: 0 0 auto;
  width: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border: 1px solid var(--jah-line);
  border-radius: 8px;
  background: #fff;
}
.jah-card__logo img { max-width: 100%; max-height: 46px; }
.jah-card__body { flex: 1 1 auto; min-width: 0; }
.jah-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--jah-ink-4);
}
.jah-card__eyebrow span:not(.jah-card__crumb) { position: relative; }
.jah-card__eyebrow span:not(.jah-card__crumb):not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--jah-line-2);
}
.jah-card__eyebrow a { color: var(--jah-ink-4); }
.jah-card__eyebrow a:hover { color: var(--jah-brand); }
.jah-card__title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--jah-ink);
  letter-spacing: -.2px;
}
.jah-card__sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--jah-ink-3);
}
.jah-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jah-card__tag {
  font-size: 12px;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--jah-brand-50);
  color: var(--jah-brand);
  border: 1px solid rgba(0,146,115,.14);
}
.jah-card__tag--plain { background: var(--jah-bg-soft); color: var(--jah-ink-3); border-color: var(--jah-line); }

/* ---------- 3. 数据指标条（ 竖分隔线 + 蓝色大数） ---------- */
.jah-metrics { padding: 44px 0 8px; }
.jah-metrics__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  text-align: center;
  border-bottom: 1px solid var(--jah-line);
}
.jah-metrics__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px 30px;
}
.jah-metrics__item + .jah-metrics__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 30px;
  width: 1px;
  background: var(--jah-line);
}
.jah-metrics__num {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--jah-brand);
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
}
.jah-metrics__num small { font-size: 18px; font-weight: 600; margin-left: 2px; }
.jah-metrics__label { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--jah-ink-4); }

/* ---------- 4. 正文两栏（ detail_article + floor 锚点） ---------- */
.jah-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 56px;
  padding: 56px 0 0;
  align-items: start;
}
.jah-article__title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--jah-ink);
  letter-spacing: -.3px;
  text-wrap: balance;
  word-break: keep-all;
}
.jah-section { margin-top: 44px; scroll-margin-top: 24px; }
.jah-section__title {
  position: relative;
  padding-left: 14px;
  margin-bottom: 20px;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--jah-brand);
}
.jah-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--jah-brand);
}
.jah-section__text p { font-size: 15.5px; line-height: 1.95; color: var(--jah-ink-2); }
.jah-section__text p + p { margin-top: 16px; }
.jah-section__text strong { font-weight: 600; color: var(--jah-ink); }

/* 场景卡片 */
.jah-scene { margin-top: 24px; padding: 26px 28px; border: 1px solid var(--jah-line); border-radius: var(--jah-radius); background: var(--jah-bg); box-shadow: var(--jah-shadow); }
.jah-scene + .jah-scene { margin-top: 20px; }
.jah-scene__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.jah-scene__no {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--jah-brand);
  font-variant-numeric: tabular-nums;
}
.jah-scene__name { font-size: 18px; font-weight: 600; color: var(--jah-ink); line-height: 1.5; }
.jah-scene__text p { font-size: 15px; line-height: 1.95; color: var(--jah-ink-2); }
.jah-scene__text p + p { margin-top: 14px; }
.jah-scene__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  background: var(--jah-line);
  border: 1px solid var(--jah-line);
  border-radius: 8px;
  overflow: hidden;
}
.jah-scene__stat { background: var(--jah-bg-soft); padding: 14px 12px; text-align: center; }
.jah-scene__stat b { display: block; font-size: 19px; font-weight: 700; color: var(--jah-brand); font-variant-numeric: tabular-nums; }
.jah-scene__stat span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--jah-ink-4); }

/* 对比条 */
.jah-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: var(--jah-radius);
  background: linear-gradient(120deg, var(--jah-brand-50), #ffffff 70%);
  border: 1px solid rgba(0,146,115,.12);
}
.jah-compare__before { font-size: 22px; font-weight: 600; color: var(--jah-ink-4); text-decoration: line-through; }
.jah-compare__arrow { color: var(--jah-brand); font-size: 20px; font-weight: 700; }
.jah-compare__after { font-size: 26px; font-weight: 700; color: var(--jah-brand); }
.jah-compare__cap { font-size: 13.5px; color: var(--jah-ink-3); margin-left: auto; }

/* 价值要点列表 */
.jah-points { display: grid; gap: 14px; margin-top: 22px; }
.jah-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--jah-bg-soft);
}
.jah-point__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--jah-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jah-point__icon svg { width: 18px; height: 18px; display: block; }
.jah-point__body { min-width: 0; }
.jah-point__title { font-size: 15.5px; font-weight: 600; color: var(--jah-ink); line-height: 1.6; }
.jah-point__desc { margin-top: 4px; font-size: 14px; line-height: 1.85; color: var(--jah-ink-3); }

/* 客户引言 */
.jah-quote {
  margin-top: 26px;
  padding: 28px 30px;
  border-radius: var(--jah-radius);
  background: var(--jah-bg-soft);
  border-left: 3px solid var(--jah-brand);
}
.jah-quote__text { font-size: 15.5px; line-height: 1.95; color: var(--jah-ink-2); }
.jah-quote__by { margin-top: 14px; font-size: 13.5px; color: var(--jah-ink-4); text-align: right; }
.jah-quote__by b { color: var(--jah-ink-2); font-weight: 600; }

/* 侧栏锚点导航 */
.jah-side { position: sticky; top: 24px; }
.jah-side__title {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--jah-ink-4);
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jah-line);
}
.jah-side__list { margin-top: 4px; }
.jah-side__item a {
  position: relative;
  display: block;
  padding: 9px 0 9px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--jah-ink-3);
  border-left: 2px solid transparent;
}
.jah-side__item a:hover { color: var(--jah-brand); }
.jah-side__item.is-active a { color: var(--jah-brand); border-left-color: var(--jah-brand); font-weight: 600; }

/* ============================================================
   媒体查询
   ============================================================ */
@media screen and (max-width: 1200px) {
  .jah-root { --jah-wrap: 960px; }
  .jah-main { grid-template-columns: minmax(0, 1fr) 160px; gap: 40px; }
}

/* 平板 / 小笔记本 */
@media screen and (max-width: 1024px) {
  .jah-root { --jah-wrap: 100%; }
  .jah-wrap { padding: 0 24px; }
  .jah-hero__inner { min-height: 340px; padding: 60px 24px 96px; }
  .jah-hero__quote { font-size: 18px; line-height: 1.8; }
  .jah-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .jah-card__logo { width: 100%; max-width: 220px; padding: 14px 16px; }
  .jah-card__logo img { max-height: 40px; }
  .jah-card__title { font-size: 24px; }
  .jah-metrics { padding: 36px 0 4px; }
  .jah-metrics__num { font-size: 30px; }
  .jah-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 44px; }
  .jah-side { display: none; }
  .jah-article__title { font-size: 26px; }
  .jah-section__title { font-size: 19px; }
  .jah-scene__stats { grid-template-columns: 1fr; }
}

/* 手机 */
@media screen and (max-width: 767px) {
  .jah-root { font-size: 15px; line-height: 1.75; }
  .jah-wrap { padding: 0 16px; }
  .jah-hero__inner { min-height: 300px; padding: 48px 16px 88px; }
  .jah-hero__quote { font-size: 16.5px; line-height: 1.85; }
  .jah-hero__quote::before { width: 32px; margin-bottom: 18px; }
  .jah-hero__by { margin-top: 16px; font-size: 13.5px; }
  .jah-cardwrap { margin-top: -52px; }
  .jah-card { padding: 20px; border-radius: 10px; gap: 16px; }
  .jah-card__logo { max-width: 180px; padding: 12px 14px; }
  .jah-card__logo img { max-height: 34px; }
  .jah-card__title { font-size: 21px; }
  .jah-card__sub { font-size: 13.5px; margin-top: 8px; }
  .jah-card__eyebrow { font-size: 12px; gap: 8px; }
  .jah-metrics { padding: 30px 0 2px; }
  .jah-metrics__row { display: grid; grid-template-columns: 1fr 1fr; }
  .jah-metrics__item { padding: 0 8px 22px; }
  .jah-metrics__item + .jah-metrics__item::before { display: none; }
  .jah-metrics__item:nth-child(even)::before {
    display: block;
    left: 0; top: 4px; bottom: 22px; width: 1px; background: var(--jah-line);
  }
  .jah-metrics__num { font-size: 26px; }
  .jah-metrics__num small { font-size: 15px; }
  .jah-metrics__label { font-size: 12.5px; margin-top: 6px; }
  .jah-main { padding-top: 34px; }
  .jah-article__title { font-size: 22px; }
  .jah-section { margin-top: 34px; }
  .jah-section__title { font-size: 18px; margin-bottom: 16px; }
  .jah-section__text p { font-size: 15px; line-height: 1.9; }
  .jah-scene { padding: 20px 18px; margin-top: 18px; }
  .jah-scene__head { flex-direction: column; gap: 4px; }
  .jah-scene__name { font-size: 16.5px; }
  .jah-scene__text p { font-size: 14.5px; }
  .jah-compare { padding: 16px 18px; gap: 10px; }
  .jah-compare__before { font-size: 18px; }
  .jah-compare__after { font-size: 22px; }
  .jah-compare__cap { width: 100%; margin-left: 0; font-size: 12.5px; }
  .jah-point { padding: 16px 16px; gap: 11px; }
  .jah-point__icon { width: 30px; height: 30px; }
  .jah-point__title { font-size: 15px; }
  .jah-point__desc { font-size: 13.5px; }
  .jah-quote { padding: 20px 18px; margin-top: 20px; }
  .jah-quote__text { font-size: 15px; }
}

@media screen and (max-width: 380px) {
  .jah-metrics__row { grid-template-columns: 1fr; }
  .jah-metrics__item:nth-child(even)::before { display: none; }
  .jah-metrics__item { padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .jah-root * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
