:root {
  --bg: #0a0a0a;
  --bg-elevated: rgba(20, 8, 8, 0.95);
  --bg-soft: rgba(30, 10, 10, 0.7);
  --accent: #ff0000;
  --accent-soft: rgba(255, 0, 0, 0.15);
  --accent-strong: #cc0000;
  --accent-glow: rgba(255, 0, 0, 0.4);
  --danger: #ff0000;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --border-glow: rgba(255, 0, 0, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 0, 0, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  word-wrap: break-word;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'PingFang SC', 'Segoe UI', sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.15), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.08), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
  background-attachment: fixed;
  position: relative;
  animation: fadeInBody 0.6s ease-out;
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.04), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.app-root {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 20px 40px;
  position: relative;
  z-index: 1;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (max-width: 768px) {
  .app-root {
    margin: 20px auto 24px;
    padding: 0 16px 24px;
  }

  .app-main {
    gap: 12px;
  }

  .progress-bar-wrapper {
    padding: 12px 14px;
  }

  .progress-meta {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .progress-track {
    height: 5px;
  }
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress-bar-wrapper {
  padding: 16px 20px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.95), rgba(10, 10, 10, 0.98)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.1), transparent 50%);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-bar-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000 0%, #cc0000 30%, #ff0000 60%, #ff4444 100%);
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.6),
    0 0 40px rgba(255, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 0, 0, 0.6),
      0 0 40px rgba(255, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 0, 0, 0.8),
      0 0 60px rgba(255, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.answer-card-wrapper {
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.95), rgba(10, 10, 10, 0.98)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.1), transparent 50%);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.answer-card-toggle {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.answer-card-toggle:hover {
  background: rgba(255, 0, 0, 0.1);
}

.toggle-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-text::before {
  content: '📋';
  font-size: 16px;
}

.toggle-icon {
  font-size: 12px;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.answer-card-wrapper.expanded .toggle-icon {
  transform: rotate(180deg);
}

.answer-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.answer-card-content:not(.hidden) {
  max-height: 600px;
  padding: 16px;
  border-top: 1px solid rgba(255, 0, 0, 0.2);
}

.answer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.answer-card-item {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 0, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.6), rgba(10, 10, 10, 0.8)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.05), transparent 50%);
  cursor: pointer;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  animation: cardItemFadeIn 0.3s ease-out backwards;
}

@keyframes cardItemFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.answer-card-item:nth-child(1) { animation-delay: 0.01s; }
.answer-card-item:nth-child(2) { animation-delay: 0.02s; }
.answer-card-item:nth-child(3) { animation-delay: 0.03s; }
.answer-card-item:nth-child(4) { animation-delay: 0.04s; }
.answer-card-item:nth-child(5) { animation-delay: 0.05s; }
.answer-card-item:nth-child(6) { animation-delay: 0.06s; }
.answer-card-item:nth-child(7) { animation-delay: 0.07s; }
.answer-card-item:nth-child(8) { animation-delay: 0.08s; }

.answer-card-item:hover {
  border-color: rgba(255, 0, 0, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(20, 8, 8, 0.8)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.15), transparent 50%);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(255, 0, 0, 0.3);
}

.answer-card-item.current {
  border-color: rgba(255, 0, 0, 0.8);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(139, 0, 0, 0.2)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.3), transparent 50%);
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.answer-card-item.answered {
  border-color: rgba(255, 0, 0, 0.4);
}

.answer-card-item.answered::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.answer-card-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.answer-card-answer {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.answer-card-item.answered .answer-card-answer {
  color: #ff0000;
}

.answer-card-item:not(.answered) .answer-card-answer {
  color: var(--text-muted);
  font-size: 10px;
}

@media (max-width: 768px) {
  .answer-card-content:not(.hidden) {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
  }

  .answer-card-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }

  .answer-card-item {
    padding: 6px 3px;
  }

  .answer-card-number {
    font-size: 11px;
  }

  .answer-card-answer {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .answer-card-content:not(.hidden) {
    max-height: 350px;
  }

  .answer-card-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
  }

  .answer-card-item {
    padding: 5px 2px;
  }

  .answer-card-number {
    font-size: 10px;
  }

  .answer-card-answer {
    font-size: 9px;
  }
}

