/* ==========================================================
   古路驼宝 · H5 落地页样式
   风格基调：红色营销主色 + 米色底 + 公众号文章排版
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
  --red: #c8161d;
  --red-deep: #8e0b12;
  --red-soft: #fdecec;
  --brand: #ab1942;
  --green: #06612b;
  --green-soft: #dce4e9;
  --gold: #b8860b;
  --bg: #f5f2f0;
  --card: #ffffff;
  --text: #2b2b2b;
  --text-sub: #7a7a7a;
  --line: #ece7e3;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system-font, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar { width: 0; }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* ---------- 页面容器 ---------- */
.app {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  box-shadow: 0 0 24px rgba(0, 0, 0, .06);
  overflow: hidden;
}

/* ---------- 头部 ---------- */
.app-header {
  padding: 26px 20px 18px;
  background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
  border-bottom: 1px solid var(--line);
}

.app-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .5px;
  color: #1a1a1a;
  margin: 0 0 14px;
  text-align: justify;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
}

.app-meta .nick {
  color: #576b95;
  font-weight: 600;
  padding-left: 12px;
  position: relative;
}

.app-meta .nick::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.app-meta .tag {
  margin-left: auto;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 20px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f7d2d2;
}

/* ---------- 内容区 ---------- */
.content { padding: 20px 18px 36px; }

/* 排除需要居中的段落，避免 justify 覆盖它们的 text-align */
.content > p:not(.h-sub):not(.end-note) {
  margin: 16px 0;
  font-size: 18px;
  line-height: 1.9;
  text-align: justify;
  letter-spacing: .3px;
}

/* ---------- 红色大标题 banner ---------- */
.banner {
  margin: 26px 0 22px;
  padding: 8px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.18) 0, transparent 42%),
    linear-gradient(135deg, #e01f26 0%, #b00d15 55%, #8e0b12 100%);
  box-shadow: 0 6px 18px rgba(180, 12, 20, .28);
}

.banner .inner {
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
  color: #fff;
}

