/* cases.css - Extracted from inline styles - fixed */
:root {
  --red: #E60012;
  --red-hover: #CC0010;
  --red-light: rgba(230,0,18,0.08);
  --blue: #003366;
  --blue-light: #0066cc;
  --nav-bg: #0a1628;
  --body-bg: #ffffff;
  --section-bg: #f5f7fa;
  --text-dark: #333333;
  --text-body: #555555;
  --text-muted: #888888;
  --border-light: #e5e7eb;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --header-h: 120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--body-bg);
  color: var(--text-dark);
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ===== PAGE BANNER ===== */
.page-banner {
  position: relative;
  height: 40vh;
  min-height: 320px;
  overflow: hidden;
  background: linear-gradient(rgba(10,22,40,0.6), rgba(0,51,102,0.6)), url('../images/banner-cases.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.35);
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="60" cy="70" r="1.5" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="20" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
  opacity: 0.5;
  z-index: 1;
}
.banner-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  padding-top: var(--header-h);
}
.page-banner .breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px; font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.page-banner .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb span { color: rgba(255,255,255,0.5); }
.page-banner h1 {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FILTER TABS ===== */
.cases-filter {
  background: var(--body-bg);
  padding: 40px 0 20px;
}
.cases-filter-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  background: var(--section-bg);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.filter-tab:hover {
  border-color: var(--red);
  color: var(--red);
}
.filter-tab.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(230,0,18,0.25);
}

/* ===== CASE GRID ===== */
.cases-section {
  background: var(--section-bg);
  padding: 40px 0 80px;
}
.cases-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.35s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.case-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.case-card:hover .case-card-img img {
  transform: scale(1.05);
}
.case-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
}
.case-card-body {
  padding: 24px;
}
.case-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.case-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.3s;
}
.case-read-more:hover {
  gap: 10px;
}
.case-read-more svg {
  width: 16px;
  height: 16px;
}

/* ===== PAGINATION ===== */
.cases-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.cases-more a,
.cases-more span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text-body);
  background: #fff; border: 1px solid var(--border-light); cursor: pointer;
  transition: all .2s; text-decoration: none; padding: 0 12px;
}
.cases-more a:hover { border-color: var(--red); color: var(--red); }
.cases-more span.current,
.cases-more a.current,
.cases-more .active { background: var(--red); color: #fff; border-color: var(--red); }
.cases-more span.disabled,
.cases-more a.disabled { opacity: 0.4; pointer-events: none; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #0a1628 0%, #003366 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(230,0,18,0.1) 0%, transparent 50%);
}
.cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta-title,
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-desc,
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.btn-cta,
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(230,0,18,0.3);
}
.btn-cta:hover,
.cta-btn:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230,0,18,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1440px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-banner h1 { font-size: 32px; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .filter-tab { padding: 8px 16px; font-size: 13px; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
