:root {
  --bg: #faf7f0;
  --bg-soft: #f4efe2;
  --gold: #f4d27e;
  --gold-deep: #e0b95c;
  --text-main: #1f272f;
  --text-soft: #6a7078;
  --border-soft: rgba(0,0,0,0.06);
  --shadow-soft: 0 24px 80px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(circle at top, #fffaf0, #f3f0ea 48%, #ece6da 100%);
}

.page {
  width: 100%;
  max-width: 1120px;
  margin: 40px 20px;
  padding: 28px 28px 32px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(250,247,240,0.98));
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.6) 0, transparent 55%),
    radial-gradient(circle at 90% 110%, rgba(244,210,126,0.20) 0, transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.page-inner {
  position: relative;
  z-index: 1;
  display: contents;
}

.hero {
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 185, 92, 0.35);
  background: rgba(250,245,230,0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(244,210,126,0.35);
}

h1 {
  font-size: clamp(30px, 4vw, 36px);
  margin: 4px 0 8px;
  letter-spacing: 0.02em;
}

.tagline {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.04);
  color: var(--text-soft);
}

.feature-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-main);
}

.feature-list li {
  margin-bottom: 6px;
}

.feature-with-examples {
  margin-bottom: 10px;
}

.feature-with-examples .feature-main {
  margin-bottom: 8px;
}

