/* ==========================================================================
   医美机构官网 · 前台样式
   ==========================================================================
   设计取向：暖白底 + 香槟金点缀 + 玫瑰红强调 + 极小圆角。
   医美机构的"高级感"来自留白、图片质量和克制的用色，而不是色彩堆砌 ——
   所以这里只有一个品牌色、一个强调色，其余靠灰阶层次拉开。

   ⚠️ 配色不要直接改这个文件：这里的 :root 值是**兜底默认**。
   后台「站点设置 → 外观主题」填主品牌色 / 强调色（#RRGGBB）即可换装，
   深浅变体自动派生、保存后前台立即生效（见 src/core/theme.rs）。
   ========================================================================== */

:root {
  /* ---- 品牌色：香槟金（用于图标、细边框、次级点缀）---- */
  --c-brand: #b08d6a;
  --c-brand-dark: #8f7050;
  --c-brand-light: #f7f2ec;

  /* ---- 强调色：玫瑰红（只用于 CTA、当前态、关键数字）---- */
  --c-accent: #c0565f;
  --c-accent-dark: #a3444c;
  --c-accent-light: #fdf3f4;

  /* ---- 文字灰阶 ---- */
  --c-ink: #1b1e22;
  --c-text: #2c3238;
  --c-text-soft: #5f6b76;
  --c-text-mute: #98a2ac;

  /* ---- 背景层次 ---- */
  --c-bg: #ffffff;
  --c-bg-warm: #faf8f5;
  --c-bg-alt: #f4f2ef;
  --c-bg-dark: #1e242b;

  --c-border: #e9e6e1;
  --c-border-strong: #dcd7d0;

  /* ---- 形状：医美偏"高级"，圆角要小 ---- */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(27, 30, 34, .05);
  --shadow: 0 2px 8px rgba(27, 30, 34, .06), 0 12px 32px rgba(27, 30, 34, .05);
  --shadow-lg: 0 8px 24px rgba(27, 30, 34, .10);

  --container: 1200px;
  --sec-pad: 84px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-text); text-decoration: none; transition: color .16s; }
a:hover { color: var(--c-accent); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; gap: 40px; min-height: 76px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-mark {
  font-size: 20px; font-weight: 600; color: var(--c-ink);
  letter-spacing: .08em; line-height: 1.2;
}

.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 9px 15px; position: relative;
  color: var(--c-text); font-size: 15px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px;
  height: 2px; background: var(--c-accent); transform: scaleX(0);
  transition: transform .18s;
}
.site-nav a:hover { color: var(--c-ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--c-accent); font-weight: 600; }
.site-nav a.active::after { transform: scaleX(1); }

.header-contact { text-align: right; flex-shrink: 0; }
.header-contact-label { display: block; font-size: 11px; color: var(--c-text-mute); letter-spacing: .1em; line-height: 1.4; }
.header-contact-phone { font-size: 18px; font-weight: 600; color: var(--c-ink); letter-spacing: .02em; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--c-bg-dark);
  background-size: cover; background-position: center;
  padding: 108px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 22, 27, .90) 0%, rgba(18, 22, 27, .72) 48%, rgba(18, 22, 27, .40) 100%),
    linear-gradient(to top, rgba(18, 22, 27, .45), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero-title {
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.24;
  margin: 0 0 18px; font-weight: 600; letter-spacing: .01em;
}
.hero-subtitle { font-size: 17px; opacity: .82; margin: 0 0 34px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 首屏信任状：服务承诺（不涉疗效，合规） */
.trust-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 62px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}
.trust-item { background: rgba(24, 28, 34, .58); padding: 22px 20px; }
.trust-num { font-family: var(--mono); font-size: 12px; color: var(--c-brand); letter-spacing: .12em; }
.trust-title { display: block; font-size: 15px; font-weight: 600; margin: 6px 0 4px; }
.trust-desc { font-size: 13px; opacity: .7; line-height: 1.6; }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-block; padding: 13px 30px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; transition: all .18s; text-align: center;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 14px; }

/* 浅色背景上的次要按钮 */
.error-page .btn-ghost,
.page-article .btn-ghost,
.side-contact .btn-ghost,
.contact-aside .btn-ghost { color: var(--c-text); border-color: var(--c-border-strong); }
.error-page .btn-ghost:hover,
.page-article .btn-ghost:hover,
.side-contact .btn-ghost:hover,
.contact-aside .btn-ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
/* 侧栏里两个按钮并排 */
.side-contact .btn { margin-right: 8px; }

/* ==========================================================================
   区块
   ========================================================================== */
