/* ============================================================
   易得全齿网 EDQCW — 扁平化设计系统 v2.0
   原则：去投影、去滥用渐变、收敛圆角、强化排版层级与留白
   ============================================================ */

:root {
  /* ---- 品牌主色（沉稳医疗青） ---- */
  --teal:        #0fa697;
  --teal-600:    #0c8b7e;
  --teal-700:    #096f65;
  --teal-800:    #06544d;
  --teal-50:     #e8f6f4;
  --teal-100:    #cfeae6;

  /* ---- 辅助色 ---- */
  --blue:        #2563eb;
  --blue-50:     #eaf1fe;
  --blue-700:    #1d4ed8;
  --gold:        #e0900c;
  --gold-50:     #fdf3e2;
  --gold-700:    #a86a05;
  --violet:      #6d5cf6;
  --violet-50:   #efedfe;

  /* ---- 状态色（中国习惯：涨/警示红，优惠绿） ---- */
  --red:         #e5484d;
  --red-50:      #fdecec;
  --green:       #12a150;
  --green-50:    #e7f6ed;

  /* ---- 文本 ---- */
  --ink:         #0b1f26;
  --ink-2:       #27404a;
  --muted:       #5a737d;
  --faint:       #8da3ac;

  /* ---- 背景 / 描边 ---- */
  --bg:          #ffffff;
  --bg-soft:     #f5f9f9;
  --bg-tint:     #edf4f4;
  --line:        #e4ebec;
  --line-2:      #d2dee0;

  /* 兼容旧变量名 */
  --teal-dark:   var(--teal-700);
  --teal-soft:   var(--teal-50);
  --blue-soft:   var(--blue-50);
  --gold-soft:   var(--gold-50);

  /* ---- 形状：扁平化收敛圆角 ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* 扁平化：常规元素不投影，仅浮层保留 */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 18px 48px rgba(11, 31, 38, .18);

  --maxw: 1240px;
  --nav-h: 68px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* 价格表在窄屏可横向滚动，避免撑破布局 */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .price-table { min-width: 560px; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { letter-spacing: -.02em; font-weight: 800; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sm { padding: 44px 0; }
.section.tint { background: var(--bg-soft); }

/* ---------- 文字工具 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--teal-700); text-transform: uppercase;
  background: var(--teal-50); padding: 6px 12px; border-radius: var(--r-sm);
}
.text-teal { color: var(--teal-700); }
.text-muted { color: var(--muted); }

/* 区块标题：居中版（默认） */
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px); margin: 18px 0 12px; line-height: 1.22;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* 区块标题：左对齐门户版（标题左，操作右） */
.section-head.left {
  max-width: none; margin: 0 0 40px; text-align: left;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 22px; border-bottom: 2px solid var(--line);
}
.section-head.left .sh-text { max-width: 720px; }
.section-head.left h2 { margin: 14px 0 8px; }
.section-head.left p { font-size: 15px; }
.sh-more {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-weight: 700; font-size: 15px; color: var(--teal-700); padding-bottom: 4px;
  transition: gap .15s ease, color .15s ease;
}
.sh-more:hover { gap: 11px; color: var(--teal-800); }

/* ---------- 按钮（扁平：纯色 + 直角小圆角，无投影） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-50); }
.btn-soft { background: var(--teal-50); color: var(--teal-700); }
.btn-soft:hover { background: var(--teal-100); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--ink); color: #b9ccd2; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 20px; }
.topbar .tb-left { display: flex; align-items: center; gap: 18px; }
.topbar .tb-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-right { display: flex; align-items: center; gap: 20px; }
.topbar b { color: #fff; font-weight: 700; letter-spacing: .01em; }
.topbar a:hover { color: #fff; }

/* ---------- 导航（扁平：实色底 + 下划线高亮） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand .logo {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--teal);
  display: grid; place-items: center; flex: none;
}
.brand small { display: block; font-size: 10px; font-weight: 700; color: var(--faint); letter-spacing: .16em; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; margin-left: auto; height: 100%; align-items: stretch; }
.nav-links a {
  display: inline-flex; align-items: center; padding: 0 16px;
  font-weight: 600; color: var(--ink-2); font-size: 15px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--teal-700); }
.nav-links a.active { color: var(--teal-700); border-bottom-color: var(--teal); font-weight: 700; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; }

/* 移动端抽屉 */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: #fff; padding: 20px 24px; transform: translateX(100%);
  transition: transform .25s ease; display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; font-size: 16px; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--teal-50); color: var(--teal-700); }
