/* ==========================================================================
   经验资产诊断 · 独立页样式
   自包含，不依赖平台任何 CSS 变量。

   v2 调整（老王反馈）：
   1. 字号整体降一档，显得精致
   2. 配色加深——原来太淡，卡片和背景糊在一起，没有层次
   3. 底部补进度条（之前只放顶部，滚动后看不见）
   4. 细节：题号做成色块、分组标题加金色竖线、阴影更细腻
   ========================================================================== */

:root {
  --page: #f3f0e8;
  --surface: #ffffff;
  --surface-soft: #faf8f3;
  --surface-strong: #efe9dd;
  --ink: #131c24;
  --ink-soft: #3a4652;
  --muted: #6b7885;
  --line: #e0d8c9;
  --line-strong: #cfc3ae;
  --brand: #0c5860;
  --brand-strong: #083b42;
  --brand-soft: #e3efee;
  --gold: #a57c30;
  --gold-soft: #f3ead6;
  --radius: 11px;
  --shadow: 0 1px 3px rgba(31, 42, 55, 0.04), 0 6px 20px rgba(31, 42, 55, 0.045);
  --shadow-hover: 0 2px 6px rgba(31, 42, 55, 0.07), 0 10px 28px rgba(31, 42, 55, 0.07);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-in {
  max-width: 700px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------------- 容器 ---------------- */

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 18px 88px;
}

/* ---------------- 头部说明 ---------------- */

.hero { margin-bottom: 22px; }

.hero h1 {
  font-size: 22px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 9px;
}

.hero-sub {
  font-size: 12.5px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 11px;
}

.hero-sub b { color: var(--ink); font-weight: 650; }

.hero-note {
  font-size: 11.5px;
  line-height: 1.72;
  color: #6d5c3a;
  margin: 0;
  padding: 9px 12px;
  background: var(--gold-soft);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.hero-note b { color: #5a4a2c; font-weight: 650; }

/* ---------------- 分组 ---------------- */

.group { margin-bottom: 26px; }

.group-h {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 13px;
  padding: 0 0 7px 11px;
  border-bottom: 1px solid var(--line);
}

/* 金色小竖线，给分组一个视觉锚点 */
.group-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--gold);
}

.group-h b {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brand-strong);
  letter-spacing: 0.01em;
}

.group-h span {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------- 题目 ---------------- */

.q { margin-bottom: 17px; }

.q-title {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 8px;
}

/* 题号做成色块，比纯数字清楚 */
.q-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 10.5px;
  font-weight: 700;
  font-style: normal;
  vertical-align: 1px;
}

/* 选项 */
.opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.13s, background 0.13s, color 0.13s, transform 0.1s;
}

.opt:hover {
  border-color: var(--brand);
  background: #fcfdfd;
}

.opt:active { transform: scale(0.995); }

.opt.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 550;
  box-shadow: 0 2px 8px rgba(12, 88, 96, 0.22);
}

.opt.on:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

/* 填写引导 */
.q-hint {
  display: flex;
  gap: 6px;
  padding: 8px 11px;
  margin-bottom: 7px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: #1d5157;
  font-size: 11.5px;
  line-height: 1.68;
}

.q-hint .ico { opacity: 0.55; flex: 0 0 auto; font-size: 10.5px; }

textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.68;
  resize: vertical;
  min-height: 66px;
  transition: border-color 0.13s, box-shadow 0.13s;
}

textarea:hover { border-color: var(--line-strong); }

textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 88, 96, 0.09);
}

textarea.prefill {
  color: #8a949b;
  background: #fdfcf9;
  border-style: dashed;
}

textarea.prefill:focus {
  color: var(--ink);
  background: var(--surface);
  border-style: solid;
}

.q-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.q-count { flex: 0 0 auto; opacity: 0.65; font-variant-numeric: tabular-nums; }

/* ---------------- 底部固定条（含进度） ---------------- */

.sticky-actions {
  position: sticky;
  bottom: 0;
  margin: 26px -18px -88px;
  padding: 0 18px calc(11px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(31, 42, 55, 0.05);
}

/* 进度条贴在最上沿，满宽 */
.sticky-bar {
  height: 3px;
  margin: 0 -18px 10px;
  background: var(--surface-strong);
  overflow: hidden;
}

.sticky-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), #2e8a86);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-in {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count {
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.progress-num {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}