.feature-examples {
  margin: 12px 0 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.feature-examples::-webkit-scrollbar {
  display: none;
}

.feature-examples:active {
  cursor: grabbing;
}

.feature-examples-track {
  display: flex;
  gap: 12px;
  width: max-content;
  user-select: none;
}

.feature-example {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(31,39,47,0.92);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  line-height: 1.4;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none; /* 防止点击文字干扰拖拽 */
}

.feature-example em {
  font-style: normal;
  color: rgba(106,112,120,0.95);
}

.test-guide {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(250,245,230,0.6);
  border: 1px solid rgba(224, 185, 92, 0.2);
}

.test-guide h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.test-guide ol {
  margin: 0;
  padding-left: 18px;
}

.test-guide li {
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

.test-guide li:last-child {
  margin-bottom: 0;
}

.test-guide strong {
  color: var(--text-main);
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}

.btn span.icon {
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #ffe9a9);
  border-color: rgba(224, 185, 92, 0.75);
  color: #3b2600;
  box-shadow: 0 10px 24px rgba(224,185,92,0.32);
}

.btn-outline {
  background: rgba(255,255,255,0.85);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

    .note {
      font-size: 12px;
      color: var(--text-soft);
    }

    /* 趣味功能板块 */
    .fun-features {
      margin-top: 24px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .fun-card {
      padding: 16px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(0, 0, 0, 0.03);
      transition: all 0.3s ease;
    }

    .fun-card:hover {
      background: #fff;
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    }

    .fun-card h4 {
      margin: 0 0 8px;
      font-size: 14px;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .fun-card p {
      margin: 0 0 12px;
      font-size: 12px;
      color: var(--text-soft);
      line-height: 1.5;
    }

    /* 投票组件样式 */
    .vote-container {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-top: 10px;
    }

    .vote-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      background: rgba(0,0,0,0.02);
      padding: 8px 4px;
      border-radius: 12px;
    }

    .vote-item .avatar {
      font-size: 20px;
    }

    .vote-item .count {
      font-size: 11px;
      font-weight: 600;
      color: var(--gold-deep);
    }

    .vote-btn {
      border: none;
      background: var(--gold);
      color: #3b2600;
      font-size: 10px;
      padding: 4px 8px;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .vote-btn:hover {
      transform: scale(1.05);
      background: var(--gold-deep);
    }

    .vote-btn:disabled {
      background: #e0e0e0;
      color: #999;
      cursor: not-allowed;
      transform: none;
    }

    .vote-btn.voted {
      background: #ff9d6c;
      color: white;
    }

    @media (max-width: 820px) {
      .fun-features {
        grid-template-columns: 1fr;
      }
    }

    /* 实时演示板块 */
    .live-demo-section {
      margin-top: 24px;
      perspective: 1000px;
    }

    .live-card {
      background: linear-gradient(145deg, #fffcf6, #fdfaf2);
      border: 1px solid rgba(224, 185, 92, 0.2);
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.03);
      transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
      position: relative;
    }

    /* 入口态 */
    .live-entry {
      padding: 18px 20px;
      display: flex;
      align-items: center;
      gap: 16px;
      cursor: pointer;
    }

    .live-entry .rabbit-icon {
      font-size: 28px;
      filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    }

    .live-entry .text-content {
      flex: 1;
    }

    .live-entry h4 {
      margin: 0;
      font-size: 15px;
      color: var(--text-main);
    }

    .live-entry p {
      margin: 2px 0 0;
      font-size: 12px;
      color: var(--text-soft);
    }

    .start-demo-btn {
      background: var(--text-main);
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.2s;
    }

    /* 重新设计：以角色为中心的演示舞台 */
    .live-chat-panel {
      display: none;
      flex-direction: column;
      height: 420px;
      background: radial-gradient(circle at center, #fff, #fdfaf2);
      position: relative;
      padding: 20px;
    }

    .stage-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    /* 兔子居中 */
    .rabbit-stage-avatar {
      font-size: 64px;
      z-index: 2;
      transition: all 0.3s;
      margin-top: 40px;
    }

    /* 气泡悬浮在兔子上方 */
    .bubble-container {
      position: absolute;
      top: 20px;
      width: 100%;
      display: flex;
      justify-content: center;
      min-height: 100px;
      z-index: 3;
    }

.speech-bubble {
  background: white;
  border: 1px solid rgba(224, 185, 92, 0.3);
  padding: 16px 20px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(224, 185, 92, 0.15);
  max-width: 280px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  position: relative;
  animation: bubbleFloat 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

    /* 气泡小尖角 */
    .speech-bubble::after {
      content: "";
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 10px solid white;
      filter: drop-shadow(0 2px 0 rgba(224, 185, 92, 0.1));
    }

    /* 选项放在兔子下方 */
    .chat-footer {
      padding: 20px 0;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      z-index: 4;
      min-height: 100px;
    }

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

    /* 兔子动画 */
    .rabbit-avatar {
      display: inline-block;
      transition: all 0.3s;
    }
    .rabbit-avatar.talking { animation: rabbitFloat 2s ease-in-out infinite; }
    .rabbit-avatar.hop { animation: rabbitHop 0.5s ease-out; }
    .rabbit-avatar.nod { animation: rabbitNod 0.4s ease-in-out; }

    /* 打字指示器 */
    .typing {
      display: flex;
      gap: 4px;
      padding: 8px 12px;
      justify-content: center;
    }
    .dot {
      width: 4px;
      height: 4px;
      background: #ccc;
      border-radius: 50%;
      animation: dotTyping 1.4s infinite;
    }
    .dot:nth-child(2) { animation-delay: 0.2s; }
    .dot:nth-child(3) { animation-delay: 0.4s; }

    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    @keyframes rabbitFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
    @keyframes rabbitHop { 0% { transform: scale(0.8) translateY(10px); } 50% { transform: scale(1.1) translateY(-10px); } 100% { transform: scale(1) translateY(0); } }
    @keyframes rabbitNod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }
    @keyframes dotTyping { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

    .form-card {
  align-self: stretch;
  background: linear-gradient(145deg, var(--bg-soft), #fff);
  border-radius: 24px;
  padding: 20px 18px 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}

label {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 4px;
  display: block;
}

input[type="email"],
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.9);
  color: var(--text-main);
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
  resize: vertical;
  min-height: 40px;
}

textarea {
  min-height: 88px;
}

input[type="email"]:focus,
textarea:focus {
  border-color: rgba(224,185,92,0.9);
  box-shadow: 0 0 0 1px rgba(224,185,92,0.35);
  background: #ffffff;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-soft);
}

.form-success {
  display: none;
  font-size: 12px;
  color: #146c43;
  background: #e8f5ec;
  border-radius: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 118, 65, 0.18);
  margin-top: 4px;
}

/* 浮现动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.56s; }
.delay-5 { animation-delay: 0.72s; }
.delay-6 { animation-delay: 0.88s; }
.delay-7 { animation-delay: 1.04s; }
.delay-8 { animation-delay: 1.2s; }
.delay-9 { animation-delay: 1.36s; }
.delay-10 { animation-delay: 1.52s; }
.delay-11 { animation-delay: 1.68s; }
.delay-12 { animation-delay: 1.84s; }

    /* 悬浮小卡片样式 - 重新设计 */
    #fortune-card {
      position: fixed;
      bottom: 40px;
      right: 40px;
      width: 72px;
      height: 72px;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      cursor: pointer;
      box-shadow: 0 12px 40px rgba(0,0,0,0.1);
      z-index: 1000;
      user-select: none;
      /* 基础悬浮动画 */
      animation: float-around 6s ease-in-out infinite;
      /* 侧移过渡 */
      transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    }

    #fortune-card:hover {
      transform: scale(1.15) translateY(-5px) rotate(8deg);
      box-shadow: 0 20px 50px rgba(0,0,0,0.15);
      background: #fff;
    }

    /* 蹦蹦跳跳的侧移类 - 改为原地蹦跶 */
    #fortune-card.side-jumping {
      animation: jump-bounce 0.6s cubic-bezier(0.45, 0, 0.55, 1);
    }

    @keyframes jump-bounce {
      0%, 100% { transform: scale(1) translateY(0); }
      40% { transform: scale(0.9, 1.1) translateY(-60px) rotate(5deg); }
      70% { transform: scale(1.05, 0.95) translateY(0); }
    }

    /* 移除左侧位置逻辑 */
    #fortune-card.on-left {
      transform: none;
    }

@keyframes float-around {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, -20px) rotate(-5deg); }
  50% { transform: translate(5px, -35px) rotate(5deg); }
  75% { transform: translate(15px, -15px) rotate(-3deg); }
}

