:root {
  --bg-0: #061120;
  --bg-1: #0c1f37;
  --line: #2bc5ff;
  --line-soft: rgba(43, 197, 255, 0.35);
  --panel: rgba(8, 20, 38, 0.78);
  --panel-2: rgba(10, 27, 51, 0.82);
  --text: #e7f4ff;
  --muted: #9fc3d8;
  --accent: #32d2ff;
  --accent-2: #93ffe2;
  --warn: #ffb347;
  --danger: #ff7171;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(21, 132, 194, 0.18), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(136, 62, 180, 0.2), transparent 28%),
    linear-gradient(145deg, #040b16, var(--bg-0) 42%, var(--bg-1));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(114, 177, 215, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 177, 215, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

.topbar {
  width: min(1280px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(4, 17, 35, 0.75);
  backdrop-filter: blur(8px);
}

.site-footer {
  width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 1.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(180, 200, 230, 0.65);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(4, 17, 35, 0.45);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(110, 248, 255, 0.6);
}

.badge {
  font-size: 0.84rem;
  color: var(--muted);
}

.app-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
}

.screen {
  display: none;
  animation: panelIn 420ms ease;
}

.screen.active {
  display: block;
}

.hero-panel,
.quiz-panel,
.result-panel {
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
  padding: 1.4rem;
}

.hero-copy {
  padding: 0.5rem;
}

.eyebrow {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.82rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  margin-top: 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.7rem);
  line-height: 1.15;
}

.lead {
  margin-top: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.intro-hook {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #a8c9dc;
  line-height: 1.6;
}

.highlights {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: #c8e7f8;
  line-height: 1.9;
}

.hero-actions {
  margin-top: 1.3rem;
}

.note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #88aec7;
}

.hero-art-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 220, 255, 0.4);
  background: #03182d;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  position: relative;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.1) contrast(1.05);
}

.hero-art-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(1, 10, 20, 0.35), transparent 48%);
}

.quiz-panel,
.result-panel {
  padding: 1.25rem;
}

.quiz-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-text {
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(120, 169, 202, 0.28);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #32d2ff, #82ffc7);
  transition: width 220ms ease;
}

.question-card {
  margin-top: 1rem;
  border: 1px solid rgba(100, 179, 230, 0.34);
  border-radius: 18px;
  padding: 1.15rem;
  background: rgba(3, 14, 30, 0.55);
}

.axis-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(112, 201, 255, 0.5);
  color: #b2ecff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  padding: 0.24rem 0.54rem;
  border-radius: 999px;
}

.question-title {
  margin-top: 0.85rem;
  line-height: 1.5;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.option-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.option {
  width: 100%;
  border: 1px solid rgba(132, 178, 210, 0.5);
  color: #d9f0ff;
  background: linear-gradient(145deg, rgba(8, 24, 45, 0.9), rgba(10, 34, 61, 0.82));
  border-radius: 13px;
  text-align: left;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-size: 0.96rem;
  line-height: 1.55;
}

.option:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.option.selected {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(143, 255, 226, 0.45), 0 8px 24px rgba(80, 188, 255, 0.25);
}

.quiz-bottom,
.result-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  color: #03101d;
  background: linear-gradient(135deg, #32d2ff, #93ffe2);
}

.btn-secondary {
  color: var(--text);
  background: rgba(108, 155, 189, 0.24);
  border: 1px solid rgba(125, 188, 225, 0.45);
}

.result-head h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  margin-top: 0.3rem;
  color: var(--accent-2);
}

#typeName {
  margin-top: 0.2rem;
  font-size: 1.4rem;
}

.type-title {
  margin-top: 0.15rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.8;
}

.type-role {
  margin-top: 0.3rem;
  color: var(--muted);
}

.result-portrait-wrap {
  margin-top: 0.9rem;
  border: 1px solid rgba(137, 210, 255, 0.45);
  border-radius: 16px;
  overflow: hidden;
  max-width: 520px;
  background: rgba(5, 18, 35, 0.75);
}

