/* 幻灯片样式 */
.slides-container {
    margin: 30px auto;
    max-width: 100%;
  }
  
  .slide-group {
    padding: 20px 0;
  }
  
  .slide-pair {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }
  
  .slide-item {
    position: relative;
    width: 270px;
    height: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 图片容器样式 */
  .slide-image-container {
    width: 250px;
    height: 250px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 添加占位图背景 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="%23cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
  }
  
  /* 图片样式 */
  .slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保按短边填充 */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0; /* 初始不显示 */
    display: block;
  }
  
  /* 图片加载完成后显示 */
  .slide-image.loaded {
    opacity: 1;
  }
  
  .slide-image:hover {
    transform: scale(1.05);
  }
  
  /* 加载中提示 */
  .slide-image-container::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  
  /* 当容器有loaded类时隐藏加载提示 */
  .slide-image-container.loaded::after {
    opacity: 0;
    visibility: hidden;
  }
  
  .slide-caption {
    text-align: center;
    font-weight: 500;
    margin-top: 10px;
    color: #333;
  }
  
  /* 图片放大浮层 */
  .slide-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* 降低透明度，从0.9改为0.7 */
    
    /* 使用弹性布局使内容居中 */
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  
  .slide-modal-content {
    position: relative;
    margin: 0;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    display: flex;
    flex-direction: column; /* 改为纵向排列 */
    justify-content: center;
    align-items: center;
  }
  
  .slide-modal-close {
    color: white;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010; /* 确保关闭按钮在最上层 */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强可见性 */
    transition: all 0.3s ease;
  }
  
  .slide-modal-close:hover {
    color: #f0f0f0;
    transform: scale(1.1);
  }
  
  .slide-modal-img {
    max-width: 90%;
    max-height: 80vh; /* 稍微减小高度，为标题留出空间 */
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* 添加阴影效果 */
    border-radius: 4px;
  }
  
  /* 添加图片标题样式 */
  .slide-modal-title {
    color: white;
    font-size: 1.5rem; /* h4大小 */
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
    max-width: 90%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* 添加文字阴影增强可见性 */
  }
  
  /* 自定义导航按钮样式 */
  .slides-carousel .owl-nav button.owl-prev,
  .slides-carousel .owl-nav button.owl-next {
    font-size: 24px !important;
    background: rgba(0, 0, 0, 0.3);
    color: white !important;
    width: 50px; /* 增大按钮尺寸 */
    height: 50px; /* 增大按钮尺寸 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .slides-carousel .owl-nav button.owl-prev:hover,
  .slides-carousel .owl-nav button.owl-next:hover {
    background: linear-gradient(to right, #0098da, #00c6a7);
    transform: scale(1.1); /* 悬停时稍微放大 */
  }
  
  /* 自定义指示点样式 */
  .slides-carousel .owl-dots .owl-dot {
    width: 18px; /* 增大尺寸 */
    height: 18px; /* 增大尺寸 */
    margin: 5px 7px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none; /* 去除边框 */
  }
  
  /* 使用指定的颜色值设置指示点背景色（逆序排列） */
  .slides-carousel .owl-dots .owl-dot:nth-child(1) { background-color: #00BFA5; }
  .slides-carousel .owl-dots .owl-dot:nth-child(2) { background-color: #01BBA7; }
  .slides-carousel .owl-dots .owl-dot:nth-child(3) { background-color: #02B8A9; }
  .slides-carousel .owl-dots .owl-dot:nth-child(4) { background-color: #03B4AB; }
  .slides-carousel .owl-dots .owl-dot:nth-child(5) { background-color: #04B1AD; }
  .slides-carousel .owl-dots .owl-dot:nth-child(6) { background-color: #05ADAF; }
  .slides-carousel .owl-dots .owl-dot:nth-child(7) { background-color: #07AAB1; }
  .slides-carousel .owl-dots .owl-dot:nth-child(8) { background-color: #08A6B4; }
  .slides-carousel .owl-dots .owl-dot:nth-child(9) { background-color: #09A3B6; }
  .slides-carousel .owl-dots .owl-dot:nth-child(10) { background-color: #0A9FB8; }
  .slides-carousel .owl-dots .owl-dot:nth-child(11) { background-color: #0B9CBA; }
  .slides-carousel .owl-dots .owl-dot:nth-child(12) { background-color: #0D98BC; }
  .slides-carousel .owl-dots .owl-dot:nth-child(13) { background-color: #0E95BE; }
  .slides-carousel .owl-dots .owl-dot:nth-child(14) { background-color: #0F91C0; }
  .slides-carousel .owl-dots .owl-dot:nth-child(15) { background-color: #108EC3; }
  .slides-carousel .owl-dots .owl-dot:nth-child(16) { background-color: #118AC5; }
  .slides-carousel .owl-dots .owl-dot:nth-child(17) { background-color: #1387C7; }
  .slides-carousel .owl-dots .owl-dot:nth-child(18) { background-color: #1483C9; }
  .slides-carousel .owl-dots .owl-dot:nth-child(19) { background-color: #1580CB; }
  .slides-carousel .owl-dots .owl-dot:nth-child(20) { background-color: #167CCD; }
  .slides-carousel .owl-dots .owl-dot:nth-child(21) { background-color: #1779CF; }
  .slides-carousel .owl-dots .owl-dot:nth-child(22) { background-color: #1976D2; }
  
  .slides-carousel .owl-dots .owl-dot.active,
  .slides-carousel .owl-dots .owl-dot:hover {
    opacity: 1; /* 选中或悬停时完全不透明 */
    transform: scale(1.3); /* 选中时放大 */
    box-shadow: 0 0 10px rgba(0, 150, 218, 0.7); /* 外发光效果 */
  }
  
  /* 响应式样式 */
  @media (max-width: 767px) {
    .slide-pair {
      flex-direction: column;
      gap: 10px;
    }
    
    .slide-item {
      width: 100%;
      height: 270px;
    }
    
    .slide-image-container {
      width: 250px;
      height: 250px;
      margin: 0 auto;
    }
  }