/* ================================================================
   案例详情页 case_detail.css
   对齐首页 geo-cases 视觉 + 新闻详情两栏布局
   配色：#2538FF → #8F00FF
   ================================================================ */

/* ---------- Banner ---------- */
.case-detail-banner {
    padding: 88px 0 56px;
    background: linear-gradient(135deg, #f4f6ff 0%, #faf8ff 48%, #fff 100%);
    position: relative;
    overflow: hidden;
}
.case-detail-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(37, 56, 255, 0.08), transparent 42%),
                radial-gradient(circle at 82% 10%, rgba(143, 0, 255, 0.06), transparent 40%);
    pointer-events: none;
}
.case-detail-banner .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}
.case-detail-banner-inner {
    text-align: center;
}
.case-detail-banner-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: #2538FF;
    background: rgba(37, 56, 255, 0.08);
    letter-spacing: 0.04em;
}
.case-detail-banner h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #1A2233;
    line-height: 1.35;
}
.case-detail-banner .highlight {
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.case-detail-banner-crumbs {
    font-size: 14px;
    color: #8a8f9c;
}
.case-detail-banner-crumbs a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}
.case-detail-banner-crumbs a:hover {
    color: #2538FF;
}
.case-detail-banner-crumbs em {
    font-style: normal;
    opacity: .55;
    margin: 0 6px;
}

/* ---------- 主体 ---------- */
.case-detail-main {
    padding: 36px 0 64px;
    background: #f8f9fa;
}
.case-detail-main .container {
    max-width: 1200px;
}
.case-detail-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.case-detail-column {
    flex: 1;
    min-width: 0;
}

/* ---------- 案例头部卡片 ---------- */
.case-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 32px 36px 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 56, 255, 0.06);
}
.case-detail-hero {
    display: flex;
    gap: 28px;
    align-items: center;
}
.case-detail-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 12px;
    background: #f8f9ff;
    border: 1px solid #eef0f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.case-detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.case-detail-intro {
    flex: 1;
    min-width: 0;
}
.case-detail-intro h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1A2233;
    line-height: 1.4;
}
.case-detail-sketch {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #5c6478;
}
.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 13px;
    color: #8a8f9c;
}
.case-detail-meta span {
    display: inline-flex;
    align-items: center;
}
.case-detail-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3c7d1;
    margin: 0 8px;
}

/* ---------- 正文 ---------- */
.case-detail-body {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 32px 36px 28px;
    margin-bottom: 20px;
}
.case-detail-body .section-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f4;
    font-size: 20px;
    font-weight: 600;
    color: #1A2233;
    position: relative;
}
.case-detail-body .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
}
.case-detail-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    word-wrap: break-word;
}
.case-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.case-detail-content p {
    margin: 0 0 14px;
}
.case-detail-content h2,
.case-detail-content h3,
.case-detail-content h4 {
    color: #1A2233;
    margin: 24px 0 12px;
}

/* ---------- CTA ---------- */
.case-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.case-detail-actions .more-cases-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    transition: all .25s ease;
}
.case-detail-actions .back-cases-btn {
    color: #2538FF;
    background: #fff;
    border: 1px solid rgba(37, 56, 255, 0.35);
}
.case-detail-actions .back-cases-btn:hover {
    background: rgba(37, 56, 255, 0.06);
    transform: translateY(-1px);
}

/* ---------- 上下篇 ---------- */
.case-detail-nav.article-navigation {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.case-detail-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: background .2s;
}
.case-detail-nav .nav-item:hover {
    background: #f0f2ff;
}
.case-detail-nav .nav-label {
    flex-shrink: 0;
    font-size: 13px;
    color: #8a8f9c;
}
.case-detail-nav .nav-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #1A2233;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-detail-nav .nav-title:hover {
    color: #2538FF;
}
.case-detail-nav .nav-none {
    color: #bbb;
    font-size: 14px;
}

/* ---------- 侧栏：相关案例（首页卡片风格） ---------- */
.case-sidebar-column {
    width: 280px;
    flex-shrink: 0;
}
.case-sidebar-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 20px;
}
.case-sidebar-title {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f4;
}
.case-sidebar-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(270deg, #8F00FF 0%, #2538FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.case-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.case-related-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all .25s ease;
}
.case-related-item a:hover {
    border-color: rgba(37, 56, 255, 0.25);
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 56, 255, 0.08);
}
.case-related-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f4f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.case-related-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.case-related-text {
    flex: 1;
    min-width: 0;
}
.case-related-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A2233;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-related-text span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8a8f9c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧栏热门产品 */
.case-hot-products .hot-product-item a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f4;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    transition: color .2s;
}
.case-hot-products .hot-product-item:last-child a {
    border-bottom: none;
}
.case-hot-products .hot-product-item a:hover {
    color: #2538FF;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .case-detail-wrapper {
        flex-direction: column;
    }
    .case-sidebar-column {
        width: 100%;
    }
    .case-detail-hero {
        flex-direction: column;
        text-align: center;
    }
    .case-detail-logo {
        width: 200px;
        height: 130px;
    }
    .case-detail-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .case-detail-banner {
        padding: 72px 0 40px;
    }
    .case-detail-card,
    .case-detail-body {
        padding: 22px 18px 20px;
    }
    .case-detail-intro h2 {
        font-size: 20px;
    }
    .case-detail-actions {
        flex-direction: column;
    }
    .case-detail-actions .more-cases-btn {
        width: 100%;
    }
}