.section { padding: var(--sec-pad) 0; }
.section-alt { background: var(--c-bg-warm); }
.section-dark { background: var(--c-bg-dark); color: #fff; }
.section-dark .section-title { color: #fff; }

.section-title {
  font-size: 26px; font-weight: 600; color: var(--c-ink);
  margin: 0 0 8px; line-height: 1.35; letter-spacing: .01em;
  display: flex; align-items: center; gap: 14px;
}
/* 编辑性强调线：比"圆标 + 标题"克制，也更像正规机构的版式 */
.section-title::before {
  content: ""; flex-shrink: 0;
  width: 22px; height: 2px; background: var(--c-accent);
}
/* 板块图标：参考站每个板块都是「圆标 + 标题」，这里用同一种节奏 */
.sec-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; background: var(--c-brand-light); color: var(--c-brand);
}
.sec-ico--accent { background: var(--c-accent-light); color: var(--c-accent); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; }
.section-head .section-title { margin-bottom: 0; }
.section-intro { color: var(--c-text-soft); font-size: 15px; margin: 0 0 30px; max-width: 760px; }
.section-head + .section-intro { margin-top: -22px; }

.link-more { font-size: 14px; color: var(--c-text-mute); white-space: nowrap; }
.link-more:hover { color: var(--c-accent); }

/* ==========================================================================
   项目分类导航条（黑底，图标 + 文字）
   ========================================================================== */
.cat-bar { background: var(--c-bg-dark); }
.cat-bar-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.cat-bar a {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 9px; padding: 22px 6px; color: rgba(255, 255, 255, .76);
  font-size: 13px; text-align: center; transition: background .16s, color .16s;
}
.cat-bar a::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px;
  background: var(--c-brand); transform: scaleX(0); transition: transform .18s;
}
.cat-bar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.cat-bar a.on { color: #fff; }
.cat-bar a.on::after { transform: scaleX(1); }
.cat-bar-ico { width: 26px; height: 26px; color: var(--c-brand); transition: color .16s; }
.cat-bar-ico svg { width: 100%; height: 100%; display: block; }
.cat-bar a:hover .cat-bar-ico, .cat-bar a.on .cat-bar-ico { color: #fff; }

/* 列表页里的分类条：浅底融入页面，当前项用强调色 */
.cat-bar--inline { background: var(--c-bg-warm); border-radius: var(--radius); margin-bottom: 42px; }
.cat-bar--inline .cat-bar-inner { padding: 0 10px; }
.cat-bar--inline a { color: var(--c-text-soft); padding: 18px 6px; }
.cat-bar--inline a::after { background: var(--c-accent); }
.cat-bar--inline a:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.cat-bar--inline a.on { color: var(--c-accent); }
.cat-bar--inline .cat-bar-ico { color: var(--c-brand); }
.cat-bar--inline a:hover .cat-bar-ico, .cat-bar--inline a.on .cat-bar-ico { color: var(--c-accent); }

/* 项目列表：比首页精品项目更宽，带简介。
   注意 grid-template-columns 的覆盖写在 .project-grid 之后（见下），
   同权重选择器谁在后面谁生效 —— 写在这里会被基础规则反覆盖。 */
.project-card-link { display: block; }
.project-summary {
  font-size: 13px; color: var(--c-text-soft); margin: 8px 0 0;
  text-align: center; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-cat-tag {
  display: inline-block; font-size: 12px; color: var(--c-brand);
  background: var(--c-brand-light); padding: 3px 12px;
  border-radius: 999px; margin-bottom: 12px;
}

/* 适应症 / 禁忌症：并排两栏，用颜色区分"适合"与"不宜" */
.indication-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.indication-col { background: var(--c-bg-warm); border-radius: var(--radius); padding: 22px 24px; }
.indication-col h3 { font-size: 15px; margin: 0 0 14px; font-weight: 600; }
.indication-col--yes h3 { color: #2f6b46; }
.indication-col--no h3 { color: var(--c-accent-dark); }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: 14.5px; color: var(--c-text-soft); line-height: 1.7;
}
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #3f8f5f; font-size: 13px; }
.tick-list--no li::before { content: "✕"; color: var(--c-accent); }
.field-note {
  font-size: 13px; color: var(--c-text-mute); margin: 16px 0 0;
  padding-top: 13px; border-top: 1px solid var(--c-border);
}

/* ==========================================================================
   首页专有模块
   ========================================================================== */

/* 图集分组小标题（星级环境 / 塑美设备 / 品牌荣誉） */
.sub-title {
  position: relative; font-size: 16px; font-weight: 600; color: var(--c-ink);
  margin: 44px 0 18px; padding-left: 13px;
}
.sub-title:first-of-type { margin-top: 6px; }
.sub-title::before {
  content: ""; position: absolute; left: 0; top: .5em; bottom: .5em;
  width: 3px; background: var(--c-brand); border-radius: 2px;
}

/* 机构介绍里的服务清单 */
.service-list { list-style: none; margin: 24px 0 0; padding: 0; }
.service-list li {
  padding: 11px 0; font-size: 14.5px; color: var(--c-text-soft);
  border-bottom: 1px dashed var(--c-border); line-height: 1.75;
}
.service-list li:last-child { border-bottom: none; }
.service-list strong { color: var(--c-ink); font-weight: 600; }

/* 浅底上的数据条 */
.stats-inline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px; margin-top: 48px; padding-top: 38px;
  border-top: 1px solid var(--c-border);
}
.stats-inline .stat-item { text-align: left; }
.stats-inline .stat-value { color: var(--c-ink); font-size: 32px; }
.stats-inline .stat-label { color: var(--c-text-mute); }

/* 文章栏目的胶囊导航 */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 14px;
  background: var(--c-bg-warm); color: var(--c-text-soft);
  transition: background .16s, color .16s;
}
.cat-chips a:hover { background: var(--c-brand-light); color: var(--c-brand-dark); }
.cat-chips span { font-family: var(--mono); font-size: 12px; color: var(--c-text-mute); }

/* 项目页/分类页里的文章链接列表（内链） */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 12px 0; border-bottom: 1px dashed var(--c-border);
}
.link-list li:last-child { border-bottom: none; }
.link-list a { font-size: 15px; color: var(--c-text); line-height: 1.7; }
.link-list a:hover { color: var(--c-accent); }
.link-list time { flex-shrink: 0; font-size: 12.5px; color: var(--c-text-mute); font-family: var(--mono); }