.result-portrait {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* 无 src 或空 src 时，隐藏 <img>，只显示骨架占位（避免误当作"默认占位角色图"） */
.result-portrait:not([src]),
.result-portrait[src=""] {
  display: none;
}

/* 骨架占位：真正有图时自动隐藏（靠 CSS 兄弟选择器：img 在前 skeleton 在后） */
.result-portrait-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(138, 210, 255, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(10, 22, 40, 0.9), rgba(4, 12, 22, 0.95));
  color: rgba(180, 215, 245, 0.65);
  letter-spacing: 0.08em;
  text-align: center;
  border-radius: 14px;
}
.result-portrait[src]:not([src=""]) ~ .result-portrait-skeleton {
  display: none;
}
.result-portrait-skeleton__kicker {
  font-family: "Orbitron", "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  color: rgba(150, 200, 235, 0.55);
}
.result-portrait-skeleton__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(200, 225, 250, 0.78);
}
.result-portrait-skeleton__dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 0.15rem;
}
.result-portrait-skeleton__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 200, 255, 0.55);
  animation: result-portrait-dot 1.3s ease-in-out infinite;
}
.result-portrait-skeleton__dots i:nth-child(2) { animation-delay: 0.18s; }
.result-portrait-skeleton__dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes result-portrait-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.type-summary {
  margin-top: 0.95rem;
  color: #d6ebfa;
  line-height: 1.85;
}

.axis-bars {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.axis-item {
  border: 1px solid rgba(123, 188, 225, 0.35);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  background: rgba(9, 23, 42, 0.7);
}

.axis-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: #d0ebff;
}

.axis-bar {
  margin-top: 0.44rem;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(115, 165, 197, 0.3);
}

.axis-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #24c7ff, #8dffbc);
}

.result-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-grid h4,
.mission-box h4 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
  color: #9cecff;
}

.result-grid ul {
  margin: 0.62rem 0 0;
  padding-left: 1rem;
  line-height: 1.9;
  color: #cae7f8;
}

.mission-box {
  margin-top: 1rem;
  border: 1px solid rgba(140, 197, 228, 0.45);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: rgba(4, 17, 34, 0.7);
}

.mission-box p {
  margin: 0.52rem 0 0;
  line-height: 1.8;
  color: #d4efff;
}

.motto {
  color: var(--warn) !important;
  font-weight: 700;
}

.hero-video-wrap {
  margin-top: 1.2rem;
  border: 1px solid rgba(43, 197, 255, 0.25);
  border-radius: 14px;
  padding: 0.65rem 0.75rem 0.75rem;
  background: linear-gradient(145deg, rgba(6, 22, 42, 0.8), rgba(12, 31, 55, 0.7));
  max-width: 520px;
}

.hero-video-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.55rem;
  text-align: left;
}

/* 竖屏 9:16，与手游内录一致；与上方人物图同左对齐 */
.hero-video-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #050a12;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.backstory-box {
  margin-top: 1rem;
  border: 1px solid rgba(43, 197, 255, 0.3);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: linear-gradient(145deg, rgba(6, 22, 42, 0.8), rgba(12, 31, 55, 0.7));
}

.backstory-box > h4 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.backstory-box > p {
  margin: 0.6rem 0 0;
  line-height: 1.85;
  color: #d0e8f8;
}

.legion-role-wrap {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(43, 197, 255, 0.18);
}

.legion-role-wrap h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #9cecff;
}

.legion-role-tag {
  margin: 0.4rem 0 0;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(147, 255, 226, 0.4);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--accent-2);
  background: rgba(147, 255, 226, 0.08);
  letter-spacing: 0.02em;
}

.share-hint {
  margin-top: 1rem;
  text-align: center;
}