.banner .big {
  display: block;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.banner .small {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, .45);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ---------- 红色小标题 ---------- */
.h-sub {
  margin: 28px 0 14px;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 1px;
  line-height: 1.6;
  position: relative;
}

.h-sub::before,
.h-sub::after {
  content: "";
  display: block;
  text-align: center;
  width: 46px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.h-sub::before { margin-bottom: 12px; }
.h-sub::after { margin-top: 12px; }

.h-sub.brand { color: var(--brand); }
.h-sub.brand::before,
.h-sub.brand::after { background: linear-gradient(90deg, transparent, var(--brand), transparent); }

/* ==========================================================
   文字标红 · 统一工具类
   用法：<span class="hl">文字</span>
   在 .lead-box / .quote-box / .peptide-item / 正文 中均可直接使用
   ========================================================== */

/* 1. 纯标红，保留原本字重 —— 段落内少量强调 */
.hl { color: var(--red); }

/* 2. 标红 + 加粗 —— 最常用，关键词、结论 */
.hl-red { color: var(--red); font-weight: 700; }

/* 3. 品牌深红 + 加粗 —— 品牌名、承诺、售后保障 */
.hl-brand { color: var(--brand); font-weight: 700; }

/* 4. 标红 + 加粗 + 放大 —— 数字、核心卖点 */
.hl-lg {
  color: var(--red);
  font-weight: 800;
  font-size: 1.08em;
  letter-spacing: .5px;
}

/* 5. 红底反白 —— 最强强调，一句话内只用一处 */
.hl-bg {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #e01f26, #a51016);
  padding: 1px 6px;
  border-radius: 3px;
}

/* 6. 标红 + 下划线 —— 警示、注意事项 */
.hl-ul {
  color: var(--red);
  font-weight: 700;
  border-bottom: 2px solid var(--red);
  padding-bottom: 1px;
}

/* 7. 红色荧光笔 —— 大段文字中高亮，比纯加粗更醒目 */
.hl-mark {
  color: var(--red-deep);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 58%, #ffd9d9 58%);
  padding: 0 2px;
}

/* 段落重点框：浅红底 + 左侧竖线 */
.lead-box {
  margin: 18px 0 !important;
  padding: 14px 16px;
  background: #fff8f8;
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-weight: 600;
}

/* 引言块：米黄底卡片 */
.quote-box {
  margin: 20px 0 !important;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fffdf5, #fdf6e6);
  border: 1px solid #f0e3c2;
  border-radius: 8px;
  font-weight: 600;
  text-align: justify;
}

/* ---------- 图片 ---------- */
.fig {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f0ece8;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.fig.in-view { opacity: 1; transform: none; }
.fig.plain { box-shadow: none; background: none; }

.fig img { display: block; width: 100%; }

/* ---------- 8 类人列表 ---------- */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.people-card {
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--green-soft);
  box-shadow: var(--shadow);
}

.people-num {
  flex: 0 0 40px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
}

.people-text {
  flex: 1;
  padding: 10px 10px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

/* ---------- 配方成分列表 ---------- */
.peptide-list { margin: 18px 0; }

.peptide-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  line-height: 1.85;
  text-align: justify;
  box-shadow: var(--shadow);
}

.peptide-item b { color: var(--gold); font-size: 18px; }

/* ---------- 效果变化三步 ---------- */
.step-item { margin: 20px 0; }

.step-title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e01f26, #8e0b12);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* ---------- CTA 卡片 ---------- */
.cta-box {
  margin: 30px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f3dede;
  box-shadow: 0 8px 22px rgba(200, 22, 29, .13);
}

.cta-head {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffe9c7;
  background: linear-gradient(135deg, #b00d15, #7a0a10);
}

.cta-body { padding: 18px 16px 20px; text-align: center; }

.cta-lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  color: #1f1f1f;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.cta-lead .brand { color: var(--brand); font-weight: 800; }

.cta-arrow {
  margin: 10px 0 4px;
  font-size: 20px;
  color: var(--red);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* 主按钮 */
.cta-btn {
  display: block;
  width: 78%;
  margin: 10px auto 4px;
  padding: 13px 16px;
  border: none;
  border-radius: 40px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #f0454a 0%, #c8161d 50%, #9c0f16 100%);
  box-shadow: 0 6px 16px rgba(200, 22, 29, .4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: breathe 2.6s ease-in-out infinite;
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shine 2.8s linear infinite;
}

@keyframes shine {
  0% { left: -60%; }
  60%, 100% { left: 130%; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.965); }
}

.cta-btn:active { transform: scale(.94); }

/* 承诺列表 */
.cta-promise {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #f0d9d9;
}

.cta-promise p {
  margin: 6px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .3px;
}

.cta-promise p:first-child { font-size: 19px; }

.cta-promise .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-promise .row::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* ---------- 数据条 ---------- */
.stat-box {
  margin: 26px 0 10px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #b00d15 0%, #7a0a10 100%);
  box-shadow: 0 6px 18px rgba(122, 10, 16, .25);
}

.stat-box .num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,.25);
}

.stat-box .desc {
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: 2px;
  opacity: .9;
}

/* ---------- 结尾语 ---------- */
.end-note {
  margin: 22px 0 6px;
  text-align: center;
  font-size: 17px;
  color: #555;
}

/* ---------- 吸底 CTA ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: 100%;
  max-width: 640px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  z-index: 90;
  transition: transform .35s ease;
}

.dock.show { transform: translate(-50%, 0); }

.dock .dock-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 40px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #f0454a, #c8161d, #9c0f16);
  box-shadow: 0 5px 14px rgba(200, 22, 29, .38);
  cursor: pointer;
}

.dock .dock-btn:active { transform: scale(.97); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: 80%;
  padding: 10px 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 120;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 小屏适配 ---------- */
@media (max-width: 360px) {
  body { font-size: 17px; }
  .app-title { font-size: 22px; }
  .banner .big { font-size: 22px; }
  .content { padding: 16px 14px 30px; }
  .people-grid { grid-template-columns: 1fr; }
}