/* 分类页里「项目网格」与「相关科普」之间的分隔 */
.block-gap { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--c-border); }

/* ==========================================================================
   专利墙
   ==========================================================================
   专利的视觉主体是**证书本身** —— 证书图就是"可核验"的直接证据，
   所以列表页做成以证书图为核心的网格，而不是文字列表。
   ========================================================================== */

/* 可核验统计条：数字是专利最硬的部分，放最前面 */
.patent-stats {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 48px;
  padding: 28px 32px; margin-bottom: 40px;
  background: var(--c-bg-warm); border-radius: var(--radius);
  border-left: 3px solid var(--c-brand);
}
.patent-stat { display: flex; flex-direction: column; gap: 4px; }
.patent-stat-num {
  font-size: 34px; font-weight: 600; color: var(--c-ink);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.patent-stat--lead .patent-stat-num { font-size: 46px; color: var(--c-accent); }
.patent-stat-lbl { font-size: 13px; color: var(--c-text-soft); }
.patent-stats-note {
  flex-basis: 100%; margin: 14px 0 0; font-size: 12.5px; color: var(--c-text-mute);
}

/* 方向锚点 */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip-nav a {
  padding: 7px 18px; border-radius: 999px; font-size: 14px;
  background: var(--c-bg-alt); color: var(--c-text-soft);
  transition: background .16s, color .16s;
}
.chip-nav a:hover { background: var(--c-ink); color: #fff; }

.patent-group { margin-bottom: 56px; scroll-margin-top: 100px; }
.sub-count {
  margin-left: 10px; font-size: 12.5px; font-weight: 400;
  color: var(--c-text-mute); font-family: var(--mono);
}

/* 证书图网格：5 列。专利墙的价值在于"多"，
   所以宁可缩小单张、也不要分页把"技术积累"这个印象切碎。 */
.patent-wall {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.patent-item { min-width: 0; }
.patent-item-link { display: block; }
.patent-cert {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--c-bg-alt); border: 1px solid var(--c-border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.patent-cert--wide { aspect-ratio: 16 / 10; }

/* 重点专利：大图，列数自适应 —— 固定 3 列时若有 4 项就会留两个空位 */
.patent-featured { margin-bottom: 56px; }
.patent-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 26px;
}
.patent-hero-item { min-width: 0; }
.patent-hero-link { display: block; }
.patent-hero-body { padding-top: 16px; }
.patent-hero-name {
  font-size: 17px; font-weight: 600; color: var(--c-ink);
  margin: 10px 0 10px; line-height: 1.55;
}
.patent-hero-item:hover .patent-hero-name { color: var(--c-accent); }

/* 二级方向（面部轮廓 → 颧骨 / 颧弓 / 下颌角） */
.patent-subgroup { margin: 30px 0 0; }
.sub-sub-title {
  position: relative; font-size: 14.5px; font-weight: 600; color: var(--c-text-soft);
  margin: 0 0 16px; padding-left: 20px;
}
.sub-sub-title::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand);
}

/* 方向锚点的计数 */
.chip-nav a span {
  margin-left: 7px; font-family: var(--mono); font-size: 12px; color: var(--c-text-mute);
}
.chip-nav a:hover span { color: rgba(255, 255, 255, .7); }
.patent-cert img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.patent-item:hover .patent-cert img { transform: scale(1.04); }
.patent-cert-fallback {
  font-size: 13px; color: var(--c-text-mute); letter-spacing: .08em;
}
.patent-flag {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--c-accent); color: #fff; font-size: 11px;
  padding: 3px 10px; letter-spacing: .06em;
}
.patent-item-name {
  font-size: 15px; font-weight: 600; color: var(--c-ink);
  margin: 14px 0 8px; line-height: 1.6;
}
.patent-item:hover .patent-item-name { color: var(--c-accent); }

