/* ==========================================================================
   医疗（口腔）行业官网样板 01 · 康宁口腔 ·【版式骨架 E：服务预约型】
   与其他样板的区别（不是换色）：
     · 样板条下多一条细信息条（周末接诊 / 预约电话）
     · 首屏左边就是「预约表单」，右边是门诊环境图 —— 首屏即留资，不用大标题压图
     · 诊疗项目用「价目表」而不是卡片网格（窄屏容器内横滑）
     · 医生团队是纯文字卡片，头像位用几何色块 + 姓氏字，不用真人照片
     · 就诊流程是横向时间轴（圆点 + 连线），窄屏转纵向
     · 常见问题用原生 details/summary 手风琴，零 JS
     · 结尾是浅色信息块（不是深色 CTA）
   自包含样式表：零依赖、零构建；不引用任何外部资源、外部字体或外链背景图
   配色：青蓝 #0891B2 / 白 #FFFFFF / 浅灰 #F1F5F9 / 深墨 #0F2A33
   ========================================================================== */

:root {
  --brand:      #0891B2;
  --brand-dark: #0E7490;
  --brand-deep: #0F2A33;
  --ink:        #0F2A33;
  --ink-soft:   #52707A;
  --paper:      #FFFFFF;
  --mist:       #F1F5F9;
  --tint:       #E6F4F8;
  --line:       #E2E8F0;
  --line-soft:  #EDF2F6;

  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 12px 30px -18px rgba(15, 42, 51, 0.32);
  --shadow:     0 30px 60px -34px rgba(15, 42, 51, 0.4);
  --container:  1180px;
  --gutter:     22px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: 1.0625rem; font-weight: 500; }
p  { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brand-dark);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-1px); }

/* 样板提示条（交付时删除） */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 9px 20px;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  text-align: center;
}
.demo-tag {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
}

