/* 客户案例：案例轮播 / 合作券商与会所 */

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 880px;
  margin: 0 auto;
}

/* 客户案例 */
.cases-section { padding: 24px 0 80px; }
.case-carousel {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.case-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.case-track {
  display: flex;
  transition: transform 0.45s ease;
}
.case-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.case-thumb {
  height: 150px;
  overflow: hidden;
  background: var(--primary-50);
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-body {
  padding: 18px 20px 24px;
}
.case-tags {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.case-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.45;
}
.case-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.case-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 2;
}
.case-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.06);
}
.case-prev { margin-right: 14px; }
.case-next { margin-left: 14px; }
.case-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.case-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--primary-200);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.case-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--primary);
}

/* 合作券商与会所 */
.partners-section { padding: 80px 0; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.logo-cell {
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.logo-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.logo-cell img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}
/* 偏宽的文字型 logo：放宽显示尺寸，避免被单元格宽度压小 */
.logo-cell.logo-wide {
  padding: 4px 2px;
}
.logo-cell.logo-wide img {
  max-width: 140%;
  max-height: 124px;
}
/* 移动端末尾占位：显示 ... 表示还有更多合作伙伴 */
.logo-cell.logo-more {
  display: none;
}

@media (max-width: 980px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .case-slide { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .case-thumb { height: 130px; }
  .case-body { padding: 16px 18px 22px; }
}
@media (max-width: 768px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cell.logo-more {
    display: flex;
    color: var(--text-light);
    font-size: 22px;
    letter-spacing: 2px;
    user-select: none;
  }
  .case-slide { grid-template-columns: 1fr; }
  .case-carousel { max-width: 100%; }
  .case-arrow { width: 38px; height: 38px; font-size: 20px; }
  .case-prev { margin-right: 10px; }
  .case-next { margin-left: 10px; }
}
