:root {
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --card: rgba(15, 15, 18, 0.82);
  --card-2: rgba(19, 19, 24, 0.9);
  --line: rgba(255, 0, 60, 0.22);
  --text: #f5f7fb;
  --muted: #9ea4b5;
  --red: #ff003c;
  --cyan: #63f3ff;
  --amber: #ffb347;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(99, 243, 255, 0.12), transparent 18%),
    radial-gradient(circle at 15% 10%, rgba(255, 0, 60, 0.16), transparent 24%),
    linear-gradient(180deg, #050505 0%, #0b0b0d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.08;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
  background-size: 26px 26px, 32px 32px;
  opacity: 0.08;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  position: relative;
  z-index: 1;
}

.hero,
.about,
.quiz,
.result,
.site-footer {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  min-height: 72vh;
  border-radius: 32px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.eyebrow,
.question-index,
.progress-label,
.result-code-label,
.panel-item span {
  margin: 0;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  position: relative;
  padding: 2px 10px 2px 0;
  transition:
    transform 180ms ease,
    text-shadow 180ms ease,
    color 180ms ease,
    letter-spacing 180ms ease,
    filter 180ms ease;
}

.eyebrow-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 0, 60, 0), rgba(255, 0, 60, 0.9), rgba(99, 243, 255, 0.9));
  transform: scaleX(0.32);
  transform-origin: left center;
  opacity: 0.55;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.eyebrow-link::after {
  content: "";
  position: absolute;
  inset: -2px -6px;
  border: 1px solid rgba(255, 0, 60, 0);
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(255, 0, 60, 0);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.eyebrow-link:hover {
  color: #ffe7ee;
  letter-spacing: 0.22em;
  text-shadow:
    0 0 10px rgba(255, 0, 60, 0.55),
    0 0 18px rgba(99, 243, 255, 0.22);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.eyebrow-link:hover::before {
  transform: scaleX(1);
  opacity: 1;
  box-shadow:
    0 0 8px rgba(255, 0, 60, 0.6),
    0 0 14px rgba(99, 243, 255, 0.28);
}

.eyebrow-link:hover::after {
  border-color: rgba(255, 0, 60, 0.32);
  background: linear-gradient(90deg, rgba(255, 0, 60, 0.08), rgba(99, 243, 255, 0.05));
  box-shadow:
    inset 0 0 18px rgba(255, 0, 60, 0.08),
    0 0 18px rgba(255, 0, 60, 0.12);
}

.eyebrow-link:active {
  transform: translateY(0);
}

.hero h1,
.section-heading h2,
.result-hero-card h3,
#questionTitle {
  margin: 0;
  font-family: "Orbitron", "Noto Sans SC", sans-serif;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-text,
.about p,
#resultSummary,
.site-footer p,
.site-footer span {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.hero-actions,
.quiz-actions,
.result-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(90deg, #ff003c, #ff4d6d);
  box-shadow: 0 18px 40px rgba(255, 0, 60, 0.3);
}

.button.ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.hero-panel {
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(255, 0, 60, 0.12), rgba(99, 243, 255, 0.08)),
    var(--card-2);
}

.panel-item + .panel-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.about,
.quiz,
.result {
  margin-top: 24px;
  border-radius: 28px;
  padding: 32px;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.section-heading.compact h2 {
  font-size: 1.5rem;
}

.about-note {
  color: var(--amber);
}

.quiz-topbar {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transition: width 220ms ease;
}

.quiz-card,
.result-hero-card,
.result-copy-card,
.dimension-card,
.tips-card,
.poster-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--card-2);
}

.quiz-card {
  margin-top: 18px;
  padding: 28px;
}

#questionTitle {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3;
  margin-top: 8px;
}

