/* ============================================================
   红色征程 · 人物页样式 heroes.css
   ============================================================ */

/* ---------- 筛选条 ---------- */
.hero-filter-wrap { padding: 34px 0 0; }
.hero-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hf-btn {
  padding: 9px 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 2px;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.hf-btn:hover { border-color: var(--gold); color: var(--red); }
.hf-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: #fff;
}

/* ---------- 卡片网格 ---------- */
.hero-section { padding-top: 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .35s, box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transition: transform .4s;
}
.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.hero-card:hover::before { transform: scaleX(1); }
.hero-card.filtered { display: none; }

.hc-avatar {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 38px;
  line-height: 84px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(154, 0, 8, .35);
  border: 3px solid var(--gold-light);
}
.hc-name {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--red-dark);
  letter-spacing: 4px;
  margin-bottom: 2px;
}
.hc-life {
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 1px;
}
.hc-honor {
  display: inline-block;
  margin: 10px 0 12px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--red);
  background: rgba(199, 0, 11, .08);
  border: 1px solid rgba(199, 0, 11, .2);
  padding: 3px 14px;
  border-radius: 999px;
}
.hc-brief {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
}
.hc-more {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ---------- 致敬横幅 ---------- */
.tribute-band {
  padding: 52px 0;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(109, 0, 5, .93), rgba(154, 0, 8, .86)),
    url("../images/gallery/star.jpg") center/cover no-repeat fixed;
}
.tribute-band blockquote {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 3px;
  line-height: 2;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.tribute-band p {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  letter-spacing: 2px;
}

/* ---------- 详情模态框 ---------- */
.hero-detail {
  position: relative;
  width: min(640px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 38px 40px 34px;
  box-shadow: var(--shadow-lg);
  animation: popIn .35s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hd-close {
  position: absolute;
  right: 16px; top: 10px;
  width: 38px; height: 38px;
  font-size: 30px;
  color: var(--ink-light);
  line-height: 38px;
  border-radius: 50%;
  transition: all .25s;
}
.hd-close:hover { color: var(--red); transform: rotate(90deg); }

.hd-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.hd-avatar {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 92px;
  text-align: center;
  border: 3px solid var(--gold-light);
  box-shadow: 0 6px 18px rgba(154, 0, 8, .3);
}
.hd-title h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--red-dark);
  letter-spacing: 5px;
}
.hd-title p {
  font-size: 13px;
  color: var(--ink-light);
  letter-spacing: 1px;
}
.hd-honor {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 2px;
  border: 1px solid rgba(199, 0, 11, .3);
  background: rgba(199, 0, 11, .07);
  border-radius: 999px;
  padding: 3px 16px;
}
.hd-body {
  padding: 18px 4px 6px;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}
.hd-quote {
  margin-top: 14px;
  padding: 14px 20px;
  border-left: 4px solid var(--gold);
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--red-dark);
  letter-spacing: 1.5px;
}
.hd-quote::before { content: "❝ "; color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) { .hero-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .hero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .hero-grid { grid-template-columns: 1fr; }
  .hd-head { flex-direction: column; text-align: center; }
  .hero-detail { padding: 30px 22px 26px; }
}
