/* ============================================================
   思明堂互联网医院（演示） · H5 页面样式
   覆盖：首页（第三阶段信息架构重排：品牌区/核心服务网格/吸顶tab/免费获客条/
         健康服务/数据案例/眼科专家/公司介绍/软件介绍/科学护眼/资质条带/
         #/cases 聚合列表）/ 科室服务 / 专家（列表/详情/分享卡片）/ 资讯 /
         数据案例详情 / 在线预约 / 预约成功 / 免费获客表单 / 视力检测内嵌页 /
         关于我们 / 404
   主题（2026-11-21 蓝白 Clean Medical UI + 第三阶段视觉收敛）：令牌见 base.css :root；
   圆角三档归一（小件 12 / 卡片 16 / 大块 20），阴影统一蓝调柔影
   （var(--shadow) = 0 6px 18px rgba(40,123,245,0.08)）；渐变收敛：仅保留关于页
   品牌头部一处品牌渐变，首页头部/预约引导卡/分享卡片头部改纯色；
   首屏图标以内联双色线性 SVG 为准（.fq-ico/.svc2-ico），3D 大图图标下线。
   375px 设计优先；不使用 aspect-ratio（用 padding-top 撑比例），兼容旧内核；
   不使用 gap 布局关键路径（列距/行距一律 margin 方案）
   ============================================================ */

