/* 爱顿健业口腔 — 手机版 */
:root {
  --orange: #e87722;
  --orange-hover: #d56a1a;
  --orange-dark: #c96518;
  --ink: #2c2c2c;
  --text: #333;
  --text-muted: #666;
  --muted: #666;
  --border: #e8e8e8;
  --bg-soft: #f7f7f7;
  --bg: #f5f5f5;
  --footer-bg: #1e1e1e;
  --card-bg: #fff;
  --header-h: 52px;
  --tabbar-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --wrap-pad: 16px;
  --section-pad: 36px;
  --radius: 10px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.m-body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #f5f5f5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  overflow-x: hidden;
}

.m-main {
  flex: 1 0 auto;
  background: #fff;
  overflow-x: hidden;
}

.m-body--short .m-main {
  flex: 0 0 auto;
}

body.m-drawer-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: var(--orange); text-decoration: none; }
a:active { color: var(--orange-dark); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.m-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

/* Header */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.m-header__inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  height: var(--header-h);
  padding: 0 10px;
  gap: 6px;
}

.m-header__menu {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.m-header__menu span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.m-header__brand {
  justify-self: center;
  min-width: 0;
  text-align: center;
}

.m-header__brand img {
  height: 30px;
  width: auto;
  max-width: 128px;
  margin: 0 auto;
  object-fit: contain;
}

.m-header__call {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid #ffe0c2;
  border-radius: 50%;
  background: #fff5eb;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.m-header__call svg {
  width: 20px;
  height: 20px;
}

/* Drawer */
.m-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.45);
}

.m-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 260;
  width: min(280px, 85vw);
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.m-drawer.is-open {
  transform: translateX(0);
}

.m-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.m-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.m-drawer__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.m-drawer__list a {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  font-size: 1rem;
  min-height: 44px;
}

.m-drawer__list a:active { background: var(--bg-soft); }

.m-drawer__pc {
  color: var(--orange);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* Tabbar */
.m-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid var(--border);
}

.m-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--tabbar-h);
  color: #999;
  font-size: 0.68rem;
  padding: 4px 2px;
  text-decoration: none;
}

.m-tabbar__item.is-active {
  color: var(--orange);
  font-weight: 600;
}

.m-tabbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.m-tabbar__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.m-tabbar__label {
  line-height: 1.2;
}

/* Section */
.m-section {
  padding: var(--section-pad) 0;
}

.m-section--soft { background: var(--bg-soft); }

.m-section--tight-top {
  padding-top: 20px;
}

.m-section-head {
  text-align: center;
  margin-bottom: 24px;
}

.m-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.m-section-deco {
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 10px;
  border-radius: 2px;
}

.m-section-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  padding: 0 8px;
}

.m-section-sub:lang(en),
.m-section-sub:not(:lang(zh)) {
  font-size: 0.78rem;
}

.m-btn {
  display: inline-block;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border-radius: 22px;
  text-align: center;
  border: 0;
}

.m-btn:active { background: var(--orange-dark); }

.m-btn--block {
  display: block;
  width: 100%;
}

/* Hero carousel */
.m-hero {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.m-hero__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s ease;
  touch-action: pan-y pinch-zoom;
  will-change: transform;
}

.m-hero__slide {
  flex: 0 0 100%;
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.m-hero__slide img {
  width: 100%;
  height: min(42vh, 280px);
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.m-hero__counter {
  position: absolute;
  right: 12px;
  bottom: 36px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
}

.m-hero__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.m-hero__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  padding: 0;
  cursor: pointer;
}

.m-hero__dots button.is-active { background: var(--orange); }

/* Dept grid */
.m-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.m-dept-grid .m-dept-card:first-child {
  grid-column: 1 / -1;
}

.m-dept-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
}

.m-dept-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}

.m-dept-card--lead img,
.m-dept-grid .m-dept-card:first-child img {
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
}

.m-dept-card span {
  display: block;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  background: #fff;
}

