/* ===== 成功案例页面专属样式 ===== */

/* ===== Hero Banner (背景装饰) ===== */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.9), rgba(15,40,71,0.7));
}
.hero-handshake {
  position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  background: linear-gradient(135deg,
    rgba(37,99,235,0.08) 0%,
    rgba(37,99,235,0.03) 50%,
    transparent 100%
  );
  mask-image: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
}
.hero-handshake::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 40% 60%, rgba(96,165,250,0.08) 0%, transparent 50%);
}

/* ===== Filter Tabs ===== */
.cases-main { padding: 60px 0 80px; background: #f5f7fa; }
.cases-filter {
  display: flex; gap: 0; margin-bottom: 40px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  border: 1px solid #e8ecf1;
}
.filter-tab {
  flex: 1; padding: 16px 20px; font-size: 15px; font-weight: 500;
  color: #666; background: #fff; transition: all .3s;
  border-right: 1px solid #e8ecf1; cursor: pointer;
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { color: #2563eb; background: #f0f7ff; }
.filter-tab.active {
  color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* ===== Case Cards Grid ===== */
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.case-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #e8ecf1;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  opacity: 1; transform: translateY(0);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  border-color: rgba(37,99,235,0.15);
}
.case-card.hidden {
  opacity: 0; transform: scale(0.95); pointer-events: none;
  position: absolute; visibility: hidden;
}
.case-card-image { height: 220px; overflow: hidden; }
.case-card-img {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; padding: 24px;
}

/* Card image backgrounds */
.ci-1  { background: linear-gradient(135deg, #0f2847, #1a365d); }
.ci-2  { background: linear-gradient(135deg, #1a365d, #1e40af); }
.ci-3  { background: linear-gradient(135deg, #0c2340, #163a5f); }
.ci-4  { background: linear-gradient(135deg, #132e52, #1e3a5f); }
.ci-5  { background: linear-gradient(135deg, #0f2847, #2563eb); }
.ci-6  { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.ci-7  { background: linear-gradient(135deg, #0a1e3d, #1a365d); }
.ci-8  { background: linear-gradient(135deg, #132e52, #1e40af); }
.ci-9  { background: linear-gradient(135deg, #1a365d, #3b82f6); }
.ci-10 { background: linear-gradient(135deg, #0f2847, #1e3a5f); }

/* Fake screen inside cards */
.img-screen {
  width: 85%; max-width: 360px; background: rgba(255,255,255,0.06);
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.screen-header {
  display: flex; gap: 5px; padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.screen-header span {
  width: 8px; height: 8px; border-radius: 50%;
}
.screen-header span:nth-child(1) { background: #ef4444; }
.screen-header span:nth-child(2) { background: #f59e0b; }
.screen-header span:nth-child(3) { background: #22c55e; }
.screen-body { padding: 14px; min-height: 110px; }
.screen-chart {
  width: 100%; height: 50px; border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(37,99,235,0.2) 0%, rgba(37,99,235,0.4) 30%,
    rgba(96,165,250,0.3) 60%, rgba(37,99,235,0.15) 100%);
  margin-bottom: 10px;
}
.screen-list { display: flex; flex-direction: column; gap: 6px; }
.screen-list span {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08);
}
.screen-list span:nth-child(1) { width: 80%; }
.screen-list span:nth-child(2) { width: 60%; }
.screen-list span:nth-child(3) { width: 70%; }
.screen-map {
  width: 100%; height: 90px; border-radius: 4px;
  background:
    radial-gradient(circle at 30% 40%, rgba(37,99,235,0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(96,165,250,0.2) 0%, transparent 40%),
    rgba(255,255,255,0.04);
}
.screen-dashboard {
  width: 100%; height: 90px; border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(37,99,235,0.15) 0%, rgba(37,99,235,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.06);
}
.screen-form {
  width: 100%; height: 90px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: rgba(255,255,255,0.03);
}
.screen-form::before, .screen-form::after {
  content: ""; display: block; height: 10px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
}
.screen-form::after { width: 60%; }
.screen-table {
  width: 100%; height: 90px; border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 16px,
    transparent 16px, transparent 18px
  );
}
.screen-grid {
  width: 100%; height: 90px; border-radius: 4px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.screen-grid::before, .screen-grid::after {
  content: ""; border-radius: 4px; background: rgba(255,255,255,0.08);
}

/* Card body */
.case-card-body { padding: 22px 24px 24px; }
.case-card-body h3 {
  font-size: 17px; font-weight: 600; color: #1a1a2e;
  margin-bottom: 10px;
}
.case-card-body p {
  font-size: 13px; color: #666; line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.case-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px; border-radius: 4px; font-size: 12px;
  background: #f0f4f8; color: #5a6b80; transition: all .3s;
  border: 1px solid #e2e8f0;
}
.case-card:hover .tag {
  background: #eff6ff; color: #2563eb; border-color: #bfdbfe;
}

/* ===== Detailed Footer extras ===== */
.footer-detail .footer-main { gap: 30px; }
.footer-col-wide { flex: 1.5; }
.footer-col-grid { display: flex; gap: 24px; }
.footer-col-grid div { display: flex; flex-direction: column; }
.footer-col-grid a {
  display: block; color: rgba(255,255,255,0.5); font-size: 13px;
  margin-bottom: 10px; transition: color .3s;
}
.footer-col-grid a:hover { color: #60a5fa; }
.footer-address { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-bottom-left { display: flex; align-items: center; gap: 12px; }
.friend-link-label { color: rgba(255,255,255,0.4); font-size: 12px; }
.friend-link-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 4px; font-size: 12px;
  color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: all .3s;
}
.friend-link-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-detail .footer-main { flex-wrap: wrap; }
  .footer-brand { flex: 0 0 100%; margin-bottom: 16px; }
  .footer-col-wide { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
  .cases-filter { flex-wrap: wrap; }
  .filter-tab {
    flex: 0 0 calc(50% - 1px); font-size: 13px; padding: 12px 16px;
    border-bottom: 1px solid #e8ecf1;
  }
  .cases-grid { grid-template-columns: 1fr; gap: 20px; }
  .case-card-image { height: 180px; }
  .footer-detail .footer-col { flex: 0 0 calc(50% - 15px); }
  .footer-col-grid { flex-direction: column; gap: 0; }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-left { justify-content: center; }
}

@media (max-width: 480px) {
  .filter-tab { flex: 0 0 100%; border-right: none; }
  .footer-detail .footer-col { flex: 0 0 100%; }
}
