/* 作品展播页面样式 */

/* 容器 */
.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 官方说明 */
.official-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}

.notice-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-content {
    flex: 1;
}

.notice-content h3 {
    color: #d35400;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.notice-content p {
    color: #8b4513;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.notice-content .highlight {
    background: #f39c12;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* 页面标题 */
.works-header {
    text-align: center;
    margin-bottom: 40px;
}

.works-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* 统计信息 */
.works-statistics {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 筛选栏 */
.filter-bar {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #2E5CB8;
    color: #2E5CB8;
}

.filter-btn.active {
    background: #2E5CB8;
    color: white;
    border-color: #2E5CB8;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #2E5CB8;
    outline: none;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: auto;
}

.search-box input {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    transition: border-color 0.3s ease;
}

.search-box input:hover,
.search-box input:focus {
    border-color: #2E5CB8;
    outline: none;
}

.search-box button {
    padding: 8px 12px;
    border: 2px solid #2E5CB8;
    background: #2E5CB8;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #1e4a8c;
    border-color: #1e4a8c;
    transform: scale(1.05);
}


/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    min-height: 400px;
}

/* 作品卡片 */
.work-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.view-detail-btn {
    padding: 10px 30px;
    background: white;
    color: #2E5CB8;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: #2E5CB8;
    color: white;
    transform: scale(1.05);
}

/* 作品信息 */
.work-info {
    padding: 20px;
}

.work-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-author {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.work-grade {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.work-award {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.work-award.first {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.work-award.second {
    background: linear-gradient(135deg, #C0C0C0, #999999);
    color: white;
}

.work-award.third {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: white;
}

.work-award.excellent {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.work-award.heritage {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.work-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

#loadMoreBtn {
    padding: 12px 40px;
    background: #2E5CB8;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: #1e4a8a;
    transform: scale(1.05);
}

/* 加载中和空状态 */
.loading,
.no-results,
.error {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #999;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 1000px;
    max-height: 90vh;
    width: 90%;
    overflow: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

/* 作品详情 */
.work-detail {
    display: flex;
    gap: 30px;
    padding: 40px;
}

.work-detail-left {
    flex: 1;
}

.work-detail-left img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.work-detail-right {
    flex: 1;
    overflow-y: auto;
}

.work-detail-right h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.work-meta {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.work-meta p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.work-meta p:last-child {
    margin-bottom: 0;
}

.work-meta strong {
    color: #333;
    margin-right: 5px;
}

.work-description,
.work-highlights {
    margin-bottom: 20px;
}

.work-description h3,
.work-highlights h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.work-description p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.work-highlights ul {
    list-style: none;
    padding: 0;
}

.work-highlights li {
    padding: 8px 0 8px 25px;
    font-size: 14px;
    color: #666;
    position: relative;
}

.work-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2E5CB8;
    font-weight: bold;
}

.work-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.work-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #2E5CB8;
    background: white;
    color: #2E5CB8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #2E5CB8;
    color: white;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-statistics {
        gap: 40px;
    }
    
    .work-detail {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .works-container {
        padding: 20px 15px;
    }
    
    .works-statistics {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        margin-left: 0;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-detail {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}
