@charset "UTF-8";
/* ==========================================================================
   天台余家口腔门诊部 · 官网样式表
   品牌色取自门诊 logo 青绿 #009890 | 移动端优先 | 纯静态无依赖
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色（源自品牌 logo） */
  --brand:        #009890;
  --brand-600:    #00827C;
  --brand-700:    #006B66;
  --brand-800:    #00524E;
  --brand-100:    #E6F6F5;
  --brand-50:     #F2FBFA;
  --brand-ring:   rgba(0, 152, 144, .28);

  /* 中性色 */
  --ink:          #10201E;
  --ink-2:        #344D4A;
  --ink-3:        #5C7572;
  --ink-4:        #8A9E9B;
  --line:         #DEEAE8;
  --line-2:       #EDF4F3;
  --surface:      #FFFFFF;
  --surface-2:    #F7FBFA;
  --surface-3:    #EFF7F6;

  /* 语义色 */
  --warm:         #C97A2B;   /* 提示 / 强调（非红非绿，避免医疗误读） */
  --warm-bg:      #FDF3E7;
  --ok:           #2E7D5B;
  --ok-bg:        #EAF6F0;

  /* 圆角与阴影 */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 32, 30, .05), 0 2px 8px rgba(16, 32, 30, .04);
  --sh-2: 0 2px 6px rgba(16, 32, 30, .06), 0 12px 28px rgba(16, 32, 30, .07);
  --sh-3: 0 4px 12px rgba(0, 82, 78, .10), 0 24px 48px rgba(16, 32, 30, .10);

  /* 排版 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Source Han Sans SC", sans-serif;
  --font-num: "SF Pro Display", -apple-system, "Helvetica Neue", "PingFang SC", sans-serif;

  --maxw: 1180px;
  --gap: clamp(16px, 4vw, 28px);
  --sec-y: clamp(48px, 8vw, 88px);

  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* 内联图标：默认按字号缩放（图表 SVG 带 role=img 不受影响，由 .chart svg 覆盖） */
svg[aria-hidden="true"] {
  width: 1.12em; height: 1.12em; flex: 0 0 auto;
  display: inline-block; vertical-align: -0.14em;
}
.btn svg[aria-hidden="true"] { width: 17px; height: 17px; vertical-align: -0.2em; }
.tag svg[aria-hidden="true"] { width: 13px; height: 13px; vertical-align: -0.16em; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(27px, 6.2vw, 44px); line-height: 1.24; }
h2 { font-size: clamp(23px, 4.6vw, 33px); }
h3 { font-size: clamp(18px, 3vw, 22px); }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: .35em 0; }
strong { color: var(--ink); font-weight: 600; }

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

/* ---------- 3. 布局工具 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.sec { padding-block: var(--sec-y); }
.sec--tint { background: var(--surface-2); }
.sec--brand { background: linear-gradient(165deg, var(--brand-700), var(--brand-800)); color: #D9F2EF; }
.sec--brand h2, .sec--brand h3, .sec--brand strong { color: #fff; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-700); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  color: var(--brand-700); text-transform: uppercase;
  background: var(--brand-100); border-radius: var(--r-pill);
  padding: 6px 14px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.lead { font-size: clamp(15px, 2.4vw, 17px); color: var(--ink-3); max-width: 62ch; }
.sec-head { max-width: 68ch; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head.center { margin-inline: auto; }
.sec--brand .lead { color: #A8DEDA; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 152, 144, .26); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 8px 24px rgba(0, 152, 144, .34); }
.btn--ghost { background: #fff; color: var(--brand-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn--white { background: #fff; color: var(--brand-700); }
.btn--white:hover { color: var(--brand-800); box-shadow: var(--sh-2); }
.btn--sm { padding: 10px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. 站头 ---------- */
.head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(16, 32, 30, .06); }
.head__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.head__logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.head__logo img { height: 34px; width: auto; }
.head__logo-txt { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 9px 13px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.nav__list a:hover { background: var(--brand-100); color: var(--brand-700); }
.nav__list a[aria-current="page"] { color: var(--brand-700); font-weight: 600; background: var(--brand-100); }
.head__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.head__tel {
  display: none; align-items: center; gap: 7px;
  font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--brand-700);
}
.head__tel svg { width: 16px; height: 16px; }

