/* ===================================================================
   齿名仕口腔官网 · Apple 极简白 视觉系统
   配色：纯白 + Apple 浅灰 #f5f5f7，近黑字 #1d1d1f，克制青绿强调
   =================================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a7d6b;          /* 克制青绿，牙科信任感 */
  --accent-ink: #075c4f;
  --radius: 18px;
  --maxw: 980px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- 占位块（真实图待替换） ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #e9e9ee 0%, #f5f5f7 60%, #e4e4ea 100%);
  color: #9a9aa2; font-size: 14px; letter-spacing: .02em;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 12px;
}

/* ----------------- 导航 ----------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.nav__brand { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nav__brand span { color: var(--accent); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 13px; color: var(--ink); opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--accent); color: #fff !important; opacity: 1 !important;
  padding: 6px 14px; border-radius: 980px; font-weight: 500;
}
.nav__cta:hover { background: var(--accent-ink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: .3s; }

/* ----------------- Hero ----------------- */
.hero {
  min-height: 100vh; padding: calc(var(--nav-h) + 60px) 22px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero__eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hero__title {
  font-size: clamp(48px, 9vw, 96px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.02;
}
.hero__sub {
  margin-top: 18px; font-size: clamp(20px, 3.4vw, 32px); font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.hero__desc { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.hero__actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__media { width: 100%; max-width: 1100px; margin: 56px auto 0; height: clamp(220px, 38vw, 460px); border-radius: var(--radius); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----------------- 按钮 ----------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; padding: 11px 22px; border-radius: 980px;
  transition: background .25s, color .25s, transform .15s; cursor: pointer; border: 0;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--ghost:hover { background: rgba(10, 125, 107, 0.08); }
.btn--block { width: 100%; padding: 13px; font-size: 16px; }

/* ----------------- 信任数据条 ----------------- */
.stats { background: var(--bg-alt); padding: 56px 22px; }
.stats__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.stat__label { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* ----------------- 通用 section ----------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 22px; }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__title { font-size: clamp(30px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.section__lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* ----------------- 网格 ----------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----------------- 项目卡 ----------------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
.card__icon { font-size: 34px; margin-bottom: 14px; }
.card__title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card__text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.card__link { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--accent); font-weight: 500; }

/* ----------------- 特色（为什么选我们） ----------------- */
.feature { padding: 8px 4px; }
.feature__media { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.feature__text { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

/* ----------------- 医生 ----------------- */
.team__photo { width: 100%; margin-bottom: 44px; border-radius: var(--radius); overflow: hidden; }
.team__photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.doc { text-align: center; }
.doc__photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc__name { font-size: 20px; font-weight: 600; }
.doc__role { margin-top: 4px; font-size: 14px; color: var(--accent); font-weight: 500; }
.doc__bio { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ----------------- 真实口碑 ----------------- */
.case { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.case__img { width: 100%; aspect-ratio: 3/4; background: #fff; }
.case__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.case__title { font-size: 18px; font-weight: 600; margin: 18px 20px 0; }
.case__text { font-size: 14px; color: var(--ink-2); margin: 8px 20px 22px; }

/* ----------------- 关于我们 / 一城三院 ----------------- */
.about__text { max-width: 780px; margin: 0 auto 44px; font-size: 17px; line-height: 1.75; color: var(--ink-2); text-align: center; }
.about__branches { margin-bottom: 8px; }
.branch { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 28px; text-align: center; overflow: hidden; }
.branch__media { width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.branch__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch__reception { width: calc(100% - 32px); margin: 12px auto 0; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.branch__reception img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch h3 { margin-top: 22px; font-size: 21px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.branch p { margin-top: 10px; font-size: 14px; color: var(--ink-2); padding: 0 18px; }
.branch__addr { display: inline-block; margin-top: 10px; font-size: 13px; color: #9a9aa2; padding: 0 18px; }
.about__depts { max-width: 860px; margin: 32px auto 0; text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.env-gallery { margin-top: 44px; }
.env-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

/* ----------------- 优惠 ----------------- */
.offer { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.offer__tag { position: absolute; top: 18px; right: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 980px; }
.offer__title { font-size: 20px; font-weight: 600; }
.offer__text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* ----------------- 预约 ----------------- */
.section--booking { background: var(--bg-alt); max-width: none; }
.booking__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.booking__contacts { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.booking__contacts li { font-size: 16px; color: var(--ink-2); }
.booking__contacts a { color: var(--accent); }
.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form__row { margin-bottom: 18px; }
.form__row label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.form__row input, .form__row select {
  width: 100%; font-size: 15px; font-family: var(--font); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa;
  transition: border-color .2s, background .2s;
}
.form__row input:focus, .form__row select:focus { outline: none; border-color: var(--accent); background: #fff; }
.form__row input.invalid { border-color: #d33; background: #fff5f5; }
.form__hint { margin-top: 12px; font-size: 12px; color: var(--ink-2); text-align: center; }
.form__hint.ok { color: var(--accent); font-weight: 500; }

/* ----------------- 到店导航 ----------------- */
.visit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.visit__map { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; }
.ph--map { border-radius: var(--radius); height: 100%; }
.visit__info h3 { font-size: 24px; font-weight: 600; }
.visit__info p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.visit__info .btn { margin-top: 22px; }

/* ----------------- 项目卡（整卡可点击 → 预约） ----------------- */
.card--link { display: block; color: inherit; }
.card--link .card__link { transition: transform .25s var(--ease); }
.card--link:hover .card__link { transform: translateX(3px); }

/* ----------------- Hero 团队合影 ----------------- */
.hero__media--team { height: auto; background: transparent; }
.hero__media--team img { height: auto; width: 100%; object-fit: contain; }

/* ----------------- 院区补充信息 ----------------- */
.branch__tel { display: block; margin-top: 8px; font-size: 14px; }
.branch__tel a { color: var(--accent); font-weight: 500; }
.branch__nav { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--accent); border-bottom: 1px solid rgba(10,125,107,.35); padding-bottom: 1px; }

/* ----------------- 微信号 / 复制 ----------------- */
.wechat { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: #f0f0f3; border-radius: 6px; padding: 2px 8px; }
.copy-btn { margin-left: 8px; font-size: 12px; color: var(--accent); background: none; border: 1px solid var(--accent); border-radius: 980px; padding: 2px 10px; cursor: pointer; font-family: var(--font); }
.copy-btn:hover { background: rgba(10,125,107,.08); }
.booking__note { margin-top: 22px; font-size: 13px; color: #9a9aa2; line-height: 1.7; }
.footer__contact { margin-top: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.footer__contact a { color: var(--accent); }

/* ----------------- 高德地图嵌入位 ----------------- */
.map-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.map-tab {
  font-family: var(--font); font-size: 14px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 980px; padding: 9px 20px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.map-tab:hover { border-color: var(--accent); color: var(--accent); }
.map-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.map-frame { position: relative; width: 100%; height: 100%; background: #eef1f4; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame iframe[hidden] { display: none; }
.map-ph { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.map-ph[hidden] { display: none; }
.map-ph__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,125,107,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,125,107,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-ph__inner { position: relative; text-align: center; padding: 24px; }
.map-ph__pin { font-size: 34px; line-height: 1; animation: pinBob 2.4s ease-in-out infinite; }
@keyframes pinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.map-ph__name { margin-top: 10px; font-size: 19px; font-weight: 600; color: var(--ink); }
.map-ph__addr { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 320px; margin-left: auto; margin-right: auto; }
.map-ph .btn { margin-top: 18px; }
.btn--sm { font-size: 14px; padding: 9px 18px; }

/* ----------------- 页脚 ----------------- */
.footer { background: #fafafa; border-top: 1px solid var(--line); padding: 56px 22px 28px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer__brand p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; transition: color .2s; }
.footer__cols a:hover { color: var(--accent); }
.footer__bar {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 12px; color: #a1a1a6; flex-wrap: wrap; gap: 8px;
}

/* ----------------- 滚动揭示动画 ----------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------- 响应式 ----------------- */
@media (max-width: 833px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .booking__inner { grid-template-columns: 1fr; gap: 36px; }
  .visit { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px); padding: 8px 0; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 22px; font-size: 16px; opacity: 1; }
  .nav__cta { margin: 8px 22px; text-align: center; }
  .nav__toggle { display: flex; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .footer__cols { grid-template-columns: 1fr; }
  .team__photo img { aspect-ratio: 16/9; }
  .hero__media { border-radius: 14px; }
  .visit__map { aspect-ratio: 4/3; }
  .map-tab { padding: 8px 14px; font-size: 13px; }
  .map-ph__addr { max-width: 250px; font-size: 13px; }
}