.m-dept-icons,
.m-dept-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 8px;
  padding: 16px var(--wrap-pad) 20px;
}

.m-dept-icon {
  flex: 0 0 22%;
  max-width: 22%;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.m-dept-icon span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-dept-icon img {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  object-fit: contain;
}

/* Guarantees */
.m-guarantee-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.m-guarantee-tabs::-webkit-scrollbar { display: none; }

.m-guarantee-tab {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.m-guarantee-tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.m-guarantee-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Doctor scroll */
.m-doctor-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 0 var(--wrap-pad) 12px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--wrap-pad);
}

.m-doctor-scroll::-webkit-scrollbar { display: none; }

.m-doctor-card {
  flex: 0 0 86%;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.m-doctor-card__body {
  padding: 14px 16px;
}

.m-doctor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.m-doctor-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.m-doctor-avatar--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--orange), #e86a20);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
}

.m-doctor-head h2,
.m-doctor-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.m-doctor-head h2 span,
.m-doctor-head h3 span {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-doctor-card h3 span { font-weight: 400; font-size: 0.85rem; color: var(--text-muted); }

.m-doctor-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-doctor-card p { margin: 8px 0 0; font-size: 0.82rem; }

/* Reputation grid */
.m-reputation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.m-reputation-grid img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Brand tabs */
.m-brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.m-brand-tab {
  flex: 1 1 calc(50% - 4px);
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
}

.m-brand-tab.is-active {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 600;
}

.m-brand-panel[hidden] { display: none; }

.m-brand-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--orange);
}

.m-brand-panel p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.m-brand-panel img {
  border-radius: var(--radius);
  margin-top: 12px;
}

/* News */
.m-news-feature img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  object-fit: cover;
}

.m-news-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.m-news-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.m-news-list .m-news-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.m-news-list .m-news-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.m-news-list .m-news-date {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-top: 4px;
}

/* Partners */
.m-partners-scroll {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: auto;
  padding: 12px 4px;
  -webkit-overflow-scrolling: touch;
}

.m-partners-scroll::-webkit-scrollbar { display: none; }

.m-partners-scroll img {
  height: 32px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(0.15);
}

/* Sub hero */
.m-sub-hero img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Route */
.m-city-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.m-city-tabs button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.m-city-tabs button.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.m-route-card {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.m-route-card[hidden] { display: none; }

.m-route-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.m-route-card p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.m-route-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 180px;
}

.m-route-map img,
.m-route-map .route-map-live {
  width: 100%;
  min-height: 180px;
}

.m-route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 20px;
  background: #fff;
}

/* Story */
.m-story-block {
  margin-bottom: 28px;
}

.m-story-block h1,
.m-story-block h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.m-story-block .m-eyebrow {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.m-story-block p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.m-values dt {
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}

.m-values dd { margin: 0 0 12px; font-size: 0.9rem; }

.m-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-timeline li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.m-timeline time {
  display: block;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
}

/* Doctors page */
.m-doctor-feature {
  display: block;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.m-doctor-feature img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: left center;
  background: #f5f5f5;
}

.m-doctor-feature__body { padding: 14px 16px; }

.m-doctor-list-card {
  display: block;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.m-doctor-list-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.m-doctor-list-card__body { padding: 14px; }

.m-doctor-list-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.m-doctor-list-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Special cards */
.m-special-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px var(--wrap-pad) 36px;
  background: var(--bg-soft);
}

.m-special-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.m-special-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.m-special-card strong,
.m-special-card span {
  display: none;
}

/* Detail sections (special / doctor profile) */
.m-detail-hero img { width: 100%; }

.m-detail-section {
  padding: 28px var(--wrap-pad);
  border-bottom: 1px solid #f0f0f0;
}

.m-detail-section--soft { background: var(--bg-soft); }

.m-detail-section h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(232, 119, 34, 0.35);
}

.m-detail-section p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.m-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.m-detail-gallery img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  background: #fff;
}

.m-detail-gallery--single {
  grid-template-columns: 1fr;
}