.share-hint p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent);
  opacity: 0.7;
  letter-spacing: 0.02em;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-art-wrap {
    min-height: 260px;
    order: -1;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
  }

  .badge {
    display: none;
  }

  .app-shell {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .hero-panel,
  .quiz-panel,
  .result-panel {
    border-radius: 16px;
    padding: 0.88rem;
  }

  .result-head {
    text-align: center;
  }

  .result-portrait-wrap {
    max-width: 100%;
  }

  .quiz-bottom,
  .result-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .option {
    padding: 0.85rem 0.9rem;
    font-size: 0.92rem;
    min-height: 48px;
  }

  .backstory-box {
    padding: 0.75rem 0.8rem;
  }

  .legion-role-tag {
    font-size: 0.78rem;
  }

  .axis-meta {
    flex-direction: column;
    gap: 0.15rem;
  }

  h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 0.55rem 0.6rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .hero-panel,
  .quiz-panel,
  .result-panel {
    padding: 0.7rem;
  }

  .result-head h2 {
    font-size: 1.8rem;
  }
}

/* ── Cross-Promo: DC Life Sim CTA Card ─────────────────────────── */
.cross-promo {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(140% 140% at 0% 0%, rgba(124, 77, 255, 0.36), transparent 55%),
    radial-gradient(140% 140% at 100% 100%, rgba(50, 210, 255, 0.26), transparent 50%),
    linear-gradient(135deg, #0a142a 0%, #0c1f37 55%, #101a2e 100%);
  box-shadow:
    0 12px 38px rgba(124, 77, 255, 0.32),
    0 2px 10px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform-origin: center;
  animation:
    promo-entrance 0.95s cubic-bezier(.2, .9, .3, 1.4) 0.35s both,
    promo-breath 3.4s ease-in-out 1.4s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cross-promo-aura {
  position: absolute;
  inset: -45%;
  z-index: -2;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(244, 194, 74, 0.26) 0%,
    rgba(124, 77, 255, 0.2) 30%,
    transparent 62%
  );
  filter: blur(28px);
  animation: promo-aura 5.2s ease-in-out infinite;
  pointer-events: none;
}

.cross-promo-border {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(244, 194, 74, 0.0) 0deg,
    rgba(244, 194, 74, 0.95) 35deg,
    rgba(50, 210, 255, 0.95) 120deg,
    rgba(124, 77, 255, 0.95) 220deg,
    rgba(147, 255, 226, 0.95) 300deg,
    rgba(244, 194, 74, 0.0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: promo-border-spin 6s linear infinite;
  opacity: 0.9;
  pointer-events: none;
}

.cross-promo:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 20px 52px rgba(124, 77, 255, 0.5),
    0 4px 18px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.cross-promo:active {
  transform: translateY(-1px) scale(1);
}

.cross-promo-icon {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 194, 74, 0.2), rgba(124, 77, 255, 0.26));
  box-shadow: inset 0 0 0 1px rgba(244, 194, 74, 0.42);
}
.cross-promo-icon-glow {
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(244, 194, 74, 0.55) 0%, transparent 70%);
  filter: blur(10px);
  animation: promo-icon-glow 2.4s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.cross-promo-icon-emoji {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  transform-origin: 50% 80%;
  animation: promo-icon-wobble 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(244, 194, 74, 0.6));
}

.cross-promo-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cross-promo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cross-promo-title {
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ffd66a 0%, #93ffe2 50%, #7db8ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: promo-title-flow 4.5s linear infinite;
}
.cross-promo-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: "Orbitron", monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #08101f;
  background: linear-gradient(135deg, #ffd66a, #f4c24a);
  box-shadow: 0 2px 12px rgba(244, 194, 74, 0.6);
  animation: promo-badge-pulse 1.8s ease-in-out infinite;
}
.cross-promo-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(231, 244, 255, 0.88);
}
.cross-promo-text strong {
  color: #ffd66a;
  font-weight: 700;
}

