/*
 * 图片展示页面样式 - 湘中明珠·魅力邵阳旅游网站
 * 作者：[刘稳]
 * 日期：[2025-06-10]
 * 描述：图片展示页面的专用样式
 */

/* 图片展示页面顶部横幅 */
.page-banner {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/syyj.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 0;
}

/* 图片展示区块通用样式 */
.gallery-section {
    padding: 80px 50px;
}

/* 奇偶区块背景色交替 */
.gallery-section:nth-child(odd) {
    background-color: var(--light-color);
}

.gallery-section:nth-child(even) {
    background-color: white;
}

/* 图片展示内容容器 */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 图片展示区块介绍文字 */
.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.gallery-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

/* 筛选按钮组样式 */
.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 单个筛选按钮样式 */
.filter-button {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    background-color: #f1f1f1;
    color: var(--dark-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

/* 筛选按钮悬停和激活状态 */
.filter-button:hover, .filter-button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 图片网格布局 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 图片项容器样式 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    height: 250px;
}

/* 图片样式 */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 图片悬停放大效果 */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* 图片标题说明层 */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* 悬停时显示标题说明 */
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 14px;
    opacity: 0.9;
}

/* 灯箱样式 - 点击图片后的全屏查看 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 灯箱内容容器 */
.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

/* 灯箱图片 */
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* 灯箱标题说明 */
.lightbox-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
}

/* 灯箱关闭按钮 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* 灯箱导航按钮容器 */
.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

/* 灯箱前后导航按钮通用样式 */
.lightbox-prev, .lightbox-next {
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 前一张按钮位置 */
.lightbox-prev {
    margin-left: 20px;
}

/* 后一张按钮位置 */
.lightbox-next {
    margin-right: 20px;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 