/* 详情页：证书图 + 事实表并排 */
.patent-facts {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: start; margin: 32px 0 8px;
}
.patent-cert-figure { margin: 0; }
.patent-cert-figure img {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg-alt);
}
.patent-cert-figure figcaption {
  margin-top: 10px; font-size: 12.5px; color: var(--c-text-mute); text-align: center;
}
.patent-facts .fact-list { margin-top: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

@media (max-width: 1100px) {
  .patent-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .patent-facts { grid-template-columns: 1fr; gap: 24px; }
  .patent-stats { gap: 0 28px; padding: 22px 20px; }
  .patent-stat-num { font-size: 26px; }
  .patent-stat--lead .patent-stat-num { font-size: 34px; }
}
@media (max-width: 720px) {
  .patent-wall { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .patent-hero { grid-template-columns: 1fr; }
}
/* ==========================================================================
   精品项目（方图卡 + 角标）
   ========================================================================== */
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
/* 项目列表页用 4 列：卡片更大、带简介，6 列会挤。
   必须写在基础规则之后 —— 同权重下后写的生效。 */
.project-grid--wide { grid-template-columns: repeat(4, 1fr); }
.project-card { position: relative; display: block; }
.project-card-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--c-bg-alt); border-radius: var(--radius);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-badge {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--c-accent); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 3px 9px;
}
.project-name { font-size: 15px; margin: 12px 0 0; color: var(--c-ink); font-weight: 500; text-align: center; }
.project-card:hover .project-name { color: var(--c-accent); }

/* ==========================================================================
   卡片：文章 / 医生 / 专利 / 栏目
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }

.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-link { display: block; height: 100%; }
.post-card-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-alt); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-cover img { transform: scale(1.04); }
.post-card-body { padding: 18px 2px 4px; }
.post-card-cat {
  display: inline-block; font-size: 12px; letter-spacing: .04em;
  color: var(--c-brand); background: var(--c-brand-light);
  padding: 2px 9px; border-radius: var(--radius-sm); margin-bottom: 9px;
}
.post-card-title { font-size: 17px; font-weight: 600; color: var(--c-ink); margin: 0 0 8px; line-height: 1.55; }
.post-card:hover .post-card-title { color: var(--c-accent); }
.post-card-summary {
  color: var(--c-text-soft); font-size: 14px; margin: 0 0 12px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--c-text-mute); }

.badge-sticky {
  display: inline-block; background: var(--c-accent-light); color: var(--c-accent);
  font-size: 11px; padding: 1px 7px; border-radius: var(--radius-sm);
  margin-right: 7px; vertical-align: 2px; font-weight: 500;
}

/* 医生卡片 */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px; }
.doctor-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.doctor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doctor-card-link { display: block; height: 100%; }
.doctor-photo { aspect-ratio: 3 / 4; background: var(--c-bg-alt); overflow: hidden; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.03); }
.doctor-body { padding: 16px 2px 4px; }
.doctor-name { font-size: 17px; font-weight: 600; color: var(--c-ink); margin: 0 0 5px; }
.doctor-headline { color: var(--c-text-soft); font-size: 13px; margin: 0 0 11px; }
.license-line {
  font-family: var(--mono); font-size: 11.5px; color: var(--c-text-mute);
  margin: 11px 0 0; padding-top: 9px; border-top: 1px dashed var(--c-border);
  word-break: break-all; line-height: 1.6;
}

/* 专利卡片 */
.patent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.patent-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.patent-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.patent-card-link { display: block; padding: 24px; height: 100%; }
.patent-type {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: var(--radius-sm);
  background: var(--c-brand-light); color: var(--c-brand-dark); margin-bottom: 12px;
}
.patent-name { font-size: 17px; font-weight: 600; color: var(--c-ink); margin: 0 0 9px; line-height: 1.55; }
.patent-card:hover .patent-name { color: var(--c-accent); }
.patent-summary { color: var(--c-text-soft); font-size: 14px; margin: 0; line-height: 1.75; }
.patent-body { min-width: 0; }

/* 栏目卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cat-card {
  display: block; background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat-card:hover { border-color: var(--c-brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card h3 { font-size: 17px; color: var(--c-ink); margin: 0 0 9px; font-weight: 600; }
.cat-card p { color: var(--c-text-soft); font-size: 14px; margin: 0 0 14px; line-height: 1.7; }
.cat-count { font-size: 12px; color: var(--c-text-mute); font-family: var(--mono); }

/* 主营业务卡（保留） */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-title { font-size: 17px; margin: 0 0 10px; color: var(--c-ink); font-weight: 600; }
.service-desc { margin: 0; color: var(--c-text-soft); font-size: 14.5px; }

/* ==========================================================================
   专家团队展示（头像网格 + 当前医生档案联动）
   联动用纯 CSS 单选钮实现（与页头导航的 checkbox 模式同一路数）：
   隐藏的 radio 是状态载体，头像 <label> 是控制器，档案面板按 :checked 切换。
   首页最多 9 位医生（handlers/pages.rs limit(9)），所以联动规则写到 9。
   ========================================================================== */