/* ==================== 首页（2026-11-21 第三阶段：信息架构重排 + 视觉收敛） ==================== */
/* 品牌头部：克制的医疗白底排版，场景摄影承担主视觉。 */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  background: #FFFFFF;
  padding: 18px 0 16px;
}
.home-hero::before,
.home-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}
.home-hero::before {
  display: none;
}
.home-hero::after {
  display: none;
}
.home-hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
/* 眼睛 Logo（手绘内联 SVG：圆形描边 + 瞳孔，主蓝色） */
.home-logo-eye { flex: 0 0 auto; width: 36px; height: 36px; margin-right: 9px; }
.home-logo-eye svg { width: 36px; height: 36px; display: block; }
.home-brand { flex: 1; min-width: 0; }
.home-brand-name { font-size: 18px; font-weight: 700; color: #183153; line-height: 1.25; letter-spacing: 0.2px; }
.home-brand-sub { margin-top: 3px; font-size: 11px; color: #72839A; letter-spacing: 0.5px; }
/* 资质徽标（白底细描边胶囊） */
.home-badge-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 10px 14px 0;
}
.hosp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--secondary);
  background: #FFFFFF;
  border: 1px solid rgba(40, 123, 245, 0.30);
  border-radius: 999px;
  white-space: nowrap;
}
.hosp-badge-ico { margin-right: 4px; font-size: 12px; }
/* 品牌主张：大字 slogan + 副句（第三阶段字号/间距压缩，头部瘦身） */
.home-slogan-main {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #183153;
  line-height: 1.35;
  letter-spacing: 1px;
}
.home-slogan-sub {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5px 20px 0;
  font-size: 12px;
  color: #718198;
  line-height: 1.55;
  letter-spacing: 0.3px;
}
.home-visual {
  position: absolute;
  z-index: 0;
  position: relative;
  right: auto;
  bottom: auto;
  width: calc(100% - 40px);
  height: 132px;
  margin: 16px 20px 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
}
.home-visual::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(18, 44, 78, 0.42) 0%, rgba(18, 44, 78, 0.02) 70%);
}
.home-visual .ph,
.home-visual .ph-real img { width: 100%; height: 100%; }
.home-visual .ph-real img { object-position: 57% center; }
.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  width: auto;
  padding: 14px 20px 0;
}
.hero-appointment,
.hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-appointment {
  color: #FFFFFF;
  background: #2369C8;
  box-shadow: none;
}
.hero-contact {
  margin-left: 7px;
  color: #315579;
  background: #FFFFFF;
  border: 1px solid #D8E2EE;
}
.hero-appointment:active { background: #194F9A; }
.hero-contact:active { background: #F4F8FC; }

/* ---- 轮播卡片（统一蓝调柔影 var(--shadow) + 16px 圆角；浅蓝 banner 用深蓝标题字保证对比） ---- */
.banner-card {
  position: relative;
  margin: 14px 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #DCEBFF;
}
.banner-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}
.banner-art {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
.banner-art .ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.banner-body {
  position: relative;
  z-index: 2;
  padding: 18px 16px 14px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
}
.banner-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #16325C;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.65);
}
.banner-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--sub-text);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}
.banner-dots {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  display: flex;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  margin-left: 5px;
  transition: all 0.25s;
}
.banner-dot.active { width: 16px; background: #FFFFFF; }

/* ---- 科室服务（2 列卡片） ---- */
.svc-grid { display: flex; flex-wrap: wrap; margin-left: -6px; }
.svc-card {
  width: 50%;
  padding-left: 6px;
  margin-bottom: 6px;
}
.svc-card-inner { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-card:active .svc-card-inner { opacity: 0.88; }
.svc-cover { padding-top: 62%; position: relative; }
.svc-cover .ph { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.svc-card-body { padding: 10px 12px 12px; }
.svc-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.svc-meta { margin-top: 6px; display: flex; align-items: center; }
.svc-dept { font-size: 11px; color: var(--primary); margin-right: 8px; white-space: nowrap; }
.svc-summary { margin-top: 4px; font-size: 12px; color: var(--light-text); line-height: 1.5; }

/* ---- 精选医生（横向滚动卡片） ---- */
.doc-row { padding: 2px 12px 4px; }
.doc-card {
  flex: 0 0 136px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px 12px;
  text-align: center;
  margin-right: 10px;
}
.doc-card:active { opacity: 0.88; }
.doc-avatar { width: 54px; height: 54px; margin: 0 auto 8px; }
.doc-name { font-size: 14px; font-weight: 700; }
.doc-title { margin-top: 2px; font-size: 11px; color: var(--primary); }
.doc-dept { margin-top: 6px; font-size: 11px; color: var(--light-text); }

/* ---- 科普资讯列表项 ---- */
.news-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-item {
  display: flex;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-item:active { background: #FAFAFA; }
.news-cover { width: 86px; height: 64px; flex: 0 0 auto; border-radius: var(--radius-s); overflow: hidden; margin-right: 10px; }
.news-cover .ph { width: 100%; height: 100%; font-size: 24px; }
.news-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.news-summary { margin-top: 3px; font-size: 12px; color: var(--light-text); }
.news-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11px;
  color: var(--light-text);
  display: flex;
  align-items: center;
}
.news-meta .tag { margin-right: 8px; }

/* ==================== 列表页（科室服务 / 导师） ==================== */
.filter-sticky {
  position: sticky;
  top: 44px;
  /* 与 .appbar 的 44px 内容区 + 顶部安全区保持一致（env 不支持时回退 44px） */
  top: calc(44px + env(safe-area-inset-top, 0px));
  z-index: 80;
  background: var(--bg);
  padding: 10px 12px 4px;
  margin-top: -1px;
}
.filter-sticky .chips-row { padding-bottom: 6px; }
.list-wrap { margin: 6px 12px 0; }
.plain-card {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 10px;
}
.plain-card:active { opacity: 0.88; }
.plain-cover { width: 92px; height: 70px; flex: 0 0 auto; border-radius: var(--radius-s); overflow: hidden; margin-right: 12px; }
.plain-cover .ph { width: 100%; height: 100%; font-size: 26px; }
.plain-main { flex: 1; min-width: 0; }
.plain-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.plain-summary { margin-top: 4px; font-size: 12px; color: var(--light-text); line-height: 1.5; }
.plain-tags { margin-top: 6px; display: flex; flex-wrap: wrap; }
.plain-tags .tag { margin-right: 6px; margin-bottom: 3px; }

/* 导师列表卡（竖排头像） */
.doc-list-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 10px;
}
.doc-list-card:active { opacity: 0.88; }
.doc-list-avatar { width: 56px; height: 56px; flex: 0 0 auto; margin-right: 12px; font-size: 26px; }
.doc-list-main { flex: 1; min-width: 0; }
.doc-list-name { font-size: 15px; font-weight: 700; }
.doc-list-title { margin-top: 2px; font-size: 12px; color: var(--primary); }
.doc-list-intro { margin-top: 4px; font-size: 12px; color: var(--light-text); }
.doc-list-arrow { flex: 0 0 auto; color: var(--faint-text); font-size: 16px; margin-left: 8px; }

/* ==================== 详情页 ==================== */
.detail-cover { margin: 12px 12px 0; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.detail-cover .ph { padding-top: 52%; }
.detail-head { margin: 14px 16px 0; }
.detail-title { font-size: 19px; font-weight: 700; line-height: 1.4; }
.detail-meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; }
.detail-meta .tag { margin-right: 6px; margin-bottom: 4px; }
.detail-date { font-size: 12px; color: var(--light-text); margin-left: auto; }
.detail-body { margin: 14px 16px 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 14px; }
.detail-p { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 12px; }
.detail-p:last-child { margin-bottom: 0; }
.notice-box {
  margin: 12px 12px 0;
  padding: 12px 14px;
  background: #F0F7FF;
  border: 1px solid #C9DFFF;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.7;
  color: var(--sub-text);
}
.notice-box-title { font-weight: 700; margin-bottom: 4px; color: var(--text); }

/* 底部 CTA 条（详情页预约入口） */
.cta-bar {
  position: fixed;
  z-index: 99;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-bottom));
  display: flex;
  align-items: center;
}
.cta-tip { flex: 1; min-width: 0; font-size: 11px; color: var(--light-text); line-height: 1.5; }
.cta-bar .btn { flex: 0 0 auto; height: 42px; padding: 0 26px; margin-left: 10px; }

/* 导师详情头像区 */
.doc-hero {
  margin: 12px 12px 0;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 22px 16px 16px;
  text-align: center;
}
.doc-hero-avatar { width: 84px; height: 84px; margin: 0 auto 10px; font-size: 40px; }
.doc-hero-name { font-size: 19px; font-weight: 700; }
.doc-hero-title { margin-top: 2px; font-size: 13px; color: var(--primary); }
.doc-hero-dept { margin-top: 6px; font-size: 12px; color: var(--light-text); }

/* ==================== 科普资讯列表页 ==================== */
.news-tabs {
  position: sticky;
  top: 44px;
  top: calc(44px + env(safe-area-inset-top, 0px));
  z-index: 80;
  background: var(--card);
  padding: 10px 12px 8px;
  box-shadow: 0 2px 8px rgba(40, 123, 245, 0.06);
}
.load-more {
  margin: 6px 12px 0;
  width: calc(100% - 24px);
  height: 40px;
  font-size: 13px;
  color: var(--sub-text);
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.load-more:disabled { color: var(--light-text); }
.load-all-tip { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--light-text); }

/* ==================== 在线预约 ====================
   引导卡渐变收敛（第三阶段）：改纯色浅蓝 */
.apt-intro {
  margin: 12px 12px 0;
  padding: 12px 14px;
  background: #EDF5FF;
  border-radius: var(--radius);
  font-size: 12px;
  color: #35548F;
  line-height: 1.7;
}
.apt-form { margin: 12px 12px 0; overflow: hidden; }
.apt-section-title { font-size: 12px; color: var(--light-text); margin: 0 0 8px; }
.opt-grid { display: flex; flex-wrap: wrap; margin-left: -6px; }
.opt-item {
  width: 33.33%;
  padding-left: 6px;
  margin-bottom: 6px;
}
.opt-item.half { width: 50%; }
.opt-chip {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 4px;
  font-size: 13px;
  color: var(--sub-text);
  background: #F1F5FB;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.opt-chip.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-weak);
  border-color: var(--primary);
}
.opt-chip:active { opacity: 0.85; }
.date-strip { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 62px;
  margin-right: 8px;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  color: var(--sub-text);
  background: #F1F5FB;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  line-height: 1.35;
}
.date-chip .dc-week { display: block; font-size: 11px; }
.date-chip.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-weak);
  border-color: var(--primary);
}
.agree-line {
  margin: 12px 16px 0;
  font-size: 12px;
  color: var(--light-text);
  line-height: 1.6;
}
.agree-line a { color: var(--primary); }
.apt-submit-wrap { margin: 14px 16px 0; }
.apt-submit-wrap .btn { width: 100%; }