.card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.85), rgba(10, 10, 10, 0.95)),
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.08), transparent 50%);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  padding: 32px 28px 28px;
  backdrop-filter: blur(24px) saturate(180%);
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
  animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card.hidden {
  animation: cardFadeOut 0.3s ease-in forwards;
}

@keyframes cardFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity var(--transition-smooth);
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.card:hover::before {
  opacity: 0.8;
}

.card:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .card {
    padding: 20px 18px 18px;
    border-radius: var(--radius-md);
  }

  .card-header h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .question-desc {
    font-size: 12px;
  }

  .options-list {
    margin-top: 14px;
    gap: 8px;
  }

  .option-item {
    padding: 10px 12px;
  }

  .option-label {
    font-size: 13px;
  }

  .card-footer {
    margin-top: 20px;
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
  }

  .btn.primary {
    min-width: 120px;
  }

  .intro-main-title {
    font-size: 24px;
  }

  .intro-subtitle {
    font-size: 12px;
  }

  .intro-header {
    padding-bottom: 24px;
    margin-bottom: 28px;
  }

  .intro-content {
    gap: 24px;
  }

  .intro-section-block {
    gap: 12px;
  }

  .intro-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .invite-code-title {
    font-size: 16px;
  }

  .invite-code-input {
    font-size: 24px;
    padding: 24px 28px;
    letter-spacing: 6px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }

  .invite-code-input-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }

  .invite-code-input-wrapper .btn.primary {
    width: auto;
    min-width: 200px;
    padding: 24px 36px;
    font-size: 24px;
    margin: 0 auto;
  }

  .invite-code-error {
    font-size: 16px;
    padding: 10px 16px;
    max-width: 100%;
  }

  .invite-code-success {
    font-size: 16px;
    padding: 10px 16px;
    max-width: 100%;
  }

  .intro-text h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .intro-text p {
    font-size: 13px;
    margin: 8px 0;
  }

  .intro-dimensions h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .dimensions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dimension-item {
    padding: 14px 16px;
  }

  .dimension-label {
    font-size: 13px;
  }

  .dimension-desc {
    font-size: 11px;
  }

  .tip-item {
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
  }

  .tip-label {
    min-width: auto;
    font-size: 12px;
  }

  .tip-value {
    font-size: 12px;
    text-align: left;
  }

  /* 邀请码输入区域 - 与 dimension-item 风格匹配 */
  .invite-code-section {
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    animation-delay: 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    align-self: center;
  }

  .invite-code-section .intro-icon {
    display: none;
  }

  .invite-code-content {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
  }

  .invite-code-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    line-height: 1.4;
  }

  .invite-code-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .invite-code-input {
    flex: 0 0 auto;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(20, 8, 8, 0.85), rgba(10, 10, 10, 0.85)) !important;
    border: 2px solid rgba(255, 0, 0, 0.25) !important;
    border-radius: 20px !important;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text-main);
    font-size: 24px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center !important;
    transition: all var(--transition-smooth);
    pointer-events: auto !important;
    z-index: 9999;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 180px;
    min-width: 160px;
    height: auto;
    margin: 0 auto;
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.25),
      0 0 0 2px rgba(255, 0, 0, 0.1);
    direction: ltr;
  }

  .invite-code-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
  }

  .invite-code-input:hover::before {
    left: 100%;
  }

  .invite-code-input:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.1)) !important;
    border-color: rgba(255, 0, 0, 0.4) !important;
    box-shadow:
      0 16px 40px rgba(255, 0, 0, 0.2),
      0 0 32px rgba(255, 0, 0, 0.1);
  }
  
  .invite-code-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 400;
    opacity: 0.6;
    font-size: 16px;
    text-align: center !important;
    text-transform: none;
    direction: ltr;
  }
  
  .invite-code-input::-webkit-input-placeholder {
    text-align: center !important;
  }
  
  .invite-code-input::-moz-placeholder {
    text-align: center !important;
  }
  
  .invite-code-input:-ms-input-placeholder {
    text-align: center !important;
  }

  .invite-code-input:focus {
    outline: none;
    border-color: rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.18), rgba(139, 0, 0, 0.12));
    box-shadow: 
      0 16px 48px rgba(255, 0, 0, 0.25),
      0 0 40px rgba(255, 0, 0, 0.15);
    transform: translateY(-6px);
  }

  .invite-code-input.error {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.15));
    box-shadow: 
      0 16px 48px rgba(255, 0, 0, 0.3),
      0 0 40px rgba(255, 0, 0, 0.2);
    animation: shake 0.4s ease-in-out;
  }

  /* 验证按钮样式 - 与输入框匹配 */
  .invite-code-input-wrapper .btn.primary {
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 140px;
    flex-shrink: 0;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.15));
    border: 2px solid rgba(255, 0, 0, 0.4);
    transition: all var(--transition-smooth);
  }

  .invite-code-input-wrapper .btn.primary:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 0, 0.2));
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow:
      0 16px 40px rgba(255, 0, 0, 0.25),
      0 0 16px rgba(255, 0, 0, 0.15);
  }

  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
  }

  @keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
  }

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

  @keyframes successFadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .invite-code-error {
    color: #ff4444;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-height: 24px;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(139, 0, 0, 0.08));
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    animation: errorShake 0.4s ease-in-out, errorFadeIn 0.3s ease-in-out;
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.25), 0 0 20px rgba(255, 68, 68, 0.1);
    letter-spacing: 0.5px;
    line-height: 1.6;
    display: block;
  }
  
  .invite-code-error:empty {
    display: none !important;
  }

  .invite-code-success {
    color: #00ff88;
    font-size: 16px;
    text-align: center;
    margin-top: 12px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.6;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 200, 100, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.2), 0 0 20px rgba(0, 255, 136, 0.1);
    letter-spacing: 0.5px;
    animation: successFadeIn 0.3s ease-in-out;
    display: none;
  }
  
  .invite-code-success[style*="display: none"],
  .invite-code-success:not([style*="display: block"]) {
    display: none !important;
  }

  .intro-footer {
    margin-top: 24px;
    padding-top: 20px;
  }

  .btn-start-large {
    min-width: 100%;
    padding: 14px 32px;
    font-size: 16px;
  }

  .intro-footer .btn {
    min-width: 140px;
    padding: 12px 28px;
    font-size: 15px;
  }
}