.burger {
  display: none; width: 42px; height: 42px; margin-left: auto;
  align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 26, 24, .45); opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
  background: #fff; padding: 18px 20px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__top img { height: 30px; }
.drawer__x {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer;
}
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a {
  display: block; padding: 13px 12px; font-size: 16px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line-2);
}
.drawer nav a[aria-current="page"] { color: var(--brand-700); font-weight: 700; }
.drawer__foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }

/* ---------- 6. 首屏 ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-800); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 62, 59, .90) 0%, rgba(0, 82, 78, .80) 46%, rgba(0, 62, 59, .92) 100%),
    radial-gradient(120% 90% at 78% 18%, rgba(0, 152, 144, .42), transparent 60%);
}
.hero__in { position: relative; z-index: 1; padding-block: clamp(40px, 9vw, 84px); min-height: min(88dvh, 760px); display: flex; align-items: center; }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 48px); width: 100%; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  color: #EAFBF9; font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  padding: 7px 14px; border-radius: var(--r-pill);
}
.hero h1 { color: #fff; margin-bottom: 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #7FE3DA; }
.hero__sub { color: #C6E9E5; font-size: clamp(15px, 2.6vw, 17.5px); max-width: 46ch; margin-bottom: 22px; }
.hero__depts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero__depts a {
  font-size: 14px; font-weight: 500; color: #EAFBF9; padding: 7px 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26); border-radius: var(--r-pill);
}
.hero__depts a:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.hero__nap { display: grid; gap: 10px; margin-top: 30px; }
.nap {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r); backdrop-filter: blur(8px);
}
.nap svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 3px; color: #7FE3DA; }
.nap b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.nap span { display: block; color: #B8DFDB; font-size: 13.5px; line-height: 1.62; }
.nap a { color: #7FE3DA; }
.nap a:hover { color: #fff; }

.hero__aside {
  background: rgba(255, 255, 255, .96); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-3);
}
.hero__aside h3 { font-size: 17px; margin-bottom: 4px; }
.hero__aside .hint { font-size: 13.5px; color: var(--ink-3); margin-bottom: 16px; }
.stat-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat-mini div { background: var(--brand-50); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 13px; }
.stat-mini b { display: block; font-family: var(--font-num); font-size: 22px; font-weight: 800; color: var(--brand-700); line-height: 1.2; }
.stat-mini span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 7. 数字信任条 ---------- */
.numbers { background: var(--surface); border-bottom: 1px solid var(--line-2); }
.numbers__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2);
}
.num {
  background: #fff; padding: 20px 18px; text-align: center;
}
.num b {
  display: block; font-family: var(--font-num);
  font-size: clamp(25px, 5.2vw, 34px); font-weight: 800; color: var(--brand-700);
  line-height: 1.1; letter-spacing: -.02em;
}
.num b small { font-size: .52em; font-weight: 700; margin-left: 2px; }
.num span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 5px; }

