
/* ========== 角色列表区域 ========== */
.character-list {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.section-title {
  text-align: left;
  font-size: 2rem;
  color: #2c2344;
  margin-bottom: 32px;
}

.section-subtitle {
  display: none;
}

/* 网格布局：一行5个 */
.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* 角色详情卡片 */
.char-card-detail {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-width: 160px;      /* 关键：绝对最小宽度，防止塌陷成棍子 */
  width: 100%
}

.char-card-detail:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 角色图片 */
.char-card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  min-width: 160px;      /* 与卡片保持一致 */
  flex-shrink: 0;
}

/* 卡片内容区：只保留名字 */
.char-card-body {
  padding: 12px 8px;
  text-align: center;
}

.char-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d2a3a;
  margin: 0;
}

.char-card-role,
.char-card-desc,
.char-card-tags {
  display: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
  .char-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .char-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  
}

@media (max-width: 640px) {
  .char-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .char-card-img {
    height: 140px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
