@charset "utf-8";
/* ==========================================================================
   青和堂中医馆 · 官网样式
   配色：青绿 #1F6F5C / 草绿 #7BA05B / 竹青 #C9DCC0 / 米白 #F7F3E9
   ========================================================================== */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --ink: #1f6f5c;
  --ink-deep: #14453c;
  --ink-soft: #2e5f51;
  --herb: #7ba05b;
  --bamboo: #c9dcc0;
  --bamboo-2: #e6efdf;
  --paper: #f7f3e9;
  --paper-2: #fbf8f0;
  --white: #fff;
  --text: #2b3a34;
  --muted: #6b7a73;
  --line: rgba(31, 111, 92, 0.14);
  --line-strong: rgba(31, 111, 92, 0.26);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(20, 69, 60, 0.05);
  --shadow-2: 0 16px 40px -18px rgba(20, 69, 60, 0.28);
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
input { font: inherit; }

:focus-visible { outline: 2px solid var(--herb); outline-offset: 3px; }

::selection { background: var(--bamboo); color: var(--ink-deep); }

/* ---------- 2. 通用排版 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

.serif { font-family: var(--serif); }

.section { padding: 92px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink-deep); color: rgba(255, 255, 255, 0.82); }
.section--flush { padding-bottom: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--herb);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--herb);
  opacity: 0.7;
}
.section--ink .kicker { color: var(--bamboo); }
.section--ink .kicker::before { background: var(--bamboo); }

.lead { color: var(--muted); font-size: 15.5px; line-height: 1.9; }

/* 区块头 */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.sec-head__text { max-width: 640px; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
  margin: 12px 0 10px;
}
.sec-head p { color: var(--muted); font-size: 15px; }
.section--ink .sec-head h2 { color: #fff; }
.section--ink .sec-head p { color: rgba(255, 255, 255, 0.6); }

/* 更多链接 */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-more:hover { gap: 14px; color: var(--ink-deep); border-color: var(--ink); }
.section--ink .link-more { color: var(--bamboo); border-color: rgba(201, 220, 192, 0.4); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 32px;
  font-size: 14px;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-deep); transform: translateY(-2px); }
.btn--line { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--ink-line { border-color: var(--line-strong); color: var(--ink); }
.btn--ink-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 分隔装饰 */
.rule-leaf {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bamboo);
}
.rule-leaf::before,
.rule-leaf::after {
  content: "";
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- 3. 顶部栏与导航 ---------- */
.topbar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}
.topbar__meta { display: flex; align-items: center; gap: 22px; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 13px; height: 13px; opacity: 0.75; }
.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bamboo);
}
.topbar__tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--herb);
}

#site-header { display: contents; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(247, 243, 233, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), background 0.35s;
}
.site-header.is-scrolled {
  background: rgba(247, 243, 233, 0.98);
  box-shadow: 0 8px 24px -18px rgba(20, 69, 60, 0.5);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* Logo */
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__seal {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.16em; color: var(--ink-deep); line-height: 1.2; }
.brand__sub { display: block; font-size: 9px; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { width: 14px; height: 14px; }

/* 主导航 */
.nav { display: flex; align-items: center; height: 100%; }
.nav__item { position: relative; height: 100%; }
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 15px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.25s;
}
.nav__link i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.45;
  transition: transform 0.3s var(--ease);
}
.nav__item:hover .nav__link,
.nav__item.is-active .nav__link { color: var(--ink); }
.nav__item:hover .nav__link i { transform: rotate(225deg) translateY(-2px); opacity: 0.8; }

.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 178px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__panel a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: all 0.22s;
}
.nav__panel a:hover {
  background: var(--paper);
  color: var(--ink);
  border-left-color: var(--herb);
}