/* 运势弹窗样式 */
#fortune-modal, .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modal-pop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 收集册展柜样式 */
.collection-display {
  background: linear-gradient(to bottom, #fdfaf2, #fff);
  border: 2px solid var(--gold);
}

.cabinet-header {
  margin-bottom: 20px;
}

.cabinet-header h4 {
  margin: 0;
  color: var(--gold-deep);
  font-size: 18px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(224, 185, 92, 0.05);
  padding: 16px;
  border-radius: 16px;
  border: 1px inset rgba(224, 185, 92, 0.1);
}

.cabinet-slot {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px dashed rgba(224, 185, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cabinet-slot.empty::after {
  content: "?";
  font-size: 20px;
  color: rgba(224, 185, 92, 0.2);
  font-weight: 600;
}

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

.modal-avatar {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 24px;
}

.modal-close {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--text-main);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 0.9;
}

@media (max-width: 820px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 18px 22px;
    margin: 18px 14px;
  }
  .hero {
    padding-right: 0;
  }
  .form-card {
    margin-top: 2px;
  }
}

/* 加入我们模块 */
.join-us {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  border: 1px solid rgba(224, 185, 92, 0.15);
  backdrop-filter: blur(10px);
}

.join-us h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-main);
}

.join-us p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.join-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.join-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

#join-submit-btn {
  height: 46px;
  padding: 0 32px;
}

.error-style {
  color: #842029;
  background: #f8d7da;
  border-color: rgba(132,32,41,0.18);
}

@media (max-width: 820px) {
  .join-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .join-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