.doctor-showcase {
  position: relative;
  background: var(--c-bg-alt); border-radius: var(--radius-lg);
  padding: 40px; display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start;
}
/* 单选钮缩到 1px 但**不**用 display:none —— 保留键盘可聚焦 */
.doc-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.doctor-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doctor-thumb { text-align: center; cursor: pointer; border-radius: 50%; }
.doctor-thumb img,
.doctor-thumb-initial {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; border: 2px solid transparent; transition: border-color .18s;
}
.doctor-thumb-initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--c-brand-light); color: var(--c-brand-dark);
  font-size: 26px; font-weight: 600;
}
.doctor-thumb:hover img, .doctor-thumb:hover .doctor-thumb-initial { border-color: var(--c-brand); }
.doctor-thumb-name { display: block; font-size: 12.5px; color: var(--c-text-mute); margin-top: 7px; }
.doctor-thumb:hover .doctor-thumb-name { color: var(--c-text-soft); }

/* 联动规则：第 k 个单选钮选中 → 第 k 个头像高亮 + 第 k 个面板显示。
   nth-of-type 按**元素类型**计数：.doc-radio 是 showcase 里唯一的 input，
   .doctor-thumb 是 thumbs 里唯一的 label，.doctor-panel 是 panels 里唯一的 div，
   所以三边的序号天然对齐。 */
.doctor-showcase .doc-radio:nth-of-type(1):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(1) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(2):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(2) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(3):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(3) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(4):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(4) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(5):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(5) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(6):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(6) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(7):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(7) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(8):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(8) > :first-child,
.doctor-showcase .doc-radio:nth-of-type(9):checked ~ .doctor-thumbs .doctor-thumb:nth-of-type(9) > :first-child { border-color: var(--c-accent); }

.doctor-showcase .doc-radio:nth-of-type(1):checked ~ .doctor-panels .doctor-panel:nth-of-type(1),
.doctor-showcase .doc-radio:nth-of-type(2):checked ~ .doctor-panels .doctor-panel:nth-of-type(2),
.doctor-showcase .doc-radio:nth-of-type(3):checked ~ .doctor-panels .doctor-panel:nth-of-type(3),
.doctor-showcase .doc-radio:nth-of-type(4):checked ~ .doctor-panels .doctor-panel:nth-of-type(4),
.doctor-showcase .doc-radio:nth-of-type(5):checked ~ .doctor-panels .doctor-panel:nth-of-type(5),
.doctor-showcase .doc-radio:nth-of-type(6):checked ~ .doctor-panels .doctor-panel:nth-of-type(6),
.doctor-showcase .doc-radio:nth-of-type(7):checked ~ .doctor-panels .doctor-panel:nth-of-type(7),
.doctor-showcase .doc-radio:nth-of-type(8):checked ~ .doctor-panels .doctor-panel:nth-of-type(8),
.doctor-showcase .doc-radio:nth-of-type(9):checked ~ .doctor-panels .doctor-panel:nth-of-type(9) { display: block; }

/* 键盘可达：radio 聚焦时在对应头像上画焦点环 */
.doctor-showcase .doc-radio:nth-of-type(1):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(1),
.doctor-showcase .doc-radio:nth-of-type(2):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(2),
.doctor-showcase .doc-radio:nth-of-type(3):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(3),
.doctor-showcase .doc-radio:nth-of-type(4):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(4),
.doctor-showcase .doc-radio:nth-of-type(5):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(5),
.doctor-showcase .doc-radio:nth-of-type(6):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(6),
.doctor-showcase .doc-radio:nth-of-type(7):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(7),
.doctor-showcase .doc-radio:nth-of-type(8):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(8),
.doctor-showcase .doc-radio:nth-of-type(9):focus-visible ~ .doctor-thumbs .doctor-thumb:nth-of-type(9) {
  outline: 2px solid var(--c-accent); outline-offset: 3px;
}

.doctor-panels { min-width: 0; }
.doctor-panel { display: none; }

.doctor-feature { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.doctor-feature-photo { border-radius: var(--radius); overflow: hidden; background: #fff; }
.doctor-feature-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.doctor-feature-text { min-width: 0; }
.doctor-feature-name { font-size: 26px; font-weight: 600; color: var(--c-ink); margin: 0 0 6px; }
.doctor-feature-role { font-size: 14px; color: var(--c-text-soft); margin: 0; }
.doctor-feature-text .license-line { border-top: none; padding-top: 0; margin-top: 10px; }
.doctor-feature-text .tag-list { margin-top: 14px; }
.doctor-feature-bio { color: var(--c-text-soft); font-size: 14.5px; line-height: 1.85; margin: 16px 0 0; }
.doctor-feature-text .link-more { display: inline-block; margin-top: 18px; }

/* ==========================================================================
   来院路线
   ========================================================================== */
.route-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.route-main { min-width: 0; }
.route-way {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 26px; background: var(--c-bg-warm); border-radius: var(--radius);
}
.route-way + .route-way { margin-top: 16px; }
.route-way-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent-light); color: var(--c-accent);
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
}
.route-way-body { min-width: 0; }
.route-way-name { font-size: 16px; font-weight: 600; color: var(--c-ink); margin: 4px 0 6px; }
.route-way-desc { font-size: 14.5px; color: var(--c-text-soft); line-height: 1.85; margin: 0; white-space: pre-line; }
.route-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; }
.route-side .side-contact p { margin: 0 0 9px; font-size: 14px; }
.route-side .btn { margin-top: 10px; }
/* 交通方式一栏都没有时，联系卡作为页面主体铺满 */
.route-fallback { margin-top: 8px; }
.route-fallback .btn { margin-top: 14px; }
.route-fallback .contact-list { margin-bottom: 6px; }
/* 地图块在来院路线页比联系页更宽，放在两栏之下通栏显示 */
.page-wrap .map-block { margin-top: 34px; }
.map-block iframe { width: 100%; min-height: 320px; }