/* ---------- 8. 卡片 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-1);
}
.card--pad-lg { padding: clamp(20px, 3vw, 30px); }
.card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); margin-bottom: 14px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__more { font-size: 14.5px; font-weight: 600; color: var(--brand-700); }
.card__more::after { content: " →"; }

/* 服务项目卡 */
.dept { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.dept__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.dept__img img { width: 100%; height: 100%; object-fit: cover; }
.dept__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.dept__no {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-num); font-size: 12px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255, 255, 255, .94); color: var(--brand-700);
  padding: 5px 11px; border-radius: var(--r-pill);
}
.dept__body h3 { font-size: 19px; margin-bottom: 6px; }
.dept__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tag {
  font-size: 12.5px; font-weight: 500; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.tag--warm { color: var(--warm); background: var(--warm-bg); border-color: #F2DFC4; }
.dept__body p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 14px; }
.dept__foot { margin-top: auto; }

/* 医生卡 */
.doc { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.doc__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(170deg, var(--brand-100), var(--surface-3));
}
.doc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .5s ease; }
.doc:hover .doc__photo img { transform: scale(1.035); }
.doc__store {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(0, 82, 78, .82); padding: 4px 10px; border-radius: var(--r-pill);
}
.doc__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.doc__name { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.doc__name b { font-size: 18.5px; font-weight: 700; color: var(--ink); }
.doc__name i { font-style: normal; font-family: var(--font-num); font-size: 11.5px; color: var(--ink-4); letter-spacing: .06em; }
.doc__title { font-size: 13px; font-weight: 600; color: var(--brand-700); margin-bottom: 10px; }
.doc__spec { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0; }
.doc__spec .tag { font-size: 12px; padding: 3px 9px; }

/* 提示条 */
.note {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r);
  background: var(--brand-50); border: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.note svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: var(--brand); }
.note p:last-child { margin-bottom: 0; }
.note--warm { background: var(--warm-bg); border-color: #F2DFC4; }
.note--warm svg { color: var(--warm); }
.note--ok { background: var(--ok-bg); border-color: #CCE8DA; }
.note--ok svg { color: var(--ok); }
.note b { color: var(--ink); }

/* ---------- 9. 步骤 / 时间轴 ---------- */
.steps { counter-reset: st; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
}
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  font-family: var(--font-num); font-size: 15px; font-weight: 800; color: var(--brand-700);
  background: var(--brand-100); border-radius: 10px; width: 42px; height: 42px;
  display: grid; place-items: center;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

.tl { position: relative; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-100)); }
.tl__i { position: relative; padding-bottom: 24px; }
.tl__i::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.tl__i:last-child { padding-bottom: 0; }
.tl__y { font-family: var(--font-num); font-size: 14px; font-weight: 800; color: var(--brand-700); letter-spacing: .04em; }
.tl__i h3 { font-size: 16.5px; margin: 2px 0 4px; }
.tl__i p { font-size: 14.5px; color: var(--ink-3); margin: 0; }

