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

/* ---------- 面包屑 ---------- */
.page-header {
    background: linear-gradient(135deg, #1A365D 0%, #2B6CB0 100%);
    padding: 40px 0;
    color: #fff;
}
.breadcrumb { font-size: 14px; color: #94A3B8; }
.breadcrumb a { color: #CBD5E1; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #fff; font-weight: 600; }

/* ---------- 主体 ---------- */
.page-content { padding: 60px 0 80px; background-color: var(--bg-light); }
.case-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }

/* ---------- 左侧正文 ---------- */
.case-main {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.case-meta {
    display: flex; align-items: center; gap: 15px;
    font-size: 14px; color: var(--text-light); margin-bottom: 20px;
    flex-wrap: wrap;
}
.case-meta span { display: inline-flex; align-items: center; gap: 5px; }
.case-category {
    color: var(--accent) !important;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.case-main h1 {
    font-size: 32px; color: var(--primary);
    font-weight: 800; margin-bottom: 25px; line-height: 1.3;
}
.case-featured-img {
    width: 100%; height: 400px;
    background-color: var(--bg-light);
    background-size: cover; background-position: center;
    border-radius: 8px; margin-bottom: 35px;
}

/* 富文本正文 */
.case-body { font-size: 16px; color: var(--text-main); line-height: 1.8; }
.case-body p { margin-bottom: 20px; }
.case-body h2 {
    font-size: 24px; color: var(--primary);
    margin: 35px 0 20px; font-weight: 800;
    border-left: 4px solid var(--accent); padding-left: 15px;
}
.case-body h3 { font-size: 20px; color: var(--primary); margin: 25px 0 15px; font-weight: 700; }
.case-body ul, .case-body ol { margin: 0 0 20px 20px; }
.case-body li { margin-bottom: 10px; }
.case-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; display: block; }
.case-body a { color: var(--accent); text-decoration: underline; }
.case-body strong { color: var(--primary); font-weight: 700; }

/* 高亮卡片：供富文本编辑器里使用 */
.case-body .highlight-box {
    background-color: var(--bg-light);
    border-radius: 8px; padding: 25px; margin: 25px 0;
    border-left: 4px solid var(--accent);
}
.case-body .highlight-box.challenge { border-left-color: #E53E3E; }
.case-body .highlight-box.result { border-left-color: #38A169; }
.case-body .highlight-box h4 { color: var(--primary); font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.case-body .highlight-box p { margin: 0; color: var(--text-light); }

/* ---------- 右侧侧边栏 ---------- */
.case-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-box {
    background-color: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.sidebar-box h3 {
    font-size: 18px; color: var(--primary);
    margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light); font-weight: 800;
}

/* 项目档案 */
.ind-container .project-info li {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.ind-container .project-info li:last-child { border-bottom: none; }
.project-info li span:first-child { color: var(--text-light); }
.project-info li span:last-child {
    font-weight: 600; color: var(--primary);
    text-align: right; max-width: 60%;
}

/* 相关产品 */
.ind-container .related-product-list li {
    display: flex; gap: 15px; padding: 15px 0;
    border-bottom: 1px dashed var(--border); align-items: center;
}
.ind-container .related-product-list li:last-child { border-bottom: none; }
.related-product-list .thumb {
    width: 60px; height: 60px;
    background-color: var(--bg-light); border-radius: 4px;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.related-product-list h4 {
    font-size: 14px; color: var(--primary);
    margin-bottom: 5px; font-weight: 600; line-height: 1.4;
}
.related-product-list a { font-size: 12px; color: var(--accent) !important; font-weight: 700; }
.related-product-list a:hover { color: var(--accent-hover) !important; }

/* 联系卡 */
.sidebar-contact-card { background-color: var(--primary) !important; color: #fff; text-align: center; padding: 35px 25px; }
.sidebar-contact-card h3 {
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 15px; padding-bottom: 15px;
}
.sidebar-contact-card p { font-size: 14px; color: #D1D9E6; margin-bottom: 20px; }
.sidebar-contact-card .btn-call {
    display: inline-block;
    background-color: var(--accent) !important; color: #fff !important;
    padding: 12px 25px; border-radius: 4px;
    font-weight: 600; font-size: 14px;
    width: 100%; box-sizing: border-box;
}
.sidebar-contact-card .btn-call:hover { background-color: var(--accent-hover) !important; }

/* ---------- 底部 CTA ---------- */
.cta-banner {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 70px 0; text-align: center;
}
.cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 20px; color: var(--primary); }
.cta-banner p {
    color: var(--text-light); font-size: 18px;
    margin-bottom: 35px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}
.cta-banner .cta-btn {
    display: inline-block;
    background-color: var(--accent) !important; color: #fff !important;
    padding: 16px 45px; border-radius: 4px;
    font-weight: 700; font-size: 16px;
    box-shadow: 0 4px 15px rgba(43,108,176,0.3);
}
.cta-banner .cta-btn:hover { background-color: var(--accent-hover) !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .case-layout { grid-template-columns: 1fr; }
    .case-sidebar { position: static; }
    .case-main { padding: 25px; }
    .case-main h1 { font-size: 26px; }
    .case-featured-img { height: 250px; }
}
@media (max-width: 768px) {
    .case-main { padding: 20px; }
    .case-main h1 { font-size: 22px; }
    .case-body { font-size: 15px; }
    .case-body h2 { font-size: 20px; margin: 25px 0 15px; }
    .case-body h3 { font-size: 17px; }
}