/* 验货报告单气质：纸白 + 墨青 + 印章红 / 合格绿 */
:root {
  --paper: #fafbf8;
  --card: #ffffff;
  --ink: #1c2c33;
  --ink-soft: #4c5f68;
  --rule: #ccd8d2;
  --pass: #177245;
  --warn: #a06b12;
  --fail: #bf3a2b;
  --stamp: #c23b2c;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--fail); outline-offset: 2px; }

/* ---- 顶栏 ---- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.mark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.topbar-cta {
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 6px 14px;
}
.topbar-cta:hover { background: var(--ink); color: var(--paper); }

main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { padding: clamp(48px, 8vw, 88px) 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-lede { color: var(--ink-soft); max-width: 40em; margin-bottom: 32px; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.22;
  font-weight: 900;
  margin-bottom: 20px;
}
h1 em {
  font-style: normal;
  color: var(--stamp);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.lede { color: var(--ink-soft); margin-bottom: 32px; max-width: 34em; }
.lede strong { color: var(--ink); }

/* 表单 */
.apply { max-width: 26em; }
.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  font: inherit;
  padding: 11px 13px;
  border: 1.5px solid var(--rule);
  background: var(--card);
  color: var(--ink);
}
.field input:focus { border-color: var(--ink); outline: none; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 13px 28px;
  cursor: pointer;
  margin-top: 6px;
}
.btn:hover { background: var(--stamp); }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
/* 提交状态反馈：BS5 alert 风格色块（底色 + 边框 + 内边距），成功绿/失败红/进行中墨 */
.form-alert {
  margin-top: 14px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid var(--ink-soft);
  background: #eef2f1;
  color: var(--ink);
}
.form-alert.is-success { border-color: var(--pass); background: #e9f4ee; color: var(--pass); }
.form-alert.is-error { border-color: var(--fail); background: #faeceb; color: var(--fail); }
/* 蜜罐字段：对真人不可见，机器人会填 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- 签名元素：体检报告单 ---- */
.report {
  position: relative;
  background: var(--card);
  border: 3px double var(--ink);
  padding: 26px 26px 20px;
  font-size: 15px;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.report-title { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; }
.report-no { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.report-target { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.mono { font-family: var(--mono); color: var(--ink); }

.report-lines { list-style: none; }
.report-lines li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
}
.report-lines li::before {
  flex: 0 0 auto;
  font-weight: 700;
}
.report-lines li[data-mark="pass"]::before { content: "✓"; color: var(--pass); }
.report-lines li[data-mark="warn"]::before { content: "!"; color: var(--warn); }
.report-lines li[data-mark="fail"]::before { content: "✗"; color: var(--fail); }
.report-lines li[data-mark="fail"] { color: var(--fail); }
.report-lines li[data-mark="warn"] { color: var(--warn); }
.report-lines code { font-family: inherit; }

/* 逐行显影（reduced-motion 时由 JS 直接全显） */
.report-lines.animate li {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.report-lines.animate li.shown { opacity: 1; transform: none; }

.report-sum {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 14px;
}
.report-sum strong { font-family: var(--mono); color: var(--fail); }
.report-demo-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}

.stamp {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 76px;
  height: 76px;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  background: rgba(255, 255, 255, 0.82);
}

/* ---- 病灶 ---- */
.ill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ill {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 22px;
}
.ill h3 { font-size: 17px; margin-bottom: 10px; }
.ill p { font-size: 15px; color: var(--ink-soft); }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  margin-right: 6px;
  vertical-align: 2px;
}
.tag-fail { color: var(--fail); border: 1.5px solid var(--fail); }
.tag-warn { color: var(--warn); border: 1.5px solid var(--warn); }

/* ---- 覆盖范围 ---- */
.coverage-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.coverage-cols h3 {
  font-family: var(--serif);
  font-size: 18px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.coverage-cols ul { list-style: none; }
.coverage-cols li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}

/* ---- 流程 ---- */
.step-list {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.step-list li { counter-increment: step; }
.step-list h3::before {
  content: "0" counter(step) " ";
  font-family: var(--mono);
  color: var(--stamp);
  margin-right: 4px;
}
.step-list h3 { font-size: 17px; margin-bottom: 8px; }
.step-list p { font-size: 15px; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq dl { max-width: 44em; }
.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { color: var(--ink-soft); margin-top: 6px; }
.final-cta {
  margin-top: 44px;
  text-align: center;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 32px 20px;
}
.final-cta p { margin-bottom: 16px; color: var(--ink-soft); }

/* ---- 页脚 ---- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 28px clamp(20px, 5vw, 56px);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- 响应式 ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .report { max-width: 30em; }
  .ill-grid, .step-list { grid-template-columns: 1fr; }
  .coverage-cols { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .stamp { right: -6px; top: -14px; width: 66px; height: 66px; font-size: 15px; }
}