/* ==================== 预约成功页 ==================== */
.success-hero { padding: 36px 24px 8px; text-align: center; }
.success-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #FFFFFF;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(43, 162, 69, 0.35);
  animation: popIn 0.4s ease both;
}
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-title { font-size: 19px; font-weight: 700; color: var(--success); }
.success-sub { margin-top: 6px; font-size: 13px; color: var(--sub-text); }
.result-card { margin: 18px 16px 0; overflow: hidden; }
.result-row {
  display: flex;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.result-row:last-child { border-bottom: 0; }
.result-label { flex: 0 0 76px; color: var(--light-text); }
.result-value { flex: 1; min-width: 0; color: var(--text); word-break: break-all; }
.success-tips { margin: 12px 16px 0; }
.success-tips .tip-p { font-size: 12px; color: var(--sub-text); line-height: 1.7; margin-bottom: 6px; }
.success-actions { display: flex; margin: 18px 16px 0; }
.success-actions .btn { flex: 1; margin: 0 6px; }
.success-actions .btn:first-child { margin-left: 0; }
.success-actions .btn:last-child { margin-right: 0; }

/* ==================== 关于我们 ====================
   .about-hero 渐变保留（2026-11-21 第三阶段渐变收敛：全站仅存的品牌渐变一处） */
.about-hero {
  margin: 12px 12px 0;
  padding: 24px 16px 18px;
  text-align: center;
  background: linear-gradient(168deg, #2F86FF 0%, #1E63D0 100%);
  border-radius: var(--radius-l);
  color: #FFFFFF;
}
/* Logo：首页同款手绘眼睛 SVG（2026-11-21 第三阶段：🍊 emoji 下线） */
.about-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}
.about-logo svg { width: 44px; height: 44px; display: block; }
.about-name { font-size: 19px; font-weight: 700; }
.about-slogan { margin-top: 6px; font-size: 13px; opacity: 0.9; }
.about-hero .demo-pill { margin-top: 10px; }
.highlight-grid { display: flex; flex-wrap: wrap; margin-left: -6px; }
.highlight-card { width: 50%; padding-left: 6px; margin-bottom: 6px; }
.highlight-inner {
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.highlight-title { font-size: 14px; font-weight: 700; color: var(--primary); }
.highlight-desc { margin-top: 4px; font-size: 12px; color: var(--sub-text); line-height: 1.6; }
.contact-list { overflow: hidden; }
.contact-item { display: flex; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-ico { flex: 0 0 28px; font-size: 17px; }
.contact-main { flex: 1; min-width: 0; }
.contact-label { font-size: 11px; color: var(--light-text); }
.contact-value { font-size: 14px; color: var(--text); word-break: break-all; }
.contact-action { flex: 0 0 auto; font-size: 12px; color: var(--primary); padding: 4px 12px; border: 1px solid var(--primary); border-radius: 999px; }
.contact-action:active { opacity: 0.8; }

/* ==================== 404 页 ==================== */
.notfound-hero { padding-top: 64px; }

/* ==================== 首页改版（2026-11-20）：资质墙 / 免费服务 / 医院介绍 ==================== */
/* ---- 医院资质墙（横滚资质卡；数据为空时整块隐藏） ---- */
.qual-demo-tag {
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 600;
  color: #8A6100;
  background: #FFF3D6;
  border: 1px solid #FFE08A;
  border-radius: 999px;
  white-space: nowrap;
}
.qual-name { font-size: 13px; font-weight: 700; line-height: 1.45; min-height: 38px; }
.qual-issuer { margin-top: 4px; font-size: 11px; color: var(--light-text); }

/* ---- 免费服务区（最大视觉权重，主打免费牌） ---- */
.free-grid { display: flex; flex-wrap: wrap; margin-left: -6px; }
.free-card { width: 50%; padding-left: 6px; margin-bottom: 6px; }
.free-card.wide { width: 100%; }
.free-card-inner {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
a.free-card-inner:active, button.free-card-inner:active { opacity: 0.88; }
.free-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 22px;
}
.free-name-row { display: flex; align-items: center; }
.free-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.free-badge {
  flex: 0 0 auto;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
}
.free-badge-blue { color: var(--secondary); background: var(--primary-weak); }
.free-sub { margin-top: 4px; font-size: 11px; color: var(--light-text); line-height: 1.5; }
.free-tool-row { margin-top: 8px; text-align: center; font-size: 12px; }
.free-tool-row a { color: var(--secondary); }
.free-tool-row a:active { color: var(--primary); }
.free-note { margin-top: 8px; font-size: 11px; color: var(--light-text); text-align: center; }

/* ---- 医院介绍卡 ---- */
.intro-card { margin-top: 0; }

/* ==================== 视力检测内嵌页 ==================== */
.vt-brand {
  display: flex;
  align-items: center;
  margin: 12px 12px 0;
  padding: 10px 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.vt-brand-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-right: 10px;
  font-size: 22px;
}
.vt-brand-main { flex: 1; min-width: 0; }
.vt-brand-title { font-size: 15px; font-weight: 700; }
.vt-brand-sub { margin-top: 2px; font-size: 11px; color: var(--light-text); }
/* 内嵌区域：占满首屏剩余高度（老内核回退 100vh；不支持 dvh 时回退上一行） */
.vt-frame-wrap {
  position: relative;
  margin: 12px 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  height: calc(100vh - 224px);
  height: calc(100dvh - 224px - env(safe-area-inset-top, 0px));
  min-height: 320px;
}
.vt-frame { display: block; width: 100%; height: 100%; border: 0; background: #FFFFFF; }

/* ==================== 医生分享卡片页（bare：无页脚，适合截图） ==================== */
.dcard-hint { margin-top: 12px; }
.dcard-stage { padding: 14px 14px 20px; }
.doctor-card {
  background: #FFFFFF;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid #DCE8F2;
  box-shadow: 0 8px 24px rgba(40, 123, 245, 0.16);
}
/* 分享卡片头部（渐变收敛，第三阶段）：改纯色深蓝 */
.dcard-head {
  background: var(--secondary);
  padding: 16px 14px 14px;
  text-align: center;
  color: #FFFFFF;
}
.dcard-hosp { font-size: 12px; font-weight: 600; opacity: 0.92; }
.dcard-avatar-wrap { margin-top: 10px; display: flex; justify-content: center; }
.dcard-avatar { width: 64px; height: 64px; font-size: 30px; }
.dcard-name { margin-top: 8px; font-size: 20px; font-weight: 700; }
.dcard-title { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.88); }
.dcard-dept { margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, 0.72); }
.tag-onblue { color: #FFFFFF; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.4); }
.dcard-body { padding: 14px 16px 4px; }
.dcard-label { font-size: 11px; color: var(--light-text); margin-bottom: 4px; }
.dcard-text { font-size: 13px; line-height: 1.7; color: var(--text); margin-bottom: 10px; word-break: break-all; }
.dcard-foot { text-align: center; padding: 6px 16px 16px; }
.dcard-hosp-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dcard-badge {
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 999px;
  white-space: nowrap;
}
.dcard-slogan { margin-top: 4px; font-size: 11px; color: var(--sub-text); }
.dcard-demo { margin-top: 6px; font-size: 10px; color: #B98900; }
.dcard-disclaimer {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--light-text);
  text-align: justify;
  text-align-last: center;
}

/* 导师详情页「生成分享卡片」入口 */
.doc-share-wrap { margin: 12px 16px 0; }
.doc-share-wrap .btn { width: 100%; }

/* ==================== 首页五分区（2026-11-20 改版新增） ==================== */

/* ---- 五分区吸顶 tab（白底胶囊容器，选中态实心 #287BF5）
   间距用 margin-right（评审修复：flex gap 旧 X5 不支持，关键布局不用 gap） ---- */
.home-tabs {
  position: sticky;
  top: 8px;
  top: calc(8px + env(safe-area-inset-top, 0px));
  z-index: 85;
  display: flex;
  margin: 14px 12px 0;
  padding: 5px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(13, 60, 84, 0.14);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
/* 吸顶悬浮：胶囊四周留 8px 呼吸空间 + 毛玻璃柔化透出内容（iOS 悬浮条做法）；
   旧 X5 无 backdrop-filter 时 rgba(255,255,255,.9) 近实色兜底，可读性不受影响 */
.home-tabs::-webkit-scrollbar { display: none; }
.home-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
  height: 34px;
  font-size: 13px;
  color: var(--sub-text);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.home-tab:last-child { margin-right: 0; }
.home-tab.active {
  color: #FFFFFF;
  font-weight: 700;
  background: var(--primary);
  box-shadow: 0 3px 8px rgba(40, 123, 245, 0.30);
}
.home-tab:active { opacity: 0.8; }

/* ---- 免费获客条（第三阶段图标收敛：5 个 3D 大图换内联双色线性 SVG 件——
     44px 浅蓝底圆角 + 主蓝描边 + 橙色点缀，零图片请求；粗标签 + 11px 灰副标 + 橙「免费」角标） ---- */
.free-quick {
  display: flex;
  margin: 12px 12px 0;
  padding: 14px 4px 10px;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.free-quick::-webkit-scrollbar { display: none; }
.fq-item {
  position: relative;
  flex: 1 0 19%;
  min-width: 64px;
  text-align: center;
  padding-bottom: 4px;
}
.fq-badge {
  position: absolute;
  top: -6px;
  right: 6px;
  padding: 0 6px;
  font-size: 9px;
  line-height: 1.7;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  z-index: 2;
}
/* 内联 SVG 图标件（双色线性：currentColor 主蓝 + #FF8C1F 点缀） */
.fq-ico {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  background: var(--primary-weak);
  color: var(--primary);
}
.fq-ico svg { width: 24px; height: 24px; display: block; }
.fq-label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }
.fq-sub { margin-top: 2px; font-size: 11px; color: var(--light-text); line-height: 1.3; }
.fq-item:active .fq-label { color: var(--primary); }

/* ---- 核心医疗服务网格（第三阶段新分区前置：GET /api/services 2 列白卡细描边；
     列距/行距用 padding/margin 实现，不用 gap；图标为 44px 浅蓝底线性 SVG 件） ---- */
.svc2-grid {
  display: block;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E6ECF3;
  border-radius: 14px;
}
.svc2-card {
  display: block;
  width: 100%;
}
.svc2-card-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-bottom: 1px solid #EEF2F6;
  padding: 10px 14px;
  transition: background 0.16s ease;
}
.svc2-card:last-child .svc2-card-inner { border-bottom: 0; }
.svc2-card:active .svc2-card-inner { background: #F7FAFD; }
.svc2-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #F0F5FA;
  color: #286BB8;
}
.svc2-ico svg { width: 20px; height: 20px; display: block; }
.svc2-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #263B53; line-height: 1.5; white-space: normal; overflow: visible; word-break: break-word; }
.svc2-link { flex: 0 0 auto; width: 24px; margin-left: 8px; color: #9AA9B8; font-size: 20px; line-height: 1; text-align: right; }

/* ---- 橙色提醒条（浅橙底 + 铃铛 + 白底橙描边胶囊；阴影并入全站蓝调柔影一档） ---- */
.remind-bar {
  display: flex;
  align-items: center;
  margin: 12px 12px 0;
  padding: 11px 12px;
  background: #FFF4E8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.remind-ico { flex: 0 0 auto; margin-right: 9px; font-size: 20px; line-height: 1; }
.remind-main { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
.remind-btn {
  flex: 0 0 auto;
  margin-left: 10px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: 999px;
  white-space: nowrap;
}
.remind-bar:active { background: #FFECDA; }

/* ---- 健康服务两列卡（白卡 + 图标 + 粗标题 + 灰副标；第三阶段图标收敛：
     .hs-ico 44px / 圆角 12 / 去图标投影，图片经 ph() lazy 加载） ---- */
.hs-grid { display: flex; flex-wrap: wrap; margin-left: -6px; margin-top: 10px; }
.hs-card { width: 50%; padding-left: 6px; margin-bottom: 6px; }
.hs-card-inner {
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
a.hs-card-inner:active { opacity: 1; transform: scale(0.985); border-color: rgba(40, 123, 245, 0.24); }
.hs-ico {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-s);
  margin-right: 10px;
  font-size: 22px;
}
.hs-main { flex: 1; min-width: 0; }
.hs-name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.hs-sub { margin-top: 2px; font-size: 11px; color: var(--light-text); line-height: 1.4; }

/* ---- 分区通用 ---- */
.home-sec { padding-top: 6px; }
.section-title.sub { font-size: 15px; }
.home-note {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--light-text);
  background: #F1F6FE;
  border-radius: var(--radius-s);
}
.offline-note {
  margin: 0 0 10px;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--secondary);
  background: var(--primary-weak);
  border-radius: var(--radius-s);
}
.sec-img {
  margin-top: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sec-img .ph { padding-top: 56%; }
.sec-img .img-cap {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--light-text);
}

/* ---- ① 数据案例：指标卡 v3（白卡蓝调柔影 + 主蓝大数字，顶边 #287BF5，通栏卡顶边天蓝）
   列距/行距用 margin 实现（评审修复：flex gap 旧 X5 不支持）。几何：
   容器 margin-right:-8px 右扩 8px 吸收末位卡 margin-right；卡宽 calc(50% - 8px)
   使「卡+距」两列总宽恰为 100%；margin-bottom:-8px 抵消末行行距；
   与原 gap:8px 布局卡宽/间距/右缘完全一致 ---- */
.metric-grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-bottom: -8px;
}
.metric-cell {
  width: calc(50% - 8px);
  box-sizing: border-box;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 12px 12px 10px;
  background: var(--card);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
/* 试验数据卡（92.9%/100%）通栏：note 完整展示试验条件不截断 */
.metric-cell.wide { width: 100%; margin-right: 0; border-top-color: var(--aux-sky); }
.metric-cell > div:first-child,
.metric-cell > .metric-value {
  min-height: 20px;
}
.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: 0.5px;
  word-break: break-all;
}
.metric-label {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.metric-note {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  font-size: 10px;
  color: var(--light-text);
  line-height: 1.55;
}
/* 数据案例列表（plain-card 复用列表页卡片；cover 无图时占位） */
.case-list .plain-cover .ph { font-size: 24px; }

/* ---- ② 眼科专家：合作专家横向卡片墙（v3 蓝白质感排版；
     第三阶段：圆角/阴影归一 + 逐卡「合作专家」轻量徽章 .exp-badge 绝对定位于右上，
     与「学术顾问」角标（.exp-ribbon）同存时由 JS 下移避让） ---- */
.expert-wall { padding: 2px 12px 4px; }
.expert-card {
  position: relative;
  flex: 0 0 200px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px 14px;
  margin-right: 10px;
  text-align: center;
  overflow: hidden;
}
.expert-card:active { opacity: 0.88; }
.exp-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 11px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary);
  border-radius: 0 var(--radius) 0 14px;
  z-index: 2;
}
.exp-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 9px;
  border-radius: 50% !important;
  border: 2.5px solid #D8E8FF;
  box-shadow: 0 3px 10px rgba(40, 123, 245, 0.14);
  object-fit: cover;
}
.exp-name { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: 0.5px; }
.exp-title { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--secondary); }
.exp-hosp {
  margin-top: 8px;
  padding: 3px 9px;
  font-size: 11px;
  color: var(--secondary);
  background: var(--primary-weak);
  border-radius: 999px;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}
.exp-bio {
  margin-top: 8px;
  font-size: 11px;
  color: var(--light-text);
  line-height: 1.6;
  text-align: left;
}
/* 「合作专家」轻量徽章（subtle：白底细描边小胶囊；绝对定位于卡右上角） */
.exp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(40, 123, 245, 0.35);
  border-radius: 999px;
  z-index: 1;
}

