/* ==========================================================================
   博雅苑口腔 · 企业官网样式
   设计基调：简约、大气、留白充分，主色为深青绿 + 暖沙白
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f4ee;
  --sand: #f8f3ea;
  --bg-deep: #0c2624;
  --ink: #12201e;
  --ink-2: #3a4a47;
  --muted: #6d7a77;
  --line: #e6e3db;
  --line-2: #f0ede6;

  --brand: #0e5c54;
  --brand-600: #0b4a43;
  --brand-dark: #083a34;
  --brand-soft: #e8f1ee;
  --brand-line: #c9ddd7;
  --brand-50: #f2f8f6;

  --blush: #c4577f;
  --blush-50: #fceff4;
  --gold: #c09a57;

  --warn: #b4562f;
  --ok: #1d7a4f;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 2px 8px rgba(14, 32, 30, .05);
  --shadow-md: 0 10px 30px -8px rgba(14, 32, 30, .12), 0 2px 8px rgba(14, 32, 30, .04);
  --shadow-lg: 0 28px 60px -24px rgba(14, 32, 30, .22), 0 8px 20px -12px rgba(14, 32, 30, .08);

  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --serif: "Optima", "Palatino Linotype", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.28; font-weight: 650; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; color: var(--ink-2); }

::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14, 92, 84, .22); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px rgba(14, 92, 84, .28); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header .header-inner {
  display: flex; align-items: center; gap: 32px; height: 76px;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-solid .brand-text strong,
.site-header.is-solid .nav > a { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--brand), #14897d);
  color: #fff; font-size: 1.15rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(14, 92, 84, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .06em; }
.brand-text small { font-size: .64rem; letter-spacing: .28em; opacity: .72; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav > a {
  padding: 9px 15px; border-radius: 999px; font-size: .95rem; font-weight: 500;
  color: var(--ink-2); transition: color .16s ease, background .16s ease;
}
.site-header:not(.is-solid) .nav > a { color: rgba(255, 255, 255, .88); }
.nav > a:hover { color: var(--brand); background: rgba(14, 92, 84, .07); }
.site-header:not(.is-solid) .nav > a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav > a.active { color: var(--brand); background: rgba(14, 92, 84, .1); font-weight: 600; }
.site-header:not(.is-solid) .nav > a.active { color: #fff; background: rgba(255, 255, 255, .2); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.account-link {
  font-size: .92rem; font-weight: 600; padding: 8px 4px;
  border-bottom: 1px dashed transparent; transition: color .16s ease;
}
.site-header:not(.is-solid) .account-link { color: rgba(255, 255, 255, .9); }
.account-link:hover { color: var(--brand); }
.account-link.is-user { display: inline-flex; align-items: center; gap: 8px; }
.account-link .avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.15rem; cursor: pointer;
}
.site-header:not(.is-solid) .nav-toggle { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
    box-shadow: var(--shadow-md); transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: all .2s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a, .site-header:not(.is-solid) .nav > a { color: var(--ink-2); }
  .nav > a.active { color: var(--brand); }
  .nav-toggle { display: grid; place-items: center; }
  .account-link { display: none; }
  .header-actions .btn { padding: 9px 18px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9, 28, 26, .82) 8%, rgba(9, 28, 26, .55) 46%, rgba(9, 28, 26, .18) 78%);
}
.hero-inner { padding: 150px 0 90px; max-width: 660px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); margin-bottom: 22px;
}
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: rgba(255,255,255,.6); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #9fd8cf; }
.hero .lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .85); max-width: 33em; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow-lg);
  margin-top: 62px;
}
.hero-stats .num { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; color: var(--brand); line-height: 1.2; }
.hero-stats .num small { font-size: .8rem; font-weight: 600; margin-left: 2px; }
.hero-stats .label { font-size: .84rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- 页面头部（内页） ---------------- */
.page-hero {
  position: relative; color: #fff; padding: 168px 0 96px; overflow: hidden; isolation: isolate;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9, 28, 26, .78), rgba(9, 28, 26, .5));
}
.page-hero .crumb { font-size: .84rem; letter-spacing: .2em; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, .84); max-width: 42em; margin: 0; }