.m-detail-gallery:not(.m-detail-gallery--single) {
  grid-template-columns: 1fr;
}

.m-detail-figure {
  margin: 16px 0;
}

.m-detail-figure img { border-radius: var(--radius); }

/* News pages */
.m-news-hero img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.m-news-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.m-news-search input {
  flex: 1;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.m-news-search button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: #fff;
  font-weight: 600;
}

.m-news-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.m-news-tags::-webkit-scrollbar { display: none; }

.m-news-tags button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
}

.m-news-tags button.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.m-news-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.m-news-row[hidden] { display: none; }

.m-news-row h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.45;
}

.m-news-row h2 a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.m-news-row p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.m-news-tags button span {
  margin-left: 4px;
  font-size: 0.75rem;
  color: #aaa;
}

.m-news-tags button.is-active span {
  color: rgba(255, 255, 255, 0.85);
}

.m-news-detail h1 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  line-height: 1.4;
}

.m-news-detail__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.m-news-article {
  font-size: 0.95rem;
  line-height: 1.8;
}

.m-news-article img {
  border-radius: var(--radius);
  margin: 12px 0;
}

.m-news-article h3, .m-news-article h4 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
}

/* Footer */
.m-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 32px var(--wrap-pad) 20px;
  background: #2a2a2a;
  color: #ccc;
  font-size: 0.85rem;
}

.m-footer__logo {
  height: 36px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.m-footer__hotline a { color: var(--orange); font-weight: 600; }

.m-footer__qr {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.m-footer__qr figure { text-align: center; margin: 0; }

.m-footer__qr img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  margin: 0 auto 6px;
}

.m-footer__qr figcaption { font-size: 0.78rem; }

.m-footer__branches h2 {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 12px;
}

.m-footer__branch {
  border: 1px solid #444;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: #333;
}

.m-footer__branch summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}

.m-footer__branch summary::-webkit-details-marker { display: none; }

.m-footer__branch ul {
  list-style: none;
  margin: 0;
  padding: 0 14px 12px;
}

.m-footer__branch li {
  padding: 8px 0;
  border-top: 1px solid #444;
  font-size: 0.82rem;
  line-height: 1.5;
}

.m-footer__branch strong {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.m-footer__disclaimer {
  margin: 16px 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #999;
}

.m-footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
}

.m-footer__copy p { margin: 4px 0; }

.m-footer__copy a { color: #aaa; }

.m-more { text-align: center; margin-top: 20px; }

/* 宽屏预览：居中手机框 */
@media (min-width: 768px) {
  body.m-body {
    max-width: 414px;
    margin: 0 auto;
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.1);
  }

  .m-header,
  .m-tabbar {
    width: 100%;
    max-width: 414px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .m-drawer {
    left: max(0px, calc(50% - 207px));
  }
}

/* v2 components */
.m-btn--outline {
  background: #fff;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.m-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.m-btn--sm {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 0.88rem;
}

.m-section-head--left { text-align: left; }
.m-section-deco--left { margin-left: 0; }

.m-guarantee-kicker {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.m-guarantee-tabs-wrap {
  position: relative;
  margin-bottom: 16px;
}

.m-guarantee-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--bg-soft));
  pointer-events: none;
}

.m-section--guarantee .m-guarantee-showcase {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
}

.m-guarantee-label {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange);
}

.m-doctor-card--link,
.m-doctor-portrait--link {
  color: var(--text);
  text-decoration: none;
}

.m-doctor-card__specialty,
.m-doctor-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-reputation-marquee,
.m-partners-marquee {
  overflow: hidden;
  margin: 0 calc(-1 * var(--wrap-pad));
}

.m-reputation-track,
.m-partners-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: m-marquee 40s linear infinite;
}

.m-reputation-track figure {
  flex: 0 0 140px;
  margin: 0;
}

.m-reputation-track img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
}

.m-partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.m-partner-logo img {
  height: 36px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}

