/* 贝壳口腔 · 官网样式（纯静态，无外部依赖） */

:root {
  --ink: #0a1e26;
  --ink-2: #33525d;
  --muted: #6c8a94;
  --brand: #0f8b8d;
  --brand-2: #12a9ab;
  --brand-ink: #07595b;
  --brand-soft: #e6f4f3;
  --sand: #f5efe4;
  --bg: #f8fbfa;
  --surface: #ffffff;
  --line: #e0ecea;
  --radius-l: 22px;
  --radius-m: 14px;
  --shadow: 0 22px 48px -28px rgba(10, 30, 38, .38);
  --shadow-s: 0 10px 26px -18px rgba(10, 30, 38, .45);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

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

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

img, svg { max-width: 100%; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 99;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 250, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 17px;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .16em;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: #fff; color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--brand-ink);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, background .18s ease;
}
.nav-call:hover { background: var(--brand-ink); transform: translateY(-1px); }
.nav-call svg { width: 15px; height: 15px; }

/* 移动端菜单（无 JS，用 details 实现） */
.menu { display: none; position: relative; margin-left: auto; }
.menu > summary {
  list-style: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] > summary span:nth-child(2) { opacity: 0; }
.menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}
.menu-panel a {
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.menu-panel a:hover { background: var(--bg); }
.menu-panel .nav-call {
  margin-top: 6px;
  justify-content: center;
  box-shadow: none;
}

/* ---------- 通用元素 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 14px;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: var(--shadow-s);
}
.card h3 { margin: 16px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-content: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.icon svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff !important; box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink) !important; }
.btn svg { width: 16px; height: 16px; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(900px 460px at 88% -8%, #d7eeec 0%, rgba(215, 238, 236, 0) 62%),
    radial-gradient(700px 420px at -6% 22%, #f6efe1 0%, rgba(246, 239, 225, 0) 58%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 54px);
  margin: 0 0 20px;
  letter-spacing: -.025em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-ink);
  background: linear-gradient(180deg, transparent 62%, #cfe9e6 62%);
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 10px;
  position: relative;
}
.hero-card-inner {
  border-radius: 20px;
  background: linear-gradient(168deg, #f2f9f8 0%, #ffffff 46%, #fbf7ee 100%);
  padding: 26px;
}
.hero-card h2 {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
}
.info-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row dt { color: var(--muted); flex: none; width: 76px; margin: 0; }
.info-row dd { margin: 0; color: var(--ink); font-weight: 600; }
.info-list { margin: 0; }
.info-sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- 数据条 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 26px 24px;
}
.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--brand-ink);
  line-height: 1.2;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 院区 ---------- */

.clinics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clinic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 22px 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.clinic:hover { border-color: #b9dedd; transform: translateY(-2px); }
.clinic h3 { margin: 0 0 6px; font-size: 17px; }
.clinic .area { font-size: 13.5px; color: var(--brand-ink); margin: 0 0 12px; }
.clinic .meta { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- 流程 ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  position: relative;
}
.step::before {
  content: "0" counter(step);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- CTA ---------- */

.cta {
  background:
    radial-gradient(600px 300px at 82% 20%, rgba(255, 255, 255, .16) 0%, transparent 70%),
    linear-gradient(120deg, #08595b 0%, #0f8b8d 58%, #12a9ab 100%);
  color: #fff;
  border-radius: 28px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta .btn--light { background: #fff; color: var(--brand-ink) !important; }
.cta .btn--outline { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 正文页 ---------- */

.page-head {
  padding: 56px 0 8px;
  background: linear-gradient(180deg, #eef7f6 0%, var(--bg) 100%);
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

.prose { max-width: 78ch; }
/* 页头/页脚在 1120 容器内居中，正文列左对齐，避免出现整体缩进的错位感 */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 76ch; }
.prose h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose .note {
  background: var(--sand);
  border-left: 3px solid #e0c48d;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: #6b5527;
  font-size: 15px;
  margin: 22px 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; background: #f4f9f8; }
.prose td:first-child { white-space: nowrap; color: var(--ink); }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  margin: 0 0 34px;
  font-size: 14.5px;
}
.toc b { display: block; font-size: 13px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: #071820;
  color: #b8ccd2;
  padding: 64px 0 30px;
  margin-top: 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #7f9aa3; }
.site-footer p { margin: 14px 0 0; color: #8fa8b0; max-width: 40ch; }
.site-footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .14em;
  margin: 0 0 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #b8ccd2; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #7f9aa3;
}
.footer-legal a { color: #93adb5; }
.footer-legal .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 58vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound b { font-size: 84px; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.notfound h1 { font-size: 26px; margin: 18px 0 10px; }
.notfound p { color: var(--ink-2); margin: 0 0 26px; }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .clinics, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav > .nav-call { display: none; }
  .menu { display: block; }
  .cta { padding: 40px 32px; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .clinics, .steps { grid-template-columns: 1fr; }
  .card, .step { padding: 22px; }
  .hero { padding: 48px 0 64px; }
  .hero-card-inner { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 32px 24px; border-radius: 22px; }
  .btn { width: 100%; }
  .cta-actions, .hero-actions { width: 100%; }
  .notfound b { font-size: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

/* ---------- 行内小图标（按钮内） ---------- */

.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
}
.ico svg, .nav-call svg { width: 16px; height: 16px; }

/* ---------- 面向软件业务补充的组件 ---------- */

.stat.cap b {
  font-size: 19px;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat.cap span { font-size: 13.5px; }

.kicker {
  font-size: 13px;
  color: var(--brand-ink);
  letter-spacing: .04em;
  margin: 0 0 10px !important;
}
.card .kicker + h3 { margin-top: 0; }

.tick {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.tick li { display: flex; gap: 9px; align-items: flex-start; }
.tick li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 9px;
  flex: none;
}
