/* ============================================================
   医院版商业官网样式 · v2.224
   设计语言：公文/台账美学——纸面底色、藏青墨、细线结构、宋体标题。
   全部 token 集中在 :root，禁止散写颜色/字号。
   ============================================================ */
:root {
  color-scheme: light;

  /* 色板 */
  --paper: #f6f6f2;        /* 公文纸底 */
  --paper-deep: #efefe9;   /* 纸面深一档（分隔带） */
  --white: #ffffff;
  --ink: #16283a;          /* 藏青墨：标题 */
  --ink-2: #40525f;        /* 正文 */
  --ink-3: #6b7a85;        /* 辅助说明 */
  --navy: #16324f;         /* 主按钮 / 深色区块底 */
  --navy-deep: #10263d;    /* 深色区块更深一档 */
  --teal: #0f766e;         /* 品牌青绿：延续全站 */
  --teal-ink: #0c5d57;
  --seal: #b4232a;         /* 印章红：只用于评级章与极少数强调 */
  --line: #d9ddd6;         /* 细线 */
  --line-strong: #b9bfb6;
  --ok: #1a7f37;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;

  /* 字号阶梯 */
  --fs-hero: clamp(30px, 4.4vw, 52px);
  --fs-h2: clamp(22px, 2.6vw, 32px);
  --fs-h3: 17px;
  --fs-body: 15.5px;
  --fs-small: 13px;
  --fs-micro: 12px;

  /* 间距与结构 */
  --w: 1120px;
  --pad-x: clamp(18px, 4vw, 40px);
  --radius: 4px;
  --section-y: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }

/* ---------- 页眉 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
}
.topbar-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
.brand-name { font-family: var(--serif); font-size: 16.5px; font-weight: 700; letter-spacing: 0.02em; }
.brand-tag { display: block; font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.14em; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a {
  color: var(--ink-2); font-size: 14px; padding: 8px 12px; border-radius: var(--radius);
}
.topnav a:hover { color: var(--ink); background: var(--paper-deep); text-decoration: none; }
.topnav .cta {
  background: var(--navy); color: #fff; padding: 9px 20px; margin-left: 10px;
  font-size: 14px;
}
.topnav .cta:hover { background: var(--navy-deep); }
@media (max-width: 860px) {
  .topnav a:not(.cta) { display: none; }
}

/* ---------- 首屏 ---------- */
.hero { padding: clamp(56px, 7vw, 92px) 0 clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.kicker {
  display: inline-block;
  font-size: var(--fs-small); color: var(--teal-ink);
  border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 3px 12px; letter-spacing: 0.22em;
  background: var(--white);
  margin-bottom: 22px;
}
.hero h1 { font-size: var(--fs-hero); letter-spacing: 0.01em; margin-bottom: 20px; }
.hero-lead { font-size: 16.5px; max-width: 34em; }
.hero-lead b { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 16px; }
.btn {
  display: inline-block; font-size: 15px; padding: 12px 30px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }
.hero-note { font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- 首屏右侧：病案首页质控评分单 ---------- */
.sheet-stack { position: relative; padding: 8px 0 24px; }
.sheet {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(22, 40, 58, 0.04), 0 18px 40px -28px rgba(22, 40, 58, 0.35);
  padding: 26px 28px 20px;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px;
}
.sheet-title { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: 0.06em; }
.sheet-no { font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.06em; }
.sheet-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.sheet-row:last-of-type { border-bottom: none; }
.sheet-mark { font-size: 13px; text-align: center; }
.sheet-mark.ok { color: var(--ok); }
.sheet-mark.block { color: var(--seal); font-weight: 700; }
.sheet-row .item b { color: var(--ink); font-weight: 600; }
.sheet-verdict {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px;
}
.sheet-score { font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 700; }
.sheet-score small { font-size: 13px; color: var(--ink-3); font-family: var(--sans); font-weight: 400; margin-left: 8px; }
.seal {
  width: 74px; height: 74px; border: 3px solid var(--seal); border-radius: 8px;
  color: var(--seal); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 0.2em;
  transform: rotate(-8deg); opacity: 0.88;
  position: relative; user-select: none;
}
.seal::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--seal); border-radius: 5px; opacity: 0.55;
}
.sheet-caption { font-size: var(--fs-micro); color: var(--ink-3); margin-top: 12px; letter-spacing: 0.04em; }

