/**
 * 伊美尔医疗美容 — 轻奢优雅主题样式
 * 色调：白 + 玫瑰金(#D4A5A5) + 淡粉(#FDF2F8) + 深灰 + 金色点缀
 * 风格：大留白、杂志感、大圆角、纯白卡片+玫瑰金细边框
 * 字体：Noto Serif SC 思源宋体 (标题) + PingFang/微软雅黑 (正文)
 * 依赖：Font Awesome 6, Swiper 11, AOS 2.3.4
 */

/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 主色调 */
  --rose-gold: #D4A5A5;
  --rose-gold-light: #E8D0D0;
  --rose-gold-dark: #B87D7D;
  --rose-gold-dim: rgba(212, 165, 165, 0.12);

  /* 辅助色 */
  --pink-light: #FDF2F8;
  --pink-soft: #F9E4E4;
  --gold-accent: #CA8A04;
  --gold-light: rgba(202, 138, 4, 0.1);

  /* 背景 */
  --bg-white: #FFFFFF;
  --bg-warm: #FFFAFA;
  --bg-soft: #FDF8F6;
  --bg-cream: #FEFCFB;

  /* 文字 */
  --text-primary: #2D2D2D;
  --text-secondary: #5C5C5C;
  --text-muted: #999999;
  --text-light: #BBBBBB;

  /* 边框 */
  --border-card: rgba(212, 165, 165, 0.25);
  --border-light: #F0E8E8;
  --border-input: #E5DDDD;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-rose: 0 4px 24px rgba(212, 165, 165, 0.15);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* 间距 */
  --section-py: 100px;
  --section-py-mobile: 64px;
  --container-max: 1200px;
  --header-h: 72px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'STSongti', 'Songti SC', 'STSong', 'SimSun', 'PingFang SC', 'Microsoft YaHei', serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-accent: 'Noto Serif SC', 'STSongti', 'Songti SC', Georgia, serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 165, 165, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--rose-gold-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose-gold); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--text-light);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-gold-dark);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 28px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 1px;
  background: var(--rose-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

/* ============================================================
   Header 头部 — 白色半透 + 玫瑰金点缀
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-gold);
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--rose-gold-dark);
  background: var(--rose-gold-dim);
}

/* 导航下拉 */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__dropdown a:hover {
  color: var(--rose-gold-dark);
  background: var(--rose-gold-dim);
}

/* 右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.header__booking-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--rose-gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--rose-gold);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__booking-btn:hover {
  background: var(--rose-gold);
  color: #fff;
  box-shadow: var(--shadow-rose);
  transform: translateY(-1px);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 360px;
  background: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: 24px;
  padding-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover {
  color: var(--rose-gold-dark);
  background: var(--rose-gold-dim);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
  color: #fff;
}

.btn--primary:hover {
  box-shadow: var(--shadow-rose);
  transform: translateY(-2px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--rose-gold-dark);
  border: 1.5px solid var(--rose-gold);
}

.btn--outline:hover {
  background: var(--rose-gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold-dark);
}

.btn--gold {
  background: var(--gold-accent);
  color: #fff;
}

.btn--gold:hover {
  background: #B07A03;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   卡片系统 — 纯白 + 玫瑰金细边框
   ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__body {
  padding: 24px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose-gold-dark);
  background: var(--rose-gold-dim);
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rose-gold-dark);
  margin-top: 12px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--bg-warm);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 250, 250, 0.3) 40%,
    rgba(255, 255, 255, 0.9) 85%,
    rgba(255, 255, 255, 1) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--header-h);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--rose-gold-dark), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Swiper 分页器 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgba(180, 125, 125, 0.3);
  opacity: 1;
  transition: all var(--duration-normal);
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 52px;
  background: var(--rose-gold);
}

/* ============================================================
   首页 — 数据统计
   ============================================================ */
.stats-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-item__number span {
  background: linear-gradient(135deg, var(--rose-gold-dark), var(--rose-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============================================================
   首页 — 项目分类导航（5列）
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  text-align: center;
  padding: 36px 20px 28px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--rose-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--rose-gold-dark);
  transition: all var(--duration-normal) var(--ease-out);
}

.category-card:hover .category-card__icon {
  background: var(--rose-gold);
  color: #fff;
  transform: scale(1.08);
  box-shadow: var(--shadow-rose);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.category-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   首页 — 热门项目（3列卡片）
   ============================================================ */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   首页 — 医师团队
   ============================================================ */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.doctor-card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.doctor-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
}

.doctor-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.doctor-card:hover .doctor-card__image img {
  transform: scale(1.05);
}

.doctor-card__body {
  padding: 24px 20px;
}

.doctor-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.doctor-card__title {
  font-size: 0.85rem;
  color: var(--rose-gold-dark);
  font-weight: 500;
  margin-bottom: 8px;
}

.doctor-card__specialty {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   首页 — 案例展示
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
  border: 1px solid var(--border-card);
  transition: all var(--duration-normal) var(--ease-out);
}

.case-card:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-card-hover);
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.case-card:hover img {
  transform: scale(1.05);
}

.case-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.case-card__tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   首页 — 环境展示（Swiper画廊）
   ============================================================ */
.env-swiper {
  overflow: hidden;
  padding: 0 24px;
}

.env-slide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.env-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.env-slide:hover img {
  transform: scale(1.04);
}

.env-slide__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   首页 — 新闻资讯（左图右文）
   ============================================================ */
.news-list-home {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item-home {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.news-item-home:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-sm);
}

.news-item-home__image {
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.news-item-home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-home__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item-home__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.news-item-home__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-item-home__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   CTA 区域
   ============================================================ */
.cta-section {
  position: relative;
  text-align: center;
  padding: 90px 0;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(252, 242, 242, 0.8) 0%,
    rgba(255, 255, 255, 1) 30%,
    rgba(253, 242, 248, 0.6) 70%,
    rgba(255, 255, 255, 1) 100%);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: var(--bg-warm);
  margin-top: var(--header-h);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.95) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.inner-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* 面包屑 */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--rose-gold-dark);
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-light);
}

