/* ============================================
   深圳腾骏达科技 - 成功案例列表页样式
   ============================================ */

.main-layout {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.sidebar {
  flex: 0 0 250px;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.sidebar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #003D7A;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #FF6600;
}
.sidebar-category { margin-bottom: 1.2rem; }
.sidebar-sub a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-left: 2px solid transparent;
  transition: 0.15s;
}
.sidebar-sub a:hover,
.sidebar-sub a.active {
  color: #003D7A;
  border-left-color: #FF6600;
  background: #f0f4ff;
  font-weight: 500;
}

.sidebar-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #eef3fa;
}
.sidebar-contact h4 { font-size: 1rem; font-weight: 700; color: #003D7A; margin-bottom: 1rem; }
.sidebar-contact p { font-size: 0.85rem; color: #4b5563; margin-bottom: 0.6rem; }
.sidebar-contact strong { color: #FF6600; }

.content-area { flex: 1; min-width: 0; }

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.filter-tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid transparent;
}
.filter-tag:hover,
.filter-tag.active {
  background: #003D7A;
  color: white;
}

/* 案例列表网格 */
.case-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* 案例卡片 */
.case-card-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
}
.case-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.1);
}
.case-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.case-card-item:hover .case-card-img {
  transform: scale(1.05);
}
.case-card-info {
  padding: 1.2rem;
}
.case-card-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #003D7A;
  margin-bottom: 0.5rem;
}
.case-card-info p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

/* 标签 */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.case-tag {
  display: inline-block;
  background: #f0f4ff;
  color: #003D7A;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  user-select: none;
}
.pagination a:hover {
  background: #003D7A;
  color: white;
  border-color: #003D7A;
}
.pagination a.active {
  background: #003D7A;
  color: white;
  border-color: #003D7A;
  font-weight: 700;
}
.pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 992px) {
  .main-layout { flex-direction: column; }
  .sidebar { position: static; }
  .case-grid-list { grid-template-columns: 1fr; }
}