:root {
  --bg: #eef1ff;
  --bg-deep: #dce3ff;
  --panel: rgba(249, 247, 255, 0.84);
  --panel-strong: rgba(247, 245, 255, 0.96);
  --line: rgba(92, 110, 190, 0.2);
  --ink: #222f5c;
  --ink-soft: #59689a;
  --accent: #e590b8;
  --accent-soft: #f8d8e9;
  --sage: #9fb2ff;
  --sage-deep: #4f64c8;
  --gold: #c58ce2;
  --shadow: 0 20px 60px rgba(53, 67, 136, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Iowan Old Style", "Georgia", "Songti SC", "STSong", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 34%),
    radial-gradient(circle at bottom right, rgba(235, 162, 206, 0.24), transparent 26%),
    linear-gradient(135deg, var(--bg) 0%, #f0f2ff 38%, var(--bg-deep) 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-aura {
  position: fixed;
  inset: auto;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.46;
  pointer-events: none;
}

.page-aura-left {
  top: -10rem;
  left: -14rem;
  background: rgba(239, 163, 205, 0.34);
}

.page-aura-right {
  right: -12rem;
  bottom: -18rem;
  background: rgba(161, 181, 255, 0.34);
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 22px auto 40px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 36px;
  background: rgba(248, 246, 255, 0.56);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar,
.hero-panel,
.hud-panel,
.side-panel > .info-card,
.stage-panel,
.screen,
.blindbox-card,
.response-card,
.micro-action-card,
.signature-card,
.result-showcase,
.result-footnote,
.support-card {
  border: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 22px 22px;
  border-radius: 28px;
  background: rgba(248, 246, 255, 0.76);
}

.eyebrow,
.step-kicker,
.hero-tag,
.info-label,
.result-label,
.micro-label {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--sage-deep);
}

.topbar h1 {
  margin: 8px 0 6px;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 0.95;
}

.subheading {
  margin: 0;
  color: var(--ink-soft);
}

.topbar-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: white;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.92rem;
}

.meta-pill-soft {
  background: rgba(79, 101, 200, 0.14);
  color: var(--sage-deep);
}

.hero-panel {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(248, 246, 255, 0.86), rgba(239, 244, 255, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 14px, transparent 14px, transparent 28px);
  overflow: hidden;
}

.hero-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-orb {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.orb-core,
.orb-ring {
  position: absolute;
  border-radius: 999px;
}

.orb-core {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(237, 156, 205, 0.82) 55%, rgba(161, 181, 255, 0.78));
  animation: drift 8s ease-in-out infinite;
}

.orb-ring {
  border: 1px solid rgba(79, 101, 200, 0.22);
}

.orb-ring-one {
  width: 230px;
  height: 230px;
  animation: pulse 4.5s ease-in-out infinite;
}

.orb-ring-two {
  width: 290px;
  height: 290px;
  animation: pulse 5.6s ease-in-out infinite reverse;
}

.orb-card {
  position: relative;
  z-index: 1;
  width: 190px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(249, 247, 255, 0.84);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 6px;
  box-shadow: 0 14px 32px rgba(63, 76, 142, 0.2);
}

.orb-card span,
.orb-card em {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  color: var(--ink-soft);
}

.orb-card strong {
  font-size: 1.35rem;
}

.hud-panel {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(248, 246, 255, 0.78);
}

.progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(79, 101, 200, 0.16);
  transform: translateY(-50%);
}

.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--accent), var(--sage-deep));
  transition: width 320ms ease;
}

.progress-step {
  position: relative;
  z-index: 1;
  justify-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 255, 0.9);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.progress-step.is-active,
.progress-step.is-passed {
  background: var(--sage-deep);
  color: white;
  transform: translateY(-2px);
}

.experience-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.side-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.info-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(250, 248, 255, 0.84);
}

.info-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.info-card li + li {
  margin-top: 8px;
}