/* ============================================================
   列表页 — 子栏目过滤栏
   ============================================================ */
.filter-bar-wrap {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}

.filter-bar {
  display: flex;
  align-items: center;
  /* 不用 center：内容溢出时它会把左边几项推到滚动原点之外，滚不回来 */
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* 不溢出时两侧 auto 吸收剩余空间 → 仍然居中；
   溢出时 auto 归零 → 从左边第一个开始，可完整横向滚动 */
.filter-bar > a:first-child { margin-left: auto; }
.filter-bar > a:last-child { margin-right: auto; }

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar a {
  display: inline-flex;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: #fff;
  background: var(--rose-gold);
  border-color: var(--rose-gold);
}

/* ============================================================
   列表页网格
   ============================================================ */
.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border-light);
}

.detail-gallery .swiper-slide {
  aspect-ratio: 16/10;
}

.detail-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail__meta-row i {
  margin-right: 4px;
  color: var(--rose-gold);
}

/* 详情参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.detail__param {
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-out);
}

.detail__param:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-sm);
}

.detail__param-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.detail__param-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.98rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 16px; }

.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

/* 上下篇导航 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail__pager a {
  color: var(--text-secondary);
}

.detail__pager a:hover {
  color: var(--rose-gold-dark);
}

/* 相关推荐 */
.related-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 56px 0 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   联系我们 / 预约咨询页
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast) var(--ease-out);
}

.contact-info__item:hover {
  border-color: var(--rose-gold);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-gold-dark);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form-card {
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
}

/* 联系页「营业时间」下方那张地址卡。
   display 放在这里而不是模板内联，否则媒体查询里的 display:none 会被内联样式压掉 */
