/* ============== Customer Cases Page Styles ============== */
.cases-page { padding: 30px 0 60px; }

.stats-bar { background: #fff; margin-top: 0; padding: 30px 0; display: flex; border-radius: 6px; box-shadow: 0 6px 24px rgba(16,37,46,.06); margin-bottom: 50px; }
.stats-item { flex: 1; text-align: center; border-right: 1px solid #eef2f4; padding: 4px 0; }
.stats-item:last-child { border-right: 0; }
.stats-item .num { font-size: 36px; font-weight: 700; color: #48C7EC; font-family: Arial; line-height: 1; }
.stats-item .num i { font-size: 16px; color: #999; font-weight: 400; margin-left: 2px; font-style: normal; }
.stats-item .label { font-size: 13px; color: #888; margin-top: 10px; letter-spacing: 2px; }

.featured-wrap { margin-bottom: 50px; }
.featured-case { display: flex; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px rgba(16,37,46,.06); transition: all .3s; }
.featured-case:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(16,37,46,.12); }
.featured-case .img { width: 540px; flex-shrink: 0; height: 320px; position: relative; background: linear-gradient(135deg, #1d3a48, #10252E); overflow: hidden; }
.featured-case .img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.featured-case .img .badge { position: absolute; top: 18px; left: 18px; background: #ff5865; color: #fff; padding: 5px 14px; font-size: 12px; border-radius: 2px; letter-spacing: 2px; z-index: 2; }
.featured-case .content { flex: 1; padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-case .content .meta { font-size: 12px; color: #48C7EC; letter-spacing: 3px; margin-bottom: 10px; }
.featured-case .content h3 { font-size: 22px; font-weight: 700; color: #434242; margin-bottom: 16px; line-height: 1.4; }
.featured-case .content .desc { font-size: 14px; color: #6f6f6f; line-height: 1.85; margin-bottom: 20px; }
.featured-case .content .tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.featured-case .content .tags span { padding: 4px 12px; background: #eaf7fc; color: #48C7EC; font-size: 12px; border-radius: 2px; }
.featured-case .content .btn-detail { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 10px 24px; background: #48C7EC; color: #fff; font-size: 14px; border-radius: 2px; letter-spacing: 2px; }
.featured-case .content .btn-detail:hover { background: #10252E; color: #fff; }

.filter-row { display: flex; align-items: center; margin-bottom: 30px; padding: 0 4px; gap: 16px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.filter-tabs .tab { padding: 8px 18px; background: #fff; border: 1px solid #e8e8e8; color: #6f6f6f; font-size: 13px; border-radius: 18px; cursor: pointer; transition: all .2s; }
.filter-tabs .tab:hover { color: #48C7EC; border-color: #48C7EC; }
.filter-tabs .tab.active { background: #48C7EC; color: #fff; border-color: #48C7EC; }
.case-search { display: flex; height: 36px; border: 1px solid #e8e8e8; border-radius: 18px; overflow: hidden; background: #fff; }
.case-search input { border: 0; outline: none; padding: 0 14px; font-size: 13px; width: 200px; background: transparent; }
.case-search button { width: 40px; border: 0; background: #f5f7fa; color: #48C7EC; cursor: pointer; }
.case-search button:hover { background: #48C7EC; color: #fff; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid .empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: #999; }
.case-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(16,37,46,.05); transition: all .3s; display: flex; flex-direction: column; color: inherit; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(16,37,46,.12); color: inherit; }
.case-card .img { height: 200px; position: relative; overflow: hidden; background: #1d3a48; }
.case-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .img img { transform: scale(1.06); }
.case-card .img .category { position: absolute; top: 12px; left: 12px; background: rgba(16,37,46,.85); color: #48C7EC; padding: 4px 10px; font-size: 11px; border-radius: 2px; letter-spacing: 1px; }
.case-card .img .industry { position: absolute; bottom: 12px; right: 12px; background: rgba(72,199,236,.92); color: #fff; padding: 4px 10px; font-size: 11px; border-radius: 2px; }
.case-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.case-card h4 { font-size: 17px; font-weight: 700; color: #434242; margin-bottom: 10px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.case-card .desc { font-size: 13px; color: #888; line-height: 1.75; margin-bottom: 16px; flex: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.case-card .meta { display: flex; align-items: center; padding-top: 14px; border-top: 1px dashed #f0f0f0; font-size: 12px; color: #999; }
.case-card .meta .client { display: flex; align-items: center; gap: 6px; }
.case-card .meta .date { margin-left: auto; }
.case-card .meta i { color: #48C7EC; }

/* ===== Case Detail Page ===== */
.case-detail { background: #fff; padding: 40px; border-radius: 6px; box-shadow: 0 4px 20px rgba(16,37,46,.05); }
.case-detail .loading { text-align: center; padding: 60px 0; color: #999; }
.case-detail .empty { text-align: center; padding: 80px 0; color: #999; }
.case-detail-cover { margin: -40px -40px 24px; overflow: hidden; border-radius: 6px 6px 0 0; }
.case-detail-cover img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.case-detail-meta { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 0; margin-bottom: 18px; border-bottom: 1px dashed #eef2f4; font-size: 13px; color: #868686; }
.case-detail-meta .meta-item i { color: #48C7EC; margin-right: 4px; }
.case-detail-tags { margin-bottom: 20px; }
.case-detail-tags .tag { display: inline-block; padding: 4px 14px; background: #eaf7fc; color: #48C7EC; font-size: 12px; border-radius: 2px; margin-right: 8px; margin-bottom: 6px; }
.case-detail-h2 { font-size: 26px; font-weight: 700; color: #434242; margin: 20px 0 16px; line-height: 1.4; }
.case-detail-summary { font-size: 15px; color: #6f6f6f; line-height: 1.85; background: #f5fbfd; border-left: 4px solid #48C7EC; padding: 16px 20px; margin-bottom: 24px; }
.case-detail-content { font-size: 15px; color: #5a5a5a; line-height: 1.95; }
.case-detail-content p { margin-bottom: 14px; }
.case-detail-content ul, .case-detail-content ol { padding-left: 24px; margin-bottom: 14px; }
.case-detail-content li { margin-bottom: 6px; }
.case-detail-content b, .case-detail-content strong { color: #434242; }
.case-detail-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }

@media (max-width: 768px) {
    .stats-bar { flex-wrap: wrap; }
    .stats-item { flex: 0 0 50%; border-bottom: 1px solid #eef2f4; padding: 14px 0; }
    .stats-item:nth-child(2n) { border-right: 0; }
    .case-grid { grid-template-columns: 1fr; }
    .featured-case { flex-direction: column; }
    .featured-case .img { width: 100%; height: 220px; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .case-detail { padding: 24px; }
    .case-detail-cover { margin: -24px -24px 20px; }
}
