/**
 * 仁和综合医疗中心 — 主样式表
 * Medical Healthcare Website
 * 深蓝专业 + 温暖信任 + 大留白 + 大圆角
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 医疗健康主题
   ============================================================ */
:root {
  /* === 主色系 — 深蓝专业 === */
  --primary: #1A365D;
  --primary-light: #2B6CB0;
  --primary-lighter: #3182CE;
  --primary-bg: #EBF4FF;
  --primary-border: #BEE3F8;

  /* === 辅助色 — 绿色治愈 === */
  --green: #38A169;
  --green-light: #68D391;
  --green-bg: #F0FFF4;
  --green-border: #C6F6D5;

  /* === 暖色点缀 — 温暖信任 === */
  --warm: #DD6B20;
  --warm-light: #FBD38D;
  --warm-bg: #FFFAF0;

  /* === 背景色 === */
  --bg-white: #FFFFFF;
  --bg-page: #F7FAFC;
  --bg-card: #FFFFFF;
  --bg-section-alt: #F7FAFC;

  /* === 文字色阶 === */
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --text-light: #A0AEC0;
  --text-white: #FFFFFF;

  /* === 边框 === */
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --border-blue: #BEE3F8;

  /* === 阴影 === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 60px rgba(26, 54, 93, 0.12);
  --shadow-blue: 0 4px 14px rgba(26, 54, 93, 0.12);

  /* === 圆角 === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* === 间距 === */
  --section-py: 80px;
  --container-max: 1200px;
  --header-h: 76px;

  /* === 过渡 === */
  --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: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'STHeiti', 'Helvetica Neue', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', 'Hiragino Sans GB', sans-serif;
}

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

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

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

::selection {
  background: rgba(26, 54, 93, 0.15);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

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; }

/* ============================================================
   字体 — 使用系统原生字体，无需外部加载
   中文显示优化：字重300/400/500/600/700/800
   ============================================================ */

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  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: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

/* 区块标题行：标题在左、行动按钮在右（医师团队 / 新闻资讯）
   原先写死在模板的 inline style 里，提出来才能做响应式 */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

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

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

.section--alt {
  background: var(--bg-section-alt);
}

.section--primary {
  background: var(--primary);
  color: var(--text-white);
}

/* ============================================================
   Header — 白色实底 + 深蓝文字 (13.11)
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.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: var(--primary);
  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.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header__logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

.header__nav-link {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  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(--primary);
  background: var(--primary-bg);
}

/* 导航下拉 (13.3: z-index 足够高) */
.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: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60; /* (13.3) */
}

.header__nav-item:hover .header__dropdown {
  transform: translateX(-50%) translateY(0);
}

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

.header__dropdown a:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

/* CTA 按钮 */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-left: 16px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

/* 头部右侧区域 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

/* ============================================================
   汉堡菜单 (13.4: 独立于 header__actions)
   ============================================================ */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  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;
}
.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;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.mobile-nav__link:hover { color: var(--primary); background: var(--primary-bg); }

.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);
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--primary);
}

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

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,54,93,0.75) 0%, rgba(26,54,93,0.5) 50%, rgba(26,54,93,0.85) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.inner-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.inner-banner__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
}

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

.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);
  flex-wrap: wrap;
}

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

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.25);
}

.btn--primary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn--white {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.btn--white:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(56, 161, 105, 0.25);
}

.btn--green:hover {
  background: #2F855A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 161, 105, 0.35);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* 脉冲按钮 — CTA */
.btn--primary.pulse {
  animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 54, 93, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(26, 54, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 54, 93, 0); }
}

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

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

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-section-alt);
}

.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: 20px;
}

.card__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 4px;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.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);
}

.card__meta i { color: var(--primary-light); }

/* ============================================================
   Hero Banner — 首页
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
    rgba(26, 54, 93, 0.7) 0%,
    rgba(26, 54, 93, 0.35) 50%,
    rgba(26, 54, 93, 0.65) 100%);
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Swiper 分页器 */
.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-pagination .swiper-pagination-bullet-active {
  width: 56px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 滚动指示器 */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollFloat 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
}

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   首页 — 数据统计
   ============================================================ */
.stats-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

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

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

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border-light);
}

.stat-item:last-child::after { display: none; }

.stat-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   首页 — 科室卡片
   ============================================================ */
.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.dept-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dept-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.dept-card:hover .dept-card__icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.25);
}

.dept-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.dept-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   首页 — 医生卡片
   ============================================================ */
