/* Dreamwhisper - 深色梦幻风格 */
:root {
  --color-bg: #0f0f1a;
  --color-card: rgba(255, 255, 255, 0.03);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8e6f0;
  --color-text-secondary: rgba(232, 230, 240, 0.6);
  --color-accent: #a78bfa;
  --color-accent-soft: rgba(167, 139, 250, 0.2);
  
  --gradient-dream: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  --gradient-btn: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  
  --blur-glass: 20px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 背景动效 */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dream);
  z-index: -2;
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  bottom: 20%;
  left: -50px;
  animation-delay: -7s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -20px) scale(1.02); }
}

/* 容器 */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部 */
.header {
  text-align: center;
  padding: 40px 0 30px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-icon {
  font-size: 36px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.8)); }
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  background: linear-gradient(135deg, #e8e6f0 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* 顶部导航 */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-card-border);
  border-radius: 28px;
  padding: 6px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tab:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
  transform: scale(1.02);
}

.nav-icon {
  font-size: 16px;
}

.nav-text {
  font-weight: 500;
}

/* 页面切换 */
.page {
  display: none;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* 页面切换动画 */
.page.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.page.fade-in {
  animation: pageIn 0.4s ease forwards;
}

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

/* 主内容 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 卡片 */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15);
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 20px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 输入区 */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.dream-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-text);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  line-height: 1.8;
}

.dream-textarea::placeholder {
  color: rgba(232, 230, 240, 0.3);
  font-style: italic;
}

.dream-textarea:focus {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15), 0 8px 32px rgba(167, 139, 250, 0.1);
  transform: scale(1.01);
}

.textarea-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  transition: opacity 0.3s ease;
}

.dream-textarea:focus + .textarea-glow {
  opacity: 1;
}

/* 境况引导区 */
.situation-section {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.situation-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.label-icon {
  font-size: 18px;
}

.situation-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.situation-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.question-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.question-input::placeholder {
  color: rgba(232, 230, 240, 0.25);
  font-size: 12px;
}

.question-input:focus {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.08);
}

/* 我的感悟区 */
.reflection-section {
  margin-top: 24px;
  padding: 20px;
  background: rgba(167, 139, 250, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(167, 139, 250, 0.15);
}

.reflection-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.reflection-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.reflection-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  resize: none;
  outline: none;
  transition: all 0.3s ease;
  line-height: 1.7;
}

.reflection-textarea::placeholder {
  color: rgba(232, 230, 240, 0.3);
  font-size: 13px;
}

.reflection-textarea:focus {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* MBTI 选择器 */
.mbti-section {
  margin-bottom: 20px;
}

.mbti-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mbti-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.mbti-group-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.mbti-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mbti-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mbti-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  transform: translateY(-1px);
}

.mbti-tag.active {
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mbti-group:nth-child(1) .mbti-tag.active {
  background: rgba(139, 92, 246, 0.8);
  border-color: #8b5cf6;
}

.mbti-group:nth-child(2) .mbti-tag.active {
  background: rgba(16, 185, 129, 0.8);
  border-color: #10b981;
}

.mbti-group:nth-child(3) .mbti-tag.active {
  background: rgba(6, 182, 212, 0.8);
  border-color: #06b6d4;
}

.mbti-group:nth-child(4) .mbti-tag.active {
  background: rgba(245, 158, 11, 0.8);
  border-color: #f59e0b;
}

/* 情绪标签 */
.emotion-tags {
  margin-bottom: 20px;
}

.emotion-label, .mode-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 10px;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--color-text);
  transform: translateY(-2px);
}

.tag.active {
  background: rgba(167, 139, 250, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

/* 模式选择 */
.mode-selector {
  margin-bottom: 24px;
}

.mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-option {
  cursor: pointer;
}

.mode-option input {
  display: none;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.mode-option input:checked + .mode-card {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--color-accent);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.25);
}

.mode-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.mode-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.mode-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* 按钮 */
.interpret-btn {
  width: 100%;
  background: var(--gradient-btn);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.interpret-btn:hover::before {
  left: 100%;
}

.interpret-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(167, 139, 250, 0.5);
}

.interpret-btn:active {
  transform: translateY(0);
}

.interpret-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  transition: transform 0.2s ease;
}

.interpret-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* 解析结果 - 梦境卷轴 */
.dream-scroll-container {
  animation: slideUp 0.5s ease;
}

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

