/**
 * single-case.css
 * Single Case Detail Page (case study)
 * 版本: 1.0.0
 * 从 company-cases.css 抽离，仅在 single-case 页面加载
 */

/* ============================================================
   Hero (纯Banner图)
   ============================================================ */
.single-case .sc-hero {
    position: relative;
    height: 450px;
    margin-top: 60px;
    overflow: hidden;
}
.single-case .sc-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.single-case .sc-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   文章头部及标题区域
   ============================================================ */
.single-case .sc-article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ebebeb;
}
.single-case .sc-header-category {
    margin-bottom: 12px;
}
.single-case .sc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #f0ebff;
    border: 1px solid #d8c8f0;
    border-radius: 50px;
    color: #5a3d9e;
    font-size: 13px;
    font-weight: 600;
}
.single-case .sc-category-badge i { font-size: 11px; }

.single-case .sc-article-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* 文章头部 Meta 信息 */
.single-case .sc-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.single-case .sc-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9fb;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.single-case .sc-meta-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ede7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a3d9e;
    font-size: 13px;
}
.single-case .sc-meta-info { display: flex; flex-direction: column; }
.single-case .sc-meta-label {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 3px;
}
.single-case .sc-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ============================================================
   Article Layout
   ============================================================ */
.single-case .sc-article-wrap {
    padding: 48px 0 64px;
}
.single-case .sc-article-content { min-width: 0; }

/* Result highlight block */
.single-case .sc-result-block {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0f8ff, #e8f4fd);
    border-left: 4px solid #3498db;
    border-radius: 0 12px 12px 0;
    margin-bottom: 28px;
}
.single-case .sc-result-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.single-case .sc-result-content { flex: 1; }
.single-case .sc-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #2980b9;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.single-case .sc-result-text {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Body Content
   ============================================================ */
.single-case .sc-body {
    font-size: 16px;
    color: #444;
    line-height: 1.9;
}
.single-case .sc-body p { margin: 0 0 20px; }
.single-case .sc-body h2,
.single-case .sc-body h3,
.single-case .sc-body h4 {
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.35;
    margin: 32px 0 12px;
}
.single-case .sc-body h2 { font-size: 26px; }
.single-case .sc-body h3 { font-size: 21px; }
.single-case .sc-body h4 { font-size: 17px; }
.single-case .sc-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 8px 0;
}
.single-case .sc-body a {
    color: #5a3d9e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.single-case .sc-body a:hover { border-bottom-color: #5a3d9e; }
.single-case .sc-body blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid #3498db;
    background: #f0f8ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #555;
}
.single-case .sc-body ul,
.single-case .sc-body ol { margin: 0 0 20px 24px; }
.single-case .sc-body li { margin-bottom: 6px; }
.single-case .page-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #888;
}

/* ============================================================
   Gallery
   ============================================================ */
.single-case .sc-gallery { margin: 36px 0 0; }
.single-case .sc-gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-case .sc-gallery-title i { color: #3498db; font-size: 17px; }
.single-case .sc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.single-case .sc-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    display: block;
    transition: transform 0.3s;
}
.single-case .sc-gallery-item:hover { transform: scale(1.03); }
.single-case .sc-gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   Tags
   ============================================================ */
.single-case .sc-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}
.single-case .sc-tags-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #666;
}
.single-case .sc-tag-item {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #f0ebff, #ede7f6);
    color: #5a3d9e;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d8c8f0;
    text-decoration: none;
    transition: all 0.2s;
}
.single-case .sc-tag-item:hover {
    background: #5a3d9e;
    color: #fff;
    border-color: #5a3d9e;
}

/* ============================================================
   Share
   ============================================================ */
