/* ============================================
   深圳腾骏达科技 - 荣誉客户列表页样式
   确保一行6个客户布局
   ============================================ */

.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;
}

/* 客户网格 - 强制一行6个 */
.client-grid-list {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1.5rem !important;
}

/* 客户卡片 */
.client-card-item {
  background: white;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #f3f4f6;
}
.client-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: #e5e7eb;
}
/* 客户 Logo 图片样式 */
.client-logo {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: cover;          /* 图片填充保持比例，多余裁剪 */
  display: block;
  margin: 0 auto 0.8rem;
  border: 1px solid rgba(0,0,0,0.05); /* 浅色边框让纯色图片有轮廓 */
  background: #f3f4f6;        /* 图片加载前的背景色 */
}

/* 如果图片加载失败，显示 alt 文字 */
.client-logo[alt] {
  text-align: center;
  line-height: 90px;
  font-size: 0.85rem;
  color: #6b7280;
}

.client-card-item p {
  font-size: 0.85rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.3;
}

/* 分页 */
.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: 1400px) {
  .client-grid-list { grid-template-columns: repeat(6, 1fr) !important; }
}
@media (max-width: 1200px) {
  .client-grid-list { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 992px) {
  .main-layout { flex-direction: column; }
  .sidebar { position: static; }
  .client-grid-list { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
  .client-grid-list { grid-template-columns: repeat(2, 1fr) !important; }
}