/* 摄影作品页面样式 */

/* 主要内容 */
main {
    padding-top: 100px;
}

/* 页面标题 */
.page-header {
    padding: 120px 0 50px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text);
    font-weight: 700;
    font-family: 'Microsoft YaHei', sans-serif;
}

.page-header p {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 作品分类过滤器 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light-text);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--light-text);
}

.filter-btn.active {
    background-color: #000000;
    color: var(--light-text);
    border-color: #000000;
}

/* 图片画廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 220px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.gallery-item:nth-child(1) { --item-index: 1; }
.gallery-item:nth-child(2) { --item-index: 2; }
.gallery-item:nth-child(3) { --item-index: 3; }
.gallery-item:nth-child(4) { --item-index: 4; }
.gallery-item:nth-child(5) { --item-index: 5; }
.gallery-item:nth-child(6) { --item-index: 6; }
.gallery-item:nth-child(7) { --item-index: 7; }
.gallery-item:nth-child(8) { --item-index: 8; }
.gallery-item:nth-child(9) { --item-index: 9; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info {
    color: var(--light-text);
}

.gallery-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 图片放大查看效果 */
.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.image-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-zoom-overlay.active .zoomed-image {
    transform: scale(1);
}

.zoom-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item {
        height: 150px;
    }
} 