/* Sprunky · 首页角色地图 */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--orange-deep);
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 212, 59, 0.65);
  z-index: -1;
}

.hero-sub {
  margin: 0 0 26px;
  max-width: 460px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-soft);
}

.hero-meta li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 900;
}

/* 舞台 */
.stage {
  position: relative;
  min-height: 430px;
  border: 4px solid var(--ink);
  border-radius: 42px;
  background: linear-gradient(180deg, #fffdf6 0%, #ffeed6 100%);
  box-shadow: 0 16px 0 rgba(46, 37, 71, 0.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px 34px;
  gap: 4px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto;
  height: 56%;
  border-radius: 30px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 159, 67, 0.14) 0 22px,
    rgba(255, 159, 67, 0.05) 22px 44px
  );
}

.stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(46, 37, 71, 0.12);
  filter: blur(2px);
}

.stage-char {
  position: relative;
  z-index: 2;
  width: 30%;
  max-width: 150px;
}

.stage-char--main {
  width: 34%;
  max-width: 172px;
  margin-bottom: 10px;
}

.float-note {
  position: absolute;
  z-index: 3;
  font-size: 26px;
  font-weight: 900;
  color: var(--purple);
  animation: float-note 4.6s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * 0.6s);
  opacity: 0.85;
}

@keyframes float-note {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-16px) rotate(8deg);
  }
}

.stage-badge {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 22px;
  padding: 9px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

/* 小镇角色网格 */
.town {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
  gap: 22px;
}

.char-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  text-align: left;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.char-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 14px 0 rgba(46, 37, 71, 0.12);
}

.char-card:active {
  transform: translateY(-1px);
}

.char-card-art {
  display: grid;
  place-items: center;
  height: 156px;
  padding: 6px 0 0;
}

.char-card-art .char-img {
  height: 132px;
  width: auto;
  max-width: 100%;
}

.char-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.char-name {
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.char-name em {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.char-subject {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #fff4e3;
  border: 2px solid rgba(46, 37, 71, 0.16);
  background: color-mix(in srgb, var(--c) 20%, #fff);
  color: color-mix(in srgb, var(--c) 62%, #2e2547);
  border-color: color-mix(in srgb, var(--c) 45%, #fff);
}

.char-quote {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-soft);
}

.char-card::after {
  content: "＋";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--c);
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.char-card:hover::after {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* 音乐模式预告 */
.promo {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 24px;
  padding: 34px 40px;
  border: 4px solid var(--ink);
  border-radius: 40px;
  background: linear-gradient(120deg, #ede4ff 0%, #fff3e0 100%);
  box-shadow: 0 14px 0 rgba(46, 37, 71, 0.12);
  overflow: hidden;
}

.promo-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
}

.promo-card p {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink-soft);
}

.promo-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.promo-art {
  width: 200px;
  justify-self: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 12px;
  }

  .stage {
    min-height: 340px;
    order: -1;
  }

  .promo-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .promo-art {
    width: 150px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .btn-xl {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .char-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .char-card {
    padding: 12px 14px 14px;
    border-radius: 22px;
  }

  .char-card-art {
    height: 112px;
  }

  .char-card-art .char-img {
    height: 96px;
    width: auto;
  }

  .char-name {
    font-size: 18px;
  }

  .char-quote {
    font-size: 12px;
  }

  .char-card-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage {
    min-height: 280px;
    padding-bottom: 22px;
  }
}