.contact-address-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group label .required {
  color: var(--rose-gold-dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px var(--rose-gold-dim);
  background: var(--bg-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 700px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-form-row input {
  flex: 1;
  padding: 16px 20px;
  padding-left: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px var(--rose-gold-dim);
  background: var(--bg-white);
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  margin-bottom: 12px;
}

.search-result-item:hover {
  border-color: var(--rose-gold);
  box-shadow: var(--shadow-sm);
}

.search-result-item__thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  border-color: var(--rose-gold);
  color: var(--rose-gold-dark);
  background: var(--rose-gold-dim);
}

.pagination .active {
  background: var(--rose-gold);
  color: #fff;
  border-color: var(--rose-gold);
  font-weight: 600;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Footer 底部
   ============================================================ */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
}

.footer__top-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--rose-gold);
  color: #fff;
  border-color: var(--rose-gold);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--rose-gold-dark);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer__contact-item i {
  color: var(--rose-gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--rose-gold-dark);
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
}

.friend-links__label {
  font-size: 0.84rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.friend-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.friend-links a:hover {
  color: var(--rose-gold-dark);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--rose-gold);
  color: #fff;
  border-color: var(--rose-gold);
}

/* ============================================================
   在线客服按钮
   ============================================================ */
.online-service {
  position: fixed;
  right: 20px;
  bottom: 140px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-rose);
  transition: all var(--duration-normal) var(--ease-out);
  animation: servicePulse 2s ease-in-out infinite;
}

.online-service:hover {
  transform: scale(1.1);
  background: var(--rose-gold-dark);
}

@keyframes servicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 165, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212, 165, 165, 0); }
}

/* ============================================================
   动画系统
   ============================================================ */

/* 浮动飘移 */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-element {
  animation: floatUpDown 4s ease-in-out infinite;
}

/* 呼吸光晕 */
@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 165, 165, 0.2); }
  50% { box-shadow: 0 0 24px rgba(212, 165, 165, 0.5); }
}

/* 淡入上移 */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 流光文字 */
@keyframes shimmerText {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg,
    var(--rose-gold-dark) 0%,
    var(--gold-accent) 25%,
    var(--rose-gold-light) 50%,
    var(--gold-accent) 75%,
    var(--rose-gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s ease-in-out infinite;
}

/* 按钮脉冲 */
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 165, 165, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(212, 165, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 165, 165, 0); }
}

.btn--primary.pulse {
  animation: btnPulse 2.5s infinite;
}

/* 卡片微光扫过 */
.shimmer-overlay {
  position: relative;
  overflow: hidden;
}