/* ---------------- 区块 ---------------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 38px; } }

.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 3px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.service-card { display: flex; flex-direction: column; }
.service-card .meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.service-card .price { font-size: .86rem; color: var(--brand); font-weight: 700; }
.service-card .more { font-size: .86rem; color: var(--muted); }
.service-card:hover .more { color: var(--brand); }

.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.quote .stars { color: #d8a03d; letter-spacing: 3px; font-size: .9rem; margin-bottom: 12px; }
.quote p { color: var(--ink-2); font-size: .96rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.quote .who b { font-size: .92rem; }
.quote .who span { display: block; font-size: .8rem; color: var(--muted); }

/* ---------------- 数字 / 里程碑 ---------------- */
.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand-line), transparent);
}
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.timeline li { position: relative; padding-left: 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.timeline .year { font-weight: 700; color: var(--brand); font-size: 1.05rem; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: .88rem; color: var(--ink-2);
}

/* ---------------- 特色学科标识 ---------------- */
.feature-badge {
  display: inline-block; vertical-align: 3px; margin-left: 8px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--brand); border-radius: 999px;
  padding: 3px 10px; line-height: 1.4;
}
@media (max-width: 640px) {
  .feature-badge { display: block; width: max-content; margin: 6px 0 0; }
}

/* ---------------- 服务详情 ---------------- */
.service-detail {
  display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start;
  padding: 38px 0; border-top: 1px solid var(--line);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail .head .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.service-detail .head .icon svg { width: 26px; height: 26px; }
.service-detail .head h3 { font-size: 1.3rem; }
.service-detail .head .price { color: var(--brand); font-weight: 700; font-size: .9rem; }
.service-detail p { color: var(--muted); }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------- 流程 ---------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 1.6rem; font-weight: 700; color: var(--brand-line);
  margin-bottom: 10px; letter-spacing: .04em;
}
.step b { display: block; font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 46px 22px 0; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 60em; }

/* ---------------- 表单 ---------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--warn); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fdfdfc;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 92, 84, .12);
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .8rem; color: var(--warn); margin-top: 6px; min-height: 1.1em; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.otp-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

.notice {
  border-radius: 12px; padding: 12px 16px; font-size: .88rem; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-line);
}
.notice.err { background: #fdf0ea; color: var(--warn); border-color: #f0d6c8; }
.notice.ok { background: #eaf6ef; color: var(--ok); border-color: #cfe8d9; }
.notice[hidden] { display: none; }

/* ---------------- 联系页信息 ---------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.info-list li { display: flex; gap: 16px; }
.info-list .icon {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center;
}
.info-list .icon svg { width: 21px; height: 21px; }
.info-list b { display: block; font-size: .95rem; margin-bottom: 2px; }
.info-list span { color: var(--muted); font-size: .92rem; }

.map-fallback {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #eef4f2, #f8f6f1); min-height: 320px;
  display: grid; place-items: center; text-align: center; padding: 40px;
}
.map-fallback .pin { font-size: 2rem; }
.map-fallback p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 30em; }

/* ---------------- 账户页 ---------------- */
.auth-gate { text-align: center; padding: 60px 30px; }
.auth-gate .icon { width: 62px; height: 62px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 20px; }

