/* ==========================================================================
 * 官网模板库
 * body 上的 tpl-* 类切换版式与质感。模板只调整「中性色 + 圆角 + 字体 + 版式」，
 * 品牌三色（--green / --deep / --mint 系）仍由后台「主题色」注入，
 * 因此同一套模板可以配不同医院的主色，不必为每家医院复制一份 CSS。
 * ========================================================================== */

/* ---------- 1. classic 综合医院 · 青绿（默认，保持原版式） ---------- */
/* 无需额外规则：site.css 即经典版。 */

/* ---------- 2. tcm 中医馆 · 朱红暖金 ---------- */
.tpl-tcm {
  --paper: #fbf7f2;
  --card: #fffdfa;
  --line: #eee0d7;
  --ink: #2c1c16;
  --muted: #8a7062;
  --gold: #b8873f;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(86, 38, 24, .06);
}
.tpl-tcm .site-header { background: rgba(253, 249, 244, .95); border-bottom-color: #eee0d7; }
.tpl-tcm .hero { padding: 92px 0 84px; }
.tpl-tcm .hero:before { background: radial-gradient(circle, rgba(255, 236, 210, .12), transparent 68%); }
.tpl-tcm .hero-core { border-radius: 50%; }
.tpl-tcm .hero-core svg { color: var(--gold); }
.tpl-tcm .section-head h2,
.tpl-tcm .card-title { font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 600; }
.tpl-tcm .section-head h2:after,
.tpl-tcm .card-title:after {
  content: ""; display: block; width: 64px; height: 2px; margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.tpl-tcm .eyebrow { letter-spacing: .18em; color: #9a6b3f; }
.tpl-tcm .btn,
.tpl-tcm .header-cta { border-radius: 12px; }
.tpl-tcm .service-card,
.tpl-tcm .dept-card,
.tpl-tcm .news-card,
.tpl-tcm .doctor-card,
.tpl-tcm .gallery-card { border-color: #efe3dc; }
.tpl-tcm .section.mint { background: #f8efe9; }

/* ---------- 3. specialist 专科医院 · 深海蓝（冷峻、方正、高信息密度） ---------- */
.tpl-specialist {
  --paper: #f6f9fb;
  --card: #ffffff;
  --line: #dfe8ef;
  --ink: #122431;
  --muted: #66798a;
  --gold: #3f7ea6;
  --radius: 5px;
  --shadow: 0 2px 10px rgba(18, 42, 58, .045);
}
.tpl-specialist .section { padding: 74px 0; }
.tpl-specialist .hero { padding: 74px 0 66px; }
.tpl-specialist .hero-core { border-radius: 8px; }
.tpl-specialist .hero-stat b { font-family: inherit; font-weight: 800; letter-spacing: .01em; }
.tpl-specialist .section-head { align-items: center; }
.tpl-specialist .section-head h2 { font-weight: 800; letter-spacing: -.01em; position: relative; padding-left: 16px; }
.tpl-specialist .section-head h2:before {
  content: ""; position: absolute; left: 0; top: .16em; bottom: .16em;
  width: 4px; border-radius: 2px; background: var(--green);
}
.tpl-specialist .service-card,
.tpl-specialist .dept-card,
.tpl-specialist .news-card,
.tpl-specialist .doctor-card { border-radius: 5px; box-shadow: none; }
.tpl-specialist .service-card:hover,
.tpl-specialist .dept-card:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(18, 42, 58, .07); }
.tpl-specialist .btn,
.tpl-specialist .header-cta,
.tpl-specialist .hero-badge { border-radius: 6px; letter-spacing: .03em; }
.tpl-specialist .section.mint { background: #eff5f9; }

/* ---------- 4. womens 妇产 · 藕粉玫紫（柔美、大留白、衬线标题） ---------- */
.tpl-womens {
  --paper: #fdf8f9;
  --card: #ffffff;
  --line: #f2e2e7;
  --ink: #2f2027;
  --muted: #8d7079;
  --gold: #c2809a;
  --radius: 28px;
  --shadow: 0 10px 34px rgba(120, 60, 80, .07);
}
.tpl-womens .hero { padding: 96px 0 88px; }
.tpl-womens .hero:before { background: radial-gradient(circle, rgba(255, 220, 232, .16), transparent 66%); }
.tpl-womens .hero-core { border-radius: 50%; width: 170px; height: 170px; }
.tpl-womens .hero h1,
.tpl-womens .section-head h2 { font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 600; }
.tpl-womens .hero-sub { line-height: 2; }
.tpl-womens .service-card,
.tpl-womens .news-card,
.tpl-womens .doctor-card,
.tpl-womens .gallery-card,
.tpl-womens .form-card,
.tpl-womens .detail-card { border-radius: 28px; }
.tpl-womens .dept-card { border-radius: 999px; padding: 14px 22px; }
.tpl-womens .value-item { border-radius: 18px; }
.tpl-womens .btn,
.tpl-womens .header-cta { letter-spacing: .04em; }
.tpl-womens .section.mint { background: #fdf1f4; }
.tpl-womens .eyebrow { letter-spacing: .2em; }

/* ---------- 5. pediatric 儿科 · 暖橙（活泼、糖果色块、圆润） ---------- */
.tpl-pediatric {
  --paper: #fffdf7;
  --card: #ffffff;
  --line: #f6e7cf;
  --ink: #33281c;
  --muted: #8c7a63;
  --gold: #e39a2d;
  --radius: 24px;
  --shadow: 0 8px 26px rgba(180, 120, 30, .07);
}
.tpl-pediatric .hero:after { background: radial-gradient(circle, rgba(255, 170, 60, .22), transparent 70%); }
.tpl-pediatric .hero-core { border-radius: 50%; }
.tpl-pediatric .hero-stat b { font-family: inherit; font-weight: 800; }
.tpl-pediatric .section-head h2 { font-weight: 800; }
.tpl-pediatric .eyebrow { padding: 4px 12px; border-radius: 999px; background: var(--mint); letter-spacing: .06em; }
.tpl-pediatric .eyebrow:before { display: none; }
.tpl-pediatric .service-card { border: 2px solid #fde9c9; border-bottom-width: 4px; }
.tpl-pediatric .dept-card { border: 1px solid #f6e7cf; border-bottom: 3px solid #ffd9a0; border-radius: 18px; }
.tpl-pediatric .news-card,
.tpl-pediatric .doctor-card { border-bottom: 3px solid #ffe6bf; }
.tpl-pediatric .btn { border-radius: 999px; box-shadow: 0 5px 0 rgba(0, 0, 0, .05); }
.tpl-pediatric .btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .05); }
.tpl-pediatric .section.mint { background: #fff7e6; }

/* ---------- 6. premium 高端私立 · 墨金（极致留白、衬线、细金线） ---------- */
.tpl-premium {
  --paper: #faf8f3;
  --card: #fffefb;
  --line: #e7dfd0;
  --ink: #1b1712;
  --muted: #7e7466;
  --gold: #a4813c;
  --radius: 2px;
  --shadow: 0 2px 12px rgba(60, 46, 20, .05);
}
.tpl-premium .hero { padding: 110px 0 100px; }
.tpl-premium .hero h1,
.tpl-premium .section-head h2 { font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-weight: 500; letter-spacing: .02em; }
.tpl-premium .hero-sub { letter-spacing: .01em; }
.tpl-premium .hero-core { border-radius: 2px; }
.tpl-premium .section { padding: 104px 0; }
.tpl-premium .section-head h2:after {
  content: ""; display: block; width: 48px; height: 1px; margin-top: 16px; background: var(--gold);
}
.tpl-premium .service-card,
.tpl-premium .news-card,
.tpl-premium .doctor-card,
.tpl-premium .gallery-card,
.tpl-premium .dept-card { border-radius: 2px; }
.tpl-premium .btn,
.tpl-premium .header-cta,
.tpl-premium .hero-badge { border-radius: 2px; letter-spacing: .08em; }
.tpl-premium .eyebrow { letter-spacing: .24em; color: var(--gold); }
.tpl-premium .section-head .head-link { border-bottom-color: rgba(164, 129, 60, .3); }
.tpl-premium .section.mint { background: #f4f1e9; }

/* ---------- 7. dental 口腔 · 清透青蓝（洁净、轻盈、全圆按钮） ---------- */
.tpl-dental {
  --paper: #f5fbfd;
  --card: #ffffff;
  --line: #ddeef4;
  --ink: #16323b;
  --muted: #6a8794;
  --gold: #5aa7bd;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(40, 110, 130, .06);
}
.tpl-dental .hero { padding: 88px 0 80px; }
.tpl-dental .hero-core { border-radius: 50%; }
.tpl-dental .hero-badge { background: rgba(255, 255, 255, .14); }
.tpl-dental .section { padding: 80px 0; }
.tpl-dental .dept-card { border-radius: 999px; }
.tpl-dental .btn,
.tpl-dental .header-cta { border-radius: 999px; }
.tpl-dental .section.mint { background: #eef8fb; }

/* ---------- 8. rehab 康复 · 竹青（安静、自然、柔和） ---------- */
.tpl-rehab {
  --paper: #f8fbf7;
  --card: #ffffff;
  --line: #e2ece2;
  --ink: #1c2b1e;
  --muted: #6b7f6d;
  --gold: #7f9f6a;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(40, 80, 45, .06);
}
.tpl-rehab .hero { padding: 90px 0 82px; }
.tpl-rehab .hero:before { background: radial-gradient(circle, rgba(210, 240, 200, .14), transparent 68%); }
.tpl-rehab .hero-core { border-radius: 36px; }
.tpl-rehab .section-head h2 { font-weight: 700; letter-spacing: .01em; }
.tpl-rehab .section { padding: 84px 0; }
.tpl-rehab .service-card,
.tpl-rehab .news-card,
.tpl-rehab .doctor-card,
.tpl-rehab .gallery-card { border-radius: 20px; }
.tpl-rehab .btn,
.tpl-rehab .header-cta { border-radius: 14px; }
.tpl-rehab .section.mint { background: #f0f7ee; }

/* ---------- 通用：模板切换时保持排版基线一致 ---------- */
.tpl-specialist .hero-grid,
.tpl-premium .hero-grid { gap: 64px; }
.tpl-womens .hero-grid,
.tpl-pediatric .hero-grid { gap: 46px; }
