/* =========================================
   【案例详情页】专属 CSS (Show Case Specific)
   维护记录：已彻底剥离导航、弹窗等全局冗余代码，完美提取内联样式
========================================= */

/* --- 1. 极简白底面包屑 (弹性高定版) --- */
.case-breadcrumb-wrap { background-color: transparent; padding: 20px 0 15px; }
.case-breadcrumb { 
    display: flex; /* 启用弹性盒子，完美对齐图标和文字 */
    align-items: center; 
    flex-wrap: wrap; 
    font-size: 0.9rem; 
    color: var(--text-light, #64748b); 
}
.case-breadcrumb a { 
    display: inline-flex; 
    align-items: center; 
    color: var(--text-main, #1e293b); 
    font-weight: 600; 
    transition: var(--transition, all 0.3s ease); 
    text-decoration: none; 
}
.case-breadcrumb a:hover { color: var(--auth-blue, #1e3a8a); }
.case-breadcrumb a i.fa-house { margin-right: 6px; font-size: 0.95rem; color: var(--auth-blue, #1e3a8a); transition: color 0.3s; }
.case-breadcrumb a:hover i.fa-house { color: var(--warn-yellow, #f59e0b); }

/* 精致的分隔符 */
.case-breadcrumb .divider { 
    color: #cbd5e1; 
    font-size: 0.7rem; /* 缩小分隔符字号，让它不要喧宾夺主 */
    margin: 0 10px; /* 撑开舒适的呼吸间距 */
}
.case-breadcrumb span.current-page { font-weight: 500; }

/* --- 2. 页面主体排版 --- */
.case-detail-content { padding: 30px 0 100px; background-color: var(--bg-gray, #f1f5f9); }
.blog-layout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* 案例白板容器 */
.case-main-body { background-color: var(--white, #ffffff); border-radius: 8px; padding: 50px 60px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); border: 1px solid var(--border-color, #e2e8f0); }

/* --- 3. 案例头部与标题 --- */
.case-header { margin-bottom: 30px; }
.case-badge-large { display: inline-block; background-color: #ef4444; color: var(--white, #ffffff); padding: 6px 16px; border-radius: 4px; font-weight: 700; font-size: 0.95rem; margin-bottom: 15px; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(239,68,68,0.2); }
.case-title { font-size: 2.2rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; line-height: 1.4; margin-top: 0; margin-bottom: 20px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-light, #64748b); font-size: 0.95rem; border-bottom: 1px dashed var(--border-color, #e2e8f0); padding-bottom: 25px; }
.case-meta span { display: inline-flex; align-items: center; gap: 6px; }
.case-meta i { color: var(--eco-green, #059669); }

/* --- 4. 【核心】：巨幕海报与工程指标盘 --- */
.case-hero-media { margin-top: 35px; margin-bottom: 35px; width: 100%; border-radius: 8px; overflow: hidden; background-color: #f8fafc; border: 1px solid var(--border-color, #e2e8f0); }
.case-hero-img { width: 100%; height: 450px; object-fit: cover; object-position: center; display: block; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.case-hero-media:hover .case-hero-img { transform: scale(1.03); }

.project-metrics-box { display: flex; flex-wrap: wrap; background-color: #f8fafc; border: 1px solid var(--border-color, #e2e8f0); border-left: 4px solid var(--auth-blue, #1e3a8a); border-radius: 6px; padding: 25px 30px; margin-bottom: 35px; gap: 30px; }
.p-metric { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.p-label { color: var(--text-light, #64748b); font-size: 0.9rem; }
.p-value { color: var(--text-main, #1e293b); font-size: 1.1rem; font-weight: 900; }
.p-value .text-green { color: var(--eco-green, #059669); }
.p-value i { margin-right: 4px; }

.privacy-notice { background-color: rgba(245, 158, 11, 0.05); color: var(--warn-yellow-hover, #d97706); padding: 15px 20px; border-radius: 6px; font-size: 0.95rem; margin-bottom: 35px; display: flex; align-items: flex-start; gap: 12px; border: 1px dashed var(--warn-yellow, #f59e0b); line-height: 1.6; }
.privacy-notice i { font-size: 1.2rem; margin-top: 2px; }

/* --- 5. 正文内容化与转化按钮 --- */
.cms-content { font-size: 1.1rem; line-height: 1.9; color: var(--text-main, #1e293b); }
.cms-content p { margin-bottom: 25px; }
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 25px auto; box-shadow: 0 5px 20px rgba(0,0,0,0.05); display: block; }
.cms-content h2 { font-size: 1.5rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin: 40px 0 20px; padding-left: 15px; border-left: 5px solid var(--warn-yellow, #f59e0b); }
.cms-content ul { padding-left: 25px; margin-bottom: 25px; }
.cms-content li { margin-bottom: 10px; }

.case-content-action { text-align: center; margin-top: 50px; padding-top: 40px; border-top: 1px dashed var(--border-color, #e2e8f0); }
.case-content-action .btn { box-shadow: 0 10px 20px rgba(245, 158, 11, 0.25); transition: all 0.3s ease; }
.case-content-action .btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4); }

/* --- 6. 侧边栏及转化组件 --- */
.blog-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background: var(--white, #ffffff); border-radius: 8px; padding: 30px; border: 1px solid var(--border-color, #e2e8f0); box-shadow: 0 5px 15px rgba(0,0,0,0.02); }

.widget-cta { background-image: linear-gradient(135deg, var(--auth-blue-dark, #172554) 0%, var(--auth-blue, #1e3a8a) 100%); border: none; padding: 40px 25px; text-align: center; }
.widget-cta-badge { background-color: rgba(245,158,11,0.15); color: var(--warn-yellow, #f59e0b); display: inline-flex; padding: 5px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 800; margin-bottom: 18px; border: 1px solid rgba(245,158,11,0.3); }
.widget-cta h3 { color: var(--white, #ffffff); font-size: 1.3rem; font-weight: 900; margin-top: 0; margin-bottom: 15px; line-height: 1.4; }
.widget-cta p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.6; }
.widget-cta .btn { width: 100%; display: flex; justify-content: center; }

.widget-title { font-size: 1.2rem; color: var(--auth-blue, #1e3a8a); font-weight: 900; margin-top: 0; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color, #e2e8f0); position: relative; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--warn-yellow, #f59e0b); }

.hot-posts-list { list-style: none; margin: 0; padding: 0; }
.hot-posts-list li { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--border-color, #e2e8f0); padding-bottom: 15px; }
.hot-posts-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.hot-rank { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: #e2e8f0; color: var(--text-light, #64748b); font-weight: 900; border-radius: 4px; font-size: 0.85rem; flex-shrink: 0; }
.hot-rank.rank-top { background: var(--warn-yellow, #f59e0b); color: var(--white, #ffffff); }
.hot-posts-list a { color: var(--text-main, #1e293b); font-weight: 500; font-size: 0.95rem; line-height: 1.5; transition: color 0.3s; display: block; text-decoration: none; }
.hot-posts-list a:hover { color: var(--auth-blue, #1e3a8a); }

/* --- 7. 移动端响应式适配 --- */
@media (max-width: 1024px) {
    .blog-layout-grid { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .case-detail-content { padding: 10px 0 60px; }
    .case-main-body { padding: 30px 20px; }
    .case-title { font-size: 1.6rem; }
    .case-hero-img { height: 250px; }
    
    /* 工程指标盘优雅折叠 */
    .project-metrics-box { flex-direction: column; gap: 15px; padding: 20px; }
    .p-metric { border-bottom: 1px dashed var(--border-color, #e2e8f0); padding-bottom: 15px; }
    .p-metric:last-child { border-bottom: none; padding-bottom: 0; }
    
    .blog-sidebar { grid-template-columns: 1fr; }
}