.shimmer-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 60%,
    transparent 100%);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.shimmer-overlay:hover::after {
  animation: shimmerSweep 0.8s ease-in-out;
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* AOS 覆盖 */
[data-aos] {
  transition-timing-function: var(--ease-out);
}

/* 偏好：减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 70px; }

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .treatment-grid,
  .doctor-grid,
  .case-grid,
  .list-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-item-home {
    flex-direction: column;
  }

  .news-item-home__image {
    width: 100%;
    height: 180px;
  }

  .detail__pager {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* 手机端模块之间的留白收紧：相邻两个 .section 原本是 56×2=112px 空档，太散 */
  :root { --section-py: 36px; }

  /* CTA 段落从来没在移动端覆盖过，一直吃着桌面的 90px（上下共 180px） */
  .cta-section { padding: 48px 0; }

  .hero {
    /* 手机端轮播压矮一点，首屏能露出下面内容 */
    height: 75vh;
    min-height: 440px;
    max-height: 620px;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  /* 3 列 × 2 行：5 张分类卡排满两行，不留孤儿卡 */
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 18px 8px 16px;
  }

  .category-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .category-card__name {
    font-size: 0.95rem;
  }

  .doctor-grid,
  .case-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* 热门医美项目（首页 .treatment-grid）和医美项目列表页（.list-grid，
     全站只有 treatments.html 用它）共用同一套手机端 2 列 + 收窄卡片 */
  .treatment-grid,
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .treatment-grid .card__body,
  .list-grid .card__body {
    /* 左右收到 10px：价格最长的一条 132px，12px 内边距下可用宽度只有 133px，
       1px 余量会随字体渲染抖动折行，让出这 4px 才稳 */
    padding: 12px 10px 14px;
  }

  .treatment-grid .card__tag,
  .list-grid .card__tag {
    font-size: 0.66rem;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .treatment-grid .card__title,
  .list-grid .card__title {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .treatment-grid .card__desc,
  .list-grid .card__desc {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  /* 价格是区间（¥2,980-¥12,800/部位），两列卡片里 1.05rem 几乎条条折行。
     实测 375px 内容宽 133px、最长价格 168px → 压到 0.82rem 刚好一行放下
     （320/360px 更窄，最长的几条仍会折成两行，这是宽度物理限制）。 */
  .treatment-grid .card__price,
  .list-grid .card__price {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-top: 8px;
  }

  /* 列表页每页 9 条、两列 → 末行永远只剩 1 张孤儿卡。
     奇数位的最后一张横跨两列收尾，比留个空位整齐。 */
  .list-grid > .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .list-grid > .card:last-child:nth-child(odd) .card__image {
    aspect-ratio: 16 / 7;
  }

  /* 医师团队：手机端一行 3 位（首页正好 3 位，不产生孤儿卡），整张卡收紧 */
  .doctor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .doctor-card__body {
    padding: 10px 6px 12px;
  }

  .doctor-card__name {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  .doctor-card__title {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .doctor-card__specialty {
    font-size: 0.68rem;
    line-height: 1.4;
    /* 3 列很窄，限 3 行防止一条超长擅长把整行撑高 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 真实案例：手机端一行一个，并改成横版比例
     源图是 800x534 横图，原来的 3/4 竖框用 cover 会把横图裁掉一半宽度 */
  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-card {
    aspect-ratio: 3 / 2;
  }

  .case-card__info {
    padding: 14px 16px;
  }

  .case-card__title {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .case-card__tag {
    font-size: 0.72rem;
  }

  /* 医美资讯：本就是一列一条（.news-list-home 是 flex column），
     这里只把每条压扁，改成 767px 断点专有的更紧凑数值 */
  .news-list-home {
    gap: 14px;
  }

  .news-item-home {
    padding: 14px;
    gap: 14px;
  }

  .news-item-home__image {
    height: 110px;
  }

  .news-item-home__title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
  }

  .news-item-home__date {
    font-size: 0.72rem;
    margin-bottom: 5px;
  }

  .news-item-home__desc {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* 手机端数据方框压扁：上下留白和每格内边距都收一收 */
  .stats-section {
    padding: 28px 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-item {
    padding: 10px 8px;
  }

  .inner-banner {
    height: 220px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 快速链接：原本 column 竖排 5 行，手机端改成一行排开。
     flex-wrap 留着兜底——320px 这种极窄屏排不下时退化成两行，而不是横向溢出。 */
  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .footer__links a {
    font-size: 0.82rem;
  }

  .footer__col-title {
    margin-bottom: 14px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-card {
    padding: 24px;
  }

  /* 联系页「营业时间」下面那张地址卡：内容与上方「机构地址」完全重复，
     手机端藏掉；PC/平板保留 */
  .contact-address-card {
    display: none;
  }

  .search-result-item {
    flex-direction: column;
  }

  .search-result-item__thumb {
    width: 100%;
    height: 160px;
  }

  .env-swiper {
    padding: 0 12px;
  }

  .back-top {
    right: 12px;
    bottom: 60px;
  }

  .online-service {
    right: 12px;
    bottom: 120px;
  }
}

/* ============================================================
   响应式 — 小屏手机 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  /* .category-grid 沿用 767px 断点的 3 列，不再打回 2 列 */
  .stats { grid-template-columns: 1fr 1fr; }
}