/* ---- ③ 公司介绍：媒体报道 / 时间线 / 资质摘要 ---- */
.media-row { padding: 2px 12px 4px; }
.media-cell {
  flex: 0 0 150px;
  margin-right: 10px;
  margin-top: 0;
}
.media-cell .ph { padding-top: 64%; }
.timeline {
  position: relative;
  margin-top: 4px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 6px 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  bottom: 14px;
  width: 2px;
  background: #CFE3FF;
}
.tl-item { position: relative; padding: 0 0 14px 20px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-dot {
  position: absolute;
  left: -2px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #CFE3FF;
}
.tl-year { font-size: 14px; font-weight: 700; color: var(--primary); line-height: 1.4; }
.tl-event { margin-top: 2px; font-size: 12px; color: var(--sub-text); line-height: 1.65; }
/* 时间线折叠（第三阶段：默认前 4 条，余下条目收进 .tl-extra，「展开全部」按钮展开） */
.tl-extra { display: none; }
.tl-extra.open { display: block; }
.tl-toggle {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  background: #F1F6FE;
  border-radius: var(--radius-s);
}
.tl-toggle:active { opacity: 0.8; }
.qual-chips { display: flex; flex-wrap: wrap; }
.qual-chip {
  margin: 0 8px 8px 0;
  max-width: 100%;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--secondary);
  background: var(--primary-weak);
  border-radius: 999px;
}

