/* =========================
   面包屑（沿用 article）
========================= */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1677ff;
    text-decoration: none;
}

/* =========================
   页面布局
========================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

/* =========================
   主内容区（只做容器）
========================= */
.detail-main {
    background: #fff;
}

/* =========================
   标题（case独有）
========================= */
.detail-title {
    font-size: 30px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* =========================
   meta（沿用 article meta风格）
========================= */
.detail-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================
   封面
========================= */
.detail-cover img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* =========================
   ⚠️ 核心：正文直接复用 article-body
   👉 不写任何 p / li / h2 / table 样式
========================= */
.article-body {
    line-height: 1.8;
    font-size: 15px;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* =========================
   图片区域（case独有）
========================= */
.image-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* =========================
   侧栏（轻量）
========================= */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    padding: 15px;
    border: 1px solid #eee;
    background: #fff;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

/* =========================
   推荐区（同 article）
========================= */
.related {
    margin-top: 30px;
}

.related h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related li {
    padding: 8px 0;
}

.related a {
    color: #1677ff;
    text-decoration: none;
}

.related a:hover {
    text-decoration: underline;
}

/* =========================
   手机适配
========================= */
@media (max-width: 768px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   案例详情正文留白
========================= */

.detail-main {
    padding: 24px 32px;
    background: #fff;
}

.article-body {
    padding: 8px 0 0 0;
}

.article-body p,
.article-body div,
.article-body section {
    line-height: 1.9;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    margin-top: 24px;
    margin-bottom: 14px;
}

/* =========================
   手机适配
========================= */

@media (max-width: 768px) {

    .detail-main {
        padding: 18px 16px;
    }

}

/* =========================
   Mobile Case Detail Spacing
   防止搜索栏压住案例标题
========================= */

@media (max-width: 768px) {

    .case-detail,
    .case-detail-page,
    .detail-page {
        padding-top: 28px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 28px !important;
    }

    .case-header,
    .detail-header,
    .page-header {
        margin-top: 16px !important;
        margin-bottom: 18px !important;
        padding: 0 2px;
    }

    .case-header h1,
    .detail-header h1,
    .page-header h1 {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .case-header p,
    .detail-header p,
    .page-header p {
        font-size: 14px;
        line-height: 1.7;
    }

}