.card-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  animation: headerFadeIn 0.5s ease-out;
}

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

.question-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.options-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 0, 0, 0.25);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.7), rgba(10, 10, 10, 0.85)),
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.08), transparent 60%);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  backdrop-filter: blur(12px) saturate(180%);
  overflow: hidden;
  animation: optionSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes optionSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.option-item:nth-child(1) { animation-delay: 0.05s; }
.option-item:nth-child(2) { animation-delay: 0.1s; }
.option-item:nth-child(3) { animation-delay: 0.15s; }
.option-item:nth-child(4) { animation-delay: 0.2s; }
.option-item:nth-child(5) { animation-delay: 0.25s; }

.option-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.4), rgba(139, 0, 0, 0.4), rgba(255, 0, 0, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.option-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.option-item:hover {
  border-color: rgba(255, 0, 0, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(20, 8, 8, 0.85)),
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.18), transparent 60%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(255, 0, 0, 0.25),
    0 0 24px rgba(255, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px) scale(1.02);
}

.option-item:hover::before {
  opacity: 0.8;
}

.option-item:hover::after {
  opacity: 1;
}

.option-item.selected {
  border-color: rgba(255, 0, 0, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(139, 0, 0, 0.2)),
    radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.3), transparent 60%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(255, 0, 0, 0.35),
    0 0 40px rgba(255, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) scale(1.02);
  animation: selectedPulse 0.3s ease-out;
}

