﻿@charset "utf-8";
.banner .img {
  width: 100vw;
  height: 4.82rem;
  overflow: hidden;
}

.banner .img img {
  width: 100%;
}

/*框架*/
.frame {
  margin: .8rem 0rem;
}

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  margin-left: 85%;
}

.modal-close:hover {
  background: #e9ecef;
  color: #333;
}

.modal-body {
  padding: 30px;
}

.media-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.modal-video {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.modal-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  z-index: 2;
}

.modal-description {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.modal-text {
  margin: 0;
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .modal-content {
    width: 95%;
    max-width: 95%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .modal-header {
    padding: 15px 20px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-video,
  .modal-image {
    max-height: 400px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    top: 0;
    transform: none;
    left: 0;
  }
  .modal-body {
    padding: 15px;
  }
  .modal-video,
  .modal-image {
    max-height: 300px;
  }
  .modal-text {
    font-size: 16px;
  }
}

/*小屏幕*/