/* 微信分享弹窗 + 浮动按钮样式 */

/* ---- 浮动栏微信按钮 ---- */
.float-wx {
  background: linear-gradient(135deg, #07c160, #06ad56);
  display: grid;
}
.float-wx svg { width: 26px; height: 26px; }
.float-wx:hover { color: #fff; }

/* ---- 弹窗 ---- */
.wx-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.wx-modal.show { display: flex; animation: wxFadeIn .2s ease; }
@keyframes wxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wx-modal-mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}

.wx-modal-box {
  position: relative;
  background: #fff; border-radius: 16px;
  padding: 34px 26px 26px;
  max-width: 340px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  animation: wxPop .28s cubic-bezier(.34,1.4,.64,1);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes wxPop {
  from { opacity: 0; transform: scale(.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wx-modal-close {
  position: absolute; top: 10px; right: 14px;
  width: 34px; height: 34px; border: none; background: none;
  font-size: 26px; line-height: 1; color: #999;
  cursor: pointer; border-radius: 50%; transition: .2s;
  display: grid; place-items: center;
}
.wx-modal-close:hover { background: #f2f3f5; color: #333; }

/* 分享引导箭头（指向右上角） */
.wx-share-arrow {
  position: absolute; top: 12px; right: 54px;
  font-size: 28px; color: #07c160;
  transform: rotate(-38deg);
  animation: wxArrow 1.4s ease-in-out infinite;
}
@keyframes wxArrow {
  0%, 100% { transform: rotate(-38deg) translate(0, 0); }
  50% { transform: rotate(-38deg) translate(4px, -4px); }
}

.wx-modal-box h3 {
  font-size: 18px; margin-bottom: 10px; color: #1f2329; font-weight: 700;
}
.wx-share-tip {
  font-size: 14.5px; color: #646a73; line-height: 1.75;
  margin-bottom: 20px;
}
.wx-share-tip b { color: #07c160; }

/* ---- 二维码 ---- */
.wx-qr-wrap {
  width: 200px; margin: 0 auto 12px;
  border: 1px solid #e5e8ef; border-radius: 12px;
  padding: 6px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.wx-qr { width: 100%; height: auto; display: block; border-radius: 8px; }
.wx-qr-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f7f9fc; border-radius: 8px;
  color: #b0b8c4; font-size: 14px;
  border: 1.5px dashed #d5dce8;
}
.wx-qr-tip { font-size: 13.5px; color: #646a73; margin-bottom: 14px; }

.wx-phone-tip {
  font-size: 14px; color: #646a73;
  border-top: 1px solid #f0f2f5; padding-top: 14px;
}
.wx-phone-tip a { color: #1677ff; font-weight: 700; font-size: 16px; }

/* ---- 移动端适配 ---- */
@media (max-width: 768px) {
  .wx-modal { padding: 16px; align-items: flex-start; padding-top: 60px; }
  .wx-modal-box { padding: 30px 22px 22px; border-radius: 14px; }
  .wx-modal-box h3 { font-size: 17px; }
  .wx-share-tip { font-size: 14px; }
  .wx-qr-wrap { width: 180px; }
  .wx-share-arrow { font-size: 25px; right: 50px; }
  .float-wx svg { width: 24px; height: 24px; }
}

/* ---- 分隔线 ---- */
.wx-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 14px; color: #b0b8c4; font-size: 13px;
}
.wx-divider::before, .wx-divider::after {
  content: ''; flex: 1; height: 1px; background: #eef1f6;
}

.wx-share-line {
  font-size: 13.5px; color: #646a73; line-height: 1.7;
  margin-bottom: 14px;
}

/* ---- 首页微信入口区块 ---- */
.wx-cta-section { background: linear-gradient(135deg, #f0fdf6, #e6f9ed); }
.wx-cta-card {
  display: flex; align-items: center; gap: 32px;
  background: #fff; border-radius: 16px; padding: 32px 36px;
  box-shadow: 0 6px 28px rgba(7, 193, 96, .12);
  border: 1px solid #d4f5e0;
  max-width: 780px; margin: 0 auto;
}
.wx-cta-qr {
  width: 160px; flex-shrink: 0;
  border: 1px solid #e5e8ef; border-radius: 12px; padding: 6px; background: #fff;
}
.wx-cta-qr img { width: 100%; height: auto; display: block; border-radius: 8px; }
.wx-cta-text { flex: 1; }
.wx-cta-text h3 { font-size: 21px; margin-bottom: 10px; color: #1f2329; }
.wx-cta-text p { color: #646a73; font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.wx-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.wx-btn-wx {
  background: linear-gradient(135deg, #07c160, #06ad56); color: #fff;
  border: none; padding: 12px 26px; border-radius: 8px;
  font-size: 15.5px; font-weight: 700; cursor: pointer; transition: .22s;
  display: inline-flex; align-items: center; gap: 8px;
}
.wx-btn-wx:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(7,193,96,.32); color: #fff; }
.wx-btn-tel {
  background: #fff; color: #1677ff; border: 1.5px solid #c5d9ff;
  padding: 12px 26px; border-radius: 8px; font-size: 15.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: .22s;
}
.wx-btn-tel:hover { background: #f5f8ff; border-color: #1677ff; color: #1677ff; }

@media (max-width: 768px) {
  .wx-cta-card { flex-direction: column; text-align: center; padding: 26px 20px; gap: 20px; }
  .wx-cta-qr { width: 180px; }
  .wx-cta-text h3 { font-size: 18.5px; }
  .wx-cta-text p { font-size: 14px; }
  .wx-cta-btns { justify-content: center; flex-direction: column; }
  .wx-btn-wx, .wx-btn-tel { width: 100%; justify-content: center; padding: 14px; }
}