.profile-head { display: flex; align-items: center; gap: 18px; }
.profile-head .avatar {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; font-weight: 700;
  display: grid; place-items: center; overflow: hidden;
}
.profile-head b { font-size: 1.1rem; }
.profile-head span { display: block; color: var(--muted); font-size: .86rem; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
table.data td .sub { display: block; font-size: .78rem; color: var(--muted); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pill.pending { background: #fdf3e6; color: #a06a1f; }
.pill.done { background: #eaf6ef; color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; font-size: .92rem; }

.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--warn); }

/* ---------------- 登录页 ---------------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.auth-visual { position: relative; isolation: isolate; overflow: hidden; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(200deg, rgba(9, 28, 26, .25), rgba(9, 28, 26, .72));
}
.auth-visual .caption {
  position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 48px; color: #fff;
}
.auth-visual .caption h2 { color: #fff; font-size: 1.7rem; }
.auth-visual .caption p { color: rgba(255, 255, 255, .82); max-width: 30em; }
.auth-panel { display: grid; place-items: center; padding: 60px 24px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .form-card { padding: 38px 34px; }
.auth-tabs { display: flex; background: #efede8; border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; border: 0; background: none; padding: 10px 0; border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.auth-tabs button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* ---------------- CTA 区 ---------------- */
.cta-band {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: 92px 24px; overflow: hidden; border-radius: var(--radius-lg);
}
.cta-band .hero-bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(9,28,26,.8), rgba(10,68,62,.72)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 36em; margin: 0 auto 30px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, .72); margin-top: 0; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px;
}
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .06em; }
.site-footer .brand-text strong, .site-footer .brand-text small { color: #fff; }
.site-footer p, .site-footer a { font-size: .9rem; color: rgba(255, 255, 255, .66); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  font-size: .8rem; color: rgba(255, 255, 255, .45);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------------- 交互细节 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: var(--bg-deep); color: #fff; padding: 13px 24px; border-radius: 999px;
  font-size: .92rem; box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events: none; transition: all .28s ease; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #7c2f14; }
.toast.ok { background: var(--brand-dark); }

.spin {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   门店卡片 / 管理后台
   ========================================================================== */
.store-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.store-card + .store-card { margin-top: 16px; }
.store-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.store-card-head b { font-size: 1.05rem; }
.store-card .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 2px 10px;
}
.store-card dl { margin: 0; display: grid; gap: 8px; }
.store-card dl > div { display: grid; grid-template-columns: 46px 1fr; gap: 12px; }
.store-card dt { color: var(--muted); font-size: .86rem; }
.store-card dd { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---- 管理后台 ---- */
.admin-body { background: var(--bg-soft); }
.admin-main { padding: 112px 0 80px; min-height: 100vh; }
.admin-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.admin-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; width: fit-content; }
.admin-tabs button {
  border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 600;
  color: var(--muted); padding: 9px 22px; border-radius: 999px; cursor: pointer;
}
.admin-tabs button.on { background: var(--brand); color: #fff; }
.admin-panel[hidden] { display: none; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.admin-card + .admin-card { margin-top: 22px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-toolbar .count { font-size: .86rem; color: var(--muted); }
.admin-card table.data td { white-space: normal; vertical-align: top; }
.admin-card table.data td.wrap { min-width: 180px; max-width: 320px; }
.admin-card select.mini, .admin-card input.mini {
  width: 100%; min-width: 96px; padding: 8px 10px; font: inherit; font-size: .86rem;
  border: 1px solid var(--line); border-radius: 9px; background: #fdfdfc; color: var(--ink);
}
.admin-card select.mini:focus, .admin-card input.mini:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 92, 84, .1);
}
.admin-card .row-actions { display: flex; gap: 12px; align-items: center; }
.admin-note { font-size: .8rem; color: var(--muted); }
.admin-uid {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 14px; word-break: break-all; margin: 12px 0;
}
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.chk input { width: 16px; height: 16px; accent-color: var(--brand); }

/* ==========================================================================
   页面内容编辑模式（?edit=1）
   ========================================================================== */
.cms-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #0b3b35; color: #fff; padding: 12px 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .22);
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.cms-bar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cms-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d7a7;
  box-shadow: 0 0 0 3px rgba(52, 215, 167, .25);
}
.cms-bar b { font-size: .95rem; }
.cms-tip { color: rgba(255, 255, 255, .68); font-size: .84rem; }
.cms-count { margin-left: auto; color: rgba(255, 255, 255, .88); font-size: .84rem; }
.cms-btn {
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: .86rem;
  cursor: pointer; transition: opacity .16s ease;
}
.cms-btn:hover { opacity: .86; }
.cms-btn.primary { background: #34d7a7; border-color: #34d7a7; color: #06332c; font-weight: 700; }
.cms-btn[disabled] { opacity: .6; cursor: default; }

.is-cms-edit { padding-bottom: 92px; }
.is-cms-edit .toast { bottom: 104px; z-index: 9600; }
.is-cms-edit [contenteditable="true"] {
  outline: 1px dashed rgba(14, 92, 84, .42); outline-offset: 3px;
  border-radius: 2px; cursor: text; transition: background .12s ease;
}
.is-cms-edit [contenteditable="true"]:hover { background: rgba(14, 92, 84, .07); }
.is-cms-edit [contenteditable="true"]:focus {
  outline: 2px solid var(--brand); background: rgba(14, 92, 84, .06);
}
.is-cms-edit img.cms-img {
  cursor: pointer; outline: 2px dashed rgba(255, 255, 255, .8); outline-offset: -4px;
}
.is-cms-edit img.cms-img:hover { filter: brightness(.9); }

/* ==========================================================================
   2.0 视觉升级 · 新增组件
   参考成熟口腔专科官网的信息密度与节奏：更明确的层级、更克制的动效
   ========================================================================== */

/* ---------- 基础补充 ---------- */
.ico { width: 19px; height: 19px; flex: none; }
.btn .ico { width: 17px; height: 17px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-onDark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-onDark:hover { background: rgba(255, 255, 255, .2); }

h1, h2, h3, h4 { letter-spacing: .01em; }
.h-hero { font-size: clamp(2.15rem, 4.3vw, 3.45rem); line-height: 1.2; font-weight: 700; margin-bottom: 22px; }
.h-hero .hl { color: var(--brand); }
.h-xl { font-size: clamp(1.7rem, 2.9vw, 2.35rem); line-height: 1.32; }
.lead { font-size: clamp(1rem, 1.15vw, 1.06rem); color: var(--muted); line-height: 1.9; }
.tiny { font-size: .78rem; }
.small { font-size: .86rem; }
.muted { color: var(--muted); }
.mt-s { margin-top: 10px; }
.tc { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.section.dark .eyebrow, .sect-dark .eyebrow { color: #86cdbd; }

.section { padding: 104px 0; }
.section.sand { background: var(--sand); }
.section.mist { background: var(--brand-50); }
.section.dark { background: var(--bg-deep); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: rgba(255, 255, 255, .72); }
.section-head { max-width: 740px; margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-head h2 { margin-bottom: 14px; }

.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ---------- 顶栏补充 ---------- */
.header-inner { gap: 22px; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.nav-tel .ico { width: 16px; height: 16px; color: var(--brand); }
.site-header:not(.is-solid) .nav-tel { color: rgba(255, 255, 255, .9); }
.site-header:not(.is-solid) .nav-tel .ico { color: rgba(255, 255, 255, .8); }
.nav-tel:hover { color: var(--brand); }
@media (max-width: 1120px) { .nav-tel { display: none; } }
@media (max-width: 900px) { .nav > a { padding: 12px 16px; font-size: 1rem; } }

/* ---------- 首页首屏 ---------- */
.hero-home {
  position: relative; overflow: hidden; color: var(--ink);
  padding: 138px 0 86px;
  background:
    radial-gradient(900px 460px at 82% -6%, #e9f4f1 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #f8f3ea 0%, #ffffff 76%);
}
.hero-home::after {
  content: ""; position: absolute; left: -120px; bottom: -160px;
  width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(196, 87, 127, .12), transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.hero-copy .lead { max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px;
}
.hero-trust li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.hero-trust .ico { width: 17px; height: 17px; color: var(--brand); margin-top: 3px; }

.hero-visual { position: relative; }
.hero-shot {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1.02; background: var(--brand-soft);
}
.hero-shot > img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-md);
}
.hero-badge .ico { color: var(--brand); margin-top: 2px; }
.hero-badge b { display: block; font-size: .86rem; line-height: 1.5; }
.hero-badge span { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line-2);
}
.hero-chip-1 { left: -22px; top: 42px; }
.hero-chip-2 { right: -18px; bottom: 120px; flex-direction: column; gap: 2px; align-items: flex-start; }
.hero-chip .big { font-size: 1.16rem; font-weight: 700; color: var(--brand); line-height: 1.2; }
.hero-chip .lbl { font-size: .74rem; color: var(--muted); }
.hero-chip .ic-round {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--blush-50); color: var(--blush); display: grid; place-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 560px; }
  .hero-home { padding: 116px 0 70px; }
  .hero-chip-1 { left: 8px; }
  .hero-chip-2 { right: 8px; }
}
@media (max-width: 560px) {
  .hero-trust { grid-template-columns: 1fr; }
  .hero-chip { display: none; }
}

/* ---------- 资质滚动条 ---------- */
.marquee { background: var(--bg-deep); overflow: hidden; padding: 15px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 52s linear infinite; }
.marquee-track span {
  position: relative; padding: 0 30px; white-space: nowrap;
  font-size: .82rem; letter-spacing: .06em; color: rgba(255, 255, 255, .62);
}
.marquee-track span::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: rgba(255, 255, 255, .28); transform: translateY(-50%);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: 32px 24px; text-align: center; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: clamp(1.75rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .85rem; font-weight: 600; margin-left: 3px; }
.stat .lbl { font-size: .84rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

/* ---------- 诊疗项目卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }
.cat {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), #3fae97);
  opacity: 0; transition: opacity .25s ease;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.cat:hover::before { opacity: 1; }
.cat-idx { position: absolute; right: 24px; top: 24px; font-size: .76rem; letter-spacing: .14em; color: var(--ink-4, #a9b6b3); }
.cat-ico { width: 54px; height: 54px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.cat-ico .ico { width: 26px; height: 26px; }
.cat h3 { font-size: 1.2rem; margin-bottom: 3px; }
.cat-en { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 13px; }
.cat p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: .75rem; color: var(--brand); background: var(--brand-50);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 3px 11px;
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .86rem; font-weight: 600; color: var(--brand); }
.link-arrow .ico { width: 15px; height: 15px; transition: transform .2s ease; }
.cat:hover .link-arrow .ico { transform: translateX(4px); }

.cat.is-featured { background: linear-gradient(165deg, #fff 38%, var(--blush-50)); border-color: #f0dae4; }
.cat.is-featured .cat-ico { background: var(--blush-50); color: var(--blush); }
.cat.is-featured::before { background: linear-gradient(90deg, var(--blush), #e08aab); }
.cat.is-featured .tag { color: var(--blush); background: #fff; border-color: #f2dae4; }

/* ---------- 三分特色大图卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative; display: flex; align-items: flex-end; min-height: 420px;
  border-radius: var(--radius-lg); overflow: hidden; background: #142320; color: #fff;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 30, 28, .02) 26%, rgba(8, 30, 28, .88) 100%); }
.feature > div { position: relative; z-index: 2; padding: 28px 26px; }
.feature:hover img { transform: scale(1.045); }
.fnum { display: block; font-size: .72rem; letter-spacing: .2em; color: rgba(255, 255, 255, .68); margin-bottom: 12px; }
.feature .tag { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.feature h3 { color: #fff; font-size: 1.28rem; margin: 14px 0 8px; line-height: 1.4; }
.feature p { color: rgba(255, 255, 255, .8); font-size: .9rem; margin: 0; }

/* ---------- 儿牙特色专区 ---------- */
.kids-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #fdf4f7 0%, #f8f3ea 62%, #f3f8f6 100%);
  border: 1px solid #f0e2e7; padding: 56px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center;
}
.kids-panel::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(196, 87, 127, .16), transparent 70%);
}
.kids-panel .eyebrow { color: var(--blush); }
.kids-panel .frame { border-radius: var(--radius-lg); }
.kids-panel .frame img { aspect-ratio: 4 / 3.2; }
@media (max-width: 980px) { .kids-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 30px; } }
.kids-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.kids-facts > div b { display: block; font-size: 1.4rem; color: var(--blush); line-height: 1.2; }
.kids-facts > div span { font-size: .8rem; color: var(--muted); }

/* ---------- 医生团队 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .doc-grid { grid-template-columns: 1fr; } }
.doc {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.doc-photo {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-50), #fff 70%);
}
.doc-photo .ini { font-family: var(--serif); font-size: 3.6rem; color: var(--brand); opacity: .42; line-height: 1; }
/* 医生照片槽：默认透明占位，上传后覆盖整个照片区 */
.doc-photo .doc-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-role {
  position: absolute; left: 14px; top: 14px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; color: var(--brand); background: rgba(255, 255, 255, .92);
  border-radius: 999px; padding: 3px 11px; box-shadow: var(--shadow-sm);
}
.doc-role.is-special { color: #fff; background: var(--blush); }
.doc-body { padding: 20px 22px 24px; }
.doc-name { display: flex; align-items: baseline; gap: 8px; }
.doc-name b { font-size: 1.05rem; }
.doc-name span { font-size: .78rem; color: var(--muted); }
.doc-meta { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.doc-good { font-size: .86rem; color: var(--ink-2); margin-top: 10px; line-height: 1.75; }
.doc-good b { color: var(--brand); font-weight: 600; margin-right: 4px; }

/* ---------- 设备与安全 ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .dev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dev-grid { grid-template-columns: 1fr; } }
.dev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.dev-ico { width: 46px; height: 46px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.dev h4 { font-size: 1rem; margin: 0 0 5px; }
.dev-spec { font-size: .75rem; letter-spacing: .06em; color: var(--brand); margin: 0 0 10px; }
.dev p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.75; }

/* ---------- 服务承诺（深色） ---------- */
.promise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise { grid-template-columns: 1fr; } }
.promise li { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 22px; }
.promise .ico { width: 26px; height: 26px; color: #7fc9b8; margin-bottom: 14px; }
.promise b { display: block; color: #fff; font-size: 1rem; margin-bottom: 6px; }
.promise p { margin: 0; font-size: .87rem; color: rgba(255, 255, 255, .66); line-height: 1.8; }

/* ---------- 就诊流程 ---------- */
.steps.six { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.six { grid-template-columns: 1fr; } }
.steps.six .step { padding: 28px 24px; background: #fff; }
.steps.six .step::before { font-size: 1.9rem; color: var(--brand-line); }

/* ---------- 相册 ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal a { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--brand-soft); }
.gal a:first-child { grid-column: span 2; grid-row: span 2; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gal a:hover img { transform: scale(1.05); }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, 1fr); } .gal a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; } }

/* 灯箱 */
.lb {
  position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 40px;
  background: rgba(6, 20, 19, .93); opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: min(1120px, 92vw); max-height: 84vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lb-x {
  position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}

/* ---------- FAQ 卡片化 ---------- */
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 4px 28px; border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-size: 1rem; padding: 21px 44px 21px 0; }
.faq summary::after { right: 4px; }
.faq .answer { padding-bottom: 22px; font-size: .94rem; line-height: 1.9; }
@media (max-width: 560px) { .faq { padding: 2px 18px; } }

/* ---------- 评价 ---------- */
.quote { position: relative; display: flex; flex-direction: column; }
.quote .stars { color: var(--gold); letter-spacing: 3px; font-size: .9rem; margin-bottom: 14px; }
.quote .who { margin-top: auto; padding-top: 18px; }
.rating-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: center; margin-bottom: 40px; }
.rating-sum .big { font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.rating-sum .stars { color: var(--gold); letter-spacing: 3px; }

/* ---------- 联系与到院 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.map-body {
  min-height: 280px; display: grid; place-items: center; text-align: center; padding: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(14, 92, 84, .1), transparent 55%),
    linear-gradient(135deg, #edf5f2, #f8f4ec);
}
.map-body .pin { font-size: 1.9rem; margin-bottom: 10px; }
.map-body b { display: block; font-size: 1rem; margin-bottom: 6px; }
.map-body p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 26em; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.map-foot b { font-size: .9rem; }
.map-foot p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }

/* ---------- 深色 CTA ---------- */
.cta-dark { background: var(--bg-deep); color: #fff; text-align: center; padding: 96px 0; }
.cta-dark .h-xl { color: #fff; }
.cta-dark .lead { color: rgba(255, 255, 255, .74); max-width: 40em; margin: 18px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta-mascot { height: 84px; width: auto; margin: 0 auto 22px; }

/* ---------- 页脚补充 ---------- */
.foot-lic { font-size: .78rem !important; line-height: 1.8; color: rgba(255, 255, 255, .42) !important; margin-top: 14px; }
.foot-tel { font-size: 1.15rem; font-weight: 700; color: #fff !important; letter-spacing: .02em; }

/* ---------- 移动端底部操作条 ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(14, 32, 30, .08);
}
.mbar .btn { flex: 1; }
.mbar .btn-outline { background: #fff; }
@media (max-width: 760px) {
  .mbar { display: flex; }
  .site-footer { padding-bottom: 76px; }
}
.is-cms-edit .mbar { display: none !important; }

/* ---------- 内页补充 ---------- */
.page-hero { padding: 158px 0 88px; }
.page-hero .crumb { font-size: .8rem; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-hero .lead-hero { color: rgba(255, 255, 255, .86); max-width: 44em; margin: 0; }

.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.team-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .team-lead { grid-template-columns: 1fr; gap: 28px; } }

/* 编辑态：让折叠内容全部展开，避免文案被折叠隐藏 */
.is-cms-edit .faq details > .answer { display: block !important; }

/* ---------- 后台 · 模块编辑器 ---------- */
.mod-item { margin-bottom: 18px; }
.mod-flex { display: flex; gap: 18px; align-items: flex-start; }
@media (max-width: 720px) { .mod-flex { flex-direction: column; } }
.mod-photo {
  flex: none; width: 150px; display: flex; flex-direction: column; gap: 8px; align-items: stretch;
}
.mod-photo img {
  width: 150px; height: 112px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); background: var(--brand-soft);
}
.mod-photo-empty {
  width: 150px; height: 112px; border-radius: 12px; border: 1px dashed var(--line);
  display: grid; place-items: center; font-size: .78rem; color: var(--muted); background: #fafaf8;
}
textarea.mini {
  width: 100%; min-height: 76px; resize: vertical; font-family: inherit;
  font-size: .9rem; line-height: 1.6; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea.mini:focus { outline: none; border-color: var(--brand); }
.link-btn[disabled] { opacity: .35; cursor: not-allowed; }
