/* ================================================================
   旺质康官网 - 弹窗清晰度增强补丁 v2
   2026-09-02

   目标：提升弹窗清晰度与视觉锐度
   - 更强的阴影层次感
   - 更清晰的背景对比
   - 更锐利的边框和分割线
   - 更清晰的文字层次
   ================================================================ */

/* ===== 1. 弹窗遮罩层 - 更清晰但不刺眼 ===== */
.wzk-modal-backdrop {
  background: rgba(10, 10, 15, 0.65) !important;
  /* 降低模糊，更清晰 */
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 100010;
}

/* ===== 2. 弹窗盒子 - 更强的阴影层次 ===== */
.wzk-modal-box {
  border-radius: 8px !important;
  /* 多层阴影制造层次感 */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.12) !important;
  /* 白色背景更纯净 */
  background: #ffffff !important;
  border: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: box-shadow 0.2s ease !important;
  will-change: box-shadow !important;
}
.wzk-modal-box.active {
  transform: none !important;
  opacity: 1 !important;
}

/* 弹窗出现时轻微上浮阴影增强 */
.wzk-modal-box {
  animation: wzkModalFadeIn 0.18s ease-out !important;
}
@keyframes wzkModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 3. 弹窗容器 ===== */
.wzk-modal-container {
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
  z-index: 100011;
}

/* ===== 4. 弹窗头部 - 更清晰的分割 ===== */
.wzk-modal-header {
  padding: 20px 24px 16px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  position: relative;
}
/* 头部底部加微阴影增加层次 */
.wzk-modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.wzk-modal-header h2,
.wzk-modal-header h3 {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #0a0a0f !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  margin: 0 !important;
}

/* ===== 5. 弹窗内容区 ===== */
.wzk-modal-body {
  padding: 20px 24px !important;
  background: #ffffff !important;
}

/* ===== 6. 弹窗底部 ===== */
.wzk-modal-footer {
  padding: 16px 24px 20px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: #ffffff !important;
  gap: 12px;
}
/* 底部上方微阴影 */
.wzk-modal-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.04);
  margin: -16px -24px 16px;
}

/* ===== 7. 关闭按钮 - 更清晰可辨 ===== */
.wzk-modal-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: #374151 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  flex-shrink: 0 !important;
}
.wzk-modal-close:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  color: #0a0a0f !important;
  transform: rotate(90deg) !important;
}

/* ===== 8. 按钮系统 ===== */
.wzk-btn,
.wzk-btn-primary {
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
.wzk-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.wzk-btn:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* ===== 9. 购物车弹窗 ===== */
.wzk-cart-added-icon {
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 184, 83, 0.25) !important;
}

/* ===== 10. 支付方式 Tab ===== */
.wzk-payment-method-tab {
  border-radius: 8px !important;
  border: 2px solid transparent !important;
  transition: all 0.15s ease !important;
}
.wzk-payment-method-tab.active {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
}

/* ===== 11. 二维码 ===== */
.wzk-qr-code-img {
  border-radius: 8px !important;
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* ===== 12. 银行卡信息 ===== */
.wzk-bank-card {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
.wzk-bank-card.company {
  border-color: rgba(0, 184, 83, 0.2) !important;
}

/* ===== 13. 购物小票 ===== */
.wzk-receipt {
  border-radius: 8px !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
}
.wzk-receipt::before,
.wzk-receipt::after {
  display: none !important;
}

/* ===== 14. 折扣面板 ===== */
.wzk-discount-panel {
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #f8fafc !important;
  padding: 14px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* ===== 15. 支付成功弹窗 ===== */
.wzk-success-icon {
  border-radius: 50% !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 184, 83, 0.2) !important;
}

/* ===== 16. 支付成功小票区域 ===== */
.wzk-receipt-points,
.wzk-receipt-divider {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

/* ============================================================
   移动端响应式
   ============================================================ */
@media (max-width: 520px) {
  .wzk-modal-container {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
  }

  .wzk-modal-box {
    border-radius: 12px !important;
    max-height: 88vh !important;
    max-width: 100% !important;
  }

  .wzk-modal-box::before {
    display: none !important;
  }

  .wzk-modal-header {
    padding: 16px 18px 14px !important;
  }

  .wzk-modal-body {
    padding: 16px 18px !important;
  }

  .wzk-modal-footer {
    padding: 14px 18px 24px !important;
  }

  .wzk-modal-header h2,
  .wzk-modal-header h3 {
    font-size: 16px !important;
  }

  .wzk-btn {
    border-radius: 10px !important;
  }
}

@media (max-width: 375px) {
  .wzk-modal-header { padding: 14px 16px 12px !important; }
  .wzk-modal-body { padding: 14px 16px !important; }
  .wzk-modal-footer { padding: 12px 16px 20px !important; }
}

/* ===== 17. 营销弹窗 wzk-market-modal ===== */
#wzk-market-modal .wzk-modal-box {
  border-radius: 8px !important;
}

/* ===== 18. 增强滚动条清晰度 ===== */
.wzk-modal-body::-webkit-scrollbar { width: 5px; }
.wzk-modal-body::-webkit-scrollbar-track { background: transparent; }
.wzk-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 3px !important;
}
.wzk-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25) !important;
}

/* ===== 19. 内容区背景干净 ===== */
.wzk-payment-content {
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* ===== 20. 商品列表项分隔线 ===== */
.wzk-checkout-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
.wzk-checkout-item:last-child {
  border-bottom: none !important;
}