/* ==========================================================================
   图集：医院环境 / 设备 / 荣誉
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--c-bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(20, 24, 28, .78));
}

/* ==========================================================================
   页面通用
   ========================================================================== */
.page-wrap { padding: 44px 0 96px; }

.breadcrumb { font-size: 13px; color: var(--c-text-mute); margin-bottom: 26px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-text-mute); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span[aria-current] { color: var(--c-text); }

.page-head { margin-bottom: 44px; }
.page-head h1, .page-title { font-size: 32px; font-weight: 600; color: var(--c-ink); margin: 0 0 14px; letter-spacing: .01em; }
.page-intro { color: var(--c-text-soft); font-size: 15.5px; margin: 0; max-width: 800px; line-height: 1.85; }

.empty {
  text-align: center; color: var(--c-text-mute); font-size: 15px;
  padding: 72px 24px; background: var(--c-bg-warm); border-radius: var(--radius);
}
.empty a { color: var(--c-accent); margin-left: 4px; }

/* 列表页布局 */
.list-layout { display: grid; grid-template-columns: 1fr 268px; gap: 48px; align-items: start; }
.list-main { min-width: 0; }
.list-side { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 100px; }

.side-block { background: var(--c-bg-warm); border-radius: var(--radius); padding: 22px 20px; }
.side-title {
  font-size: 15px; font-weight: 600; color: var(--c-ink);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border);
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px dashed var(--c-border); }
.side-list li:last-child { border-bottom: none; }
.side-list li.active a { color: var(--c-accent); font-weight: 600; }
.side-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 14px; color: var(--c-text-soft);
}
.side-list a:hover { color: var(--c-accent); }
.side-count { font-family: var(--mono); font-size: 12px; color: var(--c-text-mute); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { padding: 9px 0; font-size: 14px; line-height: 1.65; border-bottom: 1px dashed var(--c-border); }
.side-links li:last-child { border-bottom: none; }
.side-tag { color: var(--c-text-soft); font-size: 14px; margin: 0; }
.side-contact p { margin: 0 0 8px; font-size: 14px; }
.side-contact .btn { margin-top: 8px; }

/* ==========================================================================
   文章详情
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start; }
.article { min-width: 0; }
.article-side { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 100px; }

.article-head { margin-bottom: 28px; }
.article-title { font-size: 32px; font-weight: 600; color: var(--c-ink); margin: 0 0 16px; line-height: 1.45; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--c-text-mute);
  padding-bottom: 18px; border-bottom: 1px solid var(--c-border);
}
.article-meta a { color: var(--c-brand); }

.article-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }

.article-content { font-size: 16px; line-height: 2; color: var(--c-text); }
.article-content h2 { font-size: 22px; margin: 2.2em 0 .8em; color: var(--c-ink); font-weight: 600; }
.article-content h3 { font-size: 18px; margin: 1.8em 0 .7em; color: var(--c-ink); font-weight: 600; }
.article-content p { margin: 0 0 1.3em; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin: 0 0 1.3em; }
.article-content li { margin-bottom: .5em; }
.article-content img { border-radius: var(--radius); margin: 1.6em 0; }
.article-content blockquote {
  margin: 1.6em 0; padding: 16px 22px; background: var(--c-bg-warm);
  border-left: 3px solid var(--c-brand); color: var(--c-text-soft);
}
.article-content code { background: var(--c-bg-alt); padding: 2px 6px; border-radius: 3px; font-family: var(--mono); font-size: .9em; }
.article-content pre {
  background: var(--c-bg-dark); color: #e6e9ec; padding: 18px 20px;
  border-radius: var(--radius); overflow-x: auto; margin: 1.6em 0;
}
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.article-content th, .article-content td { border: 1px solid var(--c-border); padding: 11px 15px; text-align: left; }
.article-content th { background: var(--c-bg-warm); font-weight: 600; }
.article-content .heading-anchor { display: none; }

.article-tags { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-mute); }
.article-tags a {
  display: inline-block; margin: 0 6px 6px 0; padding: 3px 12px;
  background: var(--c-bg-alt); border-radius: 999px; font-size: 13px; color: var(--c-text-soft);
}
.article-tags a:hover { background: var(--c-accent-light); color: var(--c-accent); }

.toc-block { background: var(--c-bg-warm); }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { padding: 5px 0; font-size: 13.5px; line-height: 1.6; }
.toc-list a { color: var(--c-text-soft); }
.toc-list a:hover { color: var(--c-accent); }
.toc-level-2 { padding-left: 0; }
.toc-level-3 { padding-left: 14px; }

/* 上下篇 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.post-nav-item {
  display: block; padding: 20px 22px; background: var(--c-bg-warm);
  border-radius: var(--radius); transition: background .18s;
}
.post-nav-item:hover { background: var(--c-bg-alt); }
.post-nav-item.next { text-align: right; }
.post-nav-label { display: block; font-size: 12px; color: var(--c-text-mute); margin-bottom: 6px; letter-spacing: .06em; }
.post-nav-title { font-size: 14.5px; color: var(--c-ink); line-height: 1.6; }
.post-nav-item.empty { background: transparent; }

/* ==========================================================================
   医生详情
   ========================================================================== */
.doctor-head { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 12px; }
.doctor-head-photo { width: 200px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-bg-alt); }
.doctor-head-text { min-width: 0; }
.profile-block { margin-top: 46px; }
.profile-block h2 {
  font-size: 19px; font-weight: 600; color: var(--c-ink);
  margin: 0 0 18px; padding-bottom: .35em; border-bottom: 1px solid var(--c-border);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 15px 22px; color: var(--c-text-soft);
  border-left: 2px solid var(--c-border); font-size: 14.5px;
}
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 10px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