@keyframes m-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.m-brand-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.m-brand-tab {
  min-height: 40px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.78rem;
  cursor: pointer;
}

.m-brand-tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.m-brand-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.m-brand-panel p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.m-brand-panel__fig img {
  border-radius: var(--radius);
  margin-top: 12px;
}

.m-news-list--home li {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.m-footer--compact {
  background: var(--footer-bg);
  color: #ccc;
  padding: 20px var(--wrap-pad);
  text-align: center;
}

.m-footer__hotline--compact a { color: var(--orange); font-weight: 600; }

.m-footer__disclaimer--compact {
  font-size: 0.72rem;
  color: #999;
  margin: 8px 0;
}

.m-footer__copy--compact {
  font-size: 0.72rem;
  color: #888;
}

.m-footer__copy--compact a { color: #aaa; }

.m-footer__build {
  margin: 4px 0 0;
  font-size: 0.65rem;
  color: #666;
}

.m-footer--full { background: var(--footer-bg); }

.m-footer__branches--inline {
  color: #ccc;
}

.m-footer__branches--inline h2 {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 12px;
}

.m-call-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m-call-sheet[hidden] { display: none; }

.m-call-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.m-call-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 414px;
  padding: 20px var(--wrap-pad) calc(12px + var(--safe-bottom));
  background: #fff;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

.m-call-sheet__title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.m-call-sheet__number {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
}

.m-call-sheet__cancel {
  margin-top: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.m-doctor-portrait,
.m-doctor-portrait--link {
  display: block;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--text);
  text-decoration: none;
}

.m-doctor-portrait__body {
  padding: 14px 16px;
}

.m-doctor-portrait ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-detail-block {
  padding: 28px var(--wrap-pad);
  border-bottom: 1px solid #f0f0f0;
}

.m-detail-block--soft { background: var(--bg-soft); }

.m-detail-block h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  text-align: center;
}

.m-detail-block p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.m-full-bleed {
  margin: 0;
  padding: 0;
}

.m-full-bleed img {
  width: 100%;
  max-width: none;
  display: block;
}

.m-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px var(--wrap-pad);
  background: #fff;
}

.m-proof-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}

.m-proof-cell img {
  width: 100%;
  border-radius: var(--radius);
}

.m-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px var(--wrap-pad);
  border-bottom: 1px solid #f0f0f0;
}

.m-split--soft { background: var(--bg-soft); }

.m-split__text h2 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.m-split__text p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.m-split__media img {
  border-radius: var(--radius);
  width: 100%;
}