/* ============================ 细信息条 ============================ */
.info-bar {
  background: var(--brand);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.info-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 18px;
  min-height: 36px;
  padding-block: 5px;
}
.info-item { letter-spacing: 0.02em; }
.info-item a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}
.info-item a:hover { border-bottom-color: #fff; }

/* ============================ 顶部导航 ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  color: var(--brand);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }
.brand-text small { font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--ink-soft); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  position: relative;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-list a:hover { color: var(--brand-dark); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }

/* 汉堡开关：用 :target 而非 checkbox —— 点菜单项后 URL 片段一变，菜单就自动收起，
   不会像 checkbox 那样一直盖在内容上（手机端点「诊疗项目」看不到内容就是这个原因） */
.nav-toggle-label { display: none; }
.nav-close, .nav-backdrop { display: none; }

/* ============================ 首屏：左表单 / 右环境图 ============================ */
.hero {
  background: linear-gradient(180deg, #F5FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(30px, 4vw, 52px) 0 clamp(34px, 4.5vw, 58px);
}
.hero-grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.hero h1 { margin-bottom: 12px; }
.hero-lead {
  max-width: 32em;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* 预约表单卡片 */
.book-form {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.field { margin-bottom: 14px; }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--ink);
}
.field-opt { color: var(--ink-soft); font-size: 0.8125rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFDFE;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #CBD8E0; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder,
.field textarea::placeholder { color: #9DB1BB; }

.book-submit { width: 100%; margin-top: 2px; }
.book-tip {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 提交后（#booked 的 :target）——纯静态，无 JS */
.booked {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #B7E2EC;
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--brand-deep);
  font-size: 0.9375rem;
  scroll-margin-top: 120px;
}
.booked:target { display: block; }

/* 首屏环境图 */
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 42, 51, 0.72);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.hero-thumbs {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
}
.hero-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.hero-thumbs figcaption {
  margin-top: 7px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ============================ 通用小节 ============================ */
.section { padding: clamp(52px, 7vw, 96px) 0; scroll-margin-top: 96px; }
.section-head { max-width: 740px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.section-lead { color: var(--ink-soft); font-size: 0.9375rem; }

/* ============================ 诊疗项目 · 价目表 ============================ */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
.price-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}
.price-table caption { text-align: left; }
.price-table th,
.price-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.price-table tbody th {
  width: 22%;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.price-table tbody td { color: var(--ink-soft); }
.price-table tbody td:nth-child(2) { width: 40%; }
.price-table td.price {
  width: 16%;
  color: var(--brand-dark);
  font-weight: 600;
  white-space: nowrap;
}
.price-table td.price-quote { font-weight: 500; }
.price-table tbody td:last-child { white-space: nowrap; }
.price-table tbody tr:hover th,
.price-table tbody tr:hover td { background: #FAFCFD; }
.table-hint {
  display: none;
  margin: 10px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
}
.table-note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ============================ 医生团队 · 文字卡片 ============================ */
.section-team { background: var(--mist); border-block: 1px solid var(--line); }
.team-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}
.doctor {
  padding: 24px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.doctor-avatar {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0;
}
/* 头像位：纯色几何色块 + 姓氏字，不使用真人照片 */
.tone-1 { background: var(--brand); color: #fff; border-radius: 50%; }
.tone-2 { background: var(--tint); color: var(--brand-dark); border-radius: 16px; }
.tone-3 { background: var(--brand-deep); color: #fff; border-radius: 50% 50% 4px 50%; }
.tone-4 { background: #D8EEF4; color: var(--brand-deep); border-radius: 50% 4px 50% 50%; }
.doctor-name { margin: 0 0 2px; font-size: 1.125rem; }
.doctor-role {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}
.doctor-meta { display: grid; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.doctor-meta div { display: grid; gap: 2px; }
.doctor-meta dt { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.doctor-meta dd { font-size: 0.9375rem; color: var(--ink); }

/* ============================ 就诊流程 · 横向时间轴 ============================ */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.step {
  position: relative;
  padding: 0 0 26px 46px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  top: 6px; left: 0;
  width: 15px; height: 15px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px; left: 9px;
  width: 1px;
  height: calc(100% - 12px);
  background: var(--line);
}
.step-num {
  position: absolute;
  top: 4px; left: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--brand);
}
.step h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.step p { color: var(--ink-soft); font-size: 0.9375rem; }

/* ============================ 常见问题 · 原生手风琴 ============================ */
.section-faq { background: var(--mist); border-top: 1px solid var(--line); }
.faq-grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 54px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.faq-list { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 16px 44px 16px 0;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-dark); }
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%; right: 6px;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item[open] summary { color: var(--brand-dark); }
.faq-item p {
  margin: 0 0 18px;
  padding-right: 34px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.faq-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.faq-media figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ============================ 结尾 · 浅色到院信息块 ============================ */
.ending {
  background: var(--tint);
  border-top: 1px solid #D2E9F0;
  padding: clamp(44px, 6vw, 80px) 0;
  scroll-margin-top: 96px;
}
.ending-grid {
  display: grid;
  gap: clamp(26px, 3.6vw, 54px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.ending-info h2 { margin-bottom: 18px; }
.ending-list { display: grid; gap: 14px; }
.ending-list div {
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 42, 51, 0.1);
}
.ending-list dt { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.ending-list dd { font-size: 1.0625rem; color: var(--ink); }
.ending-list a { border-bottom: 1px solid rgba(8, 145, 178, 0.45); }
.ending-list a:hover { color: var(--brand-dark); border-bottom-color: var(--brand-dark); }
.ending-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.ending-actions .btn-ghost { border-color: rgba(15, 42, 51, 0.22); background: rgba(255, 255, 255, 0.6); }
.ending-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============================ 页脚 · 三栏 ============================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(38px, 5.5vw, 64px) 0 24px;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
}
.footer-about .brand-mark { width: 34px; height: 34px; margin-bottom: 10px; }
.footer-col h3 { margin: 0 0 14px; font-size: 0.9375rem; letter-spacing: 0.06em; }
.footer-name { margin: 0 0 6px; font-size: 1rem; letter-spacing: 0.05em; }
.footer-desc { margin: 0; font-size: 0.875rem; color: var(--ink-soft); max-width: 30em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col li, .footer-col a { font-size: 0.9375rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--brand-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }

/* ============================ 响应式 ============================ */

/* 平板：价目表退化为两列宽表；流程轴仍纵向 */
@media (min-width: 621px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ending-list div { grid-template-columns: 6.5em minmax(0, 1fr); align-items: baseline; gap: 12px; }
}

/* 桌面：首屏两栏（左表单 / 右环境图），流程轴转横向 */
@media (min-width: 861px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .ending-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }

  /* 横向时间轴：圆点居中、连线穿过每一列 */
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step { padding: 46px 22px 0 0; }
  .step::before { top: 8px; left: 0; }
  .step:not(:last-child)::after {
    top: 16px; left: 23px;
    width: auto; height: 1px;
    right: 6px;
  }
  .step-num { top: 6px; left: 28px; }
}

/* 手机 / 窄平板：汉堡菜单 */
@media (max-width: 860px) {
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-right: -8px;
    cursor: pointer;
    border-radius: var(--radius);
  }
  .nav-toggle-label:hover { background: var(--mist); }
  .nav-toggle-bar {
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle-label:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  /* 菜单展开时汉堡变叉（:has() 渐进增强，不支持也不影响功能） */
  .header-inner:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .header-inner:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .header-inner:has(#nav:target) .nav-toggle-label .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* 展开时铺一层透明遮罩，点空白处即可收起 */
  body:has(#nav:target) .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5;
  }
  /* 面板内显式的「收起菜单」，任何时候都能关掉 */
  #nav:target .nav-close {
    display: block;
    margin: 10px 0 2px;
    padding: 6px 2px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: right;
  }
  #nav:target .nav-close:hover { color: var(--brand-dark); }

  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: block;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: max-height 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  #nav:target { max-height: 76vh; overflow-y: auto; visibility: visible; z-index: 6; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 15px 2px; font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-cta { width: 100%; min-height: 48px; margin: 14px 0 20px; }

  .ending-media { order: -1; }

  /* 手机端点菜单项用瞬时跳转：平滑动画会被「菜单收起」打断，
     导致看起来"点了没反应、看不到内容" */
  html { scroll-behavior: auto; }

}

/* 手机：全部单列 + 按钮满宽 */
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .demo-bar { font-size: 0.75rem; }
  .info-bar-inner { justify-content: flex-start; }
  .hero-grid,
  .field-row,
  .hero-thumbs,
  .team-grid,
  .faq-grid,
  .ending-grid,
  .footer-grid,
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .ending-list div { grid-template-columns: minmax(0, 1fr); }
  .book-submit,
  .ending-actions .btn { width: 100%; }
  .ending-actions { gap: 12px; }
  .price-table { min-width: 620px; font-size: 0.9375rem; }
  .price-table th,
  .price-table td { padding: 13px 14px; }
  .table-hint { display: block; margin-top: 10px; }
  .table-note { margin-top: 6px; }
  .faq-item p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   内页样式（service.html 专用）· 版式骨架 E（服务预约型）· 内页
   仅补充内页新增的类，复用上方已有的按钮 / 表单 / 价目表 / 手风琴 / 页脚等规则；
   配色、圆角、间距体系与首页完全一致，不改动上方任何原有规则。
   自包含：不引用任何外链资源与外部字体，交互仅用纯 CSS。
   ========================================================================== */

/* ---------------------------- 导航当前项 ---------------------------- */
.nav-list a[aria-current="page"] { color: var(--brand-dark); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------------------------- 首页价目表下的详情入口 ---------------------------- */
.table-more { margin: 12px 0 0; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 1px;
  font-size: 0.9375rem;
  color: var(--brand-dark);
  border-bottom: 1px solid rgba(8, 145, 178, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-more:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }

/* ---------------------------- 面包屑 ---------------------------- */
.breadcrumb {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8125rem;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 0;
  color: var(--ink-soft);
}
.breadcrumb-list li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb-list li + li::before { content: "/"; margin: 0 9px; color: #B6C6CF; }
.breadcrumb-list a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.breadcrumb-list a:hover { color: var(--brand-dark); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); }

/* ---------------------------- 项目页头：左文右图 ---------------------------- */
.page-head {
  background: linear-gradient(180deg, #F5FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(26px, 3.4vw, 46px) 0 clamp(34px, 4.4vw, 58px);
}
.page-head-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 48px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.page-head h1 { margin-bottom: 12px; }
.page-lead {
  max-width: 34em;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* 3 条要点：行间长细线 */
.points { display: grid; border-top: 1px solid var(--line); }
.points li {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.point-label { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--brand-dark); }
.point-text { font-size: 0.9375rem; color: var(--ink); }

.page-head-media {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.page-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.page-figure figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.page-figure-sub img { aspect-ratio: 16 / 9; }

/* ---------------------------- 检查步骤：编号列表 + 行间长细线 ---------------------------- */
.detail-steps { border-top: 1px solid var(--line); }
.detail-step {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.detail-num { font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--brand); }
.detail-body h3 { margin: 0 0 6px; font-size: 1.0625rem; }
.detail-body p { margin: 0; max-width: 52em; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------------------------- 预约到院：表单 + 电话 ---------------------------- */
.book-section { border-top: 1px solid var(--line); }
.book-grid {
  display: grid;
  gap: clamp(24px, 3.4vw, 52px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.book-form--compact { max-width: 640px; }
.book-aside { padding-top: 2px; }
.book-phone {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.book-phone a {
  color: var(--brand-dark);
  border-bottom: 1px solid rgba(8, 145, 178, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.book-phone a:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.book-meta {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.book-meta div { display: grid; gap: 2px; }
.book-meta dt { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.book-meta dd { font-size: 0.9375rem; color: var(--ink); }

/* 内页简短手风琴列表（复用首页 .faq-item 样式，仅去掉左右分栏） */
.faq-list--page { max-width: 880px; }

/* ---------------------------- 内页响应式 ---------------------------- */
@media (min-width: 621px) {
  .points li { grid-template-columns: 7.5em minmax(0, 1fr); align-items: baseline; gap: 12px; }
}

@media (min-width: 861px) {
  .page-head-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
  .book-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .detail-step { grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 24px; padding: 24px 0; }
  .detail-num { padding-top: 4px; }
}

@media (max-width: 620px) {
  .page-head-grid,
  .page-head-media,
  .points li,
  .detail-step,
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-form--compact { padding: 18px; }
  .book-submit { width: 100%; }
  .book-phone { font-size: 1.5rem; }
  .breadcrumb-list { padding: 10px 0; }
  .detail-step { padding: 20px 0; }
}

/* ==========================================================================
   内嵌在「手机仿真预览」框里查看时，隐藏常驻滚动条
   真机本身就没有常驻滚动条；这里只在窄屏（真机 / 仿真框）生效，
   桌面端直接打开样板时滚动条照旧保留，不影响可用性。
   ========================================================================== */
@media (max-width: 620px) {
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }
  body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}