.doctor-card {
  text-align: center;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

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

.doctor-card__image {
  aspect-ratio: 3/3.5;
  overflow: hidden;
  background: var(--bg-section-alt);
}

.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: 20px;
}

.doctor-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.doctor-card__title {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 500;
  margin: 4px 0 8px;
}

.doctor-card__specialty {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   首页 — CTA 区域
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(43, 108, 176, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(56, 161, 105, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .section-tag { color: var(--green-light); }
.cta-section .section-tag::before { background: var(--green-light); }

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   列表页 — 网格布局
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.list-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.list-header {
  text-align: center;
  margin-bottom: 48px;
}

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

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

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

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}

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

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

.detail__title {
  font-size: clamp(1.5rem, 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 { color: var(--primary-light); margin-right: 4px; }

/* 科室详情 — 参数卡 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 20px 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.detail__param-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.detail__param-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* 详情正文 */
.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
}

.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 { color: var(--text-primary); margin-top: 32px; 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);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

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

.detail__pager a:hover { color: var(--primary); }

/* Tab 切换 */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.detail-tabs__btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.detail-tabs__btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.detail-tabs__btn:hover { color: var(--primary); }

.tab-panel { display: none; }
.tab-panel:not(.hidden) { display: block; }
.tab-panel.hidden { display: none; }

/* 相关推荐 */
.related-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 56px 0 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   医生详情 — 侧边栏布局
   ============================================================ */
.doctor-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.doctor-detail__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.doctor-detail__photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
}

.doctor-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-detail__info-card {
  margin-top: 16px;
  padding: 24px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
}

.doctor-detail__info-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}

.doctor-detail__info-item:not(:last-child) {
  border-bottom: 1px solid var(--primary-border);
}

.doctor-detail__info-label { color: var(--text-muted); }
.doctor-detail__info-value { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   联系我们
   ============================================================ */
.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: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast);
}

.contact-info__item:hover { border-color: var(--primary-border); box-shadow: var(--shadow-sm); }

.contact-info__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.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: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

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

.form-group label .required { color: #E53E3E; }

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

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

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='%23718096' 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: 36px;
}

/* ============================================================
   预约表单页
   ============================================================ */
.booking-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.booking-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.booking-form .form-row--full {
  grid-template-columns: 1fr;
}

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

.search-form-row {
  display: flex;
  gap: 10px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

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

.search-form-row input {
  width: 100%;
  padding: 16px 20px 16px 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.search-form-row input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.search-form-row button {
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.search-form-row button:hover { background: var(--primary-light); }

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
}

.search-result-item:hover {
  border-color: var(--primary-border);
  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-section-alt);
}

.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: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  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;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  background: #fff;
}

.pagination a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary-border);
}

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

.pagination .disabled {
  color: var(--text-light);
  pointer-events: none;
}

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

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

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

/* ============================================================
   Footer — 深蓝背景
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
}

.footer__top-line {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--primary-light), var(--green));
}

.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: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 16px 0;
}

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

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

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

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

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

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast);
}

.footer__links a:hover { color: var(--green-light); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

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

.footer__qrcode {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  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: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover { color: var(--green-light); }

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

.friend-links__label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.friend-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast);
}

.friend-links a:hover { color: var(--green-light); }

/* ============================================================
   在线客服按钮
   ============================================================ */
.float-service {
  position: fixed;
  right: 20px;
  bottom: 120px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
}

