/* ============================================================
   简历诊所 · 体检报告式变现引擎
   沿用 jl.css 设计令牌；新增：分数环 / 维度条 / 诊断卡 / 改写对比 / 解锁层
   ============================================================ */

/* ---- 诊所 Hero（区别于首页，强调“诊断/成交”）---- */
.clinic-hero { padding: 52px 0 30px; text-align: center; }
.clinic-hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; letter-spacing: .3px;
}
.clinic-hero h1 { font-size: 34px; font-weight: 900; margin-top: 16px; letter-spacing: .5px; }
.clinic-hero h1 em { font-style: normal; color: var(--blue); }
.clinic-hero .sub { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

/* ---- 诊断输入台 ---- */
.intake { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 12px; }
@media (max-width: 860px) { .intake { grid-template-columns: 1fr; } }
.intake .panel h2 { display: flex; align-items: center; gap: 8px; }
.src-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.src-tab {
  flex: 1; padding: 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center;
}
.src-tab.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.src-hint { font-size: 12px; color: var(--ink-3); margin: -6px 0 12px; line-height: 1.6; }
textarea#pasteBox { width: 100%; min-height: 180px; border: 1.5px solid var(--line); border-radius: 9px; padding: 11px; font-size: 13.5px; font-family: inherit; line-height: 1.7; resize: vertical; }
textarea#jdBox { width: 100%; min-height: 150px; border: 1.5px solid var(--line); border-radius: 9px; padding: 11px; font-size: 13.5px; font-family: inherit; line-height: 1.7; resize: vertical; }
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }

