/* 绘画稿件展览功能样式 */

/* 展览区块容器 */
.art-exhibition-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--item_bg_color);
    border-radius: 12px;
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-exhibition-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 展览标题样式 */
.art-exhibition-title {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.art-exhibition-title svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--fill);
}

.art-exhibition-title h2 {
    font-size: 1.8rem;
    color: var(--main_text_color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 8s ease infinite;
}

/* 分类过滤按钮 */
.art-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.art-filter-btn {
    padding: 8px 16px;
    background: var(--text_bg_color);
    border: none;
    border-radius: 20px;
    color: var(--main_text_color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.art-filter-btn:hover {
    background: var(--purple_text_color);
    transform: translateY(-2px);
}

.art-filter-btn.active {
    background: var(--purple_text_color);
    color: white;
}

/* 绘画稿件网格 */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

/* 绘画卡片 */
.art-card {
    background: var(--item_hover_color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.art-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-card:hover .art-card-image {
    transform: scale(1.05);
}

.art-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.art-card:hover .art-card-overlay {
    opacity: 1;
}

.art-card-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.art-card-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 加载更多按钮 */
.art-load-more {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: 200% auto;
    animation: gradientMove 8s ease infinite;
}

.art-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 123, 255, 0.4);
}

.art-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 画作查看器 */
.art-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.art-viewer.active {
    opacity: 1;
    visibility: visible;
}

.art-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.art-viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.art-viewer-details {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    color: white;
}

.art-viewer-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.art-viewer-category {
    color: var(--purple_text_color);
    margin-bottom: 10px;
}

.art-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--text_bg_color);
    color: var(--main_text_color);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.art-viewer-close:hover {
    background: var(--purple_text_color);
    color: white;
}

/* 渐变动画 */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .art-exhibition-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .art-exhibition-title h2 {
        font-size: 1.5rem;
    }
    
    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .art-card-image {
        height: 200px;
    }
    
    .art-viewer-content {
        max-width: 95%;
    }
    
    .art-viewer-details {
        padding: 15px;
    }
    
    .art-viewer-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .art-grid {
        grid-template-columns: 1fr;
    }
    
    .art-filters {
        gap: 8px;
    }
    
    .art-filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}