﻿/* ==========================================
   案例详情页 - single-case.css
   1:1 复刻目标站 case detail 页面样式
   ========================================== */

/* ---- 面包屑 ---- */
.single-case-crumbs {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #999;
}
.single-case-crumbs .single-case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.single-case-crumbs a {
    color: #666;
    text-decoration: none;
}
.single-case-crumbs a:hover {
    color: #1a7fd4;
}

/* ---- 容器 ---- */
.single-case-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================
   案例详情主体
   ========================================== */
.sep-section-case-detail {
    padding: 40px 0 60px;
    background: #fff;
}

/* ---- 标题 ---- */
.sep-section-case-detail .sep-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a7fd4;
}
.sep-section-case-detail .sep-title span {
    display: inline-block;
}

/* ---- 案例信息区 ---- */
.sep-section-case-detail .info.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
    align-items: flex-start;
}

.sep-section-case-detail .info.row [class*="col-"] {
    padding: 0 15px;
    box-sizing: border-box;
}

.sep-section-case-detail .info.row .col-md-7 {
    width: 58.333%;
}
.sep-section-case-detail .info.row .col-md-5 {
    width: 41.666%;
}

/* 信息文字 */
.sep-section-case-detail .info .text {
    padding: 20px 0;
}
.sep-section-case-detail .info .text p {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin: 0;
}
.sep-section-case-detail .info .text strong {
    color: #333;
    font-weight: 600;
}

/* 图片缩略图 */
.sep-section-case-detail .info .thumb {
    padding: 10px 0;
    text-align: center;
}
.sep-section-case-detail .info .thumb img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ---- 案例正文 ---- */
.sep-section-case-detail .richtext {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 30px 0;
}
.sep-section-case-detail .richtext p {
    margin-bottom: 15px;
}
.sep-section-case-detail .richtext h2 {
    font-size: 22px;
    color: #333;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.sep-section-case-detail .richtext h3 {
    font-size: 18px;
    color: #555;
    margin: 25px 0 12px;
}
.sep-section-case-detail .richtext ul,
.sep-section-case-detail .richtext ol {
    padding-left: 20px;
    margin-bottom: 15px;
}
.sep-section-case-detail .richtext li {
    margin-bottom: 8px;
}
.sep-section-case-detail .richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

/* ---- 上下篇导航 ---- */
.sd-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 30px;
}
.sd-nav-btn {
    flex: 1;
    min-width: 0;
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sd-nav-btn:hover {
    box-shadow: 0 4px 12px rgba(240,132,33,0.15);
    border-color: #1a7fd4;
    transform: translateY(-2px);
}
.sd-nav-btn.disabled {
    opacity: 0.5;
    cursor: default;
}
.sd-nav-btn.disabled:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border-color: #eee;
    transform: none;
}
.sd-nav-prev {
    text-align: left;
}
.sd-nav-next {
    text-align: right;
}
.sd-nav-label {
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}
.sd-nav-title {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sd-nav-btn:hover .sd-nav-title {
    color: #1a7fd4;
}

/* ==========================================
   相关案例推荐
   ========================================== */
.sep-section-case-more {
    padding: 50px 0 80px;
    background: #f7f8fa;
}
.sep-section-case-more .sep-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a7fd4;
}
.sep-section-case-more .sep-title span {
    display: inline-block;
}
.sep-section-case-more .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.sep-section-case-more [class*="col-"] {
    padding: 0 15px;
    box-sizing: border-box;
}
.sep-section-case-more .col-md-4 {
    width: 33.333%;
    margin-bottom: 30px;
}
.sep-section-case-more .box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sep-section-case-more .box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.sep-section-case-more .thumb {
    display: block;
    overflow: hidden;
}
.sep-section-case-more .thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.sep-section-case-more .box:hover .thumb img {
    transform: scale(1.05);
}
.sep-section-case-more .title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 14px 16px 6px;
    text-decoration: none;
    line-height: 1.4;
}
.sep-section-case-more .title:hover {
    color: #1a7fd4;
}
.sep-section-case-more .summary {
    display: block;
    padding: 0 16px 16px;
    text-decoration: none;
    flex: 1;
}
.sep-section-case-more .summary p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* ---- 返回按钮 ---- */
.sd-back {
    text-align: center;
    padding: 10px 0 60px;
    background: #f7f8fa;
}
.sd-back a {
    display: inline-block;
    padding: 10px 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
    transition: all 0.25s;
}
.sd-back a:hover {
    background: #1a7fd4;
    color: #fff;
    border-color: #1a7fd4;
}

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 992px) {
    .sep-section-case-detail .info.row [class*="col-"] {
        width: 100%;
        margin-bottom: 15px;
    }
    .sep-section-case-more [class*="col-"] {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .sep-section-case-detail {
        padding: 25px 0 40px;
    }
    .sep-section-case-detail .sep-title {
        font-size: 20px;
    }
    .sep-section-case-detail .richtext {
        font-size: 14px;
    }
    .sd-nav {
        flex-direction: column;
    }
    .sep-section-case-more [class*="col-"] {
        width: 100%;
    }
}
