/* 摄影页面样式 */
.photography-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 照片筛选 */
.photo-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.photo-filter-btn {
    padding: 10px 25px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-dark);
}

.photo-filter-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.photo-filter-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: var(--white);
    border-color: transparent;
}

/* 照片墙 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.photo-item:nth-child(3n) {
    aspect-ratio: 4/3;
}

.photo-item:nth-child(5n) {
    aspect-ratio: 3/4;
}

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

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-info h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.photo-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.photo-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.photo-action-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.photo-action-btn.liked {
    background: #3b82f6;
    color: var(--white);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: #3b82f6;
    transform: rotate(90deg);
}

.modal-info {
    text-align: center;
    color: var(--white);
    margin-top: 20px;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--white);
    color: #1e3a8a;
    transform: scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: var(--white);
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .photo-filters {
        gap: 10px;
    }

    .photo-filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .modal-content img {
        max-height: 70vh;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