/* ---------- 数字台账带 ---------- */
.ledger {
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}
.ledger-inner { display: grid; grid-template-columns: repeat(6, 1fr); }
.ledger-item { padding: 22px 12px 20px; text-align: center; border-left: 1px solid var(--line); }
.ledger-item:first-child { border-left: none; }
.ledger-item b {
  display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ledger-item span { font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.08em; }
@media (max-width: 980px) {
  .ledger-inner { grid-template-columns: repeat(3, 1fr); }
  .ledger-item:nth-child(4) { border-left: none; }
  .ledger-item:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ledger-inner { grid-template-columns: repeat(2, 1fr); }
  .ledger-item { border-left: none; }
  .ledger-item:nth-child(n+2) { border-top: 1px solid var(--line); }
  .ledger-item:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ---------- 通用小节标题 ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.sec-kicker { font-size: var(--fs-micro); color: var(--teal-ink); letter-spacing: 0.24em; margin-bottom: 12px; }
.sec-head h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.sec-head p { color: var(--ink-2); }

/* ---------- 三件事（为什么上） ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 920px) { .reasons { grid-template-columns: 1fr; } .reason { border-top: 1px solid var(--line-strong); } .reason:first-child { border-top: none; } }
.reason { padding: 6px 30px 6px 0; border-left: 0; }
.reason + .reason { border-left: 1px solid var(--line-strong); padding-left: 30px; }
@media (max-width: 920px) { .reason + .reason { border-left: none; padding-left: 0; } .reason { padding: 26px 0; } }
.reason h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.reason p { font-size: 14.5px; }
.reason .who { display: inline-block; margin-top: 14px; font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.1em; }

/* ---------- 六大模块 ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); background: var(--white); }
@media (max-width: 920px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .modules { grid-template-columns: 1fr; } }
.module { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 26px 24px 22px; background: var(--white); }
.module:hover { background: #fbfbf8; }
.module-icon { width: 38px; height: 38px; color: var(--teal); margin-bottom: 14px; display: block; }
.module h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.module .desc { font-size: 14px; margin-bottom: 12px; }
.module ul { margin: 0; padding: 0; list-style: none; }
.module li {
  font-size: 13px; color: var(--ink-2); padding: 5px 0 5px 16px; position: relative;
}
.module li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 6px; height: 1.5px; background: var(--teal); }

/* ---------- 深色：安全与合规 ---------- */
.navy { background: var(--navy); color: #c7d3de; }
.navy .sec-head h2 { color: #fff; }
.navy .sec-head p { color: #b3c2cf; }
.navy .sec-kicker { color: #7fc8bf; }
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
@media (max-width: 920px) { .safety { grid-template-columns: 1fr; gap: 8px; } }
.safety-item { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 18px; }
.safety-item h3 { color: #fff; font-size: var(--fs-h3); margin-bottom: 10px; }
.safety-item ul { margin: 0; padding: 0; list-style: none; }
.safety-item li { font-size: 14px; padding: 4px 0 4px 16px; position: relative; color: #c7d3de; }
.safety-item li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 1.5px; background: #7fc8bf; }
.honesty {
  margin-top: clamp(34px, 5vw, 56px); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 22px 26px; font-size: 14.5px; color: #dbe4ec; background: rgba(16, 38, 61, 0.45);
}
.honesty b { color: #fff; font-weight: 600; }

/* ---------- 部署与对接 ---------- */
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); }
@media (max-width: 920px) { .deploy { grid-template-columns: 1fr; } }
.deploy-col h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.deploy-list { border-top: 1px solid var(--line-strong); background: var(--white); }
.deploy-item { display: grid; grid-template-columns: 118px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-strong); font-size: 14px; }
.deploy-item b { color: var(--ink); font-family: var(--serif); font-weight: 700; }
.deploy-item span { color: var(--ink-2); }

/* ---------- 试点三步 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; gap: 0; } }
.step { position: relative; padding: 10px 0 0 0; counter-increment: step; }
.step::before {
  content: counter(step, cjk-ideographic);
  font-family: var(--serif); font-size: 40px; color: var(--teal); font-weight: 700;
  display: block; line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-strong); background: var(--white); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 22px;
  font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--teal); font-size: 17px; font-family: var(--sans); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 22px 18px; font-size: 14.5px; }

/* ---------- 预约演示表单 ---------- */
.demo { background: var(--paper-deep); border-top: 1px solid var(--line-strong); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 4vw, 60px); }
@media (max-width: 920px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-copy h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.demo-copy p { font-size: 15px; }
.demo-copy .contact { margin-top: 22px; font-size: var(--fs-small); color: var(--ink-3); }
.form-card { background: var(--white); border: 1px solid var(--line-strong); padding: clamp(22px, 3vw, 34px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); color: var(--ink); }
.field label .req { color: var(--seal); margin-left: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fdfdfb; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
}
.form-note { font-size: var(--fs-micro); color: var(--ink-3); margin-top: 12px; }
.form-error {
  display: none; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius);
  background: #fdf1f1; border: 1px solid #eec7c7; color: var(--seal); font-size: 13.5px;
}
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .mark {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  border: 2px solid var(--teal); color: var(--teal); display: grid; place-items: center;
  font-size: 26px;
}
.form-success h3 { font-size: 19px; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-deep); color: #9fb0bf; padding: 44px 0 36px; font-size: 13.5px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 460px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand .n { color: #e6edf3; font-family: var(--serif); font-weight: 700; font-size: 15.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-links a { color: #c7d3de; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; color: #7d90a1; line-height: 2; }

/* 唯一的入场动效：评分单在首屏轻微上浮一次（reduced-motion 下禁用） */
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.sheet-stack { animation: sheet-in 0.6s ease-out both; }
@media (prefers-reduced-motion: reduce) { .sheet-stack { animation: none; } }
