/* CSS Reset & Variables */
:root {
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Theme colors (Sleek Dark Mode) */
  --color-bg: #05070f;
  --color-panel-bg: rgba(10, 15, 30, 0.6);
  --color-panel-border: rgba(255, 255, 255, 0.08);
  --color-text-primary: #f3f4f6;
  --color-text-secondary: #9ca3af;
  --color-highlight: #00ffd5; /* Neon turquoise */
  
  /* Seasonal Theme Colors */
  --color-spring: #00ffd5;
  --color-summer: #ff5050;
  --color-autumn: #ffaa00;
  --color-winter: #00c8ff;
  
  --color-theme: var(--color-spring);
  --shadow-neon: 0 0 25px rgba(0, 255, 213, 0.3);
  --shadow-btn: 0 4px 15px rgba(0, 255, 213, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  touch-action: manipulation;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 霓虹背景光圈 */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  transition: background-color var(--transition-slow);
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  background-color: var(--color-spring);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  background-color: var(--color-winter);
}

.bg-glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background-color: rgba(156, 39, 176, 0.8);
  opacity: 0.08;
}

/* 全局容器 */
.container {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* 页头 */
.app-header {
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.8rem;
  animation: floatIcon 3s infinite ease-in-out;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 页脚 */
.app-footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* 主要展示区 */
main {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
}

/* 屏幕显示切换 */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn var(--transition-normal);
  justify-content: center;
}

.screen.active {
  display: flex;
}

/* 玻璃拟态面板 (Glassmorphism) */
.glass-panel {
  background: var(--color-panel-bg);
  border: 1px solid var(--color-panel-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* =============================================
   1. 欢迎主界面样式
   ============================================= */
.welcome-box {
  width: 100%;
  max-width: 580px;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-highlight);
  background: rgba(0, 255, 213, 0.1);
  border: 1px solid rgba(0, 255, 213, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.title-main {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sub-hint {
  color: var(--color-theme);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 40px;
  background: rgba(var(--color-theme-rgb), 0.08);
  padding: 4px 16px;
  border-radius: 50px;
  border: 1px solid rgba(var(--color-theme-rgb), 0.2);
  display: inline-block;
}

/* 3D 盲盒预览 */
.box-preview-container {
  width: 250px;
  height: 250px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.blind-box-model {
  width: 110px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(25deg);
  animation: rotateBox 12s infinite linear;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.blind-box-model:hover {
  animation-play-state: paused;
  transform: rotateX(-10deg) rotateY(45deg) scale(1.15);
}

.box-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c1a4d 0%, #110825 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  backface-visibility: visible;
  color: #fff;
}

/* 3D盒子的尺寸与定位 (W:110px, H:160px, Depth:110px) */
.face-front  { transform: translateZ(55px); }
.face-back   { transform: rotateY(180deg) translateZ(55px); }
.face-left   { transform: rotateY(-90deg) translateZ(55px); width: 110px; }
.face-right  { transform: rotateY(90deg) translateZ(55px); width: 110px; }
.face-top    { transform: rotateX(90deg) translateZ(80px); height: 110px; width: 110px; top: 25px; }
.face-bottom { transform: rotateX(-90deg) translateZ(80px); height: 110px; width: 110px; top: 25px; }

.box-brand {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.box-logo {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-highlight) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 213, 0.5));
}

.box-series {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #a78bfa;
  font-weight: bold;
}

/* 盲盒底部光晕 */
.box-shadow-glow {
  position: absolute;
  bottom: 25px;
  width: 140px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
}

.box-shadow-glow.pulsating {
  animation: pulseGlow 1.5s infinite ease-in-out;
}

.intro-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 460px;
}

.highlight {
  color: var(--color-highlight);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font-main);
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-highlight) 0%, #00b0ff 100%);
  color: #030712;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.5);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(30deg);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translate(600%, -20%) rotate(30deg);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.btn-secondary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* =============================================
   2. 答题界面样式
   ============================================= */
.quiz-container {
  width: 100%;
  max-width: 700px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.quiz-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-progress-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-weight: bold;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--color-highlight) 0%, #9c27b0 100%);
  border-radius: 100px;
  transition: width var(--transition-normal);
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
}

.question-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.question-title {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  padding: 18px 24px;
  border-radius: 16px;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
  outline: none;
}

/* 仅在支持鼠标悬停且主要指针为细定位设备（如电脑端鼠标）的设备上应用悬停高亮。
   iOS Safari 和微信内置浏览器等移动端虽然可能声称支持 hover，但不支持 (pointer: fine)。
   这样可以 100% 根除手机触摸屏上的粘性悬停高亮框。 */
@media (hover: hover) and (pointer: fine) {
  .option-btn:hover {
    background: rgba(0, 255, 213, 0.06);
    border-color: rgba(0, 255, 213, 0.4);
    transform: scale(1.01) translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 255, 213, 0.1);
  }
}

/* 消除所有移动端浏览器由于焦点继承引起的选中框或轮廓线 */
.option-btn:not(.selected):focus,
.option-btn:not(.selected):focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.option-btn:active {
  transform: scale(0.99);
  background: rgba(0, 255, 213, 0.06) !important;
  border-color: rgba(0, 255, 213, 0.3) !important;
}

/* 选中高亮状态样式，仅在用户主动点击或返回查看时点亮 */
.option-btn.selected {
  background: rgba(0, 255, 213, 0.08) !important;
  border-color: rgba(0, 255, 213, 0.6) !important;
  transform: scale(1.02) !important;
  box-shadow: 0 0 15px rgba(0, 255, 213, 0.2) !important;
  color: #fff !important;
}