.info-card-warm {
  background: linear-gradient(135deg, rgba(251, 236, 246, 0.92), rgba(244, 241, 255, 0.9));
}

.stage-panel {
  min-height: 680px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(248, 247, 255, 0.9);
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 640px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(249, 247, 255, 0.9), rgba(239, 244, 255, 0.82));
  animation: rise 260ms ease;
}

.screen.is-active {
  display: block;
}

.card-head h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.card-head p:last-child {
  color: var(--ink-soft);
  max-width: 62ch;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.notice-grid article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(79, 101, 200, 0.12);
}

.notice-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(229, 145, 184, 0.18);
  color: var(--accent);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-weight: 700;
}

.notice-grid h4 {
  margin: 0 0 8px;
}

.notice-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.emotion-grid,
.tag-grid,
.prompt-list,
.blindbox-grid {
  display: grid;
  gap: 12px;
}

.emotion-grid {
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.emotion-chip,
.tag-chip,
.prompt-chip,
.blindbox-card,
.mini-button,
.button {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.emotion-chip,
.tag-chip,
.prompt-chip {
  border: 1px solid rgba(79, 101, 200, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.emotion-chip {
  min-height: 88px;
  padding: 14px;
  border-radius: 22px;
  font-size: 1.05rem;
}

.emotion-chip.is-selected,
.tag-chip.is-selected,
.prompt-chip.is-selected,
.emotion-chip:hover,
.tag-chip:hover,
.prompt-chip:hover,
.blindbox-card:hover,
.button:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

.emotion-chip.is-selected,
.tag-chip.is-selected {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(229, 145, 184, 0.2), rgba(79, 101, 200, 0.18));
  box-shadow: 0 14px 30px rgba(66, 81, 156, 0.18);
}

.intensity-panel,
.field-block,
.response-card,
.micro-action-card,
.support-card,
.signature-card,
.result-footnote {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.field-label,
.field-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.95rem;
}

.field-help {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.intensity-control {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sage-deep);
}

#intensity-label {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  color: var(--sage-deep);
}

.tag-grid {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tag-chip,
.prompt-chip {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 18px;
}

#note-input {
  width: 100%;
  min-height: 146px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(79, 101, 200, 0.2);
  background: rgba(250, 248, 255, 0.96);
  color: var(--ink);
  resize: vertical;
}

#note-input:focus {
  outline: 2px solid rgba(79, 101, 200, 0.22);
  border-color: var(--sage-deep);
}

.prompt-list {
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.button-row-between {
  justify-content: space-between;
}

.button,
.mini-button {
  border: none;
  border-radius: 999px;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}

.button {
  min-height: 48px;
  padding: 0 22px;
}

.button-primary {
  background: linear-gradient(135deg, #4f64c8, #e590b8);
  color: white;
  box-shadow: 0 14px 30px rgba(86, 103, 194, 0.26);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.button-soft {
  background: rgba(79, 101, 200, 0.14);
  color: var(--sage-deep);
}

.button:disabled,
.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.loading-panel {
  margin-top: 34px;
  min-height: 290px;
  display: grid;
  place-items: center;
  gap: 12px;
}

.typing-orb {
  display: inline-flex;
  gap: 10px;
  padding: 18px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(79, 101, 200, 0.2);
}

.typing-orb span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  animation: blink 1.15s infinite ease-in-out;
}

.typing-orb span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-orb span:nth-child(3) {
  animation-delay: 0.3s;
}

#loading-copy {
  margin: 0;
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

.response-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.response-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(79, 101, 200, 0.14);
  color: var(--sage-deep);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
}

.response-card h4,
.micro-action-card h4,
.support-card h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.response-card p,
.support-card p,
.result-copy p {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

.result-support {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(79, 101, 200, 0.18);
  background: linear-gradient(145deg, rgba(250, 247, 255, 0.96), rgba(239, 244, 255, 0.94));
}

.result-support h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--sage-deep);
}

.support-meta {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.support-meta li + li {
  margin-top: 4px;
}

.support-meta a {
  color: #4b5fc6;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.support-subtitle {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  color: var(--sage-deep);
}

.support-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(79, 101, 200, 0.2);
  background: rgba(255, 255, 255, 0.86);
}

.support-duty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--ink);
}

