/*!
 * case_list.css —— 成功案例列表（砖块布局，无分页）
 * 依赖 common.css（头部、页脚、面包屑、友情链接）
 */

.cs {
  padding: 34px 0 90px;
  background: #fff;
}

/* ============================================================
   1. 砖块网格
   ============================================================ */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}

/* ============================================================
   2. 单个案例卡
   ============================================================ */
.cs-item {
  position: relative;
  display: block;
  padding: 12px 12px 0;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(24, 46, 96, .05);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.cs-item:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(47, 107, 246, .16);
  transform: translateY(-4px);
}

/* ---------- 序号角标 ---------- */
.cs-num {
  position: absolute;
  left: -2px;
  top: -2px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1;
}

/* ---------- 缩略图 ---------- */
.cs-thumb {
  display: block;
  overflow: hidden;
  background: #fff;
}

.cs-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s var(--ease);
}

.cs-item:hover .cs-thumb img {
  transform: scale(1.03);
}

/* ---------- 公司名 ---------- */
.cs-name {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 12px 4px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  color: #1a2438;
}

/* ============================================================
   3. 响应式
   ============================================================ */
@media (max-width: 1200px) {
  .cs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
}

@media (max-width: 992px) {
  .cs { padding: 26px 0 70px; }
  .cs-grid { gap: 22px 18px; }
  .cs-name { min-height: 66px; font-size: 15px; }
  .cs-num { width: 40px; height: 40px; font-size: 17px; }
}

@media (max-width: 640px) {
  .cs { padding: 20px 0 56px; }
  .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .cs-item { padding: 6px 6px 0; }
  .cs-num { left: 6px; top: 6px; width: 30px; height: 30px; font-size: 13px; }
  .cs-name { min-height: 0; padding: 9px 2px; font-size: 12.5px; line-height: 1.55; }
}

/* ============================================================
   4. 滚动加载状态
   ============================================================ */
.cs-load {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  margin-top: 40px;
  font-size: 15px;
  color: #98a2b3;
}
.cs-load.is-loading .cs-load-text::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #c9d6ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: csSpin .7s linear infinite;
}
@keyframes csSpin { to { transform: rotate(360deg); } }
.cs-empty { padding: 90px 0 110px; text-align: center; color: #98a2b3; font-size: 16px; }


/* 统一缩略图比例，避免横竖混排高度不齐 */
.cs-thumb { aspect-ratio: 460 / 613; }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; }

