/* =========================================================
   承岐中医工作室 — 样式表
   主色：低饱和暖调黄 | 辅助色：纯黑 | 基底：浅米灰
   字体：HarmonyOS Sans SC（Light 300 / Regular 400 / Bold 700）
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 主色 · 低饱和暖调黄 */
  --yellow:      #C8A45A;
  --yellow-dark: #B08C46;
  --yellow-wash: #F3E9D0;   /* 浅黄：标签底色 */

  /* 辅助色 · 纯黑 */
  --ink:         #111111;
  --ink-soft:    #2A2A2A;

  /* 中性基底 · 浅米灰 */
  /* 中性基底：全站纯白色（2026-09-28 按需求由米灰改为纯白） */
  --paper:       #FFFFFF;
  --paper-2:     #FFFFFF;
  --muted:       #6B665E;
  --line:        rgba(17, 17, 17, .16);
  --line-soft:   rgba(17, 17, 17, .08);

  /* 字体 */
  --font: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system,
          "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;

  /* 尺度 */
  --wrap: 1180px;
  --gutter: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 根字号：桌面 17px → 移动端 20px（约 1.2 倍，适配中老年阅读） */
html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--ink);
}

p  { margin: 0 0 .9em; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease);
}

b, strong { font-weight: 700; }

address { font-style: normal; }

::selection { background: var(--yellow-wash); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- 3. 纸张颗粒 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;   /* 纯白底色下关闭颗粒层：multiply 混合会把白色染成灰。需要纸感时改回 .3 */
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 4. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 8vw, 110px) 0; }
/* 底色改为纯白后，交替区块不再靠色带区分，改用上下细线维持节奏 */
.section-alt {
  background: #FFFFFF;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 10000;
  background: var(--ink);
  color: var(--yellow);
  padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 5. 区块标题 ---------- */
.sec-head {
  margin-bottom: clamp(36px, 5vw, 60px);
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.sec-no {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--yellow-dark);
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  letter-spacing: .04em;
}
.sec-sub {
  margin: 6px 0 0;
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub-title {
  margin: clamp(44px, 6vw, 64px) 0 22px;
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.sub-title span {
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
}
.btn-yellow:active { transform: translateY(0); background: var(--ink); color: var(--yellow); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--yellow);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
  min-height: 42px;
  padding: 0 20px;
  font-size: .85rem;
}
.btn-solid:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.btn-lg { min-height: 56px; padding: 0 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- 7. 导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 26px; height: 26px;
  flex: none;
  border: 2px solid var(--ink);
  position: relative;
  transition: transform .5s var(--ease);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--yellow);
}
.brand:hover .brand-mark { transform: rotate(45deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.brand-text em {
  font-style: normal;
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 3px;
}

.nav-desktop { display: flex; gap: 30px; }
.nav-desktop a {
  font-size: .98rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--ink); font-weight: 700; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; width: 18px; height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: all .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: translateX(-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 880;
  background: var(--paper);
  padding: 108px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.4rem;
  font-weight: 700;
}
.mobile-menu nav a i {
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow-dark);
  letter-spacing: .12em;
}
.mobile-menu-foot {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--yellow-dark);
}

/* ---------- 8. 占位图 ---------- */
.ph {
  position: relative;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.ph-label {
  position: relative;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .12em;
  color: rgba(17, 17, 17, .45);
  text-align: center;
  padding: 0 18px;
}
.ph-doctor    { aspect-ratio: 4 / 5; background: #FFFFFF; }
.ph-clinic    { aspect-ratio: 16 / 10; background: #FFFFFF; }
.ph-herbs     { aspect-ratio: 16 / 10; background: #FFFFFF; }
.ph-qr        { width: 152px; height: 152px; flex: none; background: #FFFFFF; }

/* 占位图内的实际图像：等比铺满容器 */
.ph > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-img {
  width: 152px;
  height: 152px;
  flex: none;
  display: block;
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 6px;
}

/* ---------- 9. 首屏 ---------- */
.hero { padding: 132px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 78px);
}

.hero-portrait { margin: 0; position: relative; }
.hero-portrait .ph { border: 5px solid var(--ink); }
.hero-portrait .ph::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid var(--yellow);
  pointer-events: none;
}
.hero-portrait::after {
  content: "承岐";
  position: absolute;
  right: 14px; bottom: 46px;
  width: 58px; height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  border: 2px solid var(--ink);
  transform: rotate(-6deg);
}
.hero-portrait figcaption {
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
}

.hero-badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 16px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  line-height: 1.22;
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--yellow-dark); }

.hero-huiwen { display: flex; gap: 9px; margin-bottom: 26px; }
.hero-huiwen span {
  width: 36px; height: 36px;
  border: 2px solid var(--yellow);
  position: relative;
}
.hero-huiwen span::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--yellow);
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 24px;
}

