/* ==================== 服务案例 ==================== */

/* 子分类 tabs */
.case-tabs {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(20,40,80,0.06);
    gap: 4px;
    flex-wrap: wrap;
}
.case-tab {
    flex: 1;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.case-tab i {
    font-size: 16px;
    transition: all 0.25s;
}
.case-tab:hover {
    color: #2563eb;
    background: #f1f5f9;
}
.case-tab.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.case-tab.active i {
    color: #fff;
}

/* pane 切换 */
.case-pane { display: none; animation: fadeInPane 0.4s ease; }
.case-pane.active { display: block; }
@keyframes fadeInPane {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.case-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid #2563eb;
}
.case-section-lead {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
    margin-bottom: 28px;
    text-indent: 2em;
}

/* ==================== 案例卡片网格 ==================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20,40,80,0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20,40,80,0.12);
}
.case-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.case-card:hover .case-img img {
    transform: scale(1.05);
}
.case-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.case-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}
.case-card-body h3 a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.case-card-body h3 a:hover {
    color: #2563eb;
}
.case-card-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 14px;
    flex: 1;
}
.case-meta {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}
.case-meta i {
    color: #2563eb;
    margin-right: 4px;
    font-size: 12px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .case-img { height: 190px; }
}

@media (max-width: 768px) {
    .case-tabs { padding: 4px; }
    .case-tab { min-width: 100%; font-size: 14px; padding: 12px 14px; }
    .case-section-title { font-size: 22px; }
    .case-grid { grid-template-columns: 1fr; }
    .case-img { height: 200px; }
}
