/* ============================================
   公共组件样式：底部声明栏 + 联系售后悬浮按钮 + 弹窗
   在所有页面中引用此文件
   ============================================ */

/* ---------- 底部声明栏 ---------- */
.footer-legal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  cursor: pointer;
  margin: 0 4px;
}
.footer-legal a:hover {
  color: #ffffff;
}

/* ---------- 联系售后悬浮按钮 ---------- */
.service-float {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.service-float:hover {
  transform: scale(1.05);
}
.service-float .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #07c160, #06ad56);
  box-shadow: 0 8px 30px rgba(7, 193, 96, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  transition: box-shadow 0.3s;
}
.service-float .icon:hover {
  box-shadow: 0 12px 40px rgba(7, 193, 96, 0.6);
}
.service-float .label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- 弹窗（Modal）通用样式 ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #ffffff;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  padding: 30px 28px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  position: relative;
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-box h3 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  text-align: center;
}
.modal-box .license-text {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: 'Courier New', monospace;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  max-height: 50vh;
  overflow-y: auto;
}
.modal-close {
  margin-top: 20px;
  background: #764ba2;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  float: right;
}
.modal-close:hover {
  background: #5b3b82;
}
.modal-box::after {
  content: '';
  display: table;
  clear: both;
}

/* ---------- 二维码弹窗（专门展示图片） ---------- */
.qrcode-modal .modal-box {
  max-width: 420px;
  text-align: center;
}
.qrcode-modal .modal-box img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.qrcode-modal .modal-box .qrcode-hint {
  color: #64748b;
  font-size: 14px;
  margin-top: 8px;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 480px) {
  .service-float {
    right: 16px;
    bottom: 90px;
  }
  .service-float .icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .service-float .label {
    font-size: 11px;
    padding: 2px 12px;
  }
}