.mobile-menu .btn { margin-top: 12px; }

/* ---------- Hero（扁平：纯色底 + 几何色块） ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 460px; height: 460px; border-radius: 50%;
  background: var(--teal-100); opacity: .55;
}
.hero::after {
  content: ""; position: absolute; bottom: -140px; left: -100px;
  width: 320px; height: 320px; border-radius: var(--r-xl);
  background: var(--blue-50); transform: rotate(18deg);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center;
  padding: 76px 0 84px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.1; margin: 20px 0 18px;
  letter-spacing: -.035em; font-weight: 800;
}
.hero h1 .hl {
  color: var(--teal-700); position: relative;
  box-shadow: inset 0 -14px 0 var(--teal-100);
}
.hero p.lead { font-size: 17.5px; color: var(--muted); max-width: 560px; margin: 0 0 28px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 0; margin-top: 38px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); padding-top: 24px;
}
.hero-trust .t { display: flex; flex-direction: column; padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line-2); }
.hero-trust .t:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-trust .t b { font-size: 28px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hero-trust .t span { font-size: 13px; color: var(--faint); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* 搜索条（扁平：实边框，无投影） */
.search-bar {
  margin-top: 28px; display: flex; gap: 8px; background: #fff; padding: 8px;
  border-radius: var(--r-md); border: 1.5px solid var(--line-2);
  flex-wrap: wrap;
}
.search-bar select, .search-bar input {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; font-family: inherit;
  background: var(--bg-soft); color: var(--ink); flex: 1; min-width: 130px;
}
.search-bar select:focus, .search-bar input:focus { outline: 2px solid var(--teal); outline-offset: -1px; background: #fff; }

/* ---------- 统计条（纯色块 + 分隔线） ---------- */
.stats { background: var(--teal-700); color: #fff; border-radius: var(--r-lg); padding: 40px 28px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stats .s { position: relative; border-right: 1px solid rgba(255,255,255,.18); padding: 0 12px; }
.stats .s:last-child { border-right: none; }
.stats .s b { display: block; font-size: 38px; letter-spacing: -.035em; font-weight: 800; line-height: 1.2; }
.stats .s span { opacity: .82; font-size: 14px; }

/* ---------- 门户直达（扁平色块入口） ---------- */
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.portal-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; transition: border-color .16s ease, background .16s ease;
}
.portal-item:hover { border-color: var(--teal); background: var(--teal-50); }
.pi-ico {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; font-size: 20px;
}
.pi-text b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.pi-text span { font-size: 13px; color: var(--muted); }

/* ---------- 卡片（扁平：白底 + 描边，hover 变色不浮起） ---------- */
.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .16s ease, transform .16s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: var(--bg-tint); }
.card-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(11,31,38,.78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm);
}
.media-city {
  position: absolute; top: 12px; right: 12px; background: #fff; color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-title-row h3 { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700; }
.card-addr { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
/* 卡片底部操作区：始终贴底，保证同行卡片按钮对齐 */
.card-foot { margin-top: auto; padding-top: 16px; }
/* 医生头像位 */
.doc-media { aspect-ratio: 1/1; padding: 18px; background: var(--bg-soft); }
/* 资讯封面位 */
.news-media-box { aspect-ratio: 16/9; position: relative; }
.media-tag { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--teal-700); }
/* 优惠券顶部行 */
.coupon-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* 标签（扁平方标签） */
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-sm); background: var(--teal-50); color: var(--teal-700);
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.tag.gold { background: var(--gold-50); color: var(--gold-700); }
.tag.blue { background: var(--blue-50); color: var(--blue-700); }
.tag.violet { background: var(--violet-50); color: var(--violet); }
/* 作为筛选链接时 */
a.tag { padding: 7px 15px; font-size: 13px; background: #fff; color: var(--ink-2); border-color: var(--line-2); }
a.tag:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-50); }
a.tag.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 800; font-size: 14px; white-space: nowrap; }
.rating .muted { color: var(--faint); font-weight: 500; }

/* ---------- 诊疗项目卡 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 28px;
  transition: border-color .16s ease, transform .16s ease;
}
.feat:hover { transform: translateY(-2px); border-color: var(--teal); }
.feat .ico {
  width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 18px;
  background: var(--teal-50); color: var(--teal-700);
}
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- 价格表（扁平） ---------- */
.price-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--line);
}
.price-table th, .price-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.price-table thead th {
  background: var(--bg-tint); color: var(--ink); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: none; border-bottom: 1.5px solid var(--line-2);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg-soft); }