/* 可核验事实字段 */
.fact-list {
  margin: 26px 0 0; padding: 22px 24px; background: var(--c-bg-warm);
  border-radius: var(--radius); display: grid;
  grid-template-columns: max-content 1fr; gap: 10px 22px; font-size: 14px;
}
.fact-list dt { color: var(--c-text-mute); white-space: nowrap; }
.fact-list dd { margin: 0; font-weight: 600; color: var(--c-ink); word-break: break-all; }
.fact-inline { margin: 12px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.fact-inline dt { color: var(--c-text-mute); white-space: nowrap; }
.fact-inline dd { margin: 0; font-family: var(--mono); color: var(--c-text-soft); word-break: break-all; }
.todo-hint { color: var(--c-accent); font-weight: 400; font-size: 13px; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li {
  background: var(--c-brand-light); color: var(--c-brand-dark);
  border-radius: 999px; padding: 4px 13px; font-size: 13px; line-height: 1.6;
}

.certificate { margin: 34px 0 0; }
.certificate img { width: 100%; max-width: 520px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.certificate figcaption { color: var(--c-text-mute); font-size: 13px; margin-top: 10px; text-align: center; }

/* ==========================================================================
   常见问题（与 FAQPage 结构化数据同源）
   ========================================================================== */
.faq-block { margin-top: 50px; }
.faq-block h2 {
  font-size: 19px; font-weight: 600; color: var(--c-ink);
  margin: 0 0 18px; padding-bottom: .35em; border-bottom: 1px solid var(--c-border);
}
.faq-list { margin: 0; }
.faq-list dt {
  position: relative; font-weight: 600; color: var(--c-ink);
  margin-top: 22px; padding-left: 32px; font-size: 15.5px;
}
.faq-list dt::before {
  content: "问"; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%; text-align: center;
  font-size: 11px; line-height: 21px; font-weight: 500;
  color: var(--c-accent); background: var(--c-accent-light);
}
.faq-list dd { margin: 9px 0 0; padding-left: 32px; color: var(--c-text-soft); line-height: 1.9; }

/* ==========================================================================
   单页 / 联系
   ========================================================================== */
.page-article { max-width: 820px; margin: 0 auto; }
.contact-block { background: var(--c-bg-warm); border-radius: var(--radius); padding: 30px 28px; }
.contact-list { list-style: none; margin: 0 0 22px; padding: 0; }
.contact-list li { padding: 9px 0; font-size: 14.5px; color: var(--c-text-soft); border-bottom: 1px dashed var(--c-border); }
.contact-list li:last-child { border-bottom: none; }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-qr { text-align: center; }
.contact-qr img { margin: 0 auto 8px; width: 130px; border-radius: var(--radius); }
.map-block { margin-top: 22px; border-radius: var(--radius); overflow: hidden; }
.map-block iframe { width: 100%; border: 0; display: block; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row-full { grid-column: 1 / -1; }
.contact-form label { font-size: 13.5px; color: var(--c-text-soft); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  color: var(--c-text); background: #fff;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius);
  transition: border-color .16s, box-shadow .16s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-light);
}
.contact-form textarea { min-height: 132px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--c-text-mute); }
.form-error {
  background: var(--c-accent-light); color: var(--c-accent-dark);
  border-radius: var(--radius); padding: 13px 16px; font-size: 14px; margin-bottom: 20px;
}
.form-success {
  background: #eef7f1; color: #2f6b46;
  border-radius: var(--radius); padding: 13px 16px; font-size: 14px; margin-bottom: 20px;
}

/* ==========================================================================
   搜索 / 分页 / 错误页
   ========================================================================== */
.search-form { display: flex; gap: 10px; max-width: 540px; margin-top: 20px; }
.search-form input {
  flex: 1; padding: 12px 16px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius);
}
.search-form input:focus { outline: none; border-color: var(--c-brand); }
.search-summary { color: var(--c-text-soft); margin-bottom: 26px; font-size: 14.5px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; color: var(--c-text-soft); background: #fff;
  transition: border-color .16s, background .16s, color .16s;
}
.page-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.page-btn.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; font-weight: 600; }