.m-effect-doctors {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.m-effect-doctor {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.m-effect-doctor img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  flex-shrink: 0;
}

.m-effect-doctor h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.m-effect-doctor h3 span {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.m-effect-doctor p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.m-route-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.m-route-copy {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}

.m-news-row--thumb .m-news-row__link {
  display: flex;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.m-news-row__thumb {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.m-news-row__body { flex: 1; min-width: 0; }

.m-news-row__body h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.m-news-tags--collapsed .m-news-tag-extra { display: none; }

.m-news-tags.is-expanded .m-news-tag-extra { display: inline-flex; }

.m-news-tags-toggle {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
}

.m-news-detail__cover {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.m-special-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  .m-hero__track { transition: none; }
  .m-drawer { transition: none; }
  .m-reputation-track,
  .m-partners-track { animation: none; }
}

/* 2026-08 手机网站效果图统一视觉 */
body.m-body {
  --header-h: 68px;
  --wrap-pad: 18px;
  --section-pad: 32px;
  --radius: 6px;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  background: #fff;
}

.m-header {
  height: var(--header-h);
  border-bottom: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.m-header__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  height: var(--header-h);
  padding: 0 18px;
  gap: 12px;
}

.m-header__brand {
  justify-self: start;
}

.m-header__brand img {
  width: auto;
  height: 42px;
  max-width: 176px;
  margin: 0;
}

.m-header__call {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 3px 0 3px 12px;
  border: 0;
  border-left: 1px solid #e7e7e7;
  border-radius: 0;
  background: transparent;
  color: #555;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.m-header__call span {
  font-size: 0.67rem;
  color: #777;
}

.m-header__call strong {
  margin-top: 4px;
  font-size: 0.91rem;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.m-primary-nav {
  position: relative;
  z-index: 30;
  background: var(--orange);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.m-primary-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 640px;
  margin: 0 auto;
}

.m-primary-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 4px;
  color: #fff;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.m-primary-nav__item:nth-child(3n) { border-right: 0; }
.m-primary-nav__item:nth-child(n + 4) { border-bottom: 0; }
.m-primary-nav__item:active,
.m-primary-nav__item.is-active {
  color: #fff;
  background: rgba(166, 72, 8, 0.36);
  font-weight: 700;
}

.m-primary-nav__item.is-active::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.m-section { padding: 30px 0; }
.m-section-head { margin-bottom: 20px; }
.m-section-title { font-size: 1.42rem; letter-spacing: 0.04em; }
.m-section-deco { width: 48px; height: 2px; }

.m-hero__slide img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.m-hero__slide--wide {
  background: #fff;
}

.m-hero__slide--wide img {
  object-fit: contain;
}

.m-hero__counter { bottom: 29px; }
.m-hero__dots { padding: 8px 10px 10px; }

.m-dept-grid {
  gap: 8px;
}

.m-dept-card,
.m-doctor-card,
.m-doctor-portrait,
.m-special-card,
.m-guarantee-showcase {
  border-radius: 4px;
}

.m-dept-card span {
  padding: 7px 5px;
  color: #fff;
  background: var(--orange);
}

.m-guarantee-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: visible;
}

.m-guarantee-tab {
  min-width: 0;
  min-height: 38px;
  padding: 7px 3px;
  border-radius: 2px;
}

.m-guarantee-tabs-wrap::after { display: none; }

.m-section--guarantee .m-guarantee-showcase {
  padding: 0;
  overflow: hidden;
}

.m-guarantee-image {
  width: 100%;
  aspect-ratio: 604 / 479;
  object-fit: cover;
  background: #f3f3f3;
}

.m-guarantee-copy { padding: 15px 16px 17px; }

.m-doctor-scroll {
  gap: 10px;
}

.m-doctor-card {
  flex-basis: 84%;
  border-top: 3px solid var(--orange);
}

.m-sub-hero img,
.m-news-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}

.m-detail-hero img { width: 100%; height: auto; }

.m-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.m-advantage-grid article {
  padding: 14px 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  text-align: center;
}

.m-advantage-grid img {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.m-advantage-grid--pediatric img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.m-advantage-grid h3 {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.94rem;
}

.m-advantage-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.m-partners-effect {
  margin: 0;
  padding: 8px 0;
}

.m-partners-effect img {
  width: 100%;
  height: auto;
}

.m-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .m-primary-nav {
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
  }
}

/* 首页严格参照“手机网站1/首页images/网站首页.jpg”的视觉比例。 */
body.m-body--home {
  --header-h: 56px;
  --wrap-pad: 12px;
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
  font-size: 14px;
}

.m-body--home .m-header {
  position: relative;
  height: var(--header-h);
  box-shadow: none;
  border: 0;
}

.m-body--home .m-header__inner {
  height: var(--header-h);
  padding: 0 14px;
  gap: 8px;
}

.m-body--home .m-header__brand img {
  height: 38px;
  max-width: 190px;
}

.m-body--home .m-header__call {
  min-height: 38px;
  padding-left: 10px;
}

.m-body--home .m-header__call span { font-size: 10px; }
.m-body--home .m-header__call strong { margin-top: 1px; font-size: 15px; }

.m-body--home .m-primary-nav {
  position: relative;
  z-index: 20;
}

.m-body--home .m-primary-nav__item {
  min-height: 34px;
  padding: 5px 2px;
  font-size: 15px;
  line-height: 1.2;
}

.m-body--home .m-primary-nav__item.is-active::after { display: none; }
.m-body--home .m-main { width: 100%; max-width: 414px; margin: 0 auto; }

.m-home-hero .m-hero__slide img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.m-home-hero .m-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  padding: 0;
  background: transparent;
}

.m-home-hero .m-hero__dots button {
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  background: rgba(255,255,255,.55);
}

.m-home-section { background: #fff; }
.m-home-pad { padding: 0 12px; }

.m-home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 6px 2px 4px;
  border-bottom: 1px solid #e9e9e9;
}

.m-home-bar h2 {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.m-home-bar a { color: #333; font-size: 16px; }

.m-home-dept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
  padding: 7px 0 10px;
}

.m-home-dept-grid a { display: block; min-width: 0; }
.m-home-dept-grid img { width: 100%; border-radius: 10px; }
.m-home-dept-grid strong { display: none; }

.m-home-guarantee { padding-bottom: 12px; }
.m-home-guarantee .m-guarantee-tabs {
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 8px;
  border: 1px solid #e5e5e5;
}

.m-home-guarantee .m-guarantee-tab {
  min-height: 32px;
  padding: 4px 1px;
  border: 0;
  border-right: 1px solid #e5e5e5;
  border-radius: 0;
  background: #f5f5f5;
  color: #777;
  font-size: 11px;
}

.m-home-guarantee .m-guarantee-tab:last-child { border-right: 0; }
.m-home-guarantee .m-guarantee-tab.is-active { background: var(--orange); color: #fff; }
.m-home-guarantee .m-guarantee-showcase {
  display: grid;
  grid-template-columns: 48% 52%;
  margin-top: 7px;
  border: 1px solid #eee;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.m-home-guarantee .m-guarantee-image {
  width: 100%;
  height: 100%;
  min-height: 138px;
  aspect-ratio: auto;
  object-fit: cover;
}

.m-home-guarantee .m-guarantee-copy { padding: 11px 12px; }
.m-home-guarantee .m-guarantee-copy strong { color: var(--orange); font-size: 16px; }
.m-home-guarantee .m-guarantee-copy p { margin: 6px 0 0; color: #666; font-size: 11px; line-height: 1.55; }

.m-home-doctor-mosaic {
  display: grid;
  grid-template-columns: 42% 29% 29%;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  margin-top: 7px;
  overflow: hidden;
}

.m-home-doctor-photo { display: block; overflow: hidden; background: #f5f5f5; }
.m-home-doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-home-doctor-photo--1 { grid-row: 1 / 3; }

.m-home-region-tabs,
.m-city-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 10px;
  background: #f5f5f5;
}

.m-home-region-tabs button,
.m-city-tabs button {
  min-width: 0;
  height: 34px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #999;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
}

.m-home-region-tabs button.is-active,
.m-city-tabs button.is-active { color: var(--orange); border-bottom: 2px solid var(--orange); }

.m-home-doctor-list { list-style: none; margin: 0; padding: 0; }
.m-home-doctor-list li { border-bottom: 1px dotted #cfcfcf; }
.m-home-doctor-row {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  min-height: 78px;
  padding: 9px 54px 8px 4px;
  color: #555;
}

.m-home-doctor-row > img {
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
}

.m-home-doctor-copy { min-width: 0; display: block; }
.m-home-doctor-copy > span:first-child { display: flex; align-items: baseline; gap: 7px; }
.m-home-doctor-copy strong { color: #222; font-size: 14px; }
.m-home-doctor-copy em { color: #555; font-size: 10px; font-style: normal; }
.m-home-doctor-skill { display: block; overflow: hidden; color: #555; font-size: 10px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.m-home-doctor-skill b { margin-right: 4px; padding: 1px 3px; background: var(--orange); color: #fff; font-weight: 400; }
.m-home-doctor-copy small { display: -webkit-box; overflow: hidden; margin-top: 2px; color: #999; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.m-home-book { position: absolute; top: 10px; right: 3px; padding: 1px 4px; border: 1px solid var(--orange); color: var(--orange); font-size: 10px; line-height: 1.3; }
.m-home-more-btn { display: block; margin: 10px 8px 14px; border-radius: 16px; background: var(--orange); color: #fff; text-align: center; font-size: 12px; line-height: 25px; }

.m-home-brand .m-home-pad { padding-top: 3px; }
.m-home-brand .m-brand-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 0; }
.m-home-brand .m-brand-tab { min-height: 40px; padding: 6px 2px; border: 0; border-radius: 0; background: #f5f5f5; color: var(--orange); font-size: 14px; }
.m-home-brand .m-brand-tab.is-active { background: var(--orange); color: #fff; }
.m-home-brand .m-brand-panel { padding: 9px; border: 4px solid var(--orange); border-top-width: 4px; }
.m-home-brand .m-brand-panel img { width: 100%; max-height: none; border-radius: 0; object-fit: contain; }

.m-body--home .m-news-list--home { margin: 0; padding: 0; }
.m-body--home .m-news-list--home li { border-bottom: 1px dotted #aaa; }
.m-body--home .m-news-list--home a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 92px;
  padding: 8px 0;
  color: #333;
}

.m-body--home .m-news-list--home img { width: 72px; height: 72px; object-fit: cover; }
.m-news-copy { display: block; min-width: 0; }
.m-body--home .m-news-list--home .m-news-title { display: -webkit-box; overflow: hidden; color: #333; font-size: 14px; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.m-body--home .m-news-list--home .m-news-desc { display: -webkit-box; overflow: hidden; margin-top: 4px; color: #555; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.m-news-arrow { color: #bbb; font-size: 34px; font-family: serif; }

.m-home-reputation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 7px 0 8px; }
.m-home-reputation-grid img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.m-home-partners img { width: 100%; padding: 10px 5px 8px; }
.m-home-branches-collage { width: 100%; padding: 4px 2px 6px; }
.m-home-branches .m-city-tabs { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.m-home-branch-list { list-style: none; margin: 0; padding: 0 8px; }
.m-home-branch-list li { display: flex; align-items: center; justify-content: space-between; min-height: 66px; border-bottom: 1px dotted #aaa; }
.m-home-branch-list li[hidden] { display: none; }
.m-home-branch-list span { display: block; min-width: 0; }
.m-home-branch-list strong { display: block; color: #111; font-size: 15px; }
.m-home-branch-list small { display: block; overflow: hidden; margin-top: 2px; color: #222; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.m-home-branch-list a { flex: 0 0 auto; margin-left: 8px; color: #444; font-size: 9px; }
.m-home-branch-list i { color: var(--orange); font-size: 15px; font-style: normal; }
.m-home-hotline { display: block; padding: 15px 14px 0; }
.m-home-hotline img { width: 100%; }
.m-home-disclaimer { margin: 4px 0 10px; color: #888; font-size: 10px; line-height: 1.55; text-align: center; }

.m-body--home .m-footer--compact {
  max-width: 414px;
  margin: 0 auto;
  padding: 8px 12px 14px;
  background: #fff;
  color: #999;
  border-top: 1px solid #eee;
}

.m-body--home .m-footer__hotline--compact,
.m-body--home .m-footer__disclaimer--compact,
.m-body--home .m-footer__build { display: none; }
.m-body--home .m-footer__copy--compact { padding: 0; color: #999; font-size: 10px; text-align: center; }
.m-body--home .m-footer__copy--compact a { color: #999; }

@media (max-width: 350px) {
  .m-body--home .m-header__brand img { height: 34px; max-width: 155px; }
  .m-body--home .m-header__call strong { font-size: 13px; }
  .m-home-region-tabs button, .m-city-tabs button { font-size: 10px; }
}

/* 效果图中的页头为正常文档流，长页面只出现一次。 */
body.m-body:not(.m-body--home) {
  padding-top: 0;
  padding-bottom: 0;
  background: #fff;
}

body.m-body:not(.m-body--home) .m-header {
  position: relative;
  height: 56px;
  box-shadow: none;
  border: 0;
}

body.m-body:not(.m-body--home) .m-header__inner { height: 56px; padding: 0 14px; }
body.m-body:not(.m-body--home) .m-header__brand img { height: 38px; max-width: 190px; }
body.m-body:not(.m-body--home) .m-header__call { min-height: 38px; padding-left: 10px; }
body.m-body:not(.m-body--home) .m-header__call span { font-size: 10px; }
body.m-body:not(.m-body--home) .m-header__call strong { margin-top: 1px; font-size: 15px; }
body.m-body:not(.m-body--home) .m-primary-nav__item { min-height: 34px; padding: 5px 2px; font-size: 15px; line-height: 1.2; }
body.m-body:not(.m-body--home) .m-primary-nav__item.is-active::after { display: none; }

.m-footer--reference {
  width: 100%;
  max-width: 414px;
  margin: 0 auto;
  padding: 0 12px 12px;
  background: #fff;
  color: #222;
}

.m-footer-reference__inner { width: 100%; }
.m-footer--reference .m-city-tabs { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.m-footer--reference .m-footer__copy { margin-top: 8px; padding: 7px 0 0; border-top: 1px solid #eee; color: #999; font-size: 9px; text-align: center; }
.m-footer--reference .m-footer__copy a { color: #999; }

.m-body--short .m-special-grid {
  display: block;
  padding: 10px 12px 14px;
  background: #fff;
}

.m-body--short .m-special-card {
  display: block;
  margin: 0 0 9px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  overflow: visible;
  text-align: center;
}

.m-body--short .m-special-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 9px;
  object-fit: contain;
}

.m-body--short .m-special-card span {
  display: block;
  padding: 3px 0 0;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}

.m-body--short .m-special-card span b { color: var(--orange); }

.m-footer--reference .m-city-tabs button,
.m-home-branches .m-city-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.m-footer--reference .m-city-tabs button.is-active,
.m-home-branches .m-city-tabs button.is-active {
  border: 0;
  border-bottom: 2px solid var(--orange);
  border-radius: 0;
  background: transparent;
  color: var(--orange);
}

.m-advantage-grid--pediatric {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.m-advantage-grid--pediatric article {
  position: relative;
  min-height: 116px;
  padding: 20px 22px 17px 92px;
  border: 0;
  border-radius: 62px 10px 62px 10px;
  text-align: left;
  overflow: hidden;
}

.m-advantage-grid--pediatric article:nth-child(1),
.m-advantage-grid--pediatric article:nth-child(4) { background: #9bcf36; }
.m-advantage-grid--pediatric article:nth-child(2) { background: #58c1b3; }
.m-advantage-grid--pediatric article:nth-child(3) { background: #ef8200; }

.m-advantage-grid--pediatric img {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 60px;
  height: 60px;
  margin: 0;
  border-radius: 50%;
  object-fit: contain;
}

.m-advantage-grid--pediatric h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 15px;
}

.m-advantage-grid--pediatric p {
  color: rgba(255,255,255,.96);
  font-size: 11px;
  line-height: 1.55;
}

.m-main .m-city-tabs { grid-template-columns: repeat(4, 1fr); }

.m-pediatric-services > .m-wrap { padding-bottom: 4px; }
.m-pediatric-services > .m-wrap > h3 {
  margin: 0;
  padding: 5px 12px;
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.m-pediatric-service-list { padding: 5px 0 12px; }
.m-pediatric-service-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 7px 18px;
  border-bottom: 1px dotted #bbb;
}

.m-pediatric-service-list article:last-child { border-bottom: 0; }
.m-pediatric-service-list img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.m-pediatric-service-list h4 { margin: 0 0 5px; color: #222; font-size: 15px; }
.m-pediatric-service-list p { margin: 0; color: #666; font-size: 11px; line-height: 1.55; }
