/* 蜀彤坤婴官网 · 案例页专属视觉
   画框策略：外层仍是主站的墨黑框架，内容区让品牌自身的
   药柜棕 / 米白 / 赭红 / 陈金完整呈现，像嵌在主站里的一块展柜。 */

.st-case {
  --st-ink: var(--ink-900);
  --st-paper: var(--paper);
  --st-muted: var(--paper-dim);
  --st-red: var(--accent);
  --st-gold: var(--paper-mute);
  --st-line: rgba(242, 240, 235, .15);
  background: var(--st-ink);
  color: var(--st-paper);
}

/* hero：封面实拍铺满，标题压在底部渐隐区，保证可读 */
.st-case .main-head {
  height: 86vh;
  min-height: 520px;
  background-size: cover;
  background-position: center 38%;
}
/* 保留主站案例页的左侧暗罩（标题可读），再叠一层暖棕，色调归到品牌 */
.st-case .main-head::after {
  background:
    linear-gradient(90deg, rgba(8,8,10,.94) 0%, rgba(8,8,10,.62) 46%, rgba(8,8,10,.16) 100%),
    linear-gradient(0deg, rgba(8,8,10,.92) 0%, transparent 56%);
}
.st-case .heading-text { z-index: 2; }
/* 主站案例页把 kicker 刷成强调红，这里收回归属品牌的陈金 */
.st-case .main-head .hero-kicker { color: var(--st-gold); letter-spacing: .24em; }
.st-case .detail-title,
.st-case .heading-text-front h1.title { color: var(--st-paper); }
.st-case .hero-sub { color: var(--st-muted); }

/* 内容区 */
.st-case .detail-work { background: var(--st-ink); }
.st-case .about-work h3 { color: var(--st-gold); letter-spacing: .12em; }
.st-case .about-work p { color: var(--st-paper); }

.st-case .main-title h2 { color: var(--st-paper); }
.st-case .main-title::after { background: var(--st-red); }

/* 引言：一句话定位，大字、米白、宽行距 */
.st-intro {
  max-width: 46em;
  margin: 0 auto 56px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
  color: var(--st-paper);
  text-align: left;
}
.st-intro b { color: var(--st-gold); font-weight: 500; }

/* 六款食养方：唯一用力处，2×3 卡片网格 */
.st-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--st-line);
  border: 1px solid var(--st-line);
}
.st-product {
  background: var(--st-ink);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.st-product-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--ink-800);
  display: block;
}
.st-product-no {
  font-family: var(--t-mono, monospace);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--st-gold);
}
.st-product-name {
  font-size: 19px;
  color: var(--st-paper);
  line-height: 1.4;
}
.st-product-type {
  font-size: 12.5px;
  color: var(--st-muted);
  line-height: 1.7;
}
.st-product-type em {
  font-style: normal;
  color: var(--st-red);
  margin-right: 8px;
}

/* 门店图组：四张横图两列 */
.st-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.st-store figure { margin: 0; }
.st-store img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--st-line);
}
.st-store figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--st-muted);
  line-height: 1.7;
}

/* 两张信息图：竖长图并排，点开可看原图 */
.st-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.st-info figure { margin: 0; }
.st-info img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--st-line);
}
.st-info figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--st-muted);
  line-height: 1.7;
}
.st-info figcaption b { color: var(--st-gold); font-weight: 500; }

/* ── 搜索引导 + 截图展示 ─────────────────────────────── */

/* 微信搜索引导：低调的一行，不是按钮 */
.st-search {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--st-line);
  border-bottom: 1px solid var(--st-line);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease;
}
.st-search:hover { border-color: var(--paper-dim); }
@media (prefers-reduced-motion: reduce) { .st-search { transition: none; } }
.st-search-label {
  font-size: 12.5px;
  color: var(--st-muted);
  letter-spacing: .06em;
}
.st-search-name {
  font-size: 16px;
  color: var(--st-gold);
  letter-spacing: .04em;
}

/* 设计思路：2×2 字段网格 */
.st-notes h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--st-paper);
  margin: 0 0 30px;
  line-height: 1.4;
}
.st-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.st-note {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--st-line);
}
.st-note-key {
  font-size: 13px;
  color: var(--st-red);
  letter-spacing: .08em;
  padding-top: 2px;
}
.st-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--st-paper);
}

/* 界面画廊：桌面 5 列，手机横向滑动 */
.st-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.st-shot { margin: 0; min-width: 0; }
.st-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--st-line);
  background: var(--ink-800);
}
.st-shot figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--st-muted);
  letter-spacing: .02em;
}

/* 私域素材库：宽幅界面单独通栏，保留细节可读 */
.st-wide { margin: 28px 0 0; }
.st-wide img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--st-line);
  background: var(--ink-800);
}
.st-wide figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--st-muted);
}

