/* 案例展示页面样式 */

/* ==================== 案例展示页面样式 ==================== */

/* ==================== 案例展示区域 ==================== */
.cases-section {
    padding: 20px 0;
    background: white;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.cases-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}


.section-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 案例网格 ==================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.case-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(141, 0, 4, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-overlay-content {
    text-align: center;
    color: white;
}

.case-overlay-content i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.case-overlay-content p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.case-content {
    padding: 5px;
    text-align: center;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.case-date,
.case-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-date i,
.case-views i {
    color: #8d0004;
}

/* ==================== 分页 ==================== */

/* ==================== 图片放大弹窗 ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10000;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
}

.lightbox-caption h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */

/* 超大屏幕适配 - 3000px+ */
@media (min-width: 3000px) {
    .breadcrumb {
        font-size: clamp(24px, 1.5vw, 28px) !important;
    }
    
    .section-title {
        font-size: clamp(48px, 3vw, 56px) !important;
    }
    
    .pages {
        font-size: clamp(28px, 1.8vw, 32px) !important;
    }
    
    .lightbox-content {
        max-width: 85%;
        max-height: 88%;
        border-radius: 15px;
    }
    
    .lightbox-close {
        width: clamp(45px, 2.8vw, 55px);
        height: clamp(45px, 2.8vw, 55px);
        top: 20px;
        right: 20px;
        font-size: clamp(20px, 1.3vw, 24px);
    }
    
    .lightbox-image {
        max-height: 85vh;
    }
    
    .lightbox-caption {
        padding: clamp(25px, 1.6vw, 35px);
    }
    
    .lightbox-caption h3 {
        font-size: clamp(20px, 1.3vw, 26px);
    }
}

/* 超大屏幕适配 - 2800px */
@media (min-width: 2800px) and (max-width: 2999px) {
    .breadcrumb {
        font-size: clamp(24px, 1.5vw, 28px) !important;
    }
    
    .section-title {
        font-size: clamp(48px, 3vw, 56px) !important;
    }
    
    .pages {
        font-size: clamp(28px, 1.8vw, 32px) !important;
    }
    
    .lightbox-content {
        max-width: 86%;
        max-height: 88%;
        border-radius: 15px;
    }
    
    .lightbox-close {
        width: clamp(44px, 2.7vw, 54px);
        height: clamp(44px, 2.7vw, 54px);
        top: 20px;
        right: 20px;
        font-size: clamp(20px, 1.2vw, 24px);
    }
    
    .lightbox-image {
        max-height: 85vh;
    }
    
    .lightbox-caption {
        padding: clamp(24px, 1.5vw, 34px);
    }
    
    .lightbox-caption h3 {
        font-size: clamp(20px, 1.2vw, 26px);
    }
}

/* 超大屏幕适配 - 2560px */
@media (min-width: 2550px) and (max-width: 2799px) {
    .breadcrumb {
        font-size: clamp(24px, 1.4vw, 27px) !important;
    }
    
    .section-title {
        font-size: clamp(46px, 2.8vw, 54px) !important;
    }
    
    .pages {
        font-size: clamp(27px, 1.7vw, 31px) !important;
    }
    
    .lightbox-content {
        max-width: 87%;
        max-height: 87%;
        border-radius: 12px;
    }
    
    .lightbox-close {
        width: clamp(42px, 2.6vw, 52px);
        height: clamp(42px, 2.6vw, 52px);
        top: 18px;
        right: 18px;
        font-size: clamp(19px, 1.2vw, 23px);
    }
    
    .lightbox-image {
        max-height: 84vh;
    }
    
    .lightbox-caption {
        padding: clamp(23px, 1.4vw, 33px);
    }
    
    .lightbox-caption h3 {
        font-size: clamp(19px, 1.2vw, 25px);
    }
}

/* 超大屏幕适配 - 2200px */
@media (min-width: 2200px) and (max-width: 2549px) {
    .breadcrumb {
        font-size: clamp(24px, 1.4vw, 26px) !important;
    }
    
    .section-title {
        font-size: clamp(44px, 2.6vw, 52px) !important;
    }
    
    .pages {
        font-size: clamp(26px, 1.6vw, 30px) !important;
    }
    
    .lightbox-content {
        max-width: 88%;
        max-height: 86%;
        border-radius: 12px;
    }
    
    .lightbox-close {
        width: clamp(40px, 2.4vw, 50px);
        height: clamp(40px, 2.4vw, 50px);
        top: 18px;
        right: 18px;
        font-size: clamp(18px, 1.1vw, 22px);
    }
    
    .lightbox-image {
        max-height: 83vh;
    }
    
    .lightbox-caption {
        padding: clamp(22px, 1.3vw, 32px);
    }
    
    .lightbox-caption h3 {
        font-size: clamp(18px, 1.1vw, 24px);
    }
}

/* 大屏幕适配 */
@media (min-width: 1024px) and (max-width: 2199px) {
    .lightbox-content {
        max-width: 90%;
        max-height: 90%;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .lightbox-content {
        max-width: 92%;
        max-height: 88%;
    }
    
    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    .lightbox-image {
        max-height: 78vh;
    }
    
    .lightbox-caption {
        padding: 18px;
    }
    
    .lightbox-caption h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .cases-section {
        padding: 15px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }

    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    

    
    .case-content {
        padding: 15px;
    }
    
    .case-title {
        font-size: 18px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
        border-radius: 8px;
    }
    
    .lightbox-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
        font-size: 16px;
    }
    
    .lightbox-image {
        max-height: 75vh;
    }
    
    .lightbox-caption {
        padding: 15px;
    }
    
    .lightbox-caption h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cases-section {
        padding: 10px 0;
    }
    

    .section-subtitle {
        font-size: 14px;
    }
    

    
    .case-content {
        padding: 10px;
    }
    
    .case-title {
        font-size: 16px;
    }
    
    .case-desc {
        font-size: 13px;
    }
    
    .case-meta {
        font-size: 11px;
    }
    
    .lightbox-content {
        max-width: 98%;
        max-height: 90%;
        border-radius: 6px;
    }
    
    .lightbox-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        padding: 12px;
    }
    
    .lightbox-caption h3 {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .lightbox-content {
        max-width: 100%;
        max-height: 95%;
        border-radius: 0;
    }
    
    .lightbox-close {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
        font-size: 13px;
    }
    
    .lightbox-image {
        max-height: 65vh;
    }
    
    .lightbox-caption {
        padding: 10px;
    }
    
    .lightbox-caption h3 {
        font-size: 13px;
    }
}