.float-service:hover {
  background: var(--primary-light);
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  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(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

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

/* 统计数字弹跳 */
@keyframes countBounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.countup.animated {
  animation: countBounce 0.5s var(--ease-spring);
}

/* 图标浮动 */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
}

/* Hero 标题入场 */
.hero__title {
  animation: fadeInUp 0.8s var(--ease-out) both;
}
.hero__subtitle {
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}
.hero__actions {
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

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

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

  .header__nav,
  .header__actions,
  .header__cta { display: none; }

  .hamburger { display: flex; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none; }

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

  .doctor-detail { grid-template-columns: 1fr; }
  .doctor-detail__sidebar { position: static; max-width: 320px; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .booking-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* 模块之间的间距：--section-py 是每个区块的上下内边距，两个相邻区块
     相加就是模块间距。48px 时相邻模块之间是 96px，手机上过于空旷。
     降到 32px，相邻间距 64px，同时每个区块自身也少占 32px 高度 */
  :root { --section-py: 32px; }

  /* CTA 区块的 padding 写死成 80px，不跟随 --section-py，
     所以手机上它比别的模块多出一圈（前面间距 132px）。改为跟随变量 */
  .cta-section { padding: var(--section-py) 0; }

  /* 区块标题行（医师团队 / 新闻资讯）：标题块 218 + 按钮 127 合计 345，
     超过手机可用宽度 342，即使 gap 归零也放不下，按钮会被挤到下一行（178px 高）。
     改为 nowrap + min-width:0 让标题块收缩，按钮始终与标题同行 */
  .section-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .section-head > div:first-child { min-width: 0; }
  .section-head > .btn { flex-shrink: 0; }

  /* 首页 Hero：手机端原来 85vh 几乎占满整屏，且内容块固定约 350px 高，
     小屏上 hero 被压到 480px 时会和分页器/滚动指示器打架。
     改为按内容自适应高度，只保留 header 让位 + 分页器留白，永远不会重叠。 */
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: 76px; /* 给底部 40px 处的分页器留位置 */
  }
  .hero__content {
    height: auto;
    padding: calc(var(--header-h) + 36px) 24px 0;
  }
  .hero__scroll { display: none; } /* 触屏上无意义，且底部会和内容重叠 */
  .hero__title { margin-bottom: 0.75rem; }
  .hero__subtitle { margin-bottom: 1.75rem; }

  /* 内页 Banner：header 是 fixed，正文居中时必须让出 header 高度，
     否则标题会被压到 header 下面（首页 hero 已用同样方式处理）。
     用 auto + min-height 而非固定高度：标题再长也是 banner 变高，不会被遮挡。 */
  .inner-banner { height: auto; min-height: 260px; }
  .inner-banner__content { height: auto; min-height: 260px; padding-top: calc(var(--header-h) + 16px); }

  /* 数据统计四个方框：手机端 2×2 排列，原来单框 217px 偏高，
     压缩 padding / 图标 / 数字 / 标签行高，标签字号保持不变以保证可读性 */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: 18px 12px; }
  .stat-item__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 1.15rem;
  }
  .stat-item__number { font-size: 1.5rem; margin-bottom: 2px; }
  .stat-item__label { font-size: 0.9rem; line-height: 1.45; }

  /* 核心科室：手机端改为三列宫格，只留图标+科室名。
     描述文字在 98px 宽的卡片里会折成 10 行左右，比单列还高，故隐藏 */
  .department-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dept-card { padding: 16px 8px; }
  .dept-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  .dept-card__name { font-size: 0.95rem; margin-bottom: 0; }
  .dept-card__desc { display: none; }

  /* 医师团队：满宽竖版肖像卡（单卡 538px）改为横向行式，头像左、文字右。
     只动 .doctor-card（医师专属），不影响共用的 .list-grid 其他列表 */
  .doctor-card { display: flex; align-items: stretch; text-align: left; }
  .doctor-card__image { flex: 0 0 110px; aspect-ratio: auto; }
  .doctor-card__body { flex: 1; min-width: 0; padding: 14px; }
  .doctor-card__name { font-size: 1rem; }
  .doctor-card__title { font-size: 0.85rem; margin: 2px 0 6px; }
  .doctor-card__specialty { font-size: 0.85rem; line-height: 1.5; }

  /* 文章卡片（健康科普 / 新闻资讯）：手机端改为一行一个的横向行式，
     图左文右。图片原为 16/10 满宽（212px 高），是卡片的绝对高度大头。
     标题原为 line-clamp:1，文字区变窄后会截断，放开到 2 行 */
  .card { display: flex; align-items: stretch; }
  .card__image { flex: 0 0 116px; aspect-ratio: auto; }
  .card__body { flex: 1; min-width: 0; padding: 14px; }
  .card__title { font-size: 0.95rem; -webkit-line-clamp: 2; }
  .card__desc { font-size: 0.82rem; line-height: 1.5; }
  .card__meta { margin-top: 8px; padding-top: 8px; font-size: 0.78rem; }
  .list-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .cta-buttons { flex-direction: column; align-items: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* 快速链接：竖排 5 行改为横排一行。5 个链接文字宽 288px，
     390 可用 342、360 可用 312，所以用 space-between 把余量全部分给间隙，
     不设列间距（gap 的第二值是行间距，仅在换行时才生效）。
     320 可用 272 < 288，物理上放不下，让 flex-wrap 退化为两行 */
  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 0;
  }

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

  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 160px; }

  .detail-tabs { overflow-x: auto; }
  .detail-tabs__btn { white-space: nowrap; }

  .back-top { right: 12px; bottom: 100px; }
  .float-service { right: 12px; bottom: 50px; }
}

/* ============================================================
   响应式 — 小屏手机
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 15px; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@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;
  }
}
