/* 模态框样式 */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalIn 0.5s ease;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.modal-text {
  padding: 25px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.close:hover {
  color: var(--orange);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 响应式调整 */
@media (max-width: 767px) {
  .modal-content {
    width: 95%;
  }
  
  .modal-content img {
    max-height: 300px;
  }
} 