/* gallery.css - 图片相册样式文件 */

/* 基础样式 */
/* body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
} */

.album-container {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    /* padding: 20px; */
    padding-top: 20px;
    position: relative;
}

.album-title {
    text-align: center;
    margin-bottom: 20px;
    color: crimson;
}

/* 图片容器样式 - 优化高分辨率图片显示 */
.swiper {
    width: 100%;
    height: 650px !important; /* 根据5073×3058比例计算：1200÷1.66≈723px */
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    position: relative;
}

/* 优化图片显示 - 充分利用高分辨率 */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
}

/* 导航按钮样式 - 放在图片外面 */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background-color: gray;  /* rgba(0, 0, 0, 0.7) */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background-color 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-prev {
    left: -60px;
}

.swiper-button-next {
    right: -60px;
}

/* 分页器容器 - 放在图片外面 */
.swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    text-align: center;
}

/* 分页器圆点样式 - 灰色默认 */
.swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: background-color 0.3s;
}

.swiper-pagination-bullet:hover {
    background-color: #999;
}

.swiper-pagination-bullet-active {
    background-color: #007aff;
}

/* 图片计数显示 */
.image-counter {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .swiper {
        height: 400px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev {
        left: -45px;
    }
    
    .swiper-button-next {
        right: -45px;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: 300px;
    }
}

@media (min-width: 1200px) {
    .swiper {
        height: 650px;
    }
}