/* 页面标题样式 */
.page-title {
    background-color: #f8f8f8;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 16px;
}

/* 作品分类导航样式 */
.works-nav {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-list a {
    padding: 8px 20px;
    color: #666;
    border-radius: 20px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background-color: #c41230;
    color: #fff;
}

/* 作品展示网格样式 */
.works-grid {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.view-details {
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-details:hover {
    background-color: #c41230;
    color: #fff;
}

.work-info {
    padding: 15px;
}

.work-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.work-info p {
    color: #666;
    font-size: 14px;
}

/* 分页导航样式 */
.pagination {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #c41230;
    color: #fff;
    border-color: #c41230;
}

.pagination .next {
    width: auto;
    padding: 0 15px;
}

/* 作品详情弹窗样式 */
.work-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #c41230;
}

.modal-body {
    display: flex;
    gap: 40px;
}

.work-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.work-details {
    flex: 1;
    padding: 20px;
}

.work-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.work-info p {
    margin-bottom: 10px;
    color: #666;
}

.work-description {
    margin-top: 30px;
    line-height: 1.8;
    color: #666;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        flex-direction: column;
    }

    .main-image {
        height: 300px;
    }
} 