/* ===== 客户墙 ===== */

/* 标题区 */
.cw-hero {
  padding: 80px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--white) 100%);
}

.cw-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.cw-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.cw-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* 数据统计 */
.cw-stats {
  padding: 24px 0;
  background: var(--white);
}

.cw-stats-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  flex-wrap: wrap;
}

.cw-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 64px;
  text-align: center;
}

.cw-stat-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -1px;
}

.cw-stat-number em {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
}

.cw-stat-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

.cw-stat-divider {
  width: 1px;
  height: 56px;
  background: var(--line);
  flex-shrink: 0;
}

/* 行业标签 */
.cw-industries {
  padding: 40px 0 56px;
  background: var(--bg);
}

.cw-industry-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
}

.cw-industry-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}

.cw-industry-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cw-industry-tag--more {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 600;
}

.cw-industry-tag--more:hover {
  color: var(--white);
  opacity: 0.9;
}

/* ===== 客户品牌墙：错位滚动 ===== */
.cw-logos {
  padding: 24px 0 96px;
  background: var(--white);
}

.cw-logos-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 48px;
}

/* 滚动容器：左右渐变遮罩，让 Logo 进出视口时渐隐/渐现 */
.cw-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cw-marquee-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.cw-marquee-mask--left {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.cw-marquee-mask--right {
  right: 0;
  left: auto;
  background: linear-gradient(270deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.cw-marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 单行：悬停时整行动画暂停 */
.cw-marquee-row {
  overflow: hidden;
  padding: 8px 0;
}

.cw-marquee-row:hover .cw-marquee-track {
  animation-play-state: paused;
}

/* 轨道：使用 transform: translateX 保证 60fps */
.cw-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.cw-marquee-row--1 .cw-marquee-track {
  animation: cw-marquee-ltr 40s linear infinite;
}

.cw-marquee-row--2 .cw-marquee-track {
  animation: cw-marquee-rtl 55s linear infinite;
}

.cw-marquee-row--3 .cw-marquee-track {
  animation: cw-marquee-ltr 45s linear infinite;
}

.cw-marquee-row--4 .cw-marquee-track {
  animation: cw-marquee-rtl 60s linear infinite;
}

@keyframes cw-marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes cw-marquee-rtl {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cw-marquee-row--1 .cw-marquee-track,
  .cw-marquee-row--2 .cw-marquee-track,
  .cw-marquee-row--3 .cw-marquee-track,
  .cw-marquee-row--4 .cw-marquee-track {
    animation-duration: 120s;
  }
}

.cw-marquee-track-inner {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
}

/* Logo 格子：固定宽高，居中不拉伸 */
.cw-logo-cell {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.cw-logo-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.cw-logo-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* 旧版静态网格（保留兼容） */
.cw-logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

/* 占位区（无真实 Logo 时显示） */
.cw-logo-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.cw-placeholder-icon {
  display: block;
  opacity: 0.6;
}

.cw-placeholder-text {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}

.cw-placeholder-hint {
  font-size: 13px;
  color: #bcc1ca;
}

/* 真实 Logo 卡片（上传图片后使用） */
.cw-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.cw-logo-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cw-logo-card img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s, opacity 0.2s;
}

.cw-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .cw-hero {
    padding: 56px 0 16px;
  }

  .cw-title {
    font-size: 26px;
  }

  .cw-stat-item {
    padding: 0 28px;
  }

  .cw-stat-number {
    font-size: 40px;
  }

  .cw-stat-number em {
    font-size: 22px;
  }

  .cw-stat-divider {
    height: 40px;
  }

  .cw-logos {
    padding: 16px 0 64px;
  }

  /* 移动端：4 行降级为 2 行，缩小 Logo 容器 */
  .cw-marquee-row--3,
  .cw-marquee-row--4 {
    display: none;
  }

  .cw-logo-cell {
    width: 140px;
    height: 70px;
    padding: 8px 12px;
  }

  .cw-marquee-mask {
    width: 64px;
  }
}

@media (max-width: 480px) {
  .cw-stats-list {
    flex-direction: column;
    gap: 32px;
  }

  .cw-stat-divider {
    display: none;
  }

  .cw-stat-item {
    padding: 0;
  }
}
