/* ======================
   全局基础样式
====================== */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, #eef6ff 0%, #f7f9fb 60%, #ffffff 100%);
  color: #333;
}

/* ======================
   顶部提示条
====================== */
.notice {
  text-align: center;
  padding: 12px;
  background: linear-gradient(90deg, #e0f3ff, #f0fbff);
  border-bottom: 1px solid #cde9ff;
  color: #007aff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ======================
   主体容器（卡片化）
====================== */
.container {
  max-width: 420px;
  margin: 30px auto;
  padding: 24px 20px 28px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.12);
  text-align: center;
}

/* 标题 */
.container h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #222;
}

/* ======================
   二维码区域
====================== */
.qrcode-box {
  margin: 16px auto 10px;
  padding: 14px;
  background: linear-gradient(180deg, #f5fbff, #ffffff);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px #e6f2ff;
}

.qrcode-box img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #cfe8ff;
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.2);
}

/* ======================
   微信信息
====================== */
.wechat-info {
  margin-top: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wechat-info span {
  color: #444;
}

#contact-id {
  font-weight: 600;
  color: #007aff;
  letter-spacing: 0.5px;
}

/* 复制按钮 */
.wechat-info button {
  padding: 6px 14px;
  font-size: 14px;
  background: linear-gradient(135deg, #007aff, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.35);
}

.wechat-info button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.45);
}

/* ======================
   复制本站链接区域
====================== */
.copy-site-link-container {
  margin-top: 18px;
}

.copy-site-link-container button {
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #2e8b57;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(46, 139, 87, 0.15);
  transition: all 0.25s ease;
}

.copy-site-link-container button:hover {
  background: #2e8b57;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(46, 139, 87, 0.3);
}

/* ======================
   复制提示
====================== */
.copy-tip {
  display: none;
  margin-left: 8px;
  color: #2e8b57;
  font-weight: 600;
  font-size: 14px;
}

.copy-tip.show {
  display: inline-block;
}

/* ======================
   弹窗遮罩
====================== */
.popup-mask {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

/* ======================
   弹窗主体
====================== */
.popup-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  padding: 26px 22px 22px;
  width: 280px;
  display: none;
  z-index: 1001;
  text-align: center;
  animation: popupIn 0.25s ease forwards;
}

/* 弹窗进入动画 */
@keyframes popupIn {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 弹窗文字 */
.popup-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 18px;
  font-weight: 500;
}

/* 弹窗按钮 */
.popup-button {
  background: linear-gradient(135deg, #007aff, #00c6ff);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}

.popup-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.45);
}

/* ======================
   弹窗右上角关闭按钮（X）
====================== */
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);

  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #666;

  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
  transform: rotate(90deg);
}