.support-duty-table th,
.support-duty-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(79, 101, 200, 0.14);
  text-align: left;
  vertical-align: top;
}

.support-duty-table th {
  background: linear-gradient(135deg, rgba(79, 101, 200, 0.14), rgba(229, 145, 184, 0.14));
  color: #324495;
  font-weight: 700;
  white-space: nowrap;
}

.support-duty-table tbody tr:nth-child(even) {
  background: rgba(244, 247, 255, 0.6);
}

.support-duty-table tbody tr.duty-row-xizheng {
  background: rgba(244, 247, 255, 0.6);
}

.support-duty-table tbody tr:last-child td {
  border-bottom: none;
}

.support-duty-table td:nth-child(3) {
  word-break: break-all;
}

.micro-action-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.micro-action-card ol,
.support-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.signature-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(79, 101, 200, 0.14), rgba(229, 145, 184, 0.14));
}

.signature-card span {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  color: var(--ink-soft);
}

.signature-card strong {
  font-size: 1.08rem;
}

.blindbox-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blindbox-card {
  min-height: 200px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(79, 101, 200, 0.2);
  background:
    linear-gradient(160deg, rgba(249, 247, 255, 0.96), rgba(239, 244, 255, 0.92)),
    linear-gradient(140deg, rgba(229, 145, 184, 0.12), transparent 40%);
  text-align: left;
}

.blindbox-card span,
.blindbox-card em {
  display: block;
  color: var(--ink-soft);
}

.blindbox-card strong {
  display: block;
  margin: 18px 0 8px;
  font-size: 1.52rem;
}

.blindbox-card.is-opened {
  pointer-events: none;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(79, 101, 200, 0.24), rgba(229, 145, 184, 0.24));
}

.result-showcase {
  margin-top: 24px;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(250, 247, 255, 0.96), rgba(240, 244, 255, 0.96));
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
}

.result-badge {
  width: 160px;
  height: 160px;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffffff, #f5d2e7 48%, #9cb0ff 100%);
  font-size: 4rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 24px 42px rgba(79, 101, 200, 0.26);
}

.result-copy h4 {
  margin: 8px 0;
  font-size: 1.8rem;
}

.claim-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.claim-row span,
.claim-tip,
.result-footnote p {
  color: var(--ink-soft);
}

.claim-row strong {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  letter-spacing: 0.08em;
}

.mini-button {
  min-height: 38px;
  padding: 0 14px;
  background: rgba(79, 101, 200, 0.16);
  color: var(--sage-deep);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(39, 49, 97, 0.94);
  color: white;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  pointer-events: none;
  animation: confetti-fall 1.2s ease forwards;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(160px) rotate(240deg);
  }
}

@media (max-width: 1024px) {
  .experience-layout,
  .hero-panel,
  .micro-action-card,
  .result-showcase {
    grid-template-columns: 1fr;
  }

  .stage-panel,
  .screen {
    min-height: auto;
  }

  .side-panel {
    order: 2;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 16px, 100%);
    margin: 8px auto 24px;
    padding: 10px;
    border-radius: 24px;
  }

  .topbar,
  .hero-panel,
  .hud-panel,
  .stage-panel,
  .screen {
    border-radius: 22px;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .progress-track {
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: flex-start;
  }

  .notice-grid,
  .emotion-grid,
  .tag-grid,
  .prompt-list,
  .blindbox-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .button-row-between {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .result-badge {
    width: 132px;
    height: 132px;
    font-size: 3.2rem;
  }

  .claim-row {
    align-items: flex-start;
  }
}