@keyframes selectedPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: translateY(-2px) scale(1.02);
  }
}

.option-item.selected::before {
  opacity: 1;
}

.option-item.selected::after {
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.2), transparent 70%);
}

.option-radio-wrapper {
  margin-top: 3px;
}

.option-label {
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

.option-label .option-title {
  font-weight: 500;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 0, 0, 0.15);
  gap: 16px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 18px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
  font-weight: 500;
}

.btn.primary {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
  color: #ffffff;
  box-shadow:
    0 10px 32px rgba(255, 0, 0, 0.45),
    0 4px 16px rgba(255, 0, 0, 0.3),
    0 0 48px rgba(255, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(255, 0, 0, 0.6),
    0 8px 24px rgba(255, 0, 0, 0.4),
    0 0 64px rgba(255, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover::after {
  opacity: 1;
}

.btn.primary:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

.btn.ghost {
  background: rgba(20, 8, 8, 0.4);
  color: var(--text-muted);
  border-color: rgba(255, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover:not(:disabled) {
  color: var(--text-main);
  background: rgba(20, 8, 8, 0.7);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn.ghost:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.card-intro {
  margin-top: 0;
}

/* Intro Header */
.intro-header {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.2);
  margin-bottom: 40px;
  position: relative;
}

.intro-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.5), transparent);
  border-radius: 2px;
}

.intro-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-main-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  animation: titleFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Intro Content */
.intro-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro-section-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: sectionBlockFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

/* 邀请码区域特殊样式 - 完全居中布局 */
.invite-code-section.intro-section-block {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  display: flex !important;
  width: 100% !important;
  text-align: center !important;
}

.invite-code-section.intro-section-block .intro-icon {
  display: none !important;
}

.invite-code-section.intro-section-block .invite-code-content {
  width: 100% !important;
  max-width: 300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.invite-code-section.intro-section-block .invite-code-title {
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.invite-code-section.intro-section-block .invite-code-input-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
}

.invite-code-section.intro-section-block .invite-code-input {
  margin: 0 auto !important;
  flex: 0 0 auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 180px !important;
  min-width: 160px !important;
  text-align: center !important;
}

.invite-code-section.intro-section-block .invite-code-input-wrapper .btn.primary {
  margin: 0 auto !important;
  width: auto !important;
}

.invite-code-section.intro-section-block .invite-code-error {
  text-align: center !important;
  width: 100% !important;
  max-width: 300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

.invite-code-section.intro-section-block .invite-code-error:empty {
  display: none !important;
}

.invite-code-section.intro-section-block .invite-code-success {
  text-align: center !important;
  width: 100% !important;
  max-width: 300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: none !important;
}

.invite-code-section.intro-section-block .invite-code-success[style*="display: block"] {
  display: block !important;
}

/* 强制统一邀请码输入框的底色、边框和居中布局 */
.invite-code-input-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
}

.invite-code-input {
  background: linear-gradient(135deg, rgba(20, 8, 8, 0.9), rgba(10, 10, 10, 0.9)) !important;
  border: 2px solid rgba(255, 0, 0, 0.25) !important;
  border-radius: 24px !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.25),
    0 0 0 2px rgba(255, 0, 0, 0.1);
}

@keyframes sectionBlockFadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.intro-section-block:nth-child(1) { animation-delay: 0.1s; }
.intro-section-block:nth-child(2) { animation-delay: 0.3s; }
.intro-section-block:nth-child(3) { animation-delay: 0.4s; }
.intro-section-block:nth-child(4) { animation-delay: 0.5s; }

.intro-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.18), rgba(139, 0, 0, 0.18));
  border: 1px solid rgba(255, 0, 0, 0.3);
  box-shadow:
    0 4px 12px rgba(255, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-smooth);
}

