.home-cases { padding: 76px 0; background: linear-gradient(180deg,#f4f8ff,#fff); color: var(--enterprise-ink,#10233f); }
.home-cases *, .home-cases *::before, .home-cases *::after { box-sizing: border-box; }
.home-cases [hidden] { display: none !important; }
.home-cases-heading { text-align: center; margin-bottom: 30px; }
.home-cases-heading h2 { margin: 0; font-size: clamp(30px,3.4vw,44px); line-height: 1.35; font-weight: 700; }
.home-case-tabs { position: relative; display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 6px 4px 16px; margin-bottom: 20px; scrollbar-width: thin; }
.home-case-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 26px; border: 1px solid #dce6f3; border-radius: 999px; background: #fff; color: #52627c; font-size: 16px; line-height: 1.5; text-decoration: none; }
.home-case-tabs a:first-child { margin-left: auto; }
.home-case-tabs a:last-child { margin-right: auto; }
.home-case-tabs a:hover, .home-case-tabs a[aria-selected="true"] { color: #fff; border-color: var(--enterprise-brand,#1677ff); background: var(--enterprise-brand,#1677ff); }
.home-cases a:focus-visible, .home-case-panel:focus-visible { outline: 3px solid var(--enterprise-brand,#1677ff); outline-offset: 3px; }
.home-case-panel { scroll-margin-top: 120px; margin-bottom: 32px; }
.home-case-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-case-panel-heading h3 { margin: 0; font-size: 22px; line-height: 1.5; }
.home-case-panel-heading > a { flex-shrink: 0; color: var(--enterprise-brand,#1677ff); font-size: 15px; }
.home-case-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.home-case-card { min-width: 0; overflow: hidden; border: 1px solid #e2eaf4; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16,35,63,.04); transition: transform .2s,box-shadow .2s; }
.home-case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,35,63,.1); }
.home-case-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #eaf1fa; }
.home-case-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-case-body { padding: 22px; }
.home-case-body h4 { margin: 0 0 12px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.home-case-body h4 a { color: inherit; }
.home-case-body h4 a:hover { color: var(--enterprise-brand,#1677ff); }
.home-case-body p { margin: 0 0 18px; font-size: 14px; line-height: 1.8; color: #62708a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-case-more { color: var(--enterprise-brand,#1677ff); font-size: 14px; }
.home-case-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: #62708a; }
@media(max-width:1100px) {
 .home-case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .home-case-tabs { justify-content: flex-start; }
}
@media(max-width:600px) {
 .home-cases { padding: 44px 0; }
 .home-cases-heading { margin-bottom: 22px; }
 .home-case-tabs a { min-height: 42px; padding: 8px 20px; font-size: 15px; }
 .home-case-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
 .home-case-body { padding: 20px; }
}
@media(prefers-reduced-motion:reduce) { .home-case-card { transition: none; } .home-case-card:hover { transform: none; } }
