/* =============================================
   宜昌蕾帝美容医院 - 主样式文件
   ============================================= */

/* CSS变量 */
:root {
  --pink: #e8457a;
  --pink-light: #f5779e;
  --pink-dark: #c02f60;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --dark: #2d2d2d;
  --gray: #666;
  --light-gray: #f5f5f5;
  --white: #fff;
  --border: #ebebeb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(232,69,122,0.15);
  --transition: all 0.3s ease;
  --font: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 480px;
  margin: 0 auto;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: var(--font); outline: none; }

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,69,122,0.08);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 0 12px;
  box-shadow: 0 1px 12px rgba(0,0,0,.03);
}

/* logo 区：方版图 + 医院名/标语 */
.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;          /* 允许 flex 子项收缩，否则长文字会撑破头部 */
  flex: 1;
}
/* 图标底衬：给方版 logo 一个稳定容器，横版图也不会撑高头部 */
.header-logo-mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff2f5 0%, #fde8ec 100%);
  box-shadow: inset 0 0 0 1px rgba(232,69,122,.08);
  overflow: hidden;
}
.header-logo .logo-img {
  width: 100%; height: 100%;
  object-fit: contain;      /* 方版铺满，横版自动留白居中，两种都不变形 */
  object-position: center;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.header-logo .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.25;
  /* 医院名过长时省略，避免顶到右侧菜单按钮 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-logo .logo-sub {
  font-size: 10px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .3px;
  white-space: nowrap;
}
.header-nav-btn {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-gray);
  cursor: pointer;
  border: none;
}
.nav-icon span {
  display: block;
  width: 20px; height: 2px;
  background: var(--dark);
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* 抽屉菜单 */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-drawer {
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100%;
  background: var(--white);
  z-index: 1100;
  transition: right 0.3s ease;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.nav-drawer.open { right: 0; }
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}
.nav-drawer a:hover, .nav-drawer a.active {
  background: linear-gradient(135deg, #fde8f0, #fff0f5);
  color: var(--pink);
}
.nav-drawer .nav-icon-svg { font-size: 18px; }
.nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border: none; background: none;
  font-size: 22px;
  color: var(--gray);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ===== 主内容区 =====
   padding-top / min-height 需与 .header 的 height 一致，否则内容会被头部盖住 */
.main-content {
  padding-top: 58px;
  min-height: calc(100vh - 58px);
}

/* ===== 轮播图 ===== */
/* 高度不再写死（原来 height:220px + object-fit:cover）：
   现改为让图片按自身比例自适应，任何尺寸的图都完整显示、不裁切主体。 */
.swiper-section { position: relative; }
.swiper-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: #fafafa;
}
.swiper-wrapper {
  display: flex;
  /* 关键：flex 默认会把子元素拉到等高，导致矮图被裁、顶部偏移。
     改成 flex-start 后每个 slide 保持图片自身的原生比例，
     容器高度自动取最高那张，任何比例的图都不会被裁切。 */
  align-items: flex-start;
  transition: transform 0.5s ease;
}
.swiper-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.swiper-slide img {
  width: 100%;
  height: auto;       /* 跟随原图比例自适应，不写死高度 */
  display: block;
}
.swiper-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.swiper-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}
.swiper-dot.active {
  width: 18px;
  background: var(--white);
}