.intro-section-block:hover .intro-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 6px 16px rgba(255, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.intro-text {
  flex: 1;
  line-height: 1.8;
  color: var(--text-main);
}

.intro-text h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-text p {
  margin: 10px 0;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
}

.intro-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* Dimensions Grid */
.intro-dimensions {
  flex: 1;
}

.intro-dimensions h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dimension-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.06));
  border: 1px solid rgba(255, 0, 0, 0.25);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  animation: dimensionItemFadeIn 0.4s ease-out backwards;
}

@keyframes dimensionItemFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dimension-item:nth-child(1) { animation-delay: 0.05s; }
.dimension-item:nth-child(2) { animation-delay: 0.1s; }
.dimension-item:nth-child(3) { animation-delay: 0.15s; }
.dimension-item:nth-child(4) { animation-delay: 0.2s; }
.dimension-item:nth-child(5) { animation-delay: 0.25s; }
.dimension-item:nth-child(6) { animation-delay: 0.3s; }
.dimension-item:nth-child(7) { animation-delay: 0.35s; }
.dimension-item:nth-child(8) { animation-delay: 0.4s; }

.dimension-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s;
}

.dimension-item:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.1));
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow:
    0 8px 20px rgba(255, 0, 0, 0.2),
    0 0 16px rgba(255, 0, 0, 0.1);
}

.dimension-item:hover::before {
  left: 100%;
}

.dimension-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

.dimension-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tips */
.intro-tips {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.06));
  border: 1px solid rgba(255, 0, 0, 0.25);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.tip-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff0000, #cc0000);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.tip-item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.1));
  box-shadow:
    0 4px 16px rgba(255, 0, 0, 0.15),
    0 0 12px rgba(255, 0, 0, 0.1);
}

.tip-item:hover::before {
  opacity: 1;
}

.tip-label {
  font-size: 13px;
  font-weight: 600;
  color: #ff0000;
  min-width: 80px;
}

.tip-value {
  font-size: 13px;
  color: var(--text-main);
  text-align: right;
  flex: 1;
  line-height: 1.5;
}

/* Footer Button */
.intro-footer {
  margin-top: 32px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 0, 0, 0.15);
}

.btn-start-large {
  min-width: 220px;
  padding: 16px 48px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 16px 40px rgba(139, 0, 0, 0.9),
    0 0 40px rgba(255, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  animation: buttonBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s backwards;
}

@keyframes buttonBounceIn {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  60% {
    transform: scale(1.1) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-start-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.2));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn-start-large:hover::before {
  opacity: 1;
}

.btn-start-large:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 48px rgba(139, 0, 0, 0.95),
    0 0 48px rgba(255, 0, 0, 0.9);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-smooth);
}

.btn-start-large:hover .btn-arrow {
  transform: translateX(4px);
}

.card-result {
  margin-top: 8px;
}

.result-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  animation: resultFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.result-combined {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 0, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.8), rgba(10, 10, 10, 0.9)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(139, 0, 0, 0.1), transparent 60%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  animation: resultCardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

@keyframes resultCardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-combined::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 0, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .result-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .result-analysis {
    padding: 12px 16px;
    margin-bottom: 12px;
  }

  .result-report {
    padding: 16px 18px;
    margin-top: 0;
  }

  .analysis-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .result-summary {
    gap: 12px;
    margin-top: 16px;
  }

  .result-combined {
    padding: 16px;
    gap: 20px;
  }

  .result-main {
    padding: 20px 16px;
    text-align: center;
    width: 100%;
  }

  .character-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
  }

  .secondary-character-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .secondary-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .secondary-item {
    padding: 16px 12px;
    gap: 10px;
  }

  .secondary-item h4 {
    font-size: 14px;
  }

  .secondary-item p {
    font-size: 12px;
  }

  .result-radar-wrapper {
    padding: 16px 12px;
  }

  .result-chart {
    padding: 12px 14px;
    gap: 6px;
  }

  .chart-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .chart-bar {
    gap: 3px;
  }

  .chart-bar-header {
    margin-bottom: 0;
  }

  .chart-label {
    font-size: 12px;
  }

  .chart-score {
    font-size: 12px;
  }

  .chart-track {
    height: 6px;
  }

  .chart-assessment {
    font-size: 11px;
    margin-top: 0;
  }
}