/* ---------- 10. 表格 ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.tbl caption { text-align: left; padding: 16px 18px 0; font-size: 13.5px; color: var(--ink-3); }
table.tbl th, table.tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.tbl thead th { background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:nth-child(even) { background: #FCFEFE; }
table.tbl td.num-col { font-family: var(--font-num); font-weight: 700; color: var(--brand-700); white-space: nowrap; }

/* 定义表（NAP 等） */
.dl { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.dl__r { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.dl__r:last-child { border-bottom: 0; }
.dl__r dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dl__r dd { margin: 0; font-size: 15px; color: var(--ink); }
@media (min-width: 640px) {
  .dl__r { grid-template-columns: 130px 1fr; gap: 14px; align-items: baseline; }
}

/* ---------- 11. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--sh-1); }
.faq summary {
  cursor: pointer; padding: 16px 48px 16px 18px; position: relative;
  font-size: 15.8px; font-weight: 600; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--brand-700); }
.faq__a { padding: 0 18px 18px; border-top: 1px solid var(--line-2); margin-top: -1px; padding-top: 14px; }
.faq__a p { margin-bottom: .7em; font-size: 15px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a .first { color: var(--ink); font-weight: 600; }

/* ---------- 12. 图片墙 ---------- */
.gallery { display: grid; gap: 12px; align-items: start; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-3); box-shadow: var(--sh-1); }
/* 按图片真实比例展示，不裁切——环境照含资质/公示文字，裁切会丢失可核验信息 */
.gallery img { width: 100%; height: auto; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--ink-3); background: #fff; }

/* ---------- 13. CTA 条 ---------- */
.cta {
  background: linear-gradient(150deg, var(--brand), var(--brand-700) 60%, var(--brand-800));
  border-radius: var(--r-xl); padding: clamp(26px, 5vw, 46px);
  color: #DFF6F4; display: grid; gap: 22px; box-shadow: var(--sh-3);
}
.cta h2 { color: #fff; font-size: clamp(21px, 4vw, 29px); margin-bottom: 10px; }
.cta p { color: #B6E4E0; margin-bottom: 0; }
.cta .btn-row { align-self: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.6fr 1fr; align-items: center; } }

/* ---------- 14. 浮动联系条（移动端） ---------- */
.fab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 16px rgba(16, 32, 30, .08);
}
.fab a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line-2);
}
.fab a:last-child { border-right: 0; }
.fab a svg { width: 20px; height: 20px; color: var(--brand); }
.fab a.is-main { color: #fff; background: var(--brand); }
.fab a.is-main svg { color: #fff; }
body.has-fab { padding-bottom: 62px; }

/* ---------- 15. 页脚 ---------- */
.foot { background: #0B1A19; color: #93AAA7; padding-block: clamp(38px, 6vw, 62px) 0; font-size: 14px; }
.foot a { color: #C6DAD8; }
.foot a:hover { color: #7FE3DA; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 12px; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: .5em 0; }
.foot__logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 14px; }
.foot__nap { display: grid; gap: 10px; }
.foot__nap div { display: flex; gap: 9px; align-items: flex-start; }
.foot__nap svg { width: 16px; height: 16px; margin-top: 4px; flex: 0 0 auto; color: var(--brand); }
.foot__nap b { color: #E4F1EF; font-weight: 600; display: block; font-size: 14px; }
.foot__bottom {
  margin-top: clamp(28px, 5vw, 44px); padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.8px; color: #6C8582; line-height: 1.9;
}
.foot__bottom p { margin: 0 0 .5em; }
.foot__disclaimer { max-width: 90ch; }
.foot__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: #5C7573; }

/* ---------- 16. 页头（内页） ---------- */
.phead { background: var(--surface-2); border-bottom: 1px solid var(--line-2); padding-block: clamp(26px, 5vw, 48px); }
.phead h1 { margin-bottom: 10px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand-700); }
.crumb span::before { content: "/"; margin-right: 6px; color: var(--ink-4); }

/* ---------- 17. 医生详情页 ---------- */
.doc-hero { display: grid; gap: clamp(22px, 4vw, 40px); align-items: start; }
@media (min-width: 820px) { .doc-hero { grid-template-columns: minmax(260px, 360px) 1fr; } }
.doc-hero__photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: var(--surface-3); }
.doc-hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 10%; }
.doc-hero__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.doc-hero__name h1 { margin: 0; }
.doc-hero__en { font-family: var(--font-num); font-size: 13px; letter-spacing: .1em; color: var(--ink-4); }
.doc-hero__title { font-size: 15.5px; font-weight: 700; color: var(--brand-700); margin-bottom: 14px; }
.cred { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.cred li { display: flex; gap: 10px; font-size: 14.8px; color: var(--ink-2); margin: 0; }
.cred li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--brand); }
.skill-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.skill-list li {
  display: flex; gap: 11px; align-items: flex-start; margin: 0;
  background: var(--brand-50); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px;
  font-size: 14.8px; color: var(--ink);
}
.skill-list li::before {
  content: ""; flex: 0 0 auto; width: 17px; height: 17px; margin-top: 4px;
  background: var(--brand) center/11px no-repeat;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 18. 视频 / 病例 ---------- */
.video-box { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0B1A19; box-shadow: var(--sh-2); }
/* 按视频原始比例展示，不裁切：横版满宽，竖版居中并限制在视口高度内 */
.video-box video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #0B1A19; }
/* 竖版（9:16）视频：容器仅包裹视频本体，避免两侧出现大片黑边 */
.video-box--v { background: transparent; box-shadow: none; display: flex; justify-content: center; }
.video-box--v video { width: auto; max-width: min(100%, 45vh); aspect-ratio: 9 / 16; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.video-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.case__head { padding: 18px 20px 0; }
.case__head h3 { font-size: 17.5px; margin-bottom: 6px; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.case__body { padding: 0 20px 20px; }
.case__imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 760px) { .case__imgs { grid-template-columns: repeat(3, 1fr); } }
.case__imgs figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.case__imgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.case__imgs figcaption { font-size: 12px; color: var(--ink-3); padding: 6px 9px; background: var(--surface-2); }

/* ---------- 19. 图表（内联 SVG 容器） ---------- */
.chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh-1); }
.chart h3 { font-size: 16.5px; margin-bottom: 4px; }
.chart__hint { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__foot { font-size: 12.5px; color: var(--ink-4); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- 20. 门店卡 ---------- */
.store { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.store__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.store__img img { width: 100%; height: 100%; object-fit: cover; }
.store__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.store__body h3 { font-size: 19px; margin-bottom: 2px; }
.store__badge { font-size: 12.5px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px 10px; display: inline-block; margin-bottom: 12px; }
.store__facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.store__facts li { display: flex; gap: 10px; font-size: 14.5px; margin: 0; }
.store__facts svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 4px; color: var(--brand); }
.store__qr { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.store__qr img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.store__qr div { font-size: 13px; color: var(--ink-3); }
.store__qr b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }

/* ---------- 21. 表单 ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--warm); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.field .err { font-size: 12.8px; color: #B4553F; min-height: 0; }
.field.is-bad input, .field.is-bad select { border-color: #D98B79; }
.form__ok {
  display: none; gap: 12px; padding: 16px 18px; border-radius: var(--r);
  background: var(--ok-bg); border: 1px solid #CCE8DA; color: #21604A; font-size: 14.5px;
}
.form__ok.is-show { display: flex; }
.form__ok svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; }
@media (min-width: 700px) { .form--2col { grid-template-columns: 1fr 1fr; } .form--2col .span2 { grid-column: 1 / -1; } }

/* ---------- 22. 杂项 ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.kv b { font-family: var(--font-num); color: var(--brand-700); font-size: 17px; min-width: 2.2em; }

.quote { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--ink-2); font-size: 15.5px; margin: 0 0 1em; }

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

.anchor-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.anchor-nav a {
  flex: 0 0 auto; font-size: 14px; font-weight: 500; padding: 8px 15px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand-700); }

/* ---------- 23. 响应式 ---------- */
@media (max-width: 1080px) {
  .head__tel { display: none; }
}
@media (min-width: 1081px) {
  .head__tel { display: flex; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .head__cta .btn { display: none; }
}
@media (min-width: 961px) {
  .drawer { display: none; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr .85fr; align-items: center; }
  .hero__nap { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 620px) {
  .numbers__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .numbers__grid { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 961px) {
  body.has-fab { padding-bottom: 0; }
  .fab { display: none; }
}

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

@media print {
  .head, .fab, .drawer, .cta { display: none; }
  body { color: #000; }
}

/* ===== 服务页 · 相关医师卡（医生 IP 关联） ===== */
.svc-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 26px; }
.svc-docs__label { font-size: 13px; font-weight: 700; color: #006B66; letter-spacing: .08em; }
.svc-doc { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: #fff;
  border: 1px solid #D8E8E6; border-radius: 999px; text-decoration: none; transition: box-shadow .18s, border-color .18s; }
.svc-doc:hover { border-color: #009890; box-shadow: 0 4px 14px rgba(0,152,144,.14); }
.svc-doc img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.svc-doc__body { display: flex; flex-direction: column; line-height: 1.3; }
.svc-doc__body b { font-size: 14px; color: #17332F; }
.svc-doc__body i { font-style: normal; font-size: 12px; color: #5C7572; }
.svc-doc__body em { font-style: normal; font-size: 11.5px; color: #009890; }