.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}
.icon-btn:hover { background: var(--bamboo-2); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-deep);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink-deep);
  transition: transform 0.3s var(--ease), top 0.3s;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 65;
  background: var(--paper);
  padding: 96px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__group { border-bottom: 1px solid var(--line); }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-deep);
  letter-spacing: 0.08em;
}
.mobile-menu__top i {
  width: 8px; height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.mobile-menu__group.is-open .mobile-menu__top i { transform: rotate(225deg); }
.mobile-menu__sub { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-menu__group.is-open .mobile-menu__sub { max-height: 320px; }
.mobile-menu__sub a {
  display: block;
  padding: 11px 4px 11px 16px;
  font-size: 15px;
  color: var(--muted);
}
.mobile-menu__foot { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu__foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }

/* ---------- 4. 首页 Banner ---------- */
.hero {
  position: relative;
  height: clamp(460px, 76vh, 660px);
  overflow: hidden;
  background: var(--ink-deep);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(15, 54, 46, 0.9) 0%, rgba(15, 54, 46, 0.72) 38%, rgba(15, 54, 46, 0.28) 72%, rgba(15, 54, 46, 0.12) 100%);
}
.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero__content { max-width: 620px; color: #fff; padding-bottom: 24px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.26em;
  color: var(--bamboo);
  margin-bottom: 26px;
}
.hero__kicker::before { content: ""; width: 30px; height: 1px; background: var(--bamboo); opacity: 0.8; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.32;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(14px, 1.2vw, 16.5px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__seal {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px 9px;
}
.hero__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__ui { position: absolute; left: 0; right: 0; bottom: 96px; z-index: 3; }
.hero__ui .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hero__left { display: flex; flex-direction: column; gap: 14px; }
.hero__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.hero__btn:hover { background: rgba(255, 255, 255, 0.92); color: var(--ink-deep); border-color: transparent; }
.hero__btn svg { width: 16px; height: 16px; }
.hero__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__dot {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s, width 0.4s var(--ease);
}
.hero__dot.is-active { background: #fff; width: 48px; }
.hero__count {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}
.hero__count b { color: #fff; font-weight: 500; }

/* ---------- 5. 快捷导诊 ---------- */
.quick {
  position: relative;
  margin-top: -46px;
  z-index: 5;
}
.quick__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgba(20, 69, 60, 0.4);
}
.quick__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.quick__item:last-child { border-right: 0; }
.quick__item:hover { background: var(--paper-2); }
.quick__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bamboo-2);
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.quick__icon svg { width: 20px; height: 20px; }
.quick__item:hover .quick__icon { background: var(--ink); color: var(--paper); }
.quick__item strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: 0.06em;
}
.quick__item span { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- 6. 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bamboo-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute;
  left: 0;
  top: 16px;
  padding: 5px 12px;
  background: rgba(20, 69, 60, 0.9);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.14em;
}
.card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink-deep);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3em;
}
.card__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card__price { color: var(--ink); font-family: var(--serif); font-size: 16px; }
.card__arrow { color: var(--herb); }
.card__arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.card:hover .card__arrow svg { transform: translateX(4px); }

/* 横向列表卡（首页动态） */
.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}
.news-lead {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.news-lead img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.news-lead:hover img { transform: scale(1.04); }
.news-lead__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 54, 46, 0.92) 0%, rgba(15, 54, 46, 0.55) 45%, rgba(15, 54, 46, 0.05) 100%);
}
.news-lead__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
  color: #fff;
}
.news-lead__body h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.news-lead__body p { font-size: 14px; color: rgba(255, 255, 255, 0.75); line-height: 1.8; }
.news-lead__meta { font-size: 12px; letter-spacing: 0.12em; color: var(--bamboo); margin-bottom: 14px; display: block; }

.news-list { display: flex; flex-direction: column; min-width: 0; }
.news-list__item > span { min-width: 0; }
.news-list__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.news-list__item:first-child { padding-top: 0; }
.news-list__date { font-family: var(--serif); color: var(--muted); line-height: 1.3; }
.news-list__date b { display: block; font-size: 26px; color: var(--ink); font-weight: 500; }
.news-list__date span { font-size: 11.5px; letter-spacing: 0.1em; }
.news-list__item h4 {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}
.news-list__item:hover h4 { color: var(--ink); }
.news-list__item p {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* ---------- 7. 医生牌位（占位形象） ---------- */
.plaque {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, #f6f3e5 0%, #e8eddb 55%, #d7e4cd 100%);
  overflow: hidden;
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(31, 111, 92, 0.2);
  pointer-events: none;
}
.plaque::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 60%;
  bottom: -30%;
  background: radial-gradient(closest-side, rgba(123, 160, 91, 0.22), transparent);
}
.plaque__cn {
  position: relative;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.26em;
  color: var(--ink-deep);
  padding: 18px 10px;
  border-top: 1px solid rgba(31, 111, 92, 0.28);
  border-bottom: 1px solid rgba(31, 111, 92, 0.28);
}
.plaque::before { inset: 12px; }
.plaque__en {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: rgba(31, 111, 92, 0.5);
  text-transform: uppercase;
}
.plaque__leaf {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  opacity: 0.35;
}

