/* ============================================================
   合作案例页面
   ============================================================ */

/* ---------- 案例列表 ---------- */
.case-section { padding: 70px 0 90px; background: #fff; }
.case-section .container { max-width: 1200px; padding: 0 20px; }
.case-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}
.case-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 auto 40px;
    max-width: 820px;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .1);
}
.case-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f7f9;
}
.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.case-card:hover .case-cover img { transform: scale(1.04); }
.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; }
.case-tag {
    align-self: flex-start;
    font-size: 12px;
    color: var(--primary);
    background: rgba(15, 131, 210, .08);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.case-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}
.case-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-more {
    margin-top: auto;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}
.case-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 60px 0;
}

/* ---------- 案例详情 ---------- */
.case-detail { padding: 60px 0 70px; background: #fff; }
.case-detail .container { max-width: 1000px; padding: 0 20px; }
.case-detail-head {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 30px;
}
.case-logo {
    flex: 0 0 150px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px 14px;
}
.case-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.case-detail-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    line-height: 1.4;
}
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; color: #777; }
.case-detail-cover { margin-bottom: 36px; }
.case-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.case-detail-body {
    color: #444;
    font-size: 15px;
    line-height: 2;
}
.case-detail-body h2 {
    font-size: 20px;
    color: #111;
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}
.case-detail-body h2:first-child { margin-top: 0; }
.case-cta { text-align: center; margin-top: 40px; }
.case-btn {
    display: inline-block;
    padding: 13px 40px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}
.case-btn:hover { background: #0b6fae; }

/* ---------- 其他案例 ---------- */
.case-related {
    background: #f7f8fa;
    border-top: 1px solid #eee;
    padding: 60px 0 80px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .case-grid { grid-template-columns: 1fr; }
    .case-detail-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .case-detail-title h1 { font-size: 22px; }
    .case-section { padding: 48px 0 60px; }
}
