/* 作品详情页专用样式 */
.work-detail-section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    background-color: #fff;
     margin-top: 80px; /* 为固定导航栏留出空间 */
}

.work-detail-section ~ header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.work-detail-section ~ header .logo a {
    color: #8B0000;
}

.work-detail-section ~ header nav a {
    color: #333;
}

.work-detail-section ~ header nav a:hover {
    color: #8B0000;
}


.work-detail-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    color: #8B0000;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid #8B0000;
    border-radius: 5px;
}

.back-btn:hover {
    background-color: #8B0000;
    color: white;
}

.back-btn i {
    margin-right: 8px;
}

/* 作品头部 */
.work-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 30px;
}

.work-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    line-height: 1.3;
}

.work-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #8B0000;
    bottom: -10px;
    left: 0;
}

.work-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 16px;
    margin-top: 25px;
}

.work-date, .work-category {
    display: flex;
    align-items: center;
}

.work-date i, .work-category i {
    margin-right: 5px;
    color: #8B0000;
}

/* 作品内容布局 */
.work-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 图集样式 */
.work-gallery {
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.01);
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    transform: scale(1.05);
    opacity: 1;
    border-color: #8B0000;
}

.work-image-single {
    margin-bottom: 30px;
}

.work-image-single .main-image {
    margin-bottom: 0;
}

/* 作品信息 */
.work-info {
    padding: 0;
}

.work-description {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #444;
}

.work-description p {
    margin-bottom: 20px;
}

.work-features {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f7f1;
    border-radius: 8px;
    border-left: 4px solid #8B0000;
}

.features-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.features-list {
    list-style-type: none;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '•';
    color: #8B0000;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

.work-tech {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f7f1;
    border-radius: 8px;
}

.tech-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: #8B0000;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #a52a2a;
    transform: translateY(-2px);
}

.work-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: #8B0000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.action-btn:hover {
    background-color: #a52a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.action-btn i {
    margin-right: 8px;
}

.action-btn.secondary {
    background-color: transparent;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.action-btn.secondary:hover {
    background-color: #8B0000;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .work-detail-section {
        margin-top: 70px;
        padding: 100px 20px 60px;
    }
    
    .work-title {
        font-size: 28px;
    }
    
    .work-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .work-actions {
        flex-direction: column;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .work-title {
        font-size: 24px;
    }
    
    .work-description {
        font-size: 16px;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}