@media (max-width: 767.98px) {
  .st-note-grid { grid-template-columns: 1fr; gap: 0; }
  .st-note { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .st-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 22px 18px;
    margin: 0 -22px;
    -webkit-overflow-scrolling: touch;
  }
  .st-shot { flex: 0 0 68vw; scroll-snap-align: center; }
  .st-shot figcaption { text-align: center; }
}

/* ── 设计思路与技术 ─────────────────────────────────── */

/* 通用小节头：中文序号 + 标题 + 一句说明，书刊页眉感 */
.st-sec { margin: 0 0 68px; }
.st-sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--st-line);
}
.st-sec-no {
  font-family: var(--t-mono, monospace);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--st-gold);
  white-space: nowrap;
}
.st-sec-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--st-paper);
  margin: 0;
  line-height: 1.4;
}
.st-sec-head p {
  margin: 0 0 0 auto;
  font-size: 12.5px;
  color: var(--st-muted);
  letter-spacing: .04em;
}

/* 三个矛盾：编号 + 表现 + 处理，横向字段表 */
.st-problems { display: grid; gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }
.st-problem {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  background: var(--st-ink);
  padding: 22px 24px;
}
.st-problem-no { font-family: var(--t-mono, monospace); font-size: 12px; color: var(--st-red); letter-spacing: .1em; padding-top: 3px; }
.st-problem-what { font-size: 15px; color: var(--st-paper); line-height: 1.75; }
.st-problem-what b { display: block; font-weight: 500; margin-bottom: 6px; }
.st-problem-how { font-size: 13.5px; color: var(--st-muted); line-height: 1.8; }

/* token 系统：三列表格，收敛前后对照 */
.st-tokens { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-tokens th, .st-tokens td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--st-line); vertical-align: top; }
.st-tokens th { font-family: var(--t-mono, monospace); font-size: 11.5px; letter-spacing: .1em; color: var(--st-gold); font-weight: 400; }
.st-tokens td:first-child { color: var(--st-paper); width: 22%; }
.st-tokens .st-before { color: var(--st-muted); }
.st-tokens .st-after { color: var(--st-paper); }
.st-tokens .st-after b { color: var(--st-red); font-weight: 500; }

/* 关键决策：左问题右取舍 */
.st-decisions { display: grid; gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }
.st-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  background: var(--st-ink);
  padding: 24px 26px;
}
.st-decision-title { font-size: 17px; color: var(--st-paper); line-height: 1.5; margin-bottom: 8px; }
.st-decision-why { font-size: 13px; color: var(--st-muted); line-height: 1.8; }
.st-decision-done { font-size: 14px; color: var(--st-paper); line-height: 1.8; }
.st-decision-done em { font-style: normal; color: var(--st-gold); }

/* 技术条目：字段 + 说明，等宽标签 */
.st-tech { display: grid; gap: 22px; }
.st-tech-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding-top: 20px; border-top: 1px solid var(--st-line); }
.st-tech-row:first-child { border-top: 0; padding-top: 0; }
.st-tech-key { font-family: var(--t-mono, monospace); font-size: 12.5px; color: var(--st-gold); letter-spacing: .06em; line-height: 1.8; }
.st-tech-val { font-size: 14.5px; color: var(--st-paper); line-height: 1.85; max-width: 52em; }
.st-tech-val b { color: var(--st-red); font-weight: 500; }

/* 数字成果：三格 */
.st-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--st-line); border: 1px solid var(--st-line); }
.st-metric { background: var(--st-ink); padding: 24px; }
.st-metric b { display: block; font-family: var(--t-mono, monospace); font-size: clamp(22px, 3vw, 30px); font-weight: 500; color: var(--st-red); line-height: 1.2; margin-bottom: 10px; }
.st-metric span { display: block; font-size: 12.5px; color: var(--st-muted); line-height: 1.7; }

@media (max-width: 767.98px) {
  .st-sec-head { flex-wrap: wrap; gap: 8px 14px; }
  .st-sec-head p { margin-left: 0; width: 100%; }
  .st-problem { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .st-problem-how { grid-column: 2; }
  .st-decision { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .st-tech-row { grid-template-columns: 1fr; gap: 8px; }
  .st-metrics { grid-template-columns: 1fr; }
  .st-tokens th, .st-tokens td { padding: 12px 10px; font-size: 12.5px; }
}

/* 结尾事实行 */
.st-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--st-line);
  font-family: var(--t-mono, monospace);
  font-size: 13px;
  color: var(--st-gold);
  letter-spacing: .04em;
}

@media (max-width: 767.98px) {
  .st-case .main-head { height: 78vh; min-height: 440px; background-position: center 30%; }
  .st-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-product { padding: 18px 14px; gap: 10px; }
  .st-product-img { height: 180px; }
  .st-product-name { font-size: 16px; }
  .st-stores { grid-template-columns: 1fr; gap: 22px; }
  .st-info { grid-template-columns: 1fr; gap: 32px; }
  .st-intro { margin-bottom: 40px; }
  .st-facts { margin-top: 44px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-case .main-head { transition: none; }
}

/* 正文里的官网链接 */
.st-inline-link {
  color: var(--st-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