.answers {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.answer-option {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.answer-option:hover,
.answer-option.active {
  transform: translateY(-1px);
  border-color: rgba(255, 0, 60, 0.5);
  box-shadow: 0 18px 42px rgba(255, 0, 60, 0.15);
}

.answer-option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: var(--cyan);
}

.answer-option span {
  color: var(--muted);
  line-height: 1.7;
}

.quiz-actions {
  margin-top: 24px;
  justify-content: space-between;
}

.result.hidden {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-top: 24px;
}

.result-hero-card,
.result-copy-card,
.dimension-card,
.tips-card,
.poster-card {
  padding: 24px;
}

.result-hero-card {
  background:
    radial-gradient(circle at top right, rgba(99, 243, 255, 0.15), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255, 0, 60, 0.16), transparent 32%),
    var(--card-2);
}

.result-hero-card h3 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.08em;
}

.result-name {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 700;
}

.match-text {
  margin: 18px 0 0;
  color: var(--muted);
}

.match-text span {
  color: var(--cyan);
  font-weight: 800;
}

.result-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.85;
}

.dimension-card,
.poster-card,
.tips-card {
  margin-top: 20px;
}

.dimensions {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.dimension-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dimension-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.dimension-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.dimension-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dimension-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--cyan));
}

.poster-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 18px;
  align-items: center;
}

.poster-visual {
  min-height: 420px;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(99, 243, 255, 0.18), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(255, 0, 60, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(13, 14, 18, 0.96), rgba(19, 20, 28, 0.98));
  padding: 16px;
  display: grid;
  place-items: center;
}

.poster-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(103, 244, 255, 0.4) 0%, rgba(103, 244, 255, 0.12) 34%, rgba(255, 0, 60, 0.08) 58%, transparent 72%);
  filter: blur(10px);
  opacity: 0.9;
}

.poster-core {
  position: relative;
  z-index: 2;
  width: min(280px, 82%);
  min-height: 330px;
  border-radius: 32px;
  padding: 28px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 245, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.poster-avatar-orb {
  display: block;
  width: min(170px, 76%);
  margin-top: 18px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.16));
}

.poster-code,
.poster-title {
  margin: 0;
}

.poster-code {
  font-family: "Orbitron", sans-serif;
  color: var(--cyan);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.12em;
  text-shadow: 0 0 22px rgba(103, 244, 255, 0.28);
}

.poster-title {
  margin-top: 10px;
  color: #1d2428;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
}

.poster-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.poster-tag.top-left { top: 20px; left: 18px; }
.poster-tag.top-right { top: 20px; right: 18px; }
.poster-tag.bottom-left { bottom: 20px; left: 18px; }
.poster-tag.bottom-right { bottom: 20px; right: 18px; }

.poster-frame {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 26px 18px 18px;
  text-align: center;
}

.poster-heading,
.poster-cn,
.poster-en,
.poster-line,
.poster-meta-title,
.poster-badge,
.poster-meta-card h3 {
  margin: 0;
}

.poster-heading {
  color: #5f655f;
  font-size: 1.6rem;
  font-weight: 800;
}

.poster-cn {
  margin-top: 14px;
  color: #2a2a2a;
  font-size: 2.4rem;
  font-weight: 900;
}

.poster-en {
  margin-top: 2px;
  color: #4e9e44;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.poster-avatar {
  display: block;
  width: min(240px, 80%);
  margin: 12px auto 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.14));
}

.poster-line {
  margin-top: 10px;
  color: #68706a;
  font-size: 0.98rem;
}

.poster-copy p {
  color: var(--muted);
  line-height: 1.85;
  margin: 16px 0 0;
}

.poster-meta-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f8f8 0%, #eef0ee 100%);
  color: #202223;
}

.poster-meta-title {
  color: #70776f;
  font-size: 0.92rem;
  font-weight: 700;
}

.poster-meta-card h3 {
  margin-top: 8px;
  color: #252525;
  font-size: 2rem;
  line-height: 1.2;
}

.poster-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(78, 158, 68, 0.12);
  color: #4e9e44;
  font-size: 0.92rem;
  font-weight: 700;
}

.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.poster-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 24px;
  border-radius: 24px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .hero,
  .result-grid,
  .poster-grid,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
  }

  .hero,
  .about,
  .quiz,
  .result,
  .site-footer {
    padding: 22px;
  }

  .quiz-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

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

  .poster-tag {
    position: static;
  }

  .poster-visual {
    gap: 12px;
    padding: 18px;
  }
}