.price-table td .price, .price-table td.price { color: var(--teal-700); font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.price-table td .price s { color: var(--faint); font-weight: 500; font-size: 13px; margin-right: 6px; }

/* ---------- Tabs / 筛选 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.tab {
  padding: 10px 20px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff;
  font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--teal); color: var(--teal-700); background: var(--teal-50); }
.tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter-bar .tab { padding: 8px 18px; }

/* 筛选面板（列表页） */
.filter-panel {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; margin-bottom: 32px;
}
.filter-row { display: flex; align-items: flex-start; gap: 16px; }
.filter-row + .filter-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-label { flex: none; width: 68px; color: var(--faint); font-size: 13.5px; font-weight: 600; padding-top: 7px; }
.filter-items { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }

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

/* ---------- 医生 ---------- */
.doc-avatar {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.doc-card .card-media { background: var(--bg-soft); }
.doc-card .name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.doc-card h3 { margin: 0; font-size: 18px; }
.doc-card .title { color: var(--teal-700); font-weight: 700; font-size: 13px; }
.doc-card .hosp { color: var(--muted); font-size: 13px; margin: 5px 0 12px; }
.doc-card .specialties { color: var(--ink-2); font-size: 13px; }

/* ---------- 优惠券（扁平票券） ---------- */
.coupon {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 24px; overflow: hidden; transition: border-color .16s ease, transform .16s ease;
  display: flex; flex-direction: column;
}
.coupon:hover { transform: translateY(-2px); border-color: var(--red); }
.coupon::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
}
.coupon .amt { display: flex; align-items: baseline; gap: 4px; color: var(--red); margin-top: 14px; }
.coupon .amt b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.coupon .amt .unit { font-size: 16px; font-weight: 700; }
.coupon .cut { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.coupon .name { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.coupon .desc { color: var(--muted); font-size: 13.5px; min-height: 38px; line-height: 1.7; }
.coupon .foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2);
}
.coupon .valid { font-size: 12px; color: var(--faint); }
.coupon.claimed { opacity: .6; }

/* ---------- 资讯 ---------- */
.news-media { aspect-ratio: 16/9; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-size: 30px; }
.news-card h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.5; }
.news-card .meta { display: flex; gap: 14px; color: var(--faint); font-size: 12px; margin-bottom: 10px; }
.news-card .excerpt { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.75; }

