/* ============================================================
   案例详情页面样式
   ============================================================ */

/* 页面横幅 */
.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-detail {
    background-color: #fff;
}

.detail-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #2989d8;
    margin-bottom: 30px;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

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

.detail-category,
.detail-date,
.detail-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-category {
    color: #2989d8;
}

/* 案例图片 */
.detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 40px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 案例概述 */
.case-overview {
    margin-bottom: 40px;
}

.case-overview p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    text-indent: 2em;
}

/* 案例章节 */
.case-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #2989d8;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.case-section p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-indent: 2em;
}

.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.case-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: #2989d8;
    border-radius: 50%;
}

/* 实施效果 */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.effect-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.effect-item:hover {
    background-color: #2989d8;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(41, 137, 216, 0.3);
}

.effect-item:hover .effect-number,
.effect-item:hover .effect-label,
.effect-item:hover .effect-desc {
    color: #fff;
}

.effect-number {
    font-size: 48px;
    font-weight: 700;
    color: #2989d8;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.effect-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.effect-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    transition: color 0.3s;
}

/* 客户评价 */
.customer-review {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    margin-top: 30px;
}

.review-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 48px;
    color: #2989d8;
    opacity: 0.2;
}

.review-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 20px 0;
    text-indent: 2em;
}

.review-author {
    text-align: right;
}

.author-name {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* 上一篇下一篇 */
.detail-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.detail-nav-label {
    color: #999;
    white-space: nowrap;
}

.detail-nav-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.detail-nav-link:hover {
    color: #2989d8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .detail-image {
        height: 350px;
    }
    
    .effect-grid {
        gap: 20px;
    }
}

@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;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-meta {
        gap: 15px;
    }
    
    .detail-image {
        height: 250px;
        margin-bottom: 30px;
    }
    
    .case-overview,
    .case-section {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .subsection-title {
        font-size: 16px;
    }
    
    .case-overview p,
    .case-section p {
        font-size: 14px;
    }
    
    .effect-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .effect-item {
        padding: 25px;
    }
    
    .effect-number {
        font-size: 40px;
    }
    
    .effect-label {
        font-size: 16px;
    }
    
    .customer-review {
        padding: 30px 20px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .detail-navigation {
        margin-top: 40px;
        padding-top: 25px;
    }
    
    .detail-nav-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 160px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 13px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .case-overview p,
    .case-section p,
    .review-text {
        text-indent: 1.5em;
    }
    
    .effect-number {
        font-size: 36px;
    }
    
    .customer-review {
        padding: 25px 15px;
    }
}