/* 医生卡 */
.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.4s;
  height: 100%;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.doctor-card__photo { aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.doctor-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(20, 69, 60, 0.9);
  color: var(--bamboo);
  font-size: 11px;
  letter-spacing: 0.12em;
  z-index: 2;
}
.doctor-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doctor-card__name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--ink-deep);
}
.doctor-card__name small { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; font-family: var(--sans); }
.doctor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bamboo-2);
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.doctor-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.doctor-card__meta svg { width: 13px; height: 13px; color: var(--herb); }

/* ---------- 8. 数据带 / 引言 ---------- */
.band { background: var(--ink-deep); color: rgba(255, 255, 255, 0.78); position: relative; overflow: hidden; }
.band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(201, 220, 192, 0.16);
  pointer-events: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 220, 192, 0.16);
}
.stats__item { background: var(--ink-deep); padding: 34px 28px; }
.stats__num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
}
.stats__num small { font-size: 15px; margin-left: 4px; color: var(--bamboo); letter-spacing: 0.06em; }
.stats__label { font-size: 13px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.1em; margin-top: 8px; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-cards > div { background: var(--white); padding: 26px 24px; }
.stat-cards b {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.stat-cards b small { font-size: 14px; margin-left: 3px; color: var(--herb); }
.stat-cards span { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.quote-band { padding: 76px 0; text-align: center; background: var(--paper-2); border-top: 1px solid var(--line); }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--ink-deep);
}
.quote-band cite {
  display: block;
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-style: normal;
}

/* ---------- 9. 内页头部 ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 60px 0 46px;
  overflow: hidden;
  background: var(--ink-deep);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 54, 46, 0.9), rgba(15, 54, 46, 0.62) 60%, rgba(15, 54, 46, 0.4));
}
.page-hero .wrap { position: relative; color: #fff; width: 100%; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.5; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.35;
}
.page-hero p { margin-top: 12px; max-width: 640px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.85; }

/* 子导航标签 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.tabs a,
.tabs button {
  position: relative;
  padding: 12px 20px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s;
}
.tabs a::after,
.tabs button::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.tabs a:hover,
.tabs button:hover { color: var(--ink); }
.tabs .is-active { color: var(--ink-deep); }
.tabs .is-active::after { transform: scaleX(1); }

/* ---------- 10. 图文内容块 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 3px; }
.split__media--offset::after {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--line-strong);
  z-index: -1;
}
.split h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-deep);
  line-height: 1.5;
  margin-bottom: 20px;
}
.split p { color: var(--muted); font-size: 15.5px; line-height: 1.95; margin-bottom: 16px; }
.split p:last-child { margin-bottom: 0; }

.prose h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: 0.05em;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--herb);
  line-height: 1.5;
}
.prose h3:first-child { margin-top: 0; }
.prose p { color: #46564e; font-size: 15.5px; line-height: 2; margin-bottom: 15px; }
.prose ul { margin: 0 0 18px; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #46564e;
  line-height: 1.9;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--herb);
}

/* 提示块 */
.notice {
  border-left: 3px solid var(--herb);
  background: var(--paper-2);
  padding: 24px 28px;
  margin: 26px 0;
}
.notice h4 {
  font-size: 15px;
  color: var(--ink-deep);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}
.notice p,
.notice li { font-size: 14px; color: var(--muted); line-height: 1.9; }
.notice ul { margin-top: 6px; }
.notice ul li { position: relative; padding-left: 16px; }
.notice ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; background: var(--herb); border-radius: 50%; }

/* ---------- 11. 就医导诊组件 ---------- */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
}
.qr-block img { width: 220px; height: 220px; }
.qr-block__tip {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-deep);
  letter-spacing: 0.08em;
}
.qr-block__sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0.06em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: left; }
.step__img {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 4 / 5;
}
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
}
.step h4 {
  font-size: 15px;
  color: var(--ink-deep);
  margin: 14px 0 4px;
  letter-spacing: 0.04em;
}
.step p { font-size: 13px; color: var(--muted); line-height: 1.75; }

