/* 二维码弹窗样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: var(--snow-white);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.qr-modal.show .qr-modal-content {
  transform: scale(1);
}

.qr-modal-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.qr-modal-header h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.qr-modal-header p {
  color: var(--warm-gray);
  font-size: 1rem;
  margin: 0;
}

.qr-modal-close {
  position: absolute;
  top: 10px !important;
  right: 10px !important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--snow-white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.qr-modal-close:hover {
  background: #c2410c;
  transform: scale(1.1);
}

.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-image {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 2px solid var(--primary-blue);
  object-fit: cover;
}

.qr-tip {
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.qr-item {
  text-align: center;
}

.qr-item .qr-image {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--primary-blue);
  object-fit: cover;
  background: white;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.qr-label {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  font-weight: 500;
}

/* 移动端二维码弹窗样式 */
@media (max-width: 768px) {
  .qr-modal-content {
    padding: 1.5rem;
    max-width: 450px;
  }
  
  .qr-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .qr-item .qr-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    background: white;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 110px;
    min-height: 110px;
    max-width: 110px;
    max-height: 110px;
  }
  
  .qr-modal-header h3 {
    font-size: 1.3rem;
  }
  
}