.quiz-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

/* =============================================
   3. 拆盒界面样式
   ============================================= */
.unboxing-container {
  width: 100%;
  max-width: 500px;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.unboxing-box-wrapper {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.unboxing-box-wrapper .blind-box-model {
  animation: none;
}

.shaking {
  animation: shake 0.6s infinite ease-in-out;
}

.bursting {
  animation: burstOpen 1.2s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.unboxing-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unboxing-status h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.unboxing-status p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.fading-text {
  animation: textFade 2s infinite ease-in-out;
}

/* =============================================
   4. 测试结果与报告样式
   ============================================= */
.result-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  width: 100%;
  max-width: 1050px;
}

/* 左侧：手办盒设计 */
.result-left {
  display: flex;
  flex-direction: column;
}

.toy-display-cabinet {
  width: 100%;
  height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px 25px 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--color-theme-rgb), 0.25);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 0 25px rgba(var(--color-theme-rgb), 0.05);
  transition: all var(--transition-slow);
}

.toy-display-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(var(--color-theme-rgb), 0.4) 0%, rgba(var(--color-theme-rgb), 0) 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  transition: all var(--transition-slow);
}

/* 2D 手办卡片包裹区 */
.toy-capsule {
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

/* 手办图像包裹区 */
.toy-image-wrapper {
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

#toy-image {
  height: 100%;
  max-height: 310px;
  width: auto;
  margin: 0 auto;
  display: none;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.55));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 标签与名称布局 */
.toy-tag-box {
  width: 100%;
  text-align: center;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.08);
}

.toy-card-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--color-theme-rgb), 0.1);
  border: 1px solid rgba(var(--color-theme-rgb), 0.35);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-highlight);
  text-shadow: 0 0 10px rgba(var(--color-theme-rgb), 0.6);
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(var(--color-theme-rgb), 0.15);
  transition: all var(--transition-normal);
}

.toy-series-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--color-text-secondary);
  letter-spacing: 1.5px;
}

.toy-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

/* 右侧：性格报告面板 */
.result-report-card {
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.result-report-card::-webkit-scrollbar {
  width: 6px;
}

.result-report-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.report-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.term-meta {
  display: flex;
  gap: 10px;
}

.season-badge {
  background: var(--color-theme);
  color: #030712;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.mbti-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

.term-title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.term-name {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
}

.term-english {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.term-personality-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-theme);
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keyword-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 100px;
}

.report-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.report-section h4,
.report-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.report-section p,
.report-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.report-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.report-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: 16px;
}

.radar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-chart-container {
  width: 100%;
  max-width: 250px;
  margin: 10px 0;
  display: flex;
  justify-content: center;
}

.radar-svg {
  width: 100%;
  height: auto;
}

.report-actions {
  display: flex;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
}

.report-actions .btn {
  flex-grow: 1;
}

/* =============================================
   5. 海报弹窗样式
   ============================================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  padding: 30px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: scaleIn var(--transition-normal);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  outline: none;
}

.modal-close:hover {
  color: #fff;
}

.modal-hint {
  font-size: 0.8rem;
  color: var(--color-highlight);
  font-weight: bold;
}

.poster-image-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-image-container img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

/* 海报加载提示器 */
.poster-loading {
  width: 100%;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 15, 30, 0.95);
  z-index: 10;
  gap: 15px;
  padding: 30px;
  text-align: center;
  border-radius: 12px;
}

.poster-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border-top-color: var(--color-theme, #00ffd5);
  animation: poster-spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(var(--color-theme-rgb, 0, 255, 213), 0.15);
}

@keyframes poster-spin {
  to { transform: rotate(360deg); }
}

.poster-loading-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 5px;
}

.poster-loading-subtext {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* =============================================
   动画特效 Keyframes
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rotateBox {
  0% { transform: rotateX(-15deg) rotateY(0deg); }
  100% { transform: rotateX(-15deg) rotateY(360deg); }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(10deg); }
}

@keyframes floatToy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(3deg) translateY(-2px); }
  30% { transform: rotate(-3deg) translateY(1px); }
  45% { transform: rotate(2deg) translateY(-1px); }
  60% { transform: rotate(-2deg) translateY(2px); }
  75% { transform: rotate(1deg) translateY(-1px); }
  90% { transform: rotate(-1deg) translateY(0px); }
  100% { transform: rotate(0deg); }
}

@keyframes burstOpen {
  0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
  50% { transform: scale(1.2) rotate(15deg); filter: brightness(2) drop-shadow(0 0 30px #a855f7); }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes textFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* =============================================
   响应式布局排版 Media Queries
   ============================================= */
@media (max-width: 850px) {
  .result-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }
  
  .toy-display-cabinet {
    height: 440px;
  }
  
  .toy-capsule {
    transform: scale(0.88);
    margin-top: -20px;
    margin-bottom: -20px;
  }
  
  .result-report-card {
    max-height: none;
    padding: 30px 20px;
  }
}

@media (max-width: 580px) {
  .welcome-box {
    padding: 20px 15px;
  }
  
  .quiz-container, .unboxing-container {
    padding: 30px 20px;
  }
  
  .badge {
    margin-bottom: 12px;
    padding: 4px 12px;
  }
  
  .title-main {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  
  .subtitle {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
  
  .box-preview-container {
    height: 160px;
    width: 160px;
    transform: scale(0.75);
    margin-bottom: 10px;
  }
  
  .intro-text {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .question-title {
    font-size: 1.15rem;
  }
  
  .option-btn {
    padding: 14px 18px;
    font-size: 0.85rem;
  }
  
  .report-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .term-name {
    font-size: 2rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
