/* ===== 声优列表 ===== */
.cast-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* 单个卡片：左边声优 + 中间分隔 + 右边角色 */
.cast-card {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cast-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 左右两侧通用 */
.cast-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px 20px;
  min-width: 0;
}

/* 图片容器 */
.cast-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 3px solid #fdf5ec;
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.cast-card:hover .cast-img-wrap {
  transform: scale(1.04);
  border-color: #f6821f;
}

.cast-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 图片加载失败 */
.cast-img-wrap img.img-error {
  opacity: 0.4;
}

/* 声优侧背景色 */
.cast-cv .cast-img-wrap {
  border-color: #fce4d6;
}

/* 角色侧背景色 */
.cast-char .cast-img-wrap {
  border-color: #e0f0ff;
}

/* 标签 CV / 角色 */
.cast-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #999;
  margin-top: 12px;
  text-transform: uppercase;
  font-family: 'ZC0005', system-ui, sans-serif;
}

/* 名字 */
.cast-name {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  text-align: center;
  letter-spacing: 0.04em;
  font-family: 'ZC0005', system-ui, sans-serif;
  line-height: 1.4;
  word-break: break-word;
}

.cast-cv .cast-name {
  color: #b8531b;
}

.cast-char .cast-name {
  color: #1e6091;
}

/* 中间分隔线 */
.cast-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.08), transparent);
  align-self: stretch;
  margin: 20px 0;
  flex-shrink: 0;
}

/* ===== 资料来源 ===== */
.data-source {
  text-align: center;
  padding: 20px 16px;
  margin-top: 10px;
  border-top: 1px dashed #e0e0e0;
}

.data-source p {
  color: #888;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-family: 'ZC0005', system-ui, sans-serif;
}

.data-source a {
  color: #f6821f;
  text-decoration: none;
  border-bottom: 1px dashed #f6821f;
  transition: opacity 0.2s ease;
}

.data-source a:hover {
  opacity: 0.75;
}

/* ===== 移动端适配 ===== */
@media (max-width: 600px) {
  .cast-card {
    flex-direction: column;
    align-items: center;
  }

  .cast-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 0;
    align-self: center;
  }

  .cast-side {
    width: 100%;
    padding: 16px 12px;
  }

  .cast-img-wrap {
    width: 120px;
    height: 120px;
  }

  .cast-name {
    font-size: 0.95rem;
  }

  .data-source p {
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .cast-img-wrap {
    width: 100px;
    height: 100px;
  }

  .cast-name {
    font-size: 0.88rem;
  }
}