@charset "utf-8";
/*
 * 案例展示列表与详情页样式 / Case Listing & Detail Styles
 * 深圳市爱租网络有限公司 2016-2026 / Shenzhen iZu Network Co., Ltd. 2016-2026
 * 复用 enterprise.css 的 CSS 变量与 .ent-* 命名空间
 */

/* ===== Banner 区 ===== */
.case-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.case-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,22,52,.85) 0%, rgba(11,60,120,.7) 50%, rgba(6,22,52,.9) 100%);
    z-index: 1;
    pointer-events: none;
}
.case-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    /* background: linear-gradient(to top, #f7f9fc, transparent); */
    z-index: 2;
    pointer-events: none;
}
.case-banner-inner {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.case-banner-icon {
    font-size: 42px;
    margin-bottom: 14px;
    opacity: .85;
}
.case-banner-inner h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}
.case-banner-inner p {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin: 0;
    line-height: 1.6;
}

/* ===== 面包屑 ===== */
.case-bread {
    background: #fff;
    border-bottom: 1px solid var(--ent-line);
    padding: 14px 0;
    font-size: 13px;
    color: var(--ent-sub);
}
.case-bread .ent-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.case-bread a {
    color: var(--ent-sub);
}
.case-bread a:hover {
    color: var(--ent-primary);
}
.case-bread .sep {
    margin: 0 8px;
    color: #ccc;
}
.case-bread .cur {
    color: var(--ent-primary);
    font-weight: 500;
}

/* ===== 主内容区布局 ===== */
.case-section {
    padding: 36px 0 56px;
}
.case-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.case-main {
    flex: 1;
    min-width: 0;
}
.case-sidebar {
    width: 280px;
    flex: 0 0 280px;
}

/* ===== 筛选栏 ===== */
.case-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ent-line);
}
.case-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.case-tab {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    color: var(--ent-sub);
    border: 1px solid var(--ent-line);
    border-radius: 20px;
    transition: all .2s;
}
.case-tab:hover {
    color: var(--ent-primary);
    border-color: var(--ent-primary);
}
.case-tab.curr {
    background: var(--ent-primary);
    color: #fff;
    border-color: var(--ent-primary);
}
.case-search-form {
    display: flex;
    height: 36px;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    overflow: hidden;
}
.case-search-input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 0 12px;
    font-size: 13px;
    min-width: 160px;
}
.case-search-btn {
    width: 38px;
    border: 0;
    background: var(--ent-primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.case-search-btn:hover {
    background: var(--ent-primary-d);
}

/* ===== 案例卡片网格 ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.case-card {
    background: #fff;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.case-card:hover {
    box-shadow: 0 10px 24px rgba(11,77,162,.12);
    transform: translateY(-3px);
}
.case-card-img {
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--ent-bg);
}
.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.case-card:hover .case-card-img img {
    transform: scale(1.06);
}
.case-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 36px;
    color: #ccc;
}
.case-card-body {
    padding: 16px 18px;
}
.case-card-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--ent-primary);
    background: rgba(11,77,162,.08);
    padding: 2px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.case-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ent-text);
    margin: 0 0 8px;
    line-height: 1.4;
    max-height: 44px;
    overflow: hidden;
}
.case-card-title a {
    color: inherit;
}
.case-card:hover .case-card-title a {
    color: var(--ent-primary);
}
.case-card-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 10px;
    max-height: 42px;
    overflow: hidden;
}
.case-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #bbb;
}
.case-card-meta span i {
    margin-right: 3px;
}

/* ===== 空状态 ===== */
.case-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}
.case-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
.case-empty p {
    font-size: 15px;
    color: #999;
}

/* ===== 分页 ===== */
.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}
.case-pg-prev,
.case-pg-next,
.case-pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    color: var(--ent-sub);
    font-size: 14px;
    transition: all .2s;
}
.case-pg-num:hover,
.case-pg-prev:hover:not(.case-pg-disabled),
.case-pg-next:hover:not(.case-pg-disabled) {
    border-color: var(--ent-primary);
    color: var(--ent-primary);
}
.case-pg-curr {
    background: var(--ent-primary);
    color: #fff;
    border-color: var(--ent-primary);
}
.case-pg-curr:hover {
    color: #fff;
}
.case-pg-disabled {
    color: #ddd;
    cursor: default;
}