/* ---- ④ 软件介绍：特色数字卡 / 界面墙 / 视训师服务清单 ---- */
.num-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -6px;
  margin-top: 10px;
}
.num-card {
  width: 50%;
  padding: 12px;
  padding-left: 18px;   /* 补偿 margin-left:-6px 的网格间距 */
  margin-bottom: 6px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.num-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  word-break: break-all;
}
.num-label { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text); }
.num-desc { margin-top: 3px; font-size: 11px; color: var(--light-text); line-height: 1.5; }
.ui-gallery { padding: 2px 12px 4px; }
.ui-cell {
  flex: 0 0 200px;
  margin-right: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ui-cell .ph { padding-top: 74%; }
.ui-cell .ui-cap {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--sub-text);
}
.svc-points { padding: 12px 14px; margin-top: 10px; }
.svc-point {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.svc-point:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---- 页尾资质条带 ---- */
.cert-strip { padding: 2px 12px 4px; }
.cert-cell {
  flex: 0 0 200px;
  margin-right: 10px;
  margin-top: 0;
}
.cert-cell .ph { padding-top: 64%; }

/* ==================== 数据案例详情页 ==================== */
.case-summary { background: #F3F8FE; }
.case-summary .detail-p { color: var(--sub-text); font-size: 14px; }

/* ==================== 「相关推荐」区块（2026-11-21 第三阶段 T2） ====================
   专家详情（相关服务 + 科普 2 条）与数据案例详情（其他案例 2 条）共用：
   白卡容器 + 细描边行 + 类型小标签；行内布局沿用 margin 方案（不用 gap） */
.rel-sec { margin-top: 14px; margin-bottom: 4px; }
.rel-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rel-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.rel-item:last-child { border-bottom: 0; }
.rel-item:active { background: #F7FAFF; }
.rel-tag {
  flex: 0 0 auto;
  margin-right: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary);
  background: var(--primary-weak);
  border-radius: 999px;
  white-space: nowrap;
}
.rel-tag-sky { color: var(--secondary); background: var(--bg-soft); }
.rel-main { flex: 1; min-width: 0; }
.rel-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.45; }
.rel-sub { margin-top: 2px; font-size: 11px; color: var(--light-text); line-height: 1.4; }

/* ==================== 资质荣誉统一图片卡（v3.8：资质列表并入） ==================== */
.qual-uni {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qual-uni .qual-ph { padding-top: 64%; }
.cert-meta { padding: 9px 12px 11px; }
.cert-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.45; }
.cert-meta-sub { margin-top: 3px; font-size: 10px; color: var(--light-text); line-height: 1.4; }

/* ==================== 资质荣誉·可展开完整清单（v3.9 重构） ==================== */
.qual-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.qual-toggle:active { background: #EDF5FF; }
.qual-exp-list {
  margin-top: 8px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.qual-exp-item { padding: 11px 14px; border-bottom: 1px solid #EEF3F8; }
.qual-exp-item:last-child { border-bottom: 0; }
.qual-exp-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
.qual-exp-meta { margin-top: 2px; font-size: 11px; color: var(--light-text); line-height: 1.5; }

/* 极窄屏（≤340px）：tab 字号降级，五项免滑动全显（v3.9） */
@media (max-width: 340px) {
  .home-tab { font-size: 12px; height: 32px; padding: 0 1px; }
}

/* ==================== 资质荣誉·核心证书 2 列网格（v3.10） ====================
   替换横滑布局：证书完整显示不裁切；奇数张时最后一张跨两列 */
.core-cert-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -2px;
}
.core-cert-cell {
  width: 50%;
  padding: 0 2px 8px;
  box-sizing: border-box;
}
.core-cert-cell.core-cert-wide { width: 100%; }
.core-cert-cell .ph { padding-top: 72%; }