.single-case .sc-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.single-case .sc-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.single-case .sc-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s;
    color: #fff;
}
.single-case .sc-share-fb { background: #1877f2; }
.single-case .sc-share-fb:hover { background: #1561d6; transform: translateY(-2px); }
.single-case .sc-share-tw { background: #1da1f2; }
.single-case .sc-share-tw:hover { background: #1a8cd8; transform: translateY(-2px); }
.single-case .sc-share-li { background: #0077b5; }
.single-case .sc-share-li:hover { background: #00669c; transform: translateY(-2px); }

/* ============================================================
   Inquiry CTA
   ============================================================ */
.single-case .sc-inquiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8f7ff, #f0ebff);
    border: 1px solid #e8e0f8;
    border-radius: 16px;
    margin-top: 36px;
}
.single-case .sc-inquiry-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.single-case .sc-inquiry-text p {
    font-size: 13.5px;
    color: #777;
    margin: 0;
}
.single-case .sc-inquiry-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #5a3d9e, #7c5cbf);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(90,61,158,0.3);
    transition: all 0.3s;
}
.single-case .sc-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90,61,158,0.4);
    color: #fff;
}

/* ============================================================
   Sidebar
   ============================================================ */
.single-case .sc-sidebar { min-width: 0; }
.single-case .sc-widget {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}
.single-case .sc-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ebff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.single-case .sc-widget-title i { color: #5a3d9e; font-size: 15px; }

/* Related cases */
.single-case .sc-related-list { list-style: none; margin: 0; padding: 0; }
.single-case .sc-related-item { border-bottom: 1px dashed #eee; }
.single-case .sc-related-item:last-child { border-bottom: none; }
.single-case .sc-related-link {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    transition: all 0.2s;
}
.single-case .sc-related-link:hover { padding-left: 6px; }
.single-case .sc-related-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.single-case .sc-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-case .sc-related-info { min-width: 0; flex: 1; }
.single-case .sc-related-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.single-case .sc-related-link:hover .sc-related-title { color: #5a3d9e; }
.single-case .sc-related-date { font-size: 12px; color: #999; }

/* ============================================================
   Post Navigation
   ============================================================ */
.single-case .sc-post-nav { padding: 0 0 64px; }
.single-case .sc-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 28px;
}
.single-case .sc-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1;
    transition: all 0.3s;
}
.single-case .sc-nav-prev { flex-direction: row; }
.single-case .sc-nav-next { flex-direction: row-reverse; text-align: right; }
.single-case .sc-nav-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0ebff, #ede7f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a3d9e;
    font-size: 15px;
    transition: all 0.3s;
}
.single-case .sc-nav-link:hover .sc-nav-arrow {
    background: linear-gradient(135deg, #5a3d9e, #7c5cbf);
    color: #fff;
    transform: scale(1.1);
}
.single-case .sc-nav-text { min-width: 0; }
.single-case .sc-nav-text-right { text-align: right; }
.single-case .sc-nav-label {
    display: block;
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.single-case .sc-nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.single-case .sc-nav-link:hover .sc-nav-title { color: #5a3d9e; }

/* ============================================================
   响应式 — Tablet
   ============================================================ */
@media (max-width: 991px) {
    .single-case .sc-hero { height: 300px; margin-top: 70px; }
    .single-case .sc-article-title { font-size: 28px; }
    .single-case .sc-article-layout { grid-template-columns: 1fr; gap: 32px; }
    .single-case .sc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .single-case .sc-inquiry { flex-direction: column; text-align: center; }
    .single-case .sc-nav-inner { flex-direction: column; }
    .single-case .sc-nav-prev, .single-case .sc-nav-next { flex-direction: row; text-align: left; }
    .single-case .sc-nav-text-right { text-align: left; }
}
@media (max-width: 576px) {
    .single-case .sc-hero { height: 200px; margin-top: 65px; }
    .single-case .sc-article-title { font-size: 22px; }
    .single-case .sc-hero-meta { flex-direction: column; gap: 10px; }
    .single-case .sc-article-layout { gap: 24px; }
    .single-case .sc-gallery-grid { grid-template-columns: 1fr 1fr; }
    .single-case .sc-gallery-item img { height: 100px; }
}

/* ============================================================
   移动端 (<= 768px): 隐藏顶部 Banner + 内容区增加 Padding
   ============================================================ */
@media screen and (max-width: 768px) {
    .single-case .sc-hero {
        display: none !important;
    }
    .single-case .sc-article-wrap {
        padding-top: 90px !important;
        padding-bottom: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .single-case .sc-article-content {
        padding: 0 4px !important;
    }
}
