/* ==========================================================
   社交图标组件库（白标版）
   - 纯内联 SVG symbol，零外部请求、零第三方 CDN
   - 用法：<svg class="si"><use href="#i-facebook"></use></svg>
   - 图标清单在页面里以 <social-icons> block 注入一次
   ========================================================== */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-row .si {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #dceaf5;
  transition: background .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
  flex: 0 0 auto;
}

.social-row .si:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
}

.social-row .si:focus-visible {
  outline: 2px solid #c9a24b;
  outline-offset: 2px;
}

/* 品牌色悬停（各平台识别色） */
.social-row .si[data-brand="facebook"]:hover  { background: #1877f2; border-color: #1877f2; }
.social-row .si[data-brand="x"]:hover        { background: #000;    border-color: #000; }
.social-row .si[data-brand="instagram"]:hover{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; }
.social-row .si[data-brand="linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; }
.social-row .si[data-brand="youtube"]:hover  { background: #ff0000; border-color: #ff0000; }
.social-row .si[data-brand="whatsapp"]:hover { background: #25d366; border-color: #25d366; }
.social-row .si[data-brand="qq"]:hover        { background: #dc2728; border-color: #dc2728; }
.social-row .si[data-brand="wechat"]:hover   { background: #07c160; border-color: #07c160; }

/* QQ 企鹅：常态即用官方品牌黄（#F1A81A），与企鹅轮廓最搭 */
.social-row .si[data-brand="qq"] {
  background: #f1a81a;
  border-color: #f1a81a;
  color: #1b1b1b;
}
.social-row .si[data-brand="qq"]:hover {
  background: #f7b83a;
  border-color: #f7b83a;
  color: #1b1b1b;
}

.social-row .si svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ---------- 微信二维码弹层 ---------- */
.wx-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 20, 32, .72);
  padding: 20px;
}

.wx-modal.open { display: flex; }

.wx-modal__card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  position: relative;
}

.wx-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: #14293a;
  margin: 0 0 4px;
}

.wx-modal__sub {
  font-size: 13px;
  color: #6b7f8d;
  margin: 0 0 16px;
}

.wx-modal__qr {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid #e3e9ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  /* 二维码是正方形 SVG，必须 1:1，否则扫码器难以识别 */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wx-modal__qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wx-modal__id {
  margin-top: 14px;
  font-size: 14px;
  color: #14293a;
  font-weight: 600;
}

.wx-modal__id b { color: #07c160; }

.wx-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef2f5;
  color: #5a6b78;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease;
}

.wx-modal__close:hover { background: #e0e7ec; }

@media (max-width: 640px) {
  .social-row .si { width: 34px; height: 34px; }
  .social-row .si svg { width: 18px; height: 18px; }
}

/* ---------- 联系页内的社交区块（浅底卡片，适配深色图标） ---------- */
.connect-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed #d8e2ea;
}

.connect-title {
  display: block;
  font-size: 15px;
  color: #14293a;
  margin-bottom: 4px;
}

.connect-hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7f8d;
}

/* 浅底容器内：图标改为深色描边风格 */
.info-card .social-row .si,
.form-wrap .social-row .si,
.connect-block .social-row .si {
  background: #fff;
  border-color: #dbe4ea;
  color: #33566e;
}

.info-card .social-row .si:hover,
.form-wrap .social-row .si:hover,
.connect-block .social-row .si:hover {
  color: #fff;
  border-color: transparent;
}

.connect-block .si[data-brand="qq"]           { background: #f1a81a; border-color: #f1a81a; color: #1b1b1b; }
.connect-block .si[data-brand="qq"]:hover     { background: #f7b83a; border-color: #f7b83a; color: #1b1b1b; }
.connect-block .si[data-brand="wechat"]:hover { background: #07c160; }

@media (max-width: 640px) {
  .connect-block { margin-top: 16px; padding-top: 14px; }
}
