/* 摄影页面专用样式 */

/* 摄影英雄区 */
.photography-hero {
    height: 500px;
    background-color: var(--accent-color);
    background-image: url('../images/photography-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.photography-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.photography-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: var(--spacing-md);
}

.photography-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.photography-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 过滤器样式 */
.photography-filters {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.filter-button {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 画廊网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

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

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

.gallery-info {
    padding: var(--spacing-sm);
    background-color: var(--background-color);
}

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

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

/* 联系区域 */
.photography-contact {
    background-color: var(--accent-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.1rem;
}

/* 灯箱 */
.lightbox {
    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: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border: 5px solid white;
}

.lightbox-caption {
    color: white;
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close {
    top: -40px;
    right: 0;
}

.lightbox-prev {
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photography-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .photography-hero {
        height: 400px;
    }
    
    .photography-hero h1 {
        font-size: 2.5rem;
    }
    
    .filter-container {
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
        justify-content: flex-start;
        gap: var(--spacing-xs);
    }
    
    .filter-button {
        flex: 0 0 auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .photography-hero {
        height: 300px;
    }
    
    .photography-hero h1 {
        font-size: 2rem;
    }
    
    .photography-hero p {
        font-size: 1rem;
    }
} 