.hero-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.hero-titles li {
  border: 1px solid var(--ink);
  padding: 5px 14px;
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .06em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.hero-bar li {
  padding: 22px 0 22px 22px;
  border-left: 1px solid var(--line);
}
.hero-bar li:first-child { border-left: 0; padding-left: 0; }
.hero-bar span {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-bar b { font-size: 1.05rem; font-weight: 700; }

/* ---------- 10. 医生 · 团队 ---------- */
.doctor-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.timeline-head h3 { font-size: 1.7rem; margin-bottom: 14px; }
.timeline-head h3 small {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--muted);
  margin-left: 12px;
}
.timeline-summary {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 40px;
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 32px;
  margin-bottom: 42px;
}
.timeline li { position: relative; padding-bottom: 34px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute;
  left: -41px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
.tl-year {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--yellow-dark);
  margin-bottom: 6px;
}
.timeline h4 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline p { font-size: .95rem; color: var(--muted); margin: 0; }

.cred-list { border-top: 2px solid var(--ink); }
.cred-list li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .95rem;
}
.cred-list span { flex: none; min-width: 5em; font-weight: 700; }
.cred-list b { font-weight: 400; color: var(--ink-soft); }

.doctor-side { display: flex; flex-direction: column; gap: 26px; }

.promise {
  border: 2px solid var(--ink);
  background: var(--yellow-wash);
  padding: 28px 26px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.promise:hover { border-color: var(--yellow); transform: translateY(-6px); }
.promise h4 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.promise p {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.promise-list li {
  position: relative;
  padding-left: 22px;
  font-size: .93rem;
  margin-bottom: 8px;
}
.promise-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.side-shot { margin: 0; }
.side-shot figcaption {
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- 11. 特色诊疗服务 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.svc-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, .07);
}
.svc-card.is-featured { border-width: 2px; }

.svc-top { margin-bottom: 16px; }
.svc-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.svc-card h3 { font-size: 1.35rem; letter-spacing: .06em; }
.svc-desc {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.svc-meta {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}
.svc-meta div {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
}
.svc-meta div:last-child { border-bottom: 0; }
.svc-meta dt { flex: none; min-width: 4.5em; font-weight: 700; }
.svc-meta dd { color: var(--ink-soft); font-weight: 400; }

.svc-note,
.case-note,
.board-note {
  margin-top: 26px;
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 68ch;
}
.case-note { margin-top: 22px; }
.board-note { margin: 12px 0 0; }

/* ---------- 12. 核心成果 · 数据板 ---------- */
.data-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.data-board > div {
  background: var(--ink);
  padding: 32px 26px;
  text-align: center;
}
.data-board dt {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: rgba(244, 241, 234, .72);
  margin-bottom: 10px;
}
.data-board dd {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--yellow);
  letter-spacing: .02em;
}
.data-board dd sup {
  font-size: .34em;
  font-weight: 700;
  vertical-align: super;
  margin-left: 2px;
}

/* ---------- 13. 医案手风琴 ---------- */
.case-list { border-top: 2px solid var(--ink); }
.case { border-bottom: 1px solid var(--line); }

.case-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px 22px 16px;
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.case-head:hover { border-left-color: var(--yellow); background: var(--yellow-wash); }

.case-no {
  flex: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--yellow-dark);
  min-width: 3em;
}
.case-brief { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.case-brief b { font-size: 1.12rem; font-weight: 700; }
.case-brief em {
  font-style: normal;
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .04em;
}

.case-toggle {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.case-toggle::before,
.case-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.case-toggle::before { left: 0; right: 0; top: 10px; height: 2px; }
.case-toggle::after  { top: 0; bottom: 0; left: 10px; width: 2px; }
.case-head[aria-expanded="true"] .case-toggle::after { transform: scaleY(0); }

.case-body { padding: 4px 16px 28px; border-left: 4px solid var(--yellow); }
.case-body[hidden] { display: none; }
.case-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  background: var(--yellow-wash);
  padding: 24px 26px;
  border: 1px solid var(--line);
}
.case-body div { display: flex; gap: 14px; }
.case-body div:first-child { grid-column: 1 / -1; }
.case-body dt { flex: none; min-width: 3em; font-weight: 700; font-size: .92rem; }
.case-body dd { font-size: .92rem; color: var(--ink-soft); }

/* ---------- 14. 就诊指引 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: clamp(44px, 6vw, 66px);
}
.steps li {
  position: relative;
  padding: 0 22px 0 0;
  text-align: left;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 21px; left: 58px; right: 8px;
  height: 2px;
  background: var(--yellow);
  opacity: .5;
}
.steps li:last-child::before { display: none; }

.step-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { font-size: .9rem; color: var(--muted); margin: 0; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.guide-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px 26px;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.guide-card:hover { border-color: var(--yellow); transform: translateY(-6px); }
.guide-card h4 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.guide-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
}
.guide-list li:last-child { border-bottom: 0; }
.guide-list span { font-weight: 700; flex: none; }
.guide-list b { font-weight: 400; color: var(--ink-soft); text-align: right; }

.guide-tips li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
}
.guide-tips li::before {
  content: "";
  position: absolute;
  left: 0; top: .8em;
  width: 8px; height: 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
}

.guide-card address {
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.guide-nav {
  display: inline-block;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--yellow-dark);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.guide-nav:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 15. 联系区 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(32px, 5vw, 66px);
  align-items: start;
}

.contact-info { border-top: 2px solid var(--ink); margin-bottom: 30px; }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info span {
  flex: none;
  min-width: 4.5em;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--muted);
}
.big-tel {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .02em;
}
.big-tel:hover { color: var(--yellow-dark); }
.contact-info b { font-weight: 400; }

.qr-block {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--ink);
  padding: 20px;
  background: var(--paper-2);
  margin-bottom: 30px;
}
.qr-block p { margin: 0; font-size: .92rem; font-weight: 700; }
.qr-block small { font-weight: 400; color: var(--muted); }

.news-block { border: 1px solid var(--ink); padding: 26px; }
.news-block h4 {
  font-size: 1.12rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.news-placeholder {
  font-size: .86rem;
  font-weight: 400;
  color: var(--muted);
  background: var(--yellow-wash);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.news-demo li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.news-demo li:last-child { border-bottom: 0; }
.news-demo a { font-size: .92rem; }
.news-demo a:hover { color: var(--yellow-dark); }
.news-demo i {
  font-style: normal;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
  flex: none;
}

/* ---------- 16. 表单 ---------- */
.contact-form {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(24px, 3.4vw, 38px);
}
.form-title { font-size: 1.3rem; margin-bottom: 6px; }
.form-sub {
  font-size: .86rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 26px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 13px 14px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field input::placeholder,
.field textarea::placeholder { color: #87827A; font-weight: 400; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: #fff;
}

.contact-form .btn { margin-top: 8px; }

.form-tip {
  margin: 14px 0 0;
  min-height: 1.5em;
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}
.form-tip.is-ok  { color: #3F7A3A; }
.form-tip.is-err { color: #A63A2E; }

.form-small {
  margin: 14px 0 0;
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
}

/* ---------- 17. 页脚（黑底浅黄） ---------- */
.site-footer {
  background: var(--ink);
  color: var(--yellow-wash);
  padding: clamp(48px, 6vw, 76px) 0 30px;
}

.foot-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(244, 241, 234, .18);
}
.foot-name {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFF6E2;
  letter-spacing: .06em;
}
.foot-slogan {
  margin: 0;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--yellow);
}
.foot-contact p { margin: 0 0 8px; font-size: .9rem; }
.foot-contact span {
  display: inline-block;
  min-width: 5em;
  font-weight: 400;
  color: rgba(244, 241, 234, .6);
}
.foot-tel {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
}
.foot-tel:hover { color: #FFF6E2; }

.foot-license {
  padding: 26px 0;
  border-bottom: 1px solid rgba(244, 241, 234, .18);
}
.foot-license p {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 400;
  color: rgba(244, 241, 234, .72);
}
.foot-license p:last-child { margin-bottom: 0; }
.foot-license span {
  display: inline-block;
  min-width: 5em;
  margin-right: 12px;
  font-weight: 700;
  color: var(--yellow);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .82rem;
  font-weight: 400;
  color: rgba(244, 241, 234, .6);
}
.foot-bottom p { margin: 0; }
.foot-bottom nav { display: flex; gap: 24px; }
.foot-bottom nav a:hover { color: var(--yellow); }

/* ---------- 17.5 栅格列容器（防止长文本撑破 grid） ---------- */
.hero-body,
.timeline-col,
.contact-info-col { min-width: 0; }
.foot-brand { margin-right: auto; }

/* ---------- 18. 滚动淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .steps li::before { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .data-board { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { max-width: 380px; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-side { flex-direction: row; flex-wrap: wrap; }
  .promise { flex: 1 1 100%; }
  .side-shot { flex: 1 1 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-bar { grid-template-columns: 1fr; }
  .hero-bar li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-bar li:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { font-size: 20px; scroll-padding-top: 74px; }

  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .header-inner { height: 68px; }
  .hero { padding: 104px 0 0; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-height: 60px; }

  .svc-grid { grid-template-columns: 1fr; }
  .case-body dl { grid-template-columns: 1fr; padding: 20px; }
  .case-body div { flex-direction: column; gap: 4px; }
  .case-body dt { min-width: 0; }

  .cred-list li { flex-direction: column; gap: 4px; }
  .contact-info li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qr-block { flex-direction: column; align-items: flex-start; }

  .guide-list li { flex-direction: column; gap: 2px; }
  .guide-list b { text-align: left; }

  .case-head { padding: 20px 0 20px 12px; gap: 12px; }
  .case-brief b { font-size: 1.05rem; }

  .data-board > div { padding: 24px 18px; }
}

@media (max-width: 420px) {
  .timeline { padding-left: 26px; }
  .tl-node { left: -35px; width: 14px; height: 14px; }
  .hero-titles li { flex: 1 1 auto; text-align: center; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- 20. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