.cross-promo-cta {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #08101f;
  background: linear-gradient(135deg, #ffd66a 0%, #f4c24a 100%);
  box-shadow:
    0 6px 18px rgba(244, 194, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cross-promo-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: promo-cta-shimmer 2.8s ease-in-out 1.5s infinite;
  pointer-events: none;
}
.cross-promo:hover .cross-promo-cta {
  transform: scale(1.06);
  box-shadow:
    0 10px 26px rgba(244, 194, 74, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.cross-promo-arrow {
  font-size: 1rem;
  font-weight: 900;
  display: inline-block;
  animation: promo-arrow-fly 1.4s ease-in-out infinite;
}
.cross-promo:hover .cross-promo-arrow {
  animation: none;
  transform: translateX(5px);
  transition: transform 0.2s ease;
}

/* Keyframes ───────────────────────── */
@keyframes promo-entrance {
  0%   { opacity: 0; transform: translateY(20px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes promo-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}
@keyframes promo-aura {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}
@keyframes promo-border-spin {
  to { transform: rotate(360deg); }
}
@keyframes promo-icon-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}
@keyframes promo-icon-wobble {
  0%, 70%, 100% { transform: rotate(0deg); }
  78%  { transform: rotate(-14deg); }
  85%  { transform: rotate(12deg); }
  92%  { transform: rotate(-6deg); }
}
@keyframes promo-title-flow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes promo-badge-pulse {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.09); filter: brightness(1.18); }
}
@keyframes promo-cta-shimmer {
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes promo-arrow-fly {
  0%, 100% { transform: translateX(0);  opacity: 1; }
  50%      { transform: translateX(6px); opacity: 0.55; }
}

/* 移动端重排：图标+标题/文案一行，CTA 单独一行满宽 */
@media (max-width: 560px) {
  .cross-promo {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "cta  cta";
    padding: 14px;
    gap: 10px 12px;
    border-radius: 16px;
  }
  .cross-promo-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 12px; }
  .cross-promo-icon-emoji { font-size: 24px; }
  .cross-promo-body { grid-area: body; }
  .cross-promo-cta {
    grid-area: cta;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    font-size: 0.82rem;
  }
  .cross-promo-title { font-size: 0.98rem; }
  .cross-promo-text  { font-size: 0.78rem; }
}

/* 尊重用户系统"减弱动效"设置 */
@media (prefers-reduced-motion: reduce) {
  .cross-promo,
  .cross-promo-aura,
  .cross-promo-border,
  .cross-promo-icon-glow,
  .cross-promo-icon-emoji,
  .cross-promo-title,
  .cross-promo-badge,
  .cross-promo-cta::after,
  .cross-promo-arrow {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   首页 Hero 图片 & 结果页角色图 — 手机端适配
   问题：原 min-height:260px 在手机上挤掉正文和"开始测试"按钮；
         2.1MB 的 JPG 图在移动网络下加载慢，需要压缩。
   ══════════════════════════════════════════════════════════════════ */

/* 中等屏幕（平板竖屏 / 折叠屏外屏）：降低图高度 */
@media (max-width: 720px) {
  .hero-art-wrap {
    min-height: 200px;
    max-height: 38vh;
    aspect-ratio: 16 / 10;
  }
  .hero-art {
    object-position: center 28%;
    transform: scale(1);
  }
}

/* 手机竖屏：文案优先，图片压缩到合理空间 */
@media (max-width: 560px) {
  .hero-panel {
    gap: 1rem;
  }
  .hero-art-wrap {
    order: 0;
    min-height: 160px;
    max-height: 30vh;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }
  .hero-art {
    object-position: center 30%;
  }

  /* 结果页角色大图同步收缩 */
  .result-portrait-wrap {
    aspect-ratio: 16 / 11;
    max-height: 42vh;
    margin-top: 0.6rem;
  }
  .result-portrait {
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 32%;
  }
}

/* 超窄屏（≤380px）：再压一次 */
@media (max-width: 380px) {
  .hero-art-wrap {
    min-height: 140px;
    max-height: 26vh;
  }
  .result-portrait-wrap {
    max-height: 36vh;
  }
}

/* 横屏手机（宽 > 高）：图片进一步压扁，避免占满整屏 */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-art-wrap {
    min-height: 140px;
    max-height: 45vh;
    aspect-ratio: 21 / 9;
  }
}
