/* 页面主体样式 */
.art-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
    background: url('../images/art-header.png') no-repeat center;
    background-size: cover;
    color: #fff;
    border-radius: 8px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 艺术分类样式 */
.art-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    border: 2px solid #c41230;
    border-radius: 30px;
    background: none;
    color: #c41230;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #c41230;
    color: #fff;
}

/* 艺术网格样式 */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.art-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

/* 不同尺寸的网格项 */
.art-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.art-item.wide {
    grid-column: span 2;
}

.art-item.tall {
    grid-row: span 2;
}

.art-item:hover {
    transform: translateY(-5px);
}

.art-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.art-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.art-item:hover .art-image img {
    transform: scale(1.1);
}

.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 18, 48, 0.9);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.art-item:hover .art-overlay {
    opacity: 1;
    transform: translateY(0);
}

.art-overlay h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.art-overlay p {
    font-size: 16px;
    margin-bottom: 20px;
}

.view-details {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #c41230;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: #c41230;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.art-info {
    padding: 20px;
}

.art-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.art-info p {
    color: #666;
    line-height: 1.6;
}

/* 弹窗样式 */
.art-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-image {
    position: relative;
    padding-top: 75%;
}

.modal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 30px 30px 30px 0;
}

.modal-info h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.modal-description {
    color: #666;
    line-height: 1.8;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.art-item {
    animation: fadeIn 0.6s ease forwards;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .category-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .art-grid {
        gap: 20px;
    }

    .art-item.large,
    .art-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (max-width: 480px) {
    .art-grid {
        grid-template-columns: 1fr;
    }

    .art-categories {
        gap: 10px;
    }

    .category-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
} 