.local-status {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 10px;
  font-size: 13px; margin-bottom: 12px;
}
.local-status.has { background: #eaf7ef; color: var(--ok); border: 1px solid #bfe6cd; }
.local-status.none { background: #fdf1ef; color: var(--danger); border: 1px solid #f0c9c2; }
.local-status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.clinic-run { margin: 8px 0 4px; }
.big-run {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 800; border: none; border-radius: 12px;
  background: var(--ink); color: #fff; letter-spacing: 1px;
}
.big-run:hover { background: #000; transform: translateY(-1px); }
.big-run.blue { background: var(--blue); box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .55); }
.big-run.blue:hover { background: #1d4fd8; }

/* ---- 报告区 ---- */
.report { display: none; margin: 30px 0 20px; }
.report.show { display: block; animation: fade .5s ease; }
@keyframes fade { from { transform: translateY(12px); } to { transform: none; } }

.score-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow);
}
@media (max-width: 720px) { .score-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.ring-wrap { position: relative; width: 180px; height: 180px; }
.ring-wrap svg { transform: rotate(-90deg); width: 180px; height: 180px; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 13; }
.ring-fg { fill: none; stroke: url(#grad); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 477.5; stroke-dashoffset: var(--off, 477.5); }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num .big { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.ring-num .unit { font-size: 13px; color: var(--ink-3); font-weight: 700; margin-top: 3px; }

.verdict .grade {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .5px;
}
.verdict h2 { font-size: 25px; font-weight: 900; margin: 12px 0 8px; letter-spacing: .3px; }
.verdict p { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.verdict .pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mini-pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #f2f0eb; color: var(--ink-2); }
.mini-pill.hot { background: #fdecea; color: var(--danger); }
.mini-pill.good { background: #eaf7ef; color: var(--ok); }

/* ---- 维度条 ---- */
.dims { display: grid; gap: 11px; margin: 22px 0; }
.dim {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px;
}
.dim-top { display: flex; align-items: center; gap: 10px; }
.dim-name { font-weight: 800; font-size: 15px; }
.dim-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }
.dim-score { margin-left: auto; font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dim-score small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.bar { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 11px 0 9px; }
.bar span { display: block; height: 100%; border-radius: 999px; width: var(--w, 0); }
.dim-note { font-size: 12.8px; color: var(--ink-2); line-height: 1.7; }
.dim-note b { color: var(--ink); }

/* ---- 诊断卡（问题 + 改写前后）---- */
.diag-head { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 6px; }
.diag-head h2 { font-size: 21px; font-weight: 900; }
.diag-head .cnt { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.issue {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--danger);
  border-radius: 12px; padding: 17px 19px; margin: 13px 0; box-shadow: var(--shadow);
}
.issue.warn { border-left-color: #e08a2b; }
.issue.ok { border-left-color: var(--ok); }
.issue-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; background: #fdecea; color: var(--danger); letter-spacing: .3px;
}
.issue.warn .issue-tag { background: #fdf3e6; color: #c4791f; }
.issue.ok .issue-tag { background: #eaf7ef; color: var(--ok); }
.issue h4 { font-size: 15px; margin: 9px 0 5px; }
.issue .why { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.issue .why code { background: #f4f2ed; padding: 1px 6px; border-radius: 5px; font-size: 12px; color: var(--danger); }

.rewrite { margin-top: 13px; border-top: 1px dashed var(--line); padding-top: 13px; }
.rw-label { font-size: 11px; font-weight: 800; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 6px; }
.rw-before { background: #fbf3f2; border-radius: 9px; padding: 11px 13px; font-size: 13px; color: #8a5148; line-height: 1.8; text-decoration: line-through; text-decoration-color: rgba(192,57,43,.4); }
.rw-arrow { text-align: center; color: var(--ink-3); font-size: 15px; margin: 7px 0; }
.rw-after { background: #eef7f1; border-radius: 9px; padding: 11px 13px; font-size: 13px; color: #1b5e38; line-height: 1.85; }
.rw-after .slot { background: #d6ecdf; border-radius: 4px; padding: 0 5px; font-weight: 700; }
.rw-tip { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }

/* ---- 解锁层（转化核心）---- */
.locked-wrap { position: relative; }
.locked-fade { max-height: 210px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent); mask-image: linear-gradient(180deg, #000 35%, transparent); filter: blur(1.2px); opacity: .62; pointer-events: none; user-select: none; }
.unlock {
  margin: 18px 0; background: linear-gradient(135deg, #1f2937, #111827); color: #fff;
  border-radius: 18px; padding: 30px 28px; box-shadow: 0 24px 60px -24px rgba(17,24,39,.6);
}
.unlock h3 { font-size: 22px; font-weight: 900; letter-spacing: .3px; }
.unlock h3 em { font-style: normal; color: #ffd27d; }
.unlock .lead { color: #c7cbd4; font-size: 14px; margin-top: 10px; line-height: 1.85; }
.unlock .offers { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 20px 0 6px; }
@media (max-width: 680px) { .unlock .offers { grid-template-columns: 1fr; } }
.offer {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 18px;
}
.offer .o-tag { font-size: 11px; font-weight: 800; color: #9fd0ff; letter-spacing: 1px; }
.offer h4 { font-size: 16px; margin: 7px 0 4px; }
.offer .price { font-size: 24px; font-weight: 900; color: #ffd27d; }
.offer .price small { font-size: 12px; color: #c7cbd4; font-weight: 700; }
.offer p { font-size: 12.5px; color: #b9bec9; margin: 8px 0 13px; line-height: 1.75; }
.offer .o-btn {
  display: block; text-align: center; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 800;
  background: var(--blue); color: #fff;
}
.offer .o-btn.gold { background: linear-gradient(135deg, #ffd27d, #f5b942); color: #3a2c07; }
.offer .o-btn:hover { filter: brightness(1.07); }
.unlock .reassure { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: #9aa0ab; }
.unlock .reassure span { display: flex; align-items: center; gap: 5px; }

/* ---- 底部工具条 / CTA ---- */
.free-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.result-actions { display: flex; gap: 11px; flex-wrap: wrap; margin: 22px 0 8px; }

.share-card {
  margin: 22px 0; background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 22px; text-align: center;
}
.share-card h3 { font-size: 17px; font-weight: 800; }
.share-card p { font-size: 13px; color: var(--ink-2); margin: 8px 0 15px; }

/* ---- 方法论 / FAQ 复用 seo 区 ---- */
.method { margin: 40px 0 10px; }
.method h2 { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.method-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 13px; }
.mstep { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.mstep .n { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mstep h4 { font-size: 15px; margin: 11px 0 6px; }
.mstep p { font-size: 13px; color: var(--ink-2); line-height: 1.75; }

/* ---- 下单页（pay.html）---- */
.pay-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 28px 0; }
.pay-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow);
}
.pay-card.hot { border-color: var(--blue); box-shadow: 0 20px 44px -20px rgba(37, 99, 235, .4); }
.pay-card .flag {
  position: absolute; top: -11px; left: 24px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; letter-spacing: 1px;
}
.pay-card h3 { font-size: 18px; font-weight: 900; }
.pay-card .price { font-size: 34px; font-weight: 900; color: var(--ink); margin: 10px 0 2px; }
.pay-card .price small { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.pay-card .price del { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.pay-card ul { list-style: none; margin: 16px 0 20px; }
.pay-card li { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; padding-left: 22px; position: relative; }
.pay-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pay-card .go {
  margin-top: auto; display: block; text-align: center; padding: 13px; border-radius: 11px;
  font-size: 15px; font-weight: 800; background: var(--ink); color: #fff; border: none; cursor: pointer;
}
.pay-card.hot .go { background: var(--blue); box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .6); }
.pay-card .go:hover { filter: brightness(1.1); }
.pay-card .note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 9px; }

.pay-methods { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 10px 0 26px; }
.pay-methods h2 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.pay-methods .hint { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.pm-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pm {
  border: 1.5px solid var(--line); border-radius: 13px; padding: 18px; text-align: center; background: #fdfcfa;
}
.pm .pm-ico { font-size: 26px; }
.pm h4 { font-size: 15px; margin: 9px 0 5px; }
.pm p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.pm img { max-width: 170px; width: 100%; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0 4px; }
.pm .pm-btn {
  display: inline-block; margin-top: 11px; padding: 9px 18px; border-radius: 9px; font-size: 13px;
  font-weight: 800; background: var(--blue); color: #fff; cursor: pointer; border: none;
}
.pm .pm-btn.ghost { background: #f2f0eb; color: var(--ink); }

.faq-steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 20px 0 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.step h4 { font-size: 14.5px; margin: 9px 0 4px; }
.step p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* 打印：只输出报告，隐藏交互 */
@media print {
  .site-header, .intake, .clinic-hero, .unlock, .share-card, .free-cta, .result-actions, .pay-methods, .site-footer, #toast { display: none !important; }
  .report { display: block !important; }
  body { background: #fff; }
}