.dream-scroll {
  position: relative;
  background: linear-gradient(165deg, 
    rgba(30, 25, 50, 0.95) 0%, 
    rgba(25, 20, 45, 0.98) 50%,
    rgba(20, 18, 40, 0.95) 100%
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167, 139, 250, 0.2);
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(167, 139, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 背景装饰 */
.dream-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* 卷轴头部 */
.scroll-header {
  position: relative;
  text-align: center;
  padding: 32px 24px 24px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.scroll-ornament {
  font-size: 12px;
  color: rgba(167, 139, 250, 0.4);
  letter-spacing: 8px;
  margin-bottom: 16px;
}

.scroll-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.scroll-icon {
  font-size: 28px;
  animation: glow 3s ease-in-out infinite;
}

.scroll-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* 卷轴内容 */
.scroll-content {
  position: relative;
  padding: 32px 28px;
  min-height: 200px;
}

.scroll-paragraph {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border-left: 3px solid rgba(167, 139, 250, 0.3);
  opacity: 0;
  transform: translateY(15px);
  animation: paragraphIn 0.6s ease forwards;
}

.scroll-paragraph:last-child {
  margin-bottom: 0;
}

.scroll-paragraph:nth-child(1) { animation-delay: 0.1s; }
.scroll-paragraph:nth-child(2) { animation-delay: 0.25s; }
.scroll-paragraph:nth-child(3) { animation-delay: 0.4s; }
.scroll-paragraph:nth-child(4) { animation-delay: 0.55s; }
.scroll-paragraph:nth-child(5) { animation-delay: 0.7s; }
.scroll-paragraph:nth-child(6) { animation-delay: 0.85s; }
.scroll-paragraph:nth-child(7) { animation-delay: 1s; }
.scroll-paragraph:nth-child(8) { animation-delay: 1.15s; }

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

/* 卷轴底部 */
.scroll-footer {
  text-align: center;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.scroll-footer .scroll-ornament {
  margin-bottom: 0;
  font-size: 16px;
}

/* 操作按钮 */
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-btn:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

/* 历史记录 */
.history-card {
  margin-bottom: 40px;
}

.history-count {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-list::-webkit-scrollbar {
  width: 4px;
}

.history-list::-webkit-scrollbar-track {
  background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 2px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-secondary);
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-hint {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.6;
}

.history-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.1);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.history-item-date {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.history-item-emotion {
  font-size: 16px;
}

.history-item-dream {
  font-size: 14px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.history-item-delete {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.history-item:hover .history-item-delete {
  opacity: 1;
}

.history-item-delete:hover {
  color: #ef4444;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* 加载 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-content {
  text-align: center;
}

.loading-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-btn);
  margin: 0 auto 24px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: 0 0 40px 20px rgba(167, 139, 250, 0);
  }
}

.loading-text {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 8px;
}

.loading-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

/* 分享卡片 */
.share-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.share-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a2744 100%);
}

.share-card-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 60%);
}

.share-card-content {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.share-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.share-logo {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.share-date {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.share-dream {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.share-interpretation {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 2;
  color: white;
  overflow: hidden;
}

.share-footer {
  margin-top: auto;
  padding-top: 20px;
}

.share-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-btn.close-btn {
  background: transparent;
}

/* ========== 梦境灵感 - 自我探索模块 ========== */
.inspiration-card {
  margin-bottom: 40px;
}

/* 梦境主题标签 */
.dream-themes {
  margin-bottom: 24px;
}

.themes-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: 12px;
}

.themes-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-tag:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--color-text);
}

.theme-tag.active {
  background: rgba(167, 139, 250, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 主题解读卡片 */
.theme-interpretation {
  margin-bottom: 24px;
}

.interpretation-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
}

.interpretation-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
}

.interpretation-section {
  margin-bottom: 20px;
}

.interpretation-section:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

.question-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.question-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.question-list li:last-child {
  margin-bottom: 0;
}

/* 梦境象征库 */
.symbol-library {
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.symbol-list {
  display: grid;
  gap: 12px;
}

.symbol-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.symbol-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(167, 139, 250, 0.2);
}

.symbol-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.symbol-meaning {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 自我探索提示 */
.explore-tip {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-md);
}

.tip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tip-content {
  flex: 1;
}

.tip-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.tip-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========== 同梦星球 ========== */

/* 在线状态徽章 */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.online-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 关键词筛选 */
.keyword-filter {
  margin-top: 16px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.keyword-btn:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--color-text);
}

.keyword-btn.active {
  background: rgba(167, 139, 250, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 同梦者横向滚动 */
.dreamers-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.3) transparent;
}

.dreamers-scroll::-webkit-scrollbar {
  height: 3px;
}

.dreamers-scroll::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 2px;
}

.dreamer-card {
  flex-shrink: 0;
  width: 80px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dreamer-card:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.2);
}

.dreamer-avatar {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.dreamer-keyword {
  font-size: 11px;
  color: var(--color-text);
  margin-bottom: 2px;
}

.dreamer-time {
  font-size: 10px;
  color: var(--color-text-secondary);
}

/* 漂流瓶列表 */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.feed-item:hover {
  border-color: rgba(167, 139, 250, 0.15);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.feed-info {
  flex: 1;
}

.feed-name {
  font-size: 13px;
  color: var(--color-text);
}

.feed-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.feed-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 10px;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.feed-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 10px;
  color: var(--color-accent);
}

.feed-actions {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.feed-action:hover {
  color: var(--color-accent);
}

.feed-action.resonated {
  color: #f472b6;
}

.load-more {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.load-more:hover {
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--color-accent);
}

/* 悬浮发布按钮 */
.share-float {
  text-align: center;
  padding: 16px 0 0;
}

.share-dream-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-btn);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.share-dream-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(167, 139, 250, 0.4);
}

.share-icon {
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .header {
    padding: 30px 0 20px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .card {
    padding: 20px;
  }
  
  .mode-options {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
}
