﻿/* 页面内容样式 */
.page-banner {
    height: 500px;
    background: url('http://www.cander.cn/image/website/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}


.banner-content {
    position: relative;
    z-index: 1;
    color: white;
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: left;
    animation: fadeIn 1s ease;
}

    .banner-content h1 {
        font-size: 48px;
        margin-bottom: 20px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .banner-content p {
        font-size: 20px;
        max-width: 700px;
        line-height: 40px;
    }

/* 案例分类样式 */
.case-categories {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: left;
}

.main-category {
    /* font-weight: bold; */
    color: #34A853;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid #34A853;
    animation: fadeIn 1s ease;
}

    .main-category:hover, .main-category.active {
        background: #34A853;
        color: white;
    }

/* 案例列表样式 - 九宫格布局 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.case-cell {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    height: 280px;
    animation: fadeIn 1s ease;
}

    .case-cell:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.case-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

    .case-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.case-cell:hover .case-image img {
    transform: scale(1.05);
}

.case-name {
    font-size: 16px;
    font-weight: bold;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px; /* 图片高度的1/3 */
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #34A853; */
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 168, 83, 0.95);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

.case-cell:hover .case-overlay {
    opacity: 1;
    visibility: visible;
}

.case-overlay h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-overlay p {
    font-size: 14px;
    line-height: 1.6;
    max-height: 120px;
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    gap: 10px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    border-radius: 4px;
    background: white;
    color: #262626;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

    .page-link:hover {
        background: #34A853;
        color: white;
        border-color: #34A853;
    }

    .page-link.active {
        background: #34A853;
        color: white;
        border-color: #34A853;
    }

    .page-link.disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

        .page-link.disabled:hover {
            background: white;
            color: #262626;
            border-color: #e0e0e0;
        }

/* 响应式设计 */
@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

        .nav-menu > li {
            width: auto;
            margin-left: 15px;
        }

    .logo-text {
        font-size: 16px;
    }

    .category-filter {
        flex-direction: column;
        gap: 10px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .nav-menu > li {
        margin-left: 20px;
    }

        .nav-menu > li > a {
            padding: 10px 12px;
        }

    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-text {
        margin-left: 0;
        margin-top: 5px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}
