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

/* ============ 内容容器（1440px） ============ */
.case-single .cs-wrap {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}
@media (max-width: 1600px) { .case-single .cs-wrap { max-width: 1400px; } }
@media (max-width: 1400px) { .case-single .cs-wrap { max-width: 1280px; padding: 0 28px; } }
@media (max-width: 1200px) { .case-single .cs-wrap { max-width: 100%; padding: 0 24px; } }
@media (max-width: 768px)  { .case-single .cs-wrap { padding: 0 16px; } }

/* ============ 面包屑 ============ */
.cs-breadcrumb-bar {
    background: #f5f8fb;
    padding: 22px 0 0;
    font-size: 0.98rem;
    color: #8a9aae;
}
.cs-breadcrumb-bar a { color: #8a9aae; text-decoration: none; transition: color 0.3s; }
.cs-breadcrumb-bar a:hover { color: #1a2a6c; }
.cs-breadcrumb-bar span { margin: 0 8px; opacity: 0.6; }
.cs-breadcrumb-bar .current { color: #1a2a6c; font-weight: 500; }

/* ============ Hero ============ */
.cs-hero {
    background: linear-gradient(135deg, #082747 0%, #1a2a5a 55%, #334155 100%);
    padding: 64px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(79,172,254,.16) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(16,185,129,.1) 0%, transparent 55%);
    pointer-events: none;
}
.cs-hero .cs-wrap { position: relative; z-index: 2; }
.cs-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    max-width: 1000px;
}
.cs-hero-desc {
    font-size: 1.1rem;
    color: #c7e0f0;
    line-height: 1.75;
    max-width: 900px;
    margin: 0 0 24px;
}
.cs-hero-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.cs-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    font-size: 0.95rem;
    color: #e6f3ff;
    backdrop-filter: blur(10px);
}
.cs-tag i { color: #4facfe; }

/* ============ 主体布局 ============ */
.cs-main { background: #f5f8fb; padding: 28px 0 70px; }
.cs-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

/* ============ 主内容 ============ */
.cs-content {
    background: #fff;
    border-radius: 18px;
    padding: 44px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(10,26,58,.05);
    min-width: 0;
}

/* 项目概览 */
.cs-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    border-radius: 16px;
    margin-bottom: 40px;
    align-items: center;
}
.cs-overview-img { width: 100%; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: #f5f8fb; }
.cs-overview-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-overview-img .img-ph {
    width: 100%; height: 100%; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d5dee8, #c1cbd6);
    position: relative;
}
.cs-overview-img .img-ph::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.5;
}
.cs-overview-img .img-ph::after {
    content: attr(data-label); position: relative; z-index: 1;
    padding: 6px 14px; background: rgba(255,255,255,.85); border-radius: 18px;
    font-weight: 500; color: #4a5a6a; font-size: 0.85rem;
}
.cs-overview-info h3 { font-size: 1.35rem; font-weight: 800; color: #0a1a3a; margin: 0 0 18px; }
.cs-overview-info ul { list-style: none; padding: 0; margin: 0; }
.cs-overview-info li { padding: 10px 0; border-bottom: 1px dashed #eef2f6; font-size: 1rem; color: #4a5a6a; line-height: 1.7; }
.cs-overview-info li:last-child { border-bottom: none; }
.cs-overview-info li strong { color: #0a1a3a; margin-right: 8px; }

/* 内容区块 */
.cs-block { margin-bottom: 40px; }
.cs-block:last-of-type { margin-bottom: 28px; }
.cs-block-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a1a3a;
    margin: 0 0 20px;
    padding-left: 16px;
    position: relative;
    line-height: 1.3;
}
.cs-block-title::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px;
    width: 5px;
    background: linear-gradient(180deg, #1a2a6c, #4facfe);
    border-radius: 2px;
}
.cs-block-content { font-size: 1.05rem; line-height: 1.9; color: #3a4a5a; }
.cs-block-content p { margin: 0 0 16px; }
.cs-block-content p:last-child { margin-bottom: 0; }
.cs-block-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px auto; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.cs-block-content ul, .cs-block-content ol { padding-left: 24px; margin: 0 0 16px; }
.cs-block-content li { margin-bottom: 8px; line-height: 1.85; }
.cs-block-content h2, .cs-block-content h3 { color: #0a1a3a; font-weight: 700; margin: 24px 0 12px; }
.cs-block-content h2 { font-size: 1.4rem; }
.cs-block-content h3 { font-size: 1.2rem; }
.cs-block-results .cs-block-content {
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f7ff, #e0ebff);
    border-radius: 16px;
    border-left: 4px solid #4facfe;
}

/* 服务推荐（页面底部） */
.cs-service-cta {
    padding: 30px;
    background: linear-gradient(135deg, #f0f7ff, #e6f0ff);
    border-radius: 18px;
    margin-bottom: 36px;
}
.cs-service-cta h3 { font-size: 1.3rem; font-weight: 800; color: #0a1a3a; margin: 0 0 20px; }
.cs-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cs-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #1a2a6c;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.cs-service-item:hover { border-color: #4facfe; transform: translateX(4px); box-shadow: 0 4px 12px rgba(79,172,254,.15); }
.cs-service-item i { color: #4facfe; transition: transform 0.3s ease; }
.cs-service-item:hover i { transform: translateX(3px); }

/* 上一篇 / 下一篇 */
.cs-nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
    padding-top: 28px;
    border-top: 1px solid #eef2f6;
}
.cs-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #0a1a3a;
    transition: all 0.3s ease;
}
.cs-nav-btn:hover { background: #fff; border-color: #4facfe; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,42,108,.08); }
.cs-nav-btn.next { flex-direction: row-reverse; text-align: right; }
.cs-nav-icon { color: #4facfe; font-size: 1.3rem; flex-shrink: 0; }
.cs-nav-content { flex: 1; min-width: 0; }
.cs-nav-label { display: block; font-size: 0.82rem; color: #8a9aae; margin-bottom: 4px; }
.cs-nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1a3a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 侧边栏 ============ */
.cs-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.cs-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(10,26,58,.05);
}
.cs-side-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a1a3a;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-side-title i { color: #4facfe; font-size: 1rem; }

.cs-side-list { list-style: none; padding: 0; margin: 0; }
.cs-side-list li { border-bottom: 1px dashed #eef2f6; }
.cs-side-list li:last-child { border-bottom: none; }
.cs-side-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #4a5a6a;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.cs-side-list a:hover { color: #1a2a6c; padding-left: 6px; }
.cs-side-list a i { color: #c8d2dc; font-size: 1rem; transition: all 0.3s ease; }
.cs-side-list a:hover i { color: #4facfe; }

.cs-side-latest { list-style: none; padding: 0; margin: 0; }
.cs-side-latest li { padding: 12px 0; border-bottom: 1px dashed #eef2f6; }
.cs-side-latest li:last-child { border-bottom: none; padding-bottom: 0; }
.cs-side-latest a { display: flex; gap: 14px; text-decoration: none; color: inherit; }
.cs-side-latest img, .cs-side-latest .img-ph {
    width: 84px; height: 84px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.cs-side-latest .img-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d5dee8, #c1cbd6);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.cs-side-latest .img-ph::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
    background-size: 14px 14px; opacity: 0.5;
}
.cs-side-latest .img-ph::after {
    content: '图'; position: relative; z-index: 1;
    font-size: 0.8rem; color: #6a7a8a; font-weight: 600;
}
.cs-side-latest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cs-side-latest-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1a3a;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-side-latest-info span { font-size: 0.82rem; color: #8a9aae; display: flex; align-items: center; gap: 4px; }
.cs-side-latest a:hover .cs-side-latest-info h5 { color: #1a2a6c; }

.cs-side-cta { background: linear-gradient(135deg, #1a2a6c, #3a5a9a); color: #fff; border: none; }
.cs-side-cta h4 { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
.cs-side-cta p { font-size: 0.95rem; color: rgba(255,255,255,.8); margin: 0 0 20px; line-height: 1.6; }
.cs-side-btn {
    width: 100%;
    padding: 14px 22px;
    background: #fff;
    color: #1a2a6c;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.cs-side-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.25); }
.cs-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.98rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 60px;
    transition: all 0.3s ease;
}
.cs-side-phone:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cs-side-phone i { font-size: 0.9rem; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .cs-layout { grid-template-columns: 1fr; gap: 24px; }
    .cs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .cs-sidebar .cs-side-card { flex: 1; min-width: 300px; }
    .cs-overview { grid-template-columns: 1fr; }
    .cs-hero-title { font-size: 1.9rem; }
    .cs-content { padding: 32px; }
    .cs-block-title { font-size: 1.35rem; }
}
@media (max-width: 576px) {
    .cs-hero { padding: 44px 0 38px; }
    .cs-hero-title { font-size: 1.5rem; }
    .cs-hero-desc { font-size: 1rem; }
    .cs-tag { font-size: 0.85rem; padding: 6px 14px; }
    .cs-content { padding: 22px; border-radius: 14px; }
    .cs-block-title { font-size: 1.2rem; }
    .cs-block-content { font-size: 1rem; }
    .cs-service-grid { grid-template-columns: 1fr; }
    .cs-nav-buttons { grid-template-columns: 1fr; }
    .cs-sidebar { flex-direction: column; }
    .cs-sidebar .cs-side-card { min-width: 0; flex: none; width: 100%; }
}