/* =========================================================
   高青康美口腔诊所 · 清新医疗蓝设计系统
   ========================================================= */
:root {
  --blue-700: #1559c4;
  --blue-600: #1a73e8;
  --blue-500: #2b82f0;
  --blue-400: #5aa2f7;
  --blue-100: #e7f1fe;
  --blue-50:  #f1f7ff;
  --cyan:     #18b6c9;
  --ink:      #1f2a37;
  --slate:    #5b6b7b;
  --muted:    #8a99a8;
  --bg:       #ffffff;
  --bg-soft:  #f4f8fd;
  --line:     #e3ecf5;
  --white:    #ffffff;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(26, 115, 232, .08);
  --shadow:    0 12px 34px rgba(26, 115, 232, .12);
  --shadow-lg: 0 24px 60px rgba(26, 115, 232, .18);

  --maxw: 1180px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 500; font-size: 15px;
  padding: 11px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--blue-600); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-400); background: var(--blue-50); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: .5px; color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--slate); font-weight: 500; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue-500); transition: width .2s ease; }
.nav a:hover { color: var(--blue-600); }
.nav a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--blue-500); background: var(--blue-50); padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.section-title { font-size: 32px; font-weight: 900; letter-spacing: .5px; }
.section-desc { color: var(--slate); margin-top: 12px; font-size: 16px; }
.muted-note { font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(90, 162, 247, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(24, 182, 201, .14), transparent 55%),
    linear-gradient(180deg, var(--blue-50), #fff 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue-600); background: #fff; border: 1px solid var(--blue-100); padding: 7px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.hero-title { font-size: 46px; line-height: 1.22; font-weight: 900; margin: 20px 0 18px; letter-spacing: .5px; }
.hero-sub { font-size: 17px; color: var(--slate); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.stat-num { font-size: 34px; font-weight: 900; color: var(--blue-600); line-height: 1; }
.stat-label { font-size: 14px; color: var(--slate); margin-top: 8px; }
.hero-media-inner { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero-media-inner img { width: 100%; height: 440px; object-fit: cover; }
.hero-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92); color: var(--blue-600); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.service-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px; }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--slate); font-size: 15px; }

/* ---------- 品牌优势 ---------- */
.advantages-grid { grid-template-columns: repeat(3, 1fr); }
.adv-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.adv-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.adv-no { font-size: 30px; font-weight: 900; color: var(--blue-100); line-height: 1; }
.adv-item h3 { font-size: 18px; margin: 10px 0 8px; }
.adv-item p { color: var(--slate); font-size: 15px; }

/* ---------- 诊所环境 ---------- */
.env-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.env-hero img, .env-thumbs figure img { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-sm); }
.env-hero img { height: 100%; min-height: 420px; }
.env-hero { position: relative; }
.env-hero figcaption, .env-thumbs figcaption { margin-top: 12px; font-size: 14px; color: var(--slate); font-weight: 500; }
.env-thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.env-thumbs figure img { height: 128px; }