.result-main {
  padding: 24px 20px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 8px;
}

.character-image-wrapper {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 0, 0, 0.5);
  box-shadow: 
    0 0 40px rgba(255, 0, 0, 0.4),
    0 0 80px rgba(255, 0, 0, 0.25),
    0 0 120px rgba(255, 0, 0, 0.1),
    inset 0 0 25px rgba(255, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.08));
  position: relative;
  animation: characterImageGlow 3s ease-in-out infinite, characterImagePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
  transition: all var(--transition-smooth);
}

@keyframes characterImagePop {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.character-image-wrapper:hover {
  transform: scale(1.05);
  border-color: rgba(255, 0, 0, 0.7);
  box-shadow: 
    0 0 50px rgba(255, 0, 0, 0.5),
    0 0 100px rgba(255, 0, 0, 0.3),
    0 0 150px rgba(255, 0, 0, 0.15),
    inset 0 0 30px rgba(255, 0, 0, 0.2);
}

@keyframes characterImageGlow {
  0%, 100% {
    box-shadow: 
      0 0 40px rgba(255, 0, 0, 0.4),
      0 0 80px rgba(255, 0, 0, 0.25),
      0 0 120px rgba(255, 0, 0, 0.1),
      inset 0 0 25px rgba(255, 0, 0, 0.15);
  }
  50% {
    box-shadow: 
      0 0 50px rgba(255, 0, 0, 0.5),
      0 0 100px rgba(255, 0, 0, 0.35),
      0 0 150px rgba(255, 0, 0, 0.15),
      inset 0 0 35px rgba(255, 0, 0, 0.2);
  }
}

.character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.character-image-wrapper:hover .character-image {
  transform: scale(1.08);
}

/* 图片占位符样式 */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(139, 0, 0, 0.1));
  border-radius: 50%;
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 0, 0, 0.6);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.secondary-character-image-wrapper .image-placeholder {
  font-size: 40px;
}

.result-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.result-type {
  margin: 0 0 4px;
  font-size: 33px;
  font-weight: 700;
  color: var(--text-main);
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
  animation: resultTypeFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

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

.result-score {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

.result-radar-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: none;
  background: transparent;
  width: 100%;
}

.result-chart {
  width: 100%;
  max-width: 800px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 0, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.6), rgba(10, 10, 10, 0.8)),
    radial-gradient(circle at top right, rgba(255, 0, 0, 0.15), transparent 60%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(20px) saturate(180%);
}

.chart-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.chart-bar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: chartBarFadeIn 0.5s ease-out backwards;
}

@keyframes chartBarFadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chart-bar:nth-child(2) { animation-delay: 0.05s; }
.chart-bar:nth-child(3) { animation-delay: 0.1s; }
.chart-bar:nth-child(4) { animation-delay: 0.15s; }
.chart-bar:nth-child(5) { animation-delay: 0.2s; }
.chart-bar:nth-child(6) { animation-delay: 0.25s; }
.chart-bar:nth-child(7) { animation-delay: 0.3s; }
.chart-bar:nth-child(8) { animation-delay: 0.35s; }
.chart-bar:nth-child(9) { animation-delay: 0.4s; }

.chart-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px;
}

.chart-label {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}

.chart-score {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.chart-assessment {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
  text-align: right;
}

.chart-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(20, 8, 8, 0.8);
  border: 1px solid rgba(255, 0, 0, 0.1);
  overflow: hidden;
}

.chart-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b0000 0%, #cc0000 30%, #ff0000 60%, #ff3333 100%);
  box-shadow:
    0 0 20px rgba(255, 0, 0, 0.6),
    0 0 40px rgba(255, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chart-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: chart-shine 2s infinite;
}

