/* 案例列表页面特有样式 */

/* 新增的 banner 样式，与 pro.css 中保持一致 */
.hnlin_banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hnlin_banner_slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hnlin_banner_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hnlin_banner_slide.active {
    opacity: 1;
}

.hnlin_banner_content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.hnlin_banner_content_item {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hnlin_banner_title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hnlin_banner_subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hnlin_banner_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 1.5s ease;
}

.hnlin_btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hnlin_btn_primary {
    background: #3774EB;
    color: white;
}

.hnlin_btn_primary:hover {
    background: #2a68e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hnlin_btn_secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hnlin_btn_secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* 保留原有的 banner 样式作为备用 */
.hanlian_banner {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.hanlian_banner_slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hanlian_banner_slide {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hanlian_banner_content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    color: #fff;
}

.hanlian_banner_content_item {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hanlian_banner_title {
    font-size: 42px;
    margin: 0 0 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #fff;
    font-weight: 700;
}

.hanlian_banner_subtitle {
    font-size: 18px;
    margin: 0 0 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    color: #fff;
}

/* 子栏目样式 */
.hanlian_sub_categories {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.hanlian_sub_categories .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

.hanlian_sub_categories_title {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
}

.hanlian_sub_categories_title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.hanlian_sub_categories_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1450px;
    width: 100%;
    padding: 0 15px;
}

.hanlian_sub_category_item {
    padding: 12px 24px;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 30px;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.hanlian_sub_category_item:hover,
.hanlian_sub_category_item.active {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* 案例列表样式 */
.hanlian_case_list {
    padding: 60px 0;
    background-color: #fff;
}

.hanlian_case_list .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

.hanlian_case_list_title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
}

.hanlian_case_list_title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.hanlian_case_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 15px;
}

.hanlian_case_link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.hanlian_case_link:hover {
    transform: translateY(-10px);
}

.hanlian_case_item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hanlian_case_item:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.hanlian_case_image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.hanlian_case_link:hover .hanlian_case_img {
    transform: scale(1.1);
}

.hanlian_case_content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hanlian_case_title {
    font-size: 18px;
    margin: 0 0 12px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
}

.hanlian_case_desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* 分页样式 */
.hanlian_pagination {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.hanlian_pagination .container {
    display: flex;
    justify-content: center;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
}

.hanlian_pagination_container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.hanlian_pagination_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hanlian_pagination_item:hover,
.hanlian_pagination_item.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.hanlian_pagination_prev,
.hanlian_pagination_next {
    padding: 12px 18px;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.hanlian_pagination_prev:hover,
.hanlian_pagination_next:hover {
    background-color: #e9ecef;
}

.hanlian_pagination_prev i,
.hanlian_pagination_next i {
    margin: 0 5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hnlin_banner {
        height: 450px;
    }
    
    .hnlin_banner_title {
        font-size: 2.5rem;
    }
    
    .hanlian_case_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hnlin_banner {
        height: 400px;
    }
    
    .hnlin_banner_title {
        font-size: 2.2rem;
    }
    
    .hnlin_banner_subtitle {
        font-size: 1.1rem;
    }
    
    .hnlin_banner_buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hanlian_banner_title {
        font-size: 32px;
    }
    
    .hanlian_banner_subtitle {
        font-size: 16px;
    }
    
    .hanlian_case_grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hanlian_sub_categories {
        padding: 35px 15px;
    }
    
    .hanlian_sub_categories_title {
        font-size: 28px;
    }
    
    .hanlian_case_list {
        padding: 50px 15px;
    }
    
    .hanlian_case_list_title {
        font-size: 28px;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .hnlin_banner {
        height: 350px;
    }
    
    .hnlin_banner_title {
        font-size: 2rem;
    }
    
    .hnlin_banner_subtitle {
        font-size: 1rem;
    }
    
    .hanlian_banner_title {
        font-size: 28px;
    }
    
    .hanlian_banner_subtitle {
        font-size: 15px;
    }
    
    .hanlian_sub_categories {
        padding: 30px 15px;
    }
    
    .hanlian_sub_categories_title {
        font-size: 26px;
    }
    
    .hanlian_sub_categories_list {
        gap: 10px;
    }
    
    .hanlian_sub_category_item {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .hanlian_case_list {
        padding: 40px 15px;
    }
    
    .hanlian_case_list_title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .hanlian_case_grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hanlian_case_image {
        height: 180px;
    }
    
    .hanlian_case_content {
        padding: 20px;
    }
    
    .hanlian_case_title {
        font-size: 17px;
    }
    
    .hanlian_pagination {
        padding: 30px 15px;
    }
    
    .hanlian_pagination_item {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .hanlian_pagination_prev,
    .hanlian_pagination_next {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .hanlian_pagination_container {
        gap: 6px;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hnlin_banner {
        height: 300px;
    }
    
    .hnlin_banner_title {
        font-size: 1.8rem;
    }
    
    .hnlin_banner_subtitle {
        font-size: 0.95rem;
    }
    
    .hanlian_banner_title {
        font-size: 24px;
    }
    
    .hanlian_sub_categories {
        padding: 25px 10px;
    }
    
    .hanlian_sub_categories_title {
        font-size: 24px;
    }
    
    .hanlian_sub_category_item {
        padding: 9px 16px;
        font-size: 13px;
    }
    
    .hanlian_case_list {
        padding: 40px 10px;
    }
    
    .hanlian_case_list_title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .hanlian_case_grid {
        gap: 20px;
    }
    
    .hanlian_case_image {
        height: 160px;
    }
    
    .hanlian_case_content {
        padding: 18px;
    }
    
    .hanlian_case_title {
        font-size: 16px;
    }
    
    .hanlian_case_desc {
        font-size: 13px;
    }
    
    .hanlian_pagination_item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .hanlian_pagination_prev,
    .hanlian_pagination_next {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hnlin_banner {
        height: 280px;
    }
    
    .hnlin_banner_title {
        font-size: 1.6rem;
    }
    
    .hanlian_sub_categories_list {
        gap: 8px;
    }
    
    .hanlian_case_image {
        height: 150px;
    }
    
    .hanlian_case_content {
        padding: 16px;
    }
    
    .hnlin_btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}