/* ============================================================
   modals.css（P13 · 源 App.tsx L185-291）：微信咨询弹窗（WechatModal）
   引擎 = /js/modal.mjs（<dialog> 原生）；动画 keyframes 一律引 keyframes.css
   全局定义（fadeIn/slideUp/blink/scanPulse），本文件禁再定义 @keyframes。
   （登录/注册已于 2026-09-16 外链 login.podx.cn，Activation/Login 两弹窗及
   其专属样式（暗色遮罩/左栏族/表单组件族/激活右栏）随链移除，历史见 git。）
   ============================================================ */

/* ── dialog 基座（源遮罩层 fixed inset-0 z-100 p-4 flex center 的等价实现）── */
dialog.modal {
  margin: auto;                      /* showModal() 后双轴居中 */
  padding: 16px;                     /* 源 p-4：遮罩可视区与卡片间距 */
  width: 100%;
  max-width: calc(680px + 32px);
  max-height: 100dvh;
  background: transparent;
  border: 0;
  color: inherit;
}
dialog.modal::backdrop {             /* WechatModal 源 L196 */
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fadeIn 0.18s ease;
}

/* ── 卡片（源 max-w-680 rounded-2xl flex bg-white）── */
.modal-card {
  position: relative;
  width: 100%; max-width: 680px; margin: 0 auto;
  max-height: calc(100dvh - 32px);
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06), 0 32px 80px rgba(0, 0, 0, 0.16);   /* 源 L201 */
  animation: slideUp 0.26s cubic-bezier(.22, .68, 0, 1.15);                        /* 源 L201 */
}

/* ── 关闭钮（源右上圆形；wechat 32px/#BBB）── */
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 20;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #BBB; background: transparent; border: 0; cursor: pointer;
  transition: background-color 0.15s;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.06); }             /* 源 hover:bg-black/6 */

/* 在线胶囊（wechat 12/6px·11.5 号，源 L215-219） */
.m-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; margin: 0 0 20px;
  background: rgba(255, 82, 0, 0.08); color: #C44000; border: 1px solid #FFD8BE;
}
.m-pill i { width: 6px; height: 6px; border-radius: 50%; background: #FF5200; animation: blink 2s infinite; }

/* 弹窗内头像（复用 hero-avatar img；尺寸作用域覆写 20px/1.5px #FFF4EE，源 L245-249） */
.m-avs { display: flex; flex-shrink: 0; }
.m-avs .hero-avatar { width: 20px; height: 20px; border: 1.5px solid #FFF4EE; }
.m-avs .hero-avatar + .hero-avatar { margin-left: -6px; }       /* 源 -space-x-1.5 */

/* ── WechatModal（源 L185-291）── */
.wx-left {                                                          /* 源 L211-212：45% 渐变+右边线 */
  display: none; flex-direction: column;
  width: 45%; padding: 36px;
  background: linear-gradient(180deg, #FFF8F3 0%, #FFF4EE 100%);
  border-right: 1px solid #FFE8D6;
}
.wx-logo { height: 24px; width: auto; object-fit: contain; align-self: flex-start; margin-bottom: 40px; }   /* 源 h-6 mb-10 */
.wx-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.wx-h2 {                                                            /* 源 L220：26px 800 */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.45; letter-spacing: -0.03em;
  color: #111; margin: 0 0 16px;
}
.wx-h2 span { color: #FF5200; }
.wx-lead {                                                          /* 源 L224-226 */
  font-size: 14px; line-height: 1.625; color: #666;
  border-left: 2px solid #FFD0B0; padding-left: 12px; margin: 0 0 32px;
}
.wx-feats { display: flex; flex-direction: column; gap: 14px; }
.wx-feat { display: flex; align-items: center; gap: 12px; }
.wx-feat-ic {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: rgba(255, 82, 0, 0.08);
}
.wx-feat p { font-size: 13px; white-space: nowrap; color: #555; margin: 0; }
.wx-feat p b { font-weight: 700; color: #222; }
.wx-foot {                                                          /* 源 L243-253 */
  display: flex; align-items: center; gap: 8px;
  padding-top: 20px; margin-top: 20px;
  border-top: 1px solid #FFD8BE;
}
.wx-foot p { font-size: 12px; color: #777; white-space: nowrap; margin: 0; }
.wx-foot p strong { font-weight: 700; color: #FF5200; }

.wx-right {                                                         /* 源 L256 */
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px; background: #fff;
}
.adv-card {                                                         /* 顾问卡，源 L257-272 */
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; width: 100%;
  margin-bottom: 24px;
  background: #F8F7F5; border: 1px solid #EEECE8;
  box-sizing: border-box;
}
.adv-fig { position: relative; flex-shrink: 0; }
.adv-fig img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-avatar-ring); }
.adv-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #22C55E; border: 2px solid #F8F7F5;
}
.adv-info { flex: 1; min-width: 0; }
.adv-info p { font-size: 12.5px; margin: 0; }
.adv-info p:first-child { font-weight: 600; color: #111; }
.adv-info p:last-child { color: #777; white-space: nowrap; }
.adv-on {
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  padding: 4px 8px; border-radius: 8px;
  background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0;
}

/* 二维码卡与扫描线（wechat 196px/p16/圆24，源 L273-279） */
.qr-wrap { position: relative; margin-bottom: 24px; }
.qr-box {
  width: 196px; height: 196px; padding: 16px; border-radius: 24px;
  background: #fff; border: 1.5px solid #EBEBEA;
  box-shadow: 0 0 0 8px #F7F6F4, 0 16px 48px rgba(0, 0, 0, 0.10);
  box-sizing: border-box;
}
.qr-box svg { display: block; width: 100%; height: 100%; }
.qr-scan {
  position: absolute; left: 16px; right: 16px; top: 30%; height: 2px;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 82, 0, 0.5), transparent);
  animation: scanPulse 2.4s ease-in-out infinite;
}
.qr-h {                                                            /* 源 L281-283 */
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em; color: #111;
  margin: 0 0 6px; text-align: center;
}
.qr-sub { font-size: 13.5px; color: #888; margin: 0; text-align: center; }

/* ── 左栏出现断点（源 md=768）── */
@media (min-width: 768px) {
  .wx-left { display: flex; }
}
