/* 画廊页面样式 - 暖色主题 */
.gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-2xl) 0;
}

.gallery-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.gallery-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 过滤器按钮样式 */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 画廊网格布局 */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* 画廊项目样式 */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 183, 77, 0.2);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 167, 38, 0.3);
}

.gallery-item-inner {
    position: relative;
    padding-top: 100%; /* 1:1 宽高比 */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 画廊项目悬停效果 */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 107, 0.9), transparent);
    padding: var(--spacing-md);
    color: var(--text-light);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 预览模态框样式 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.preview-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
}

.preview-close:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.1);
}

.preview-info {
    margin-top: var(--spacing-md);
    color: var(--text-light);
    text-align: center;
}

.preview-info h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 600;
}

.preview-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .gallery-description {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .preview-modal {
        padding: var(--spacing-md);
    }
    
    .preview-content {
        padding: var(--spacing-md);
    }
    
    .preview-content img {
        max-height: 70vh;
    }
} 