/* ═══════════════════════════════════════════════════════════════════════════
   v3.26.314: 业务展示卡片 —— 共享样式（单一真源）
   🔴 架构铁律：视频页（app_main.js）与素材页（app.py 注入）必须共用这一份 CSS。
     过去两侧各写一套（.biz-show-* / .mat-biz-show-*），导致同一份数据在两个页面
     排版不一致（字号/间距/头像尺寸/二维码宽度全不同）。现统一为 .bizc-* 一套。

   用法：
     <link rel="stylesheet" href="/static/css/biz-card.css?v=<APP_VER>">
   ═══════════════════════════════════════════════════════════════════════════ */

.bizc-card {
  position: relative;
  margin: 16px 0 6px;
  padding: 14px 12px;
  background: #f6faf7;
  border: 1px solid #dcebe1;
  border-radius: 14px;
  -webkit-text-size-adjust: 100%;
}

/* ── 标题 ── */
.bizc-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f3d28;
  text-align: center;
  margin-bottom: 12px;
  padding: 0 26px;          /* 给右上角关闭按钮留位，标题仍居中 */
  line-height: 1.4;
  word-break: break-word;
}

/* ── 右上角关闭（v3.26.316）── */
.bizc-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9bb3a5;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.bizc-close:hover { background: #e4efe8; color: #1f7a4d; }
.bizc-close:active { background: #d8e9df; }

/* 无头像占位（只填了电话/姓名的顾问） */
.bizc-av-empty {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #e3efe7;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #b9cdc1;
  margin: 0 auto;
}

/* ── 顾问列表：条数不限，超出宽度横向滚动 ── */
.bizc-list {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;          /* Firefox */
  padding: 2px 2px 6px;
  /* 两侧渐隐提示还有更多 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.bizc-list::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.bizc-list.is-centered { justify-content: center; }

/* ── 单个顾问 ── */
.bizc-item {
  flex: 0 0 auto;
  width: 92px;
  text-align: center;
  scroll-snap-align: center;
}

/* 头像：可点击放大 */
.bizc-av {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e3efe7;
  background: #fff;
  display: block;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.bizc-av:active { transform: scale(.94); }
.bizc-av:hover  { transform: scale(1.04); box-shadow: 0 3px 10px rgba(31,122,77,.18); }

/* 姓名/职务 */
.bizc-name {
  font-size: 11.5px;
  color: #44564c;
  margin-top: 6px;
  line-height: 1.4;
  word-break: break-word;
}

/* 电话：点击直接拨号 */
.bizc-phone {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 11.5px;
  color: #1f7a4d;
  text-decoration: none;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.bizc-phone:active { opacity: .6; }
.bizc-phone-icon { font-size: 11px; }

/* 二维码 */
.bizc-qr { margin-top: 6px; }
.bizc-qr img {
  width: 68px;
  border: 1px solid #e5efe8;
  border-radius: 8px;
  background: #fff;
  display: block;
  margin: 0 auto;
}

/* 无二维码时补位，保证各列高度一致 */
.bizc-qr-empty { margin-top: 6px; height: 68px; }

/* ── CTA 按钮 ── */
.bizc-cta {
  display: block;
  width: max-content;
  margin: 12px auto 0;
  background: #1f7a4d;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 20px;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v3.26.314: 头像大图预览（lightbox）—— 共享组件
   两端共用同一套 DOM 与样式，点击头像查看完整图片。
   ═══════════════════════════════════════════════════════════════════════════ */
.bizc-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(12,20,16,.88);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 16px;
  -webkit-tap-highlight-color: transparent;
}
.bizc-lb.is-open { display: flex; }
.bizc-lb-img {
  max-width: 92vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.bizc-lb-cap {
  color: #e8f5ee;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.bizc-lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bizc-lb-close:active { background: rgba(255,255,255,.28); }
