/* ============================================================
   成功案例页面样式
   ============================================================ */

/* 页面横幅 */
.page-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #2989d8;
}

.breadcrumb-item.active {
    color: #2989d8;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #999;
    font-size: 12px;
}

/* 主内容布局 */
.main-content {
    padding: 50px 0;
    background-color: #fff;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 左侧侧边栏 */
.sidebar {
    background-color: #fff;
}

.sidebar-header {
    background-color: #2989d8;
    padding: 20px;
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-top: none;
}

.sidebar-menu-item {
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}

.sidebar-menu-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.sidebar-menu-link:hover {
    background-color: #f8f9fa;
    color: #2989d8;
    padding-left: 25px;
}

.sidebar-menu-item.active .sidebar-menu-link {
    color: #2989d8;
    font-weight: 500;
}

.sidebar-menu-item.active .sidebar-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #2989d8;
}

/* 右侧内容区域 */
.content-main {
    background-color: #fff;
}

/* 案例列表 */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.case-block {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.case-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.case-block-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
}

.case-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.case-block:hover .case-overlay {
    opacity: 1;
}

.case-block:hover .case-block-image img {
    transform: scale(1.1);
}

.case-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #fff;
    color: #2989d8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.case-link:hover {
    background-color: #2989d8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 137, 216, 0.3);
}

.case-block-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.case-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.case-block-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.2s;
}

.case-block:hover .case-block-title {
    color: #2989d8;
}

.case-block-category {
    font-size: 13px;
    color: #2989d8;
    white-space: nowrap;
    transition: color 0.2s;
}

.case-block-category::before {
    content: '[';
}

.case-block-category::after {
    content: ']';
}

.case-block:hover .case-block-category {
    color: #1e5799;
}

.case-block-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.case-block-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.case-block-meta i {
    margin-right: 5px;
}

.case-date,
.case-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-link:hover:not(.disabled) {
    background-color: #2989d8;
    border-color: #2989d8;
    color: #fff;
}

.page-link.active {
    background-color: #2989d8;
    border-color: #2989d8;
    color: #fff;
    font-weight: 500;
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .case-block {
        grid-template-columns: 320px 1fr;
        gap: 25px;
    }
    
    .case-block-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 200px;
    }
    
    .banner-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .banner-subtitle {
        font-size: 14px;
    }
    
    .breadcrumb-wrapper {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
    
    .case-list {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .case-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
    }
    
    .case-block-image {
        height: 220px;
    }
    
    .case-block-title {
        font-size: 20px;
    }
    
    .case-block-desc {
        font-size: 13px;
    }
    
    .pagination {
        gap: 5px;
        margin-top: 40px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 160px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 13px;
    }
    
    .case-block-image {
        height: 180px;
    }
    
    .case-block-title {
        font-size: 18px;
    }
    
    .case-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .case-block-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
