/* 作品展示横幅 */
.works-banner {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.works-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.works-banner h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 作品分类导航 */
.works-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.nav-item {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #8B4513;
    transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: #8B4513;
    font-weight: bold;
}

/* 作品展示区域 */
.works-display {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.work-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-hover {
    opacity: 1;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.hover-content {
    text-align: center;
    color: #fff;
}

.hover-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.hover-content p {
    margin-bottom: 20px;
}

.view-detail {
    padding: 10px 20px;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-detail:hover {
    background-color: #fff;
    color: #8B4513;
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.work-period {
    color: #8B4513;
    font-size: 14px;
    margin-bottom: 8px;
}

.work-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #704012;
}

/* 作品详情弹窗 */
.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.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 ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.modal-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.work-details {
    margin-bottom: 30px;
}

.work-details p {
    color: #666;
    margin-bottom: 10px;
}

.work-description {
    color: #333;
    line-height: 1.8;
    margin-bottom: 30px;
}

.work-features h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.work-features ul {
    list-style: none;
    padding: 0;
}

.work-features li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.work-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B4513;
}

.related-works {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-works h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .works-banner {
        height: 300px;
    }

    .works-banner h2 {
        font-size: 28px;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 8px 15px;
        font-size: 14px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
} 