.btn-primary {
  padding: 10px 24px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.14s, transform 0.1s;
  box-shadow: 0 3px 12px rgba(12, 88, 96, 0.25);
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn-primary:disabled {
  background: #d3d8d8;
  box-shadow: none;
  color: #fff;
  cursor: not-allowed;
}

.btn-ghost {
  padding: 10px 22px;
  border: 1px solid var(--brand);
  border-radius: 9px;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s;
}

.btn-ghost:hover { background: var(--brand-soft); }

.foot-actions {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   报告
   ========================================================================== */

.report-head { margin-bottom: 20px; }

.report-head h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 7px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.report-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* 边界说明 */
.scope {
  background: var(--gold-soft);
  border: 1px solid #e8d9b9;
  border-left: 3px solid var(--gold);
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.scope-h {
  font-size: 12.5px;
  font-weight: 650;
  color: #5a4623;
  margin-bottom: 8px;
}

.scope ul { margin: 0; padding-left: 16px; }

.scope li {
  font-size: 12px;
  line-height: 1.8;
  color: #6b5730;
  margin-bottom: 4px;
}

.scope li b { color: #4a3a1c; font-weight: 620; }

.scope-foot {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed #ddc9a0;
  font-size: 11px;
  color: #857148;
  line-height: 1.7;
}

/* 区块 */
.sec { margin-bottom: 22px; }

.sec-h {
  position: relative;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-left: 10px;
}

.sec-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 11px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.55;
}

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
}

.card-h {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.card-h b { font-size: 13.5px; font-weight: 650; color: var(--ink); }

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tag.ok { background: #e2f0e7; color: #26694a; }
.tag.warn { background: var(--gold-soft); color: #7d5a1d; }
.tag.bad { background: #f9e6e4; color: #8a332e; }

.verdict {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 6px;
}

.detail {
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.detail b, .verdict b { color: var(--ink); font-weight: 620; }

.act {
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.act b { color: var(--ink); font-weight: 620; }

.lbl {
  display: inline-block;
  font-size: 10px;
  font-weight: 650;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: 1px;
}

/* 信息完整度 */
.conf-bar {
  height: 5px;
  background: var(--surface-strong);
  border-radius: 3px;
  overflow: hidden;
  margin: 9px 0;
}

.conf-bar i { display: block; height: 100%; border-radius: 3px; }

/* 盲区 */
.blind {
  background: #fbf8fd;
  border-color: #e4d8ee;
}

.blind .card-h b { color: #452a5c; }
.blind .body { font-size: 12px; line-height: 1.85; color: #543a6b; }

/* 锚点 */
.anchor {
  padding: 9px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
}

.anchor-h {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 4px;
}

.anchor-h b { font-size: 12px; font-weight: 620; color: var(--ink); }

.anchor-h span {
  font-size: 10px;
  color: var(--muted);
  background: var(--surface-strong);
  padding: 1px 6px;
  border-radius: 999px;
}

.anchor-l { font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); }

/* 价格档 */
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-bottom: 9px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.tier:hover { box-shadow: var(--shadow-hover); }

.tier.locked {
  background: var(--surface-soft);
  opacity: 0.9;
  box-shadow: none;
}

.tier-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.tier-h b { font-size: 14px; font-weight: 650; color: var(--ink); }

.price {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
}

.tier-meta { font-size: 10.5px; color: var(--muted); margin-left: auto; }

/* 市场依据 */
.mkt {
  margin: 8px 0 10px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid #e8d9b9;
}

.mkt-h {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mkt-h b { font-size: 12px; font-weight: 640; color: #5f4517; }

.mkt-band {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  color: #7d5a1d;
}

.mkt-row { font-size: 11px; line-height: 1.7; color: #634d22; margin-bottom: 3px; }

.mkt-case {
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 6px;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.65;
  color: #54401a;
}

.mkt-case span { display: block; color: #8a7550; font-size: 10px; margin-top: 1px; }

/* 区间依据 */
.range {
  margin: 7px 0 10px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid #cfe2e0;
}

.range-h { font-size: 10.5px; font-weight: 650; color: var(--brand-strong); margin-bottom: 6px; }

.range p { font-size: 11.5px; line-height: 1.8; color: #1a4a50; margin: 0 0 5px; }

.range-pos {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--brand-strong);
  font-weight: 500;
  margin-top: 6px;
}

/* 第一步卖什么 */
.offer {
  margin: 8px 0 10px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #eaf5ef;
  border: 1px solid #c3e0d2;
}

.offer-b { font-size: 12.5px; line-height: 1.75; color: #1a5540; font-weight: 550; }

.offer-row { font-size: 11px; line-height: 1.7; color: #2f6049; margin-top: 5px; }

/* 实验 */
.exp {
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.exp-h { display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px; }

.exp-h b { font-size: 13px; font-weight: 640; color: var(--ink); }

.exp-h span {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.exp-row { font-size: 11.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 4px; }

.exp-pass, .exp-fail {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.7;
}

.exp-pass { background: #eaf5ef; color: #1a5540; }
.exp-fail { background: #fbf1e6; color: #724b1c; }

/* 三件套 */
.kit-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.14s, color 0.14s;
}

.kit-toggle:hover { border-color: var(--brand); color: var(--brand-strong); }

pre.copy {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
}

/* 引流 */
.lead {
  margin: 26px 0 8px;
  padding: 17px 19px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-strong), #16707a);
  color: #fff;
  box-shadow: 0 6px 24px rgba(8, 59, 66, 0.22);
}

.lead h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.lead p {
  font-size: 12px;
  line-height: 1.75;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.9);
}

.lead-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

/* 二维码：整张海报放进来，白底托一层，长按能识别 */
.lead-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 9px;
}

.lead-qr {
  display: block;
  width: 210px;
  max-width: 78%;
  height: auto;
  border-radius: 11px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  /* 二维码图片别被拉伸/压缩，识别率靠比例 */
  image-rendering: -webkit-optimize-contrast;
}

.lead-qr-tip {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

/* 页脚 */
.site-foot {
  max-width: 700px;
  margin: 0 auto;
  padding: 22px 18px 34px;
  border-top: 1px solid var(--line);
}

.site-foot p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* ---------------- 手机 ---------------- */

@media (max-width: 560px) {
  body { font-size: 14px; }
  .wrap { padding: 18px 15px 88px; }
  .hero h1 { font-size: 20px; }
  .hero-sub { font-size: 12px; }
  .q-title { font-size: 13px; }
  .opt { padding: 10px 11px; font-size: 11.5px; }
  .tier-meta { margin-left: 0; }
  .sticky-actions { margin: 24px -15px -88px; padding: 0 15px calc(10px + env(safe-area-inset-bottom)); }
  .sticky-bar { margin: 0 -15px 9px; }
  .report-head h1 { font-size: 18.5px; }
  .lead { padding: 15px 16px; }
  .btn-primary { padding: 10px 18px; font-size: 13px; }
}

@media (min-width: 561px) {
  .opts { flex-direction: row; flex-wrap: wrap; }
  .opt { width: auto; flex: 0 0 auto; }
}
