/* ── 联系我们弹窗（企业微信二维码 + 公众号）──
   视觉语言对齐 components/account-modal.css：navy 头带 + 黄铜金 serif 标题 +
   暖纸色卡片 + 发丝线。全部规则以 #subscribeModal 提权 —— 各页 .modal-box /
   .modal-box h3 的定义互不相同（read/vlog 甚至是深色底），不提权会被页面样式穿透。 */

#subscribeModal .contact-modal__box {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 22px;
  overflow: hidden;
  max-width: 400px; width: 92%;
  max-height: 86vh;
  padding: 0;
  text-align: center;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 12px 40px rgba(0,0,0,0.1), 0 32px 80px rgba(0,0,0,0.08);
}

/* ── navy 头带 ── */
#subscribeModal .contact-modal__head {
  flex-shrink: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f172a 100%);
  border-bottom: 1px solid rgba(201,164,75,0.15);
  padding: 26px 24px 20px;
}

#subscribeModal .contact-modal__heading {
  margin: 0;
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 21px; font-weight: 700; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #d4a853, #f0d68a 30%, #c9a44b 50%, #e8cc7a 70%, #b8922e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

#subscribeModal .contact-modal__sub {
  margin: 7px 0 0;
  font-size: 12px; color: rgba(232,228,216,0.62); letter-spacing: 0.02em;
}

/* ── 可滚动主体 ── */
#subscribeModal .contact-modal__body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 20px 22px 18px;
}
#subscribeModal .contact-modal__body::-webkit-scrollbar { display: none; }

/* ── 企业微信二维码 ── */
#subscribeModal .contact-modal__qr-card {
  padding: 14px 14px 12px;
  background: #faf8f5;
  border: 1px solid rgba(201,164,75,0.18);
  border-radius: 14px;
  margin-bottom: 12px;
}

/* 白底方砖：二维码永远完整 —— 尺寸由砖决定，与原图比例无关 */
#subscribeModal .contact-modal__qr-tile {
  width: min(228px, 58vw); height: min(228px, 58vw);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(26,26,46,0.06);
}

#subscribeModal .contact-modal__qr {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

#subscribeModal .contact-modal__qr-label {
  margin-top: 10px;
  font-size: 12px; font-weight: 600; color: #1a1a1a; letter-spacing: 0.06em;
}

/* ── 公众号 ── */
#subscribeModal .contact-modal__mp {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #faf8f5;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  text-align: left;
  margin-bottom: 14px;
}

#subscribeModal .contact-modal__mp-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: linear-gradient(135deg, rgba(201,164,75,0.16), rgba(245,158,11,0.08));
  border: 1px solid rgba(201,164,75,0.28);
}

#subscribeModal .contact-modal__mp-body { flex: 1; min-width: 0; }

#subscribeModal .contact-modal__mp-name {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 15px; font-weight: 700; color: #1a1a1a; letter-spacing: 0.02em;
}

#subscribeModal .contact-modal__mp-label { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ── 落款 ── */
#subscribeModal .contact-modal__tip {
  margin: 0; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 11px; color: #a8a29e; letter-spacing: 0.08em; line-height: 1.6;
}

/* ── mac 风格关闭按钮：右上角红色圆点 ── */
#subscribeModal .contact-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 16px; height: 16px; padding: 0; margin: 0;
  border: none; border-radius: 50%;
  background: #ff5f57; color: rgba(0,0,0,0.5);
  font-size: 12px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
}
#subscribeModal .contact-modal__close:hover { background: #ff453a; color: rgba(0,0,0,0.72); transform: scale(1.12); }

/* ── 响应式 ── */
@media (max-width: 640px) {
  #subscribeModal .contact-modal__head { padding: 22px 18px 16px; }
  #subscribeModal .contact-modal__heading { font-size: 19px; }
  #subscribeModal .contact-modal__sub { font-size: 11px; }
  #subscribeModal .contact-modal__body { padding: 16px 16px 14px; }
  #subscribeModal .contact-modal__qr-tile { width: min(204px, 56vw); height: min(204px, 56vw); }
}

@media (max-width: 400px) {
  #subscribeModal .contact-modal__head { padding: 20px 14px 14px; }
  #subscribeModal .contact-modal__heading { font-size: 18px; }
  #subscribeModal .contact-modal__body { padding: 14px 12px 12px; }
  #subscribeModal .contact-modal__qr-card { padding: 12px 10px 10px; }
  #subscribeModal .contact-modal__qr-tile { width: min(180px, 56vw); height: min(180px, 56vw); }
  #subscribeModal .contact-modal__mp { padding: 10px 12px; gap: 10px; }
  #subscribeModal .contact-modal__mp-icon { width: 36px; height: 36px; font-size: 17px; }
  #subscribeModal .contact-modal__mp-name { font-size: 14px; }
  #subscribeModal .contact-modal__tip { font-size: 10px; letter-spacing: 0.04em; }
}
