/* 二维码模态框样式 */
.qrcode-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.qrcode-modal.show {
  display: flex;
  opacity: 1;
}

.qrcode-modal-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalopen 0.5s;
  border-radius: 5px;
  overflow: hidden;
}

.qrcode-modal-header {
  padding: 15px 20px;
  background-color: #1a1a1a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #9a8652;
}

.qrcode-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.qrcode-modal-body {
  padding: 20px;
  text-align: center;
}

.qrcode-modal-body img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eaeaea;
  border-radius: 3px;
}

.qrcode-modal-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #eaeaea;
  text-align: center;
  color: #666;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.qrcode-download-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: #9a8652;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(154, 134, 82, 0.3);
}

.qrcode-download-btn:hover {
  background-color: #7d6b42;
  box-shadow: 0 4px 8px rgba(154, 134, 82, 0.4);
}

.qrcode-modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.qrcode-modal-close:hover,
.qrcode-modal-close:focus {
  color: #9a8652;
  text-decoration: none;
}

@keyframes modalopen {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .qrcode-modal-content {
    width: 95%;
    max-width: 320px;
  }

  .qrcode-modal-header h3 {
    font-size: 18px;
  }
}
