/* Booth Cases Page specific styles */
#case-hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
}

#case-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#case-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

#case-hero h4 {
    font-size: 1.25rem;
    font-weight: 400;
}

/* 分类导航样式 */
#caseTabs .nav-link {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 20px;
    margin: 0 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

#caseTabs .nav-link:hover {
    background-color: #e9ecef;
    color: #146fc8;
    border-color: #146fc8;
}

#caseTabs .nav-link.active {
    background-color: #146fc8;
    color: white;
    border-color: #146fc8;
}

/* 案例区域容器优化 */
.case-section .container {
    max-width: 95%;
    padding-left: 10px;
    padding-right: 10px;
}

/* 案例容器优化 */
.case-grid {
    margin-left: -1px;
    margin-right: -1px;
}

.case-grid>.col-lg-3 {
    padding-left: 1px;
    padding-right: 1px;
}

/* 响应式调整 */
@media (max-width: 1199.98px) {
    .col-lg-2_5 {
        width: 25%;
    }
}

@media (max-width: 991.98px) {
    .col-lg-2_5 {
        width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2_5 {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2_5 {
        width: 100%;
    }
}

/* 案例卡片 */
.case-card {
    position: relative;
    background: #e8e8e8;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    height: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    margin-bottom: 15px;
}

.case-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.case-content {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 50px;
}

.case-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.case-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.case-card:hover .case-arrow {
    color: #333;
    transform: translateX(3px);
}

/* 分页导航样式 */
.custom-pagination {
    margin: 40px 0;
}

.custom-pagination .page-link {
    color: #999;
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-pagination .page-item.active .page-link {
    color: #146fc8;
    background-color: transparent;
    border: none;
    font-weight: 500;
}

.custom-pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: transparent;
    border: none;
}

.custom-pagination .page-link:hover {
    color: #146fc8;
    background-color: transparent;
    border: none;
}

.custom-pagination .page-link:focus {
    box-shadow: none;
    border: none;
}

/* 优势模块 */
.advantage-section {
    background-color: #f8f9fa;
    position: relative;
}

.advantage-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" fill="%23e8e8e8"><path d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.3;
}

.feature-box {
    background: #f0f8ff;
    border: none;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #e6f3ff;
}

.feature-icon {
    margin-bottom: 20px;
    color: #666;
    opacity: 0.8;
}

.feature-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 1.5;
}

.feature-box p {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* 响应式样式 */
@media (max-width: 768px) {
    #caseTabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    #caseTabs .nav-link {
        margin: 3px;
        padding: 6px 16px;
        font-size: 13px;
    }

    .case-section .container {
        max-width: 98%;
        padding-left: 5px;
        padding-right: 5px;
    }

    .case-grid {
        margin-left: -5px;
        margin-right: -5px;
    }

    /* 手机端显示两列 */
    .case-grid > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 5px;
        padding-right: 5px;
    }

    .case-card {
        padding: 15px;
        margin-bottom: 15px;
        height: 240px;
        background: transparent;
        border: none;
    }

    .case-image-wrapper {
        height: 140px;
        margin-bottom: 10px;
    }

    .case-content {
        bottom: 35px;
        left: 15px;
        right: 45px;
    }

    .case-title {
        font-size: 12px;
    }

    .case-arrow {
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }

    /* 优势区域手机端两列布局 */
    #advantages .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0;
    }

    #advantages .col-lg-4,
    #advantages .col-md-6 {
        max-width: 100%;
        flex: none;
        padding: 0;
    }

    .feature-box {
        padding: 25px 15px;
        height: 140px;
        margin-bottom: 10px;
        background: #f0f8ff;
    }

    .feature-icon {
        margin-bottom: 10px;
    }

    .feature-icon svg {
        width: 35px;
        height: 35px;
    }

    .feature-box p {
        font-size: 12px;
        line-height: 1.3;
    }

    /* 手机端分页样式优化 */
    .custom-pagination {
        margin: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .custom-pagination .page-link {
        padding: 6px 10px;
        margin: 2px;
        font-size: 13px;
        min-width: 35px;
        text-align: center;
    }

    .custom-pagination .page-item.active .page-link {
        background-color: #146fc8;
        color: white;
        border: 1px solid #146fc8;
        border-radius: 4px;
    }

    .custom-pagination .page-item.disabled .page-link {
        color: #ccc;
    }

    .custom-pagination .page-link:hover {
        color: #146fc8;
        background-color: #f8f9fa;
        border: 1px solid #146fc8;
        border-radius: 4px;
    }
}

@media (max-width: 576px) {
    /* 小屏手机也保持两列 */
    .case-grid > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .case-card {
        height: 220px;
        padding: 12px;
        background: transparent;
        border: none;
    }

    .case-image-wrapper {
        height: 120px;
    }

    .case-content {
        bottom: 30px;
        left: 12px;
        right: 40px;
    }

    .case-title {
        font-size: 11px;
        line-height: 1.3;
    }

    .case-arrow {
        bottom: 12px;
        right: 12px;
        font-size: 14px;
    }

    /* 小屏手机优势区域保持两列 */
    #advantages .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
    }

    .feature-box {
        padding: 20px 12px;
        height: 120px;
        margin-bottom: 8px;
    }

    .feature-icon {
        margin-bottom: 8px;
    }

    .feature-icon svg {
        width: 30px;
        height: 30px;
    }

    .feature-box p {
        font-size: 11px;
        line-height: 1.2;
    }

    /* 小屏手机分页进一步优化 */
    .custom-pagination {
        margin: 15px 0;
        gap: 2px;
    }

    .custom-pagination .page-link {
        padding: 5px 8px;
        margin: 1px;
        font-size: 12px;
        min-width: 30px;
    }

    /* 在小屏幕上隐藏中间的页码，但保留首页、末页和导航按钮 */
    .custom-pagination .page-item:nth-child(n+5):nth-child(-n+5) {
        display: none;
    }
}