.info-rows { border-top: 1px solid var(--line); }
.info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.info-row dt {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.info-row dd { margin: 0; font-size: 15px; color: var(--text); line-height: 1.85; }
.info-row dd strong { color: var(--ink); font-weight: 500; }

.route-group { margin-bottom: 34px; }
.route-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.route-group__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bamboo-2);
  color: var(--ink);
  border-radius: 50%;
}
.route-group__icon svg { width: 17px; height: 17px; }
.route-group__head h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: 0.08em;
}
.route-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.route-item b { font-weight: 500; color: var(--text); }
.route-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.route-item em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bamboo-2);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  align-self: center;
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.copy-field span { flex: 1; font-size: 14.5px; color: var(--text); min-width: 200px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all 0.25s;
}
.copy-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- 12. 特色专科 ---------- */
.spec-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 48px;
  align-items: start;
}
.spec-nav { border-left: 1px solid var(--line); }
.spec-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 15px 8px 15px 20px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: all 0.28s;
}
.spec-nav__item small { font-size: 11px; opacity: 0.6; letter-spacing: 0.1em; }
.spec-nav__item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.spec-nav__item.is-active {
  color: var(--ink-deep);
  border-left-color: var(--ink);
  background: var(--white);
  font-family: var(--serif);
  font-size: 17px;
}
.spec-panel { min-height: 380px; }
.spec-panel__head { margin-bottom: 28px; }
.spec-panel__head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.spec-panel__head p { color: var(--muted); font-size: 14.5px; }
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: var(--paper-2);
  font-size: 14px;
}

/* ---------- 13. 详情页 ---------- */
.article { max-width: 840px; margin: 0 auto; }
.article__head { text-align: center; margin-bottom: 38px; }
.article__cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bamboo-2);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.article__title {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
}
.article__meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--line-strong);
}
.article__meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.article__cover { margin: 34px auto; max-width: 720px; }
.article__cover img { width: 100%; border-radius: 3px; }
.article__body { font-size: 16px; line-height: 2.05; color: #3d4c45; }
.article__body p { margin-bottom: 20px; }
.article__body h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink-deep);
  margin: 38px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--herb);
}
.article__body ul { margin: 0 0 22px; }
.article__body li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.article__body li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--herb); }
.article__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.article__gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }

.article__foot {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 45%;
  transition: color 0.25s;
}
.article__nav:hover { color: var(--ink); }
.article__nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 医生详情 */
.doctor-hero { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.doctor-hero__photo { aspect-ratio: 3/4; border: 1px solid var(--line); overflow: hidden; }
.doctor-hero h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-deep);
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.doctor-hero h1 small { font-size: 14px; letter-spacing: 0.06em; color: var(--herb); font-family: var(--sans); }
.doctor-hero__title { margin-top: 8px; font-size: 15px; color: var(--muted); letter-spacing: 0.08em; }
.doctor-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }

/* ---------- 14. 搜索层 ---------- */
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(247, 243, 233, 0.98);
  backdrop-filter: blur(6px);
  padding: 90px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}
.search-layer.is-open { opacity: 1; visibility: visible; }
.search-layer__box { max-width: 760px; margin: 0 auto; }
.search-layer__field {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}
.search-layer__field svg { width: 20px; height: 20px; color: var(--ink); }
.search-layer input {
  flex: 1;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-deep);
  outline: none;
}
.search-layer input::placeholder { color: rgba(107, 122, 115, 0.55); }
.search-layer__close { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.search-layer__hint { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.search-results { margin-top: 26px; }
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s, color 0.25s;
}
.search-result:hover { padding-left: 8px; color: var(--ink); }
.search-result b { font-weight: 500; font-size: 15.5px; }
.search-result span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 36, 30, 0.94);
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  transition: all 0.25s;
}
.pager button:hover { border-color: var(--ink); color: var(--ink); }
.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- 15. 页脚 ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, 0.62); padding-top: 64px; }
.site-footer a:hover { color: var(--bamboo); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.88fr 0.88fr 1fr 1.05fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, 0.4); }
.footer-brand .brand__seal { background: rgba(201, 220, 192, 0.16); color: var(--bamboo); }
.footer-brand p { margin-top: 20px; font-size: 13.5px; line-height: 1.95; max-width: 320px; }
.footer-col h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13.5px; transition: color 0.25s; }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 12px;
  align-items: flex-start;
}
.footer-contact svg { width: 15px; height: 15px; margin-top: 5px; flex-shrink: 0; color: var(--herb); }
.footer-qr { display: flex; gap: 16px; }
.footer-qr figure { text-align: center; }
.footer-qr img { width: 92px; height: 92px; background: #fff; padding: 5px; border-radius: 2px; }
.footer-qr figcaption { font-size: 11.5px; margin-top: 8px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.06em; }
.footer-bottom {
  border-top: 1px solid rgba(201, 220, 192, 0.16);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.4); }