/* ---------- CTA（纯色块） ---------- */
.cta {
  background: var(--teal-700);
  color: #fff; border-radius: var(--r-lg); padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.cta p { opacity: .88; margin: 0; font-size: 16.5px; }
.cta .btn-primary { background: #fff; color: var(--teal-700); }
.cta .btn-primary:hover { background: var(--teal-50); }
.cta .eyebrow { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.cta .field label { color: #fff; }

/* ---------- 页脚（扁平深色） ---------- */
.footer { background: var(--ink); color: #b9ccd2; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 18px; letter-spacing: .04em; }
.footer a { color: #9fb8bf; display: block; padding: 5px 0; font-size: 14px; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; }
.footer .brand .logo { background: var(--teal); }
.footer .brand small { color: #66888f; }
.footer .about { color: #8ba6ad; font-size: 14px; max-width: 330px; line-height: 1.8; }
.footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  text-align: center; color: #66888f; font-size: 13px;
}

/* ---------- 弹窗 / Toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,31,38,.6);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fade .2s ease; }
.modal {
  background: #fff; border-radius: var(--r-lg); max-width: 640px; width: 100%; max-height: 88vh; overflow: auto;
  box-shadow: var(--shadow-lg); animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff;
}
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-close { background: var(--bg-soft); border: none; border-radius: var(--r-sm); width: 36px; height: 36px; font-size: 18px; color: var(--muted); }
.modal-close:hover { background: var(--teal-50); color: var(--teal-700); }
.modal-body { padding: 24px; }
.modal-body p { color: var(--ink-2); }

.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; animation: toastIn .22s ease;
}
.toast.ok { background: var(--green); }
.toast.warn { background: var(--gold); color: #2e1f00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; color: var(--faint); padding: 60px 0; grid-column: 1 / -1; }

/* ---------- 子页 Hero（扁平实色） ---------- */
.page-hero {
  background: var(--bg-soft); padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-hero .crumb a:hover { color: var(--teal-700); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 10px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 660px; font-size: 16px; }

/* ============================================================
   详情页（医院 / 医生 / 资讯）
   ============================================================ */

/* 面包屑 */
.crumbs { margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-700); }

/* 详情页色块头（容器内色块，非全宽） */
.detail-hero {
  color: #fff; padding: 38px 40px; border-radius: var(--r-lg);
  background: var(--teal-700);
}
.detail-hero h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 14px 0 10px; color: #fff; line-height: 1.28; }
.detail-hero .rating { color: #fff; }
.detail-hero .rating .muted { color: rgba(255,255,255,.85); }
.badge {
  display: inline-flex; align-items: center; background: rgba(255,255,255,.18);
  padding: 5px 13px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: #fff;
}
.btn-light { background: #fff; color: var(--teal-700); }
.btn-light:hover { background: var(--teal-50); }

/* 门头图 banner */
.door-banner img { border-radius: var(--r-lg); border: 1.5px solid var(--line); }

/* 主体两栏 */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
/* 右栏为空时自动退化为单栏 */
.detail-grid > aside:empty { display: none; }
.detail-grid:has(> aside:empty) { grid-template-columns: 1fr; }

/* 小标题（左侧竖条，扁平强调） */
.dh-h, .detail-grid > div > h3, .container > h3 {
  font-size: 20px; margin: 32px 0 16px; padding-left: 12px;
  border-left: 4px solid var(--teal); line-height: 1.35; font-weight: 800;
}
.dh-h:first-child, .detail-grid > div > h3:first-child { margin-top: 0; }

/* 正文排版 */
.prose { font-size: 16px; }
.prose p { color: var(--ink-2); line-height: 2; font-size: 16px; margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 30px 0 12px; font-size: 19px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--ink-2); line-height: 1.95; margin: 0 0 18px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--r-md); margin: 8px 0; }
.prose blockquote {
  margin: 0 0 18px; padding: 14px 18px; background: var(--bg-soft);
  border-left: 4px solid var(--teal); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2);
}
.lead-p { color: var(--muted); line-height: 1.9; font-size: 15.5px; margin: 0; }
.article p { color: var(--ink-2); line-height: 2; font-size: 16px; margin: 0 0 18px; }

/* 基本信息列表（兼容无 info-row 类的直接子元素） */
.info-list { border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.info-list > div, .info-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.info-list > div:nth-child(odd) { background: var(--bg-soft); }
.info-list > div:last-child, .info-row:last-child { border-bottom: none; }
.info-list > div > span, .info-row span { color: var(--muted); }
.info-list > div > b, .info-row b { color: var(--ink); font-weight: 700; text-align: right; }

/* 医生详情：头像 + 文字并排 */
.doc-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.doc-top .doc-avatar, .doc-avatar.lg {
  width: 112px; height: 112px; flex: none; font-size: 46px; border-radius: var(--r-md); aspect-ratio: auto;
}
.doc-top h1 { margin: 0 0 6px; font-size: 28px; }
.doc-hero-text { flex: 1; min-width: 240px; }
.doc-hero-text .title { font-size: 15px; font-weight: 600; opacity: .95; margin: 4px 0 12px; }

/* 侧边咨询卡 */
.detail-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 88px; }
.consult-card {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 26px;
  position: sticky; top: 88px;
}
.consult-card h3, .consult-card h4 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.consult-card > p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.consult-card form { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.consult-card .form-grid { display: flex; flex-direction: column; gap: 11px; }
.consult-card input {
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.consult-card input:focus { outline: none; border-color: var(--teal); }
.side-tip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.side-tip b { color: var(--ink-2); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .section { padding: 68px 0; }
  .hero-grid { gap: 32px; }
  .detail-grid { grid-template-columns: 1fr 300px; gap: 32px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-art { order: -1; max-width: 420px; }
  .feat-grid, .grid-3, .grid-4, .grid-2, .portal-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stats .s:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-side { position: static; }
  .section-head.left { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 720px) {
  .topbar .tb-left span:not(:first-child) { display: none; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .feat-grid, .grid-3, .grid-4, .grid-2, .portal-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
  .cta { padding: 40px 24px; }
  .stats { padding: 30px 20px; }
  .search-bar { flex-direction: column; }
  .search-bar select, .search-bar input { width: 100%; }
  .hero-trust .t { padding-right: 20px; margin-right: 20px; }
  .hero-trust .t b { font-size: 24px; }
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-label { width: auto; padding-top: 0; }
  .detail-hero { padding: 26px 18px; }
  .detail-hero h1 { font-size: clamp(22px, 6vw, 30px); }
  .crumbs { font-size: 12px; }
  .nav-inner { height: 60px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); }
  .prose { font-size: 15px; }
}

/* 列表无结果提示（就地刷新时可能出现） */
.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 15px;
}
