/* 核心布局重置 */
.new-case-layout {
    padding: 40px 0;
    background-color: #f5f7fa;
}
.new-case-layout .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 列表头部样式 */
.case-list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #165DFF;
}
.case-list-header h2 {
    font-size: 24px;
    color: #2C3E50;
    font-weight: 700;
    margin-bottom: 5px;
}
.case-list-header p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* 左侧70% 纯文字案例列表 */
.case-text-list {
    padding-right: 20px;
}
.text-case-items {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.text-case-item {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.text-case-item:last-child {
    border-bottom: none;
}
.text-case-item a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.text-case-item:hover {
    background-color: #f8f9fa;
}
.text-case-item .case-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #165DFF;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}
.text-case-item .case-desc {
    flex: 1;
    font-size: 16px;
    color: #2C3E50;
    line-height: 1.4;
}
.text-case-item .case-date {
    font-size: 12px;
    color: #9CA3AF;
    margin-left: 15px;
    flex-shrink: 0;
}

/* 右侧30% 热门网站图文列表（匹配参考图片风格） */
.case-img-list {
    padding-left: 20px;
}
.img-case-wrap {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
}
.img-case-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.img-case-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.img-case-left {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}
.img-case-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.img-case-item:hover .img-case-left img {
    transform: scale(1.05);
}
.img-case-right {
    flex: 1;
}
.img-case-right a {
    text-decoration: none;
    color: inherit;
}
.img-case-right h4 {
    font-size: 16px;
    color: #2C3E50;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}
.img-case-right p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.2;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .case-text-list {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .case-img-list {
        padding-left: 0;
    }
    .text-case-item a {
        flex-wrap: wrap;
    }
    .text-case-item .case-date {
        width: 100%;
        margin-left: 45px;
        margin-top: 5px;
    }
}
@media (max-width: 576px) {
    .case-list-header h2 {
        font-size: 20px;
    }
    .text-case-item .case-desc {
        font-size: 14px;
    }
    .img-case-left {
        width: 60px;
        height: 60px;
    }
    .img-case-right h4 {
        font-size: 14px;
    }
    .img-case-right p {
        font-size: 12px;
    }
}

/* 帝国CMS分页样式 */
.case-pagination {
    margin-top: 30px;
    text-align: center;
}
/* 重置帝国CMS默认分页样式 */
.case-pagination a,
.case-pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #2C3E50;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
/* 激活页样式 */
.case-pagination span.current {
    background-color: #165DFF;
    color: #FFFFFF;
    border-color: #165DFF;
    font-weight: 600;
}
/* 上一页/下一页样式 */
.case-pagination a.prev,
.case-pagination a.next {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}
/* 禁用状态（如最后一页的下一页） */
.case-pagination span.disabled {
    color: #9CA3AF;
    cursor: not-allowed;
    background-color: #f9fafb;
    border-color: #e5e7eb;
}
/* hover交互效果 */
.case-pagination a:hover:not(.disabled) {
    background-color: #165DFF;
    color: #FFFFFF;
    border-color: #165DFF;
}
/* 移动端适配 */
@media (max-width: 576px) {
    .case-pagination a,
    .case-pagination span {
        padding: 6px 10px;
        font-size: 12px;
        margin: 0 2px;
    }
    /* 移动端隐藏多余页码，仅保留核心按钮 */
    .case-pagination .pagebreak {
        display: inline-block;
        max-width: 90%;
        overflow: hidden;
    }
}