.error-page { text-align: center; padding: 60px 0 24px; max-width: 620px; margin: 0 auto; }
.error-code {
  font-size: 88px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--c-bg-alt); -webkit-text-stroke: 1.5px var(--c-brand);
}
.error-title { font-size: 24px; color: var(--c-ink); margin: 20px 0 12px; font-weight: 600; }
.error-desc { color: var(--c-text-soft); margin: 0 0 34px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-links {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border);
  font-size: 13.5px; color: var(--c-text-mute);
}
.error-links a { margin: 0 10px; }

/* ==========================================================================
   统计数字
   ========================================================================== */
.stats-section { background: var(--c-bg-dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
.stat-item { text-align: center; }
.stat-value { font-size: 38px; font-weight: 600; color: #fff; line-height: 1.2; letter-spacing: .01em; }
.stat-label { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* ==========================================================================
   关于我们
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-text p { color: var(--c-text-soft); margin: 0 0 22px; white-space: pre-line; font-size: 15.5px; line-height: 1.9; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; }

/* ==========================================================================
   底部行动区
   ========================================================================== */
.cta-section { background: var(--c-bg-dark); color: #fff; }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: 27px; color: #fff; margin: 0 0 14px; font-weight: 600; }
.cta-inner p { color: rgba(255, 255, 255, .72); margin: 0 0 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-inner .btn-ghost { color: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .4); }
.cta-inner .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { background: var(--c-bg-dark); color: #8d97a2; margin-top: 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding: 64px 24px 44px; }
.footer-col { min-width: 0; }
.footer-title { color: #fff; font-size: 15px; margin: 0 0 18px; font-weight: 600; letter-spacing: .04em; }
.footer-text { margin: 0 0 12px; line-height: 1.85; color: #8d97a2; font-size: 13.5px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 6px 0; line-height: 1.7; font-size: 13.5px; }
.footer-list a { color: #8d97a2; }
.footer-list a:hover { color: #fff; }
.footer-key { color: #5f6b76; margin-right: 10px; }
.footer-qr { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.footer-qr img { width: 88px; border-radius: var(--radius); background: #fff; padding: 4px; }

.footer-extra { padding: 0 24px 24px; color: #6b7683; font-size: 13px; line-height: 1.85; }

/* 医疗资质披露（法定展示项，每页都有） */
.footer-medical { margin-top: 8px; padding: 26px 24px; border-top: 1px solid #2b333c; }
.footer-medical-title { color: #fff; font-size: 13.5px; margin: 0 0 14px; font-weight: 600; letter-spacing: .06em; }
.footer-medical-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 34px; font-size: 13px; color: #8d97a2;
}

.footer-bottom { border-top: 1px solid #2b333c; padding: 20px 0; font-size: 12.5px; color: #6b7683; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-bottom a { color: #6b7683; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { padding: 0 24px 30px; font-size: 12px; line-height: 1.85; color: #5f6b76; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --sec-pad: 64px; }
  .list-layout, .article-layout, .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .list-side, .article-side { position: static; }
  .route-layout { grid-template-columns: 1fr; gap: 30px; }
  .route-side { position: static; }
  .doctor-showcase { grid-template-columns: 1fr; gap: 34px; padding: 30px; }
  /* 72px：375px 视口（约 279px 内容宽）正好 3 列，头像不至于过大 */
  .doctor-thumbs { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .doctor-feature { grid-template-columns: 260px 1fr; gap: 26px; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-bar-inner { grid-template-columns: repeat(5, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .header-contact { display: none; }
}

@media (max-width: 720px) {
  :root { --sec-pad: 46px; }
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .hero { padding: 62px 0 54px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 14px; }
  .section-title { font-size: 21px; }
  .page-head h1, .page-title, .article-title { font-size: 24px; }
  .post-grid, .cat-grid, .service-grid, .doctor-grid, .patent-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .cat-bar a { padding: 14px 4px; font-size: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-head { flex-direction: column; gap: 18px; }
  .doctor-head-photo { width: 100%; max-width: 220px; }
  .doctor-feature { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; gap: 2px 0; }
  .fact-list dt { margin-top: 9px; }
  .contact-form { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 18px 30px; }

  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
    padding: 10px; margin-left: auto;
  }
  .nav-toggle-label span { width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; border-bottom: 1px solid var(--c-border); padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a::after { display: none; }
  .site-nav a.active { background: var(--c-brand-light); }
}
