/* 图集页面样式 */
.gallery-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 图片分类导航 */
.gallery-nav {
    margin-bottom: 30px;
    text-align: center;
}

.gallery-nav button {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-nav button.active,
.gallery-nav button:hover {
    color: #ff8da1;
    background-color: rgba(255,182,193,0.1);
    border-radius: 20px;
}

/* 图片网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.gallery-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.viewer-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gallery-item img {
        height: 250px;
    }
} 