@keyframes chart-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.result-title {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #990000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
  position: relative;
}

.result-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
  border-radius: 2px;
}

.result-analysis {
  margin: 0 0 16px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.08)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.15), transparent 60%);
  border: 1px solid rgba(255, 0, 0, 0.25);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.analysis-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  text-align: center;
}

.result-secondary {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.6), rgba(10, 10, 10, 0.8)),
    radial-gradient(circle at top right, rgba(255, 0, 0, 0.15), transparent 60%);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultSecondaryFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

@keyframes resultSecondaryFadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.secondary-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

.secondary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 100%;
}

.secondary-item {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.05));
  border: 1px solid rgba(255, 0, 0, 0.2);
  text-align: center;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: secondaryItemFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes secondaryItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.secondary-item:nth-child(1) { animation-delay: 0.5s; }
.secondary-item:nth-child(2) { animation-delay: 0.6s; }

.secondary-item:hover {
  border-color: rgba(255, 0, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.08));
}

.secondary-character-image-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 0, 0.4);
  box-shadow: 
    0 0 20px rgba(255, 0, 0, 0.3),
    0 0 40px rgba(255, 0, 0, 0.15),
    inset 0 0 15px rgba(255, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.05));
  position: relative;
  transition: all var(--transition-smooth);
}

.secondary-item:hover .secondary-character-image-wrapper {
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 
    0 0 30px rgba(255, 0, 0, 0.4),
    0 0 60px rgba(255, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 0, 0, 0.15);
  transform: scale(1.05);
}

.secondary-character-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.secondary-item:hover .secondary-character-image {
  transform: scale(1.1);
}

.secondary-item h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.secondary-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.result-report {
  margin-top: 0;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(20, 8, 8, 0.6), rgba(10, 10, 10, 0.8)),
    radial-gradient(circle at top left, rgba(255, 0, 0, 0.08), transparent 60%);
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: resultReportFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

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

.report-content {
  position: relative;
}

.report-content::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: -8px;
  font-size: 48px;
  color: rgba(255, 0, 0, 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}

.report-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  text-align: justify;
  text-indent: 2em;
  position: relative;
  z-index: 1;
}

.result-footer {
  justify-content: flex-end;
}

.app-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* 自定义单选按钮 */
input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 0, 0, 0.85);
  background: transparent;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

input[type='radio']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-fast);
}

input[type='radio']:checked {
  border-color: var(--accent-strong);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.8);
  background: rgba(20, 8, 8, 0.95);
}

input[type='radio']:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

input[type='radio']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.8);
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .app-root {
    margin: 16px auto 20px;
    padding: 0 12px 20px;
  }

  .card {
    padding: 18px 14px 16px;
  }

  .card-header h2 {
    font-size: 16px;
  }

  .intro-main-title {
    font-size: 22px;
  }

  .intro-subtitle {
    font-size: 11px;
  }

  .intro-header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .intro-content {
    gap: 20px;
  }

  .intro-section-block {
    gap: 10px;
  }

  .intro-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .intro-text h3 {
    font-size: 15px;
  }

  .intro-text p {
    font-size: 12px;
  }

  .intro-dimensions h4 {
    font-size: 15px;
  }

  .dimension-item {
    padding: 12px 14px;
  }

  .dimension-label {
    font-size: 12px;
  }

  .dimension-desc {
    font-size: 11px;
  }

  .tip-item {
    padding: 10px 14px;
  }

  .tip-label,
  .tip-value {
    font-size: 11px;
  }

  .btn-start-large {
    padding: 12px 28px;
    font-size: 15px;
  }

  .option-item {
    padding: 9px 10px;
  }

  .option-label {
    font-size: 12px;
  }

  .result-title {
    font-size: 18px;
  }

  .result-combined {
    padding: 12px;
  }

  .result-radar-wrapper {
    min-height: 250px;
  }
}