/* ---------- 医生团队 ---------- */
.doctors-grid { grid-template-columns: repeat(4, 1fr); }
.doctor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.doctor-avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--blue-50); color: var(--blue-400); display: grid; place-items: center; border: 2px dashed var(--blue-100); }
.doctor-avatar svg { width: 44px; height: 44px; }
.doctor-card h3 { font-size: 18px; }
.doctor-role { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 诊所动态 ---------- */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.news-date { font-size: 13px; font-weight: 700; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.news-tag { font-size: 12px; font-weight: 600; color: var(--cyan); background: rgba(24, 182, 201, .10); padding: 3px 10px; border-radius: var(--radius-pill); }
.news-title { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.news-summary { color: var(--slate); font-size: 14.5px; line-height: 1.7; }

/* ---------- 口碑数据带 ---------- */
.trust-band { background: linear-gradient(120deg, var(--blue-600), var(--blue-500)); color: #fff; }
.trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.trust-stats { display: flex; gap: 40px; }
.tstat-num { font-size: 42px; font-weight: 900; line-height: 1; }
.tstat-label { font-size: 15px; opacity: .9; margin-top: 8px; }
.trust-quote p { font-size: 18px; line-height: 1.7; }
.trust-quote .muted-note { color: rgba(255,255,255,.75); margin-top: 10px; display: inline-block; }

/* ---------- 就诊流程 ---------- */
.process-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.process-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; position: relative; }
.step-no { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 700; font-size: 18px; }
.process-steps h3 { font-size: 16px; margin-bottom: 6px; }
.process-steps p { font-size: 13.5px; color: var(--slate); }

/* ---------- 在线预约 ---------- */
.appointment-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.appoint-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
  transition: border-color .18s ease, box-shadow .18s ease; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(43, 130, 240, .15); background: #fff; }
.field textarea { resize: vertical; }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 20px; }
.form-msg.ok { color: #1f9d55; }
.form-msg.err { color: #d9534f; }

.contact-card { background: linear-gradient(160deg, var(--blue-600), var(--blue-500)); color: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 20px; margin-bottom: 18px; }
.contact-list { list-style: none; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-list li:last-child { border-bottom: 0; }
.c-label { font-weight: 700; opacity: .85; }
.c-value { line-height: 1.5; }
.contact-photo { margin-top: 18px; position: relative; border-radius: var(--radius); overflow: hidden; }
.contact-photo img { width: 100%; height: 180px; object-fit: cover; }
.contact-photo-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.9); color: var(--blue-600); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); }

/* ---------- 页脚 ---------- */
.site-footer { background: #16324f; color: #cfe0f0; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 40px; width: auto; border-radius: 8px; margin-bottom: 16px; }
.footer-slogan { color: #dbe9f6; font-size: 15px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.soc-dot { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe0f0; transition: background .2s ease; }
.soc-dot:hover { background: var(--blue-500); color: #fff; }
.soc-dot svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: #b9cde0; font-size: 14px; padding: 6px 0; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: #b9cde0; margin-bottom: 6px; }
.footer-hotline { color: #fff !important; font-weight: 700; font-size: 15px !important; }
.footer-addr { line-height: 1.6; }
.footer-qr { text-align: center; }
.footer-qr img { width: 130px; height: 130px; object-fit: cover; border-radius: 14px; background: #fff; padding: 6px; margin: 0 auto 10px; }
.footer-qr p { font-size: 13px; color: #cfe0f0; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #9fb6cc; flex-wrap: wrap; }

/* ---------- 悬浮 CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: var(--blue-600); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  display: none;
}
.float-cta:hover { background: var(--blue-700); }
.float-admin {
  position: fixed; right: 22px; bottom: 84px; z-index: 90;
  background: #16324f; color: #cfe0f0; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.18);
}
.float-admin:hover { background: #1d4470; color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media-inner img { height: 320px; }
  .services-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .env-layout { grid-template-columns: 1fr; }
  .env-hero img { min-height: 260px; }
  .env-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .env-thumbs figure img { height: 150px; }
  .trust-inner { grid-template-columns: 1fr; gap: 28px; }
  .appointment-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; top: 72px; right: 0; width: 72%; max-width: 320px; height: calc(100vh - 72px);
    background: #fff; flex-direction: column; gap: 0; padding: 16px 24px; box-shadow: var(--shadow);
    transform: translateX(110%); transition: transform .25s ease; margin-left: 0; }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .hero-title { font-size: 34px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .stat-num { font-size: 28px; }
  .section-title { font-size: 26px; }
  .services-grid, .advantages-grid, .doctors-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .trust-stats { gap: 24px; flex-wrap: wrap; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .float-cta { display: inline-flex; }
  .float-admin { display: inline-flex; }
}
@media (max-width: 420px) {
  .process-steps { grid-template-columns: 1fr; }
  .env-thumbs { grid-template-columns: 1fr; }
  .env-thumbs figure img { height: 180px; }
}