/* ===== 快速入口 ===== */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  padding: 16px 0;
  border-bottom: 8px solid var(--light-gray);
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition);
}
.quick-item:active { opacity: 0.7; }
.quick-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde8f0, #ffc8d8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.quick-icon.gold {
  background: linear-gradient(135deg, #fdf5e6, #f0ddb3);
}
.quick-icon.blue {
  background: linear-gradient(135deg, #e8f4ff, #b8d8ff);
}
.quick-icon.green {
  background: linear-gradient(135deg, #e8fff2, #b8f0d4);
}
.quick-item span { font-size: 12px; color: var(--gray); }

/* ===== 通用区块标题 ===== */
.section { padding: 20px 16px; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-left: 12px;
}
.section-title h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: linear-gradient(to bottom, var(--pink), var(--gold));
  border-radius: 2px;
}
.section-title a {
  font-size: 13px;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 专家卡片 ===== */
.experts-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.experts-scroll::-webkit-scrollbar { display: none; }
.expert-card {
  flex: 0 0 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: var(--transition);
}
.expert-card:active { transform: scale(0.97); }
.expert-card-img {
  width: 100%; height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde8f0, #f5d0e0);
}
.expert-card-info { padding: 10px; }
.expert-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.expert-card-title { font-size: 12px; color: var(--pink); margin-bottom: 6px; }
.expert-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.expert-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: #fde8f0;
  color: var(--pink);
  border-radius: 20px;
}

/* ===== 专家列表页 ===== */
.expert-list { display: flex; flex-direction: column; gap: 12px; }
.expert-list-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: flex-start;
  transition: var(--transition);
}
.expert-list-item:active { transform: scale(0.98); }
.expert-list-avatar {
  width: 80px; height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #fde8f0;
}
.expert-list-info { flex: 1; min-width: 0; }
.expert-list-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.expert-list-title { font-size: 12px; color: var(--pink); margin-bottom: 8px; }
.expert-list-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.expert-list-desc { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ===== 专家详情页 ===== */
.expert-detail-cover {
  width: 100%; height: 300px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde8f0, #f5d0e0);
}
.expert-detail-header {
  padding: 16px;
  background: var(--white);
  margin-bottom: 8px;
}
.expert-detail-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.expert-detail-title { color: var(--pink); font-size: 14px; margin-bottom: 10px; }
.expert-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.detail-tab-bar {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 58px;                /* 与 .header 高度一致 */
  z-index: 100;
}
.detail-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.detail-tab.active {
  color: var(--pink);
  font-weight: 700;
  border-bottom-color: var(--pink);
}
.detail-panel { display: none; padding: 16px; }
.detail-panel.active { display: block; }
.detail-content { font-size: 14px; line-height: 1.8; color: #444; }
.detail-content img { width: 100%; border-radius: var(--radius-sm); margin: 8px 0; }
.detail-content h3 { font-size: 15px; color: var(--dark); margin: 16px 0 8px; }
.detail-content p { margin-bottom: 10px; }

/* ===== 瀑布流案例 ===== */
.waterfall {
  column-count: 2;
  column-gap: 10px;
  padding: 0 12px;
}
.waterfall-item {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.waterfall-item:active { transform: scale(0.97); }
.waterfall-img {
  width: 100%;
  display: block;
  background: var(--light-gray);
}
.waterfall-info { padding: 8px 10px 10px; }
.waterfall-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.waterfall-meta { display: flex; align-items: center; justify-content: space-between; }
.waterfall-expert { font-size: 11px; color: var(--pink); }
.waterfall-views { font-size: 11px; color: #999; }

/* 案例筛选 */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--gray);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn.active {
  border-color: var(--pink);
  color: var(--pink);
  background: #fde8f0;
}

/* ===== 案例详情 ===== */
.case-detail-header { padding: 16px; background: var(--white); margin-bottom: 8px; }
.case-detail-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.case-detail-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray); }
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  background: var(--white);
  margin-bottom: 8px;
}
.before-after-item { text-align: center; }
.before-after-label {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: inline-block;
}
.label-before { background: #f0f0f0; color: #666; }
.label-after { background: #fde8f0; color: var(--pink); }
.before-after-img {
  width: 100%; border-radius: var(--radius-sm);
  background: var(--light-gray);
}

/* ===== 新闻列表 ===== */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: var(--transition);
}
.news-item:active { background: var(--light-gray); }
.news-cover {
  width: 90px; height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--light-gray);
}
.news-info { flex: 1; min-width: 0; }
.news-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta { display: flex; gap: 8px; font-size: 11px; color: #999; }
.news-cat {
  color: var(--pink);
  background: #fde8f0;
  padding: 1px 6px;
  border-radius: 3px;
}

/* 新闻详情 */
.news-detail { padding: 16px; }
.news-detail-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.news-detail-meta { display: flex; gap: 12px; font-size: 12px; color: #999; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.news-detail-content { font-size: 15px; line-height: 1.9; color: #444; }
.news-detail-content img { width: 100%; border-radius: var(--radius-sm); margin: 12px 0; }
.news-detail-content h2, .news-detail-content h3 { margin: 16px 0 8px; color: var(--dark); }
.news-detail-content p { margin-bottom: 12px; }

/* ===== 服务项目 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.service-item:active { transform: scale(0.96); }
.service-icon { font-size: 28px; }
.service-name { font-size: 13px; font-weight: 600; }
.service-desc { font-size: 11px; color: var(--gray); line-height: 1.4; }

/* ===== 关于医院 ===== */
.about-banner {
  width: 100%; height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #fde8f0, #f5d0e0);
}
.about-content { padding: 20px 16px; }
.about-title { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.about-gold { color: var(--gold); font-size: 14px; margin-bottom: 16px; }
.about-text { font-size: 14px; line-height: 1.9; color: #555; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 12px 16px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-icon { font-size: 20px; width: 32px; text-align: center; }
.info-label { font-size: 13px; color: var(--gray); margin-bottom: 2px; }
.info-value { font-size: 14px; font-weight: 500; color: var(--dark); }
.info-link { color: var(--pink); }

/* ===== 底部咨询栏 ===== */
.consult-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.consult-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.consult-btn-call {
  background: var(--white);
  border: 2px solid var(--pink);
  color: var(--pink);
}
.consult-btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232,69,122,0.35);
}
.consult-btn:active { transform: scale(0.96); }

/* ===== 页面带底部安全区 ===== */
.page-padding-bottom { padding-bottom: 72px; }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}
.pagination a {
  min-width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.pagination a.active {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

/* ===== 预约表单弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  width: 100%; max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark);
}
.form-group { margin-bottom: 14px; }
.form-label { font-size: 14px; color: var(--gray); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 15px;
  color: var(--dark);
  transition: var(--transition);
}
.form-input:focus { border-color: var(--pink); }
.form-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}
.form-submit:active { transform: scale(0.97); }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 12px 16px;
  background: var(--light-gray);
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--pink); }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.tag-pink { background: #fde8f0; color: var(--pink); }
.tag-gold { background: #fdf5e6; color: var(--gold); }
.tag-gray { background: var(--light-gray); color: var(--gray); }

/* ===== 加载更多 ===== */
.load-more {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 22px;
  color: var(--gray);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  margin: 16px auto;
  display: block;
  max-width: calc(100% - 32px);
}
.load-more:active { background: var(--light-gray); }

/* ===== 荣誉资质 ===== */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}
.honor-item { text-align: center; }
.honor-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.honor-item p { font-size: 11px; color: var(--gray); margin-top: 4px; }

/* ===== 页脚 ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 24px 20px 20px;
  text-align: center;
  font-size: 12px;
  margin-bottom: 60px;
}
.footer-logo { font-size: 16px; color: var(--pink); font-weight: 700; margin-bottom: 8px; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-icp { color: rgba(255,255,255,0.4); font-size: 11px; margin-top: 8px; }

/* ===== 吸顶返回 ===== */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(232,69,122,0.35);
  z-index: 800;
}
.back-top.show { opacity: 1; pointer-events: all; }

/* ===== 骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 动画 ===== */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 响应式细调 ===== */
@media (max-width: 360px) {
  .quick-icon { width: 44px; height: 44px; font-size: 20px; }
  .waterfall { column-gap: 8px; padding: 0 10px; }
}

/* ==========================================================
   专家荣誉证书墙（expert-detail.php 的「荣誉资质」Tab）
   ========================================================== */
.cert-wall { margin-top: 26px; padding-top: 22px; border-top: 1px solid #f0f0f0; }
.cert-wall-title {
  font-size: 16px; font-weight: 600; color: #333; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.cert-wall-title::before {
  content: ''; width: 3px; height: 15px; background: var(--pink, #d32329); border-radius: 2px;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.cert-item {
  cursor: pointer;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.cert-item:active { transform: scale(.97); }
.cert-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #fafafa;
}
.cert-meta { padding: 8px 10px 10px; }
.cert-name {
  font-size: 13px; color: #333; line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cert-sub {
  font-size: 11px; color: #999; margin-top: 3px; line-height: 1.5;
}
.cert-item:has(.cert-name:empty) .cert-sub { margin-top: 0; }

/* 点击放大灯箱 */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.cert-lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