/* ===== 侧边栏 ===== */
.case-side-widget {
    margin-bottom: 24px;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    overflow: hidden;
}
.case-side-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ent-text);
    padding: 14px 18px;
    margin: 0;
    background: var(--ent-bg);
    border-bottom: 1px solid var(--ent-line);
}
.case-side-title i {
    margin-right: 6px;
    color: var(--ent-primary);
}
.case-side-body {
    padding: 6px 0;
}
.case-side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.case-side-menu li {
    position: relative;
}
.case-side-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--ent-sub);
    transition: all .2s;
    border-left: 3px solid transparent;
}
.case-side-menu li a:hover {
    color: var(--ent-primary);
    background: rgba(11,77,162,.04);
    border-left-color: var(--ent-primary);
}
.case-side-menu li.curr > a {
    color: var(--ent-primary);
    font-weight: 600;
    background: rgba(11,77,162,.06);
    border-left-color: var(--ent-primary);
}
.case-side-menu .sub li a {
    padding-left: 32px;
    font-size: 13px;
}
.case-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.case-side-list li {
    padding: 10px 18px;
    border-bottom: 1px dashed var(--ent-line);
}
.case-side-list li:last-child {
    border-bottom: 0;
}
.case-side-info a {
    display: block;
    font-size: 14px;
    color: var(--ent-text);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-side-info a:hover {
    color: var(--ent-primary);
}
.case-side-meta {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
}
.case-side-meta i {
    margin-right: 3px;
}

/* ===== 详情页：描述框 ===== */
.case-desc-box {
    background: var(--ent-bg);
    padding: 18px 22px;
    border-radius: var(--ent-radius);
    margin-bottom: 24px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    border-left: 4px solid var(--ent-primary);
}

/* ===== 详情页：内容区 ===== */
.case-content {
    line-height: 1.9;
    font-size: 15px;
    color: #333;
}
.case-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ent-radius);
    margin: 12px 0;
}
.case-content p {
    margin: 0 0 16px;
}

/* ===== 详情页：推荐案例 ===== */
.case-rel {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--ent-line);
}
.case-rel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ent-text);
    margin: 0 0 18px;
}
.case-rel-title i {
    color: var(--ent-primary);
    margin-right: 6px;
}
.case-rel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.case-rel-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    overflow: hidden;
    transition: box-shadow .2s;
}
.case-rel-card:hover {
    box-shadow: 0 4px 14px rgba(11,77,162,.1);
}
.case-rel-card-img {
    flex: 0 0 120px;
    height: 90px;
    display: block;
    overflow: hidden;
    background: var(--ent-bg);
}
.case-rel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-rel-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 24px;
    color: #ccc;
}
.case-rel-card-body {
    flex: 1;
    padding: 10px 12px 10px 0;
    min-width: 0;
}
.case-rel-card-body h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
}
.case-rel-card-body h4 a {
    color: var(--ent-text);
}
.case-rel-card-body h4 a:hover {
    color: var(--ent-primary);
}
.case-rel-card-date {
    font-size: 12px;
    color: #bbb;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .case-banner {
        min-height: 260px;
    }
}
@media (max-width: 992px) {
    .case-layout {
        flex-direction: column;
    }
    .case-sidebar {
        width: 100%;
        flex: none;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-rel-grid {
        grid-template-columns: 1fr;
    }
    .case-banner {
        min-height: 220px;
    }
}
@media (max-width: 768px) {
    .case-banner {
        min-height: 200px;
    }
}
@media (max-width: 640px) {
    .case-banner {
        min-height: 160px;
    }
    .case-banner-inner h1 {
        font-size: 24px;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .case-tabs {
        justify-content: center;
    }
    .case-search-form {
        max-width: 100%;
    }
    .case-rel-card-img {
        flex: 0 0 90px;
        height: 72px;
    }
}
@media (max-width: 400px) {
    .case-banner {
        min-height: 130px;
    }
    .case-banner-inner h1 {
        font-size: 20px;
    }
}