.footer-bottom span { display: inline-flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 16. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transition: none; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1199px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .spec-layout { grid-template-columns: 200px 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-brand { grid-column: span 2; }
  .footer-qr { justify-content: flex-start; }
}

@media (max-width: 991px) {
  .wrap { padding: 0 24px; }
  .section { padding: 68px 0; }
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .topbar__meta span:nth-child(2) { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(2) { border-right: 0; }
  .quick__item:nth-child(1),
  .quick__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: -1; }
  .split__media--offset::after { display: none; }
  .spec-layout { grid-template-columns: 1fr; gap: 24px; }
  .spec-nav { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .spec-nav__item {
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 12px 16px;
    margin: 0;
  }
  .spec-nav__item.is-active { border-bottom-color: var(--ink); background: none; }
  .spec-nav__item small { display: none; }
  .doctor-hero { grid-template-columns: 260px 1fr; gap: 32px; }
  .news-row { grid-template-columns: minmax(0, 1fr); }
  .news-lead { min-height: 320px; }
  .hero__seal { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page-hero { min-height: 260px; padding: 42px 0 34px; }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .topbar__tag { display: none; }
  .topbar .wrap { height: 34px; }
  .site-header .wrap { gap: 10px; height: 64px; }
  .brand { gap: 10px; }
  .brand__seal { width: 34px; height: 34px; font-size: 15px; border-radius: 2px; }
  .brand__name { font-size: 19px; letter-spacing: 0.12em; }
  .brand__sub { font-size: 8px; letter-spacing: 0.18em; }
  .nav-tools { gap: 2px; }
  .nav-tools .icon-btn[href^="tel"] { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .wrap { padding: 0 18px; }
  .section { padding: 52px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 30px; }
  .sec-head h2 { margin: 10px 0 8px; }
  .hero { height: 78vh; min-height: 440px; max-height: 620px; }
  .hero__content { max-width: 100%; }
  .hero__sub { font-size: 14px; }
  .hero__actions { margin-top: 26px; gap: 10px; }
  .hero__btn { width: 38px; height: 38px; }
  .hero__ui { bottom: 66px; }
  .hero__nav { gap: 8px; }
  .hero__dots { gap: 8px; }
  .hero__dot { width: 20px; }
  .hero__dot.is-active { width: 32px; }
  .hero__count { display: none; }
  .quick { margin-top: -28px; }
  .quick__item { padding: 18px 14px; gap: 12px; }
  .quick__icon { width: 36px; height: 36px; }
  .quick__item strong { font-size: 15px; }
  .quick__item span { font-size: 11.5px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__body { padding: 14px 14px 16px; }
  .card__title { font-size: 16px; }
  .card__desc { font-size: 12.5px; min-height: 44px; }
  .card__tag { font-size: 10.5px; top: 10px; padding: 3px 8px; }
  .card__foot { font-size: 11.5px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .qr-block { padding: 26px 18px; }
  .qr-block img { width: 180px; height: 180px; }
  .doctor-hero { grid-template-columns: 1fr; }
  .doctor-hero__photo { max-width: 260px; }
  .article__gallery { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-brand p { margin-top: 14px; }
  .footer-bottom { justify-content: flex-start; font-size: 11.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 22px 18px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards > div { padding: 18px; }
  .stat-cards b { font-size: 28px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tabs { gap: 2px; flex-wrap: nowrap; overflow-x: auto; }
  .tabs a, .tabs button { padding: 10px 14px; white-space: nowrap; font-size: 14px; }
  .tabs a::after, .tabs button::after { left: 14px; right: 14px; }
  .page-hero { min-height: 220px; padding: 32px 0 26px; }
  .breadcrumb { font-size: 11.5px; margin-bottom: 12px; }
  .news-lead { min-height: 280px; }
  .news-lead__body { padding: 22px; }
  .news-list__item { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
  .news-list__date b { font-size: 22px; }
  .article__foot { flex-direction: column; }
  .article__nav { max-width: 100%; }
  .quote-band { padding: 52px 0; }
  .band .wrap { padding-top: 0; }
}

@media (max-width: 400px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 16 / 10; }
  .quick__grid { grid-template-columns: 1fr; }
  .quick__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick__item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
