/* 摄影作品样式 */
.photo-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.photo-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.photo-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    display: none;
}

.photo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.view-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.photo-info {
    padding: 20px;
}

.photo-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.photo-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.photo-desc {
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.photo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.photo-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* 摄影统计样式 */
.photo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3b82f6;
    margin: 0 0 10px 0;
}

.stat-label {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
/* 摄影作品大图模式样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 背景虚化图片 */
.modal-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.7);
    opacity: 0.8;
    z-index: 0;
}

/* 主图片容器 */
.modal-main-image {
    position: relative;
    z-index: 1;
    max-width: 70%;
    max-height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.5s ease;
}

.modal-image.loaded {
    transform: scale(1);
}

/* 相机参数信息 */
.camera-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    text-align: center;
}

.camera-info h3 {
    color: #1f2937;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.parameter-item {
    text-align: center;
}

.parameter-label {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.parameter-value {
    display: block;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: bold;
}

.camera-brand {
    color: #3b82f6;
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

/* 导航按钮 */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-main-image {
        max-width: 90%;
        max-height: 60%;
    }

    .modal-image {
        transform: scale(0.8);
    }

    .modal-image.loaded {
        transform: scale(0.9);
    }

    .camera-info {
        min-width: 300px;
        padding: 15px;
    }

    .parameters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modal-prev {
        left: 15px;
    }

    .modal-next {
        right: 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}


