/* 案例作品页面特定样式 */
.cases-hero {
    position: relative;
    height: 20vh;
    min-height: 167px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), 
                url('../picture/works-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cases-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 170, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cases-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
    animation: fadeIn 1.5s ease-out;
}

.cases-content {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cases-filter {
    text-align: center;
    margin-bottom: 5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #00ffaa;
    color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.filter-btn.active {
    background: rgba(0, 255, 170, 0.1);
    border-color: #00ffaa;
    color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.case-card {
    position: relative;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 255, 170, 0.1);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 170, 0.15);
    border-color: rgba(0, 255, 170, 0.3);
}

.case-video-container {
    position: relative;
    height: 480px;
    aspect-ratio: 9/16;
    overflow: hidden;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image-container {
    position: relative;
    height: 480px;
    aspect-ratio: 9/16;
    overflow: hidden;
    margin: 0 auto;
}

.video-duration-badge,
.image-format {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    font-family: 'Arial', sans-serif;
    pointer-events: none;
}

.case-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.case-card:hover .case-video,
.case-card:hover .case-image {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 255, 170, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.play-icon i {
    font-size: 1.5rem;
    color: #000;
    margin-left: 5px;
}

.case-card:hover .play-icon {
    transform: scale(1.1);
    background: #00ffaa;
}

.case-info {
    padding: 1.5rem;
}

.case-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.case-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.case-card:hover .case-title {
    color: #00ffaa;
}

.case-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.video-duration::before {
    content: '⏱ ';
}

.video-format::before {
    content: '📐 ';
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    overflow: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 0 auto;
}

.lightbox-video {
    width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #00ffaa;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-nav button {
    background: rgba(0, 255, 170, 0.8);
    border: none;
    color: #000;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-nav button:hover {
    background: #00ffaa;
    transform: scale(1.1);
}

.lightbox-info {
    margin-top: 1rem;
    color: #fff;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #00ffaa;
}

.lightbox-description {
    color: #b0b0b0;
    font-size: 1rem;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: #00ffaa;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    background: rgba(0, 255, 170, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
    transform: translateY(-3px);
}

/* fadeIn动画定义 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cases-hero h1 {
        font-size: 2.5rem;
    }
    
    .cases-content {
        padding: 5rem 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-video-container {
        height: 220px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 1.5rem;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}