/* ==========================================================================
   中秋佳节 · 花好月圆 · 东方雅致美学（基于 gemini 参考稿设计语言裁剪）
   ========================================================================== */

:root {
  --bg-primary: #070b19;
  --bg-secondary: #0d1527;
  --gold-primary: #fbd369;
  --gold-secondary: #e6b438;
  --gold-light: #fff5c0;
  --gold-glow: rgba(251, 211, 105, 0.45);
  --red-seal: #c0302b;
  --red-seal-bg: rgba(192, 48, 43, 0.12);
  --text-main: #f5f6fa;
  --text-muted: #abb4c4;
  --card-bg: rgba(18, 25, 48, 0.88);
  --glass-border: rgba(251, 211, 105, 0.28);
  --glass-border-subtle: rgba(255, 255, 255, 0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(251, 211, 105, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(251, 211, 105, 0.65); }

body {
  font-family: var(--font-serif);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  user-select: none;
}

body.mood-midnight {
  background: radial-gradient(ellipse at top, #162447 0%, #0d1527 50%, #070b19 100%) fixed;
}

/* 背景动态画布 */
#sky-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* 主容器：空白区域点穿到画布 */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 18px;
  pointer-events: none;
}

.header-bar, .hero-section, .footer-section, .nav-card {
  pointer-events: auto;
}

/* ==========================================================================
   顶部良辰印记
   ========================================================================== */

.header-bar {
  width: 100%;
  max-width: 1140px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 14px;
}

.festival-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 211, 105, 0.12);
  border: 1px solid var(--glass-border);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite ease-in-out;
}

/* ==========================================================================
   主视觉：明月玉兔 · 文案 · 许愿 · 功能入口
   ========================================================================== */

.hero-section {
  text-align: center;
  margin: 4px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 960px;
  width: 100%;
}

/* 明月与玉兔（DOM 绘制，不占画布性能） */
.moon-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.moon-wrapper:active { transform: scale(0.96); }

.moon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 35% 35%, #fffef0 0%, #fff2be 30%, #f7d570 70%, #d8a230 100%);
  box-shadow:
    0 0 35px rgba(255, 245, 192, 0.75),
    0 0 85px rgba(251, 211, 105, 0.5),
    0 0 150px rgba(230, 180, 56, 0.3),
    inset -15px -15px 40px rgba(180, 115, 10, 0.38);
  overflow: hidden;
  animation: moonFloat 7s ease-in-out infinite;
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 145, 45, 0.25) 0%, rgba(180, 130, 30, 0.15) 70%, transparent 100%);
  filter: blur(1px);
}
.crater-1 { width: 52px; height: 46px; top: 33px; left: 38px; transform: rotate(15deg); }
.crater-2 { width: 68px; height: 58px; bottom: 42px; right: 33px; transform: rotate(-10deg); opacity: 0.7; }
.crater-3 { width: 34px; height: 34px; top: 104px; left: 62px; opacity: 0.5; }
.crater-4 { width: 25px; height: 25px; top: 38px; right: 52px; opacity: 0.6; }

.moon-clouds {
  position: absolute;
  top: 45%;
  left: -20%;
  width: 140%;
  height: 42px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 30%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.14) 70%, transparent 100%);
  filter: blur(8px);
  border-radius: 50px;
  animation: floatCloud 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.moon-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rabbit-svg {
  width: 82px;
  height: 82px;
  fill: rgba(38, 24, 55, 0.88);
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(251, 211, 105, 0.6));
  animation: rabbitBreathe 3.5s ease-in-out infinite;
}

/* 节日文案 */
.title-group { margin-bottom: 12px; }

.festival-sub {
  font-size: 0.92rem;
  letter-spacing: 5px;
  color: var(--gold-secondary);
  margin-bottom: 6px;
}

.festival-main-title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fff3ce 50%, #fbd369 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(251, 211, 105, 0.3));
  margin-bottom: 10px;
}

.poetry-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.poetry-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* 快捷许愿条 */
.wish-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 18, 36, 0.72);
  border: 1px solid var(--glass-border);
  border-radius: 35px;
  padding: 6px 6px 6px 20px;
  width: min(92%, 460px);
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.wish-bar:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 28px rgba(251, 211, 105, 0.25);
}

.wish-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.wish-bar input::placeholder { color: rgba(255, 245, 192, 0.5); }

.wish-fly-btn {
  background: linear-gradient(135deg, #fbd369 0%, #e6a827 100%);
  border: none;
  border-radius: 25px;
  color: #161205;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 168, 39, 0.4);
  transition: var(--transition-smooth);
}

.wish-fly-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wish-fly-btn:active { transform: scale(0.96); }

/* 功能入口卡片 */
.interactive-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 860px;
  margin-top: 16px;
}

.nav-card {
  background: rgba(20, 30, 58, 0.68);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  color: inherit;
}

.nav-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 46, 88, 0.82);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(251, 211, 105, 0.28);
}

.nav-card.featured {
  background: linear-gradient(135deg, rgba(251, 211, 105, 0.22) 0%, rgba(230, 168, 39, 0.14) 100%);
  border-color: rgba(251, 211, 105, 0.55);
}

.nav-card.active {
  border-color: var(--gold-primary);
  background: rgba(251, 211, 105, 0.2);
  box-shadow: 0 0 18px rgba(251, 211, 105, 0.3);
}

.nav-icon {
  font-size: 1.9rem;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}

.nav-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sky-hint-text {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(251, 211, 105, 0.7);
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* 底部寄语 */
.footer-section {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 14px;
}

.footer-quote {
  color: var(--gold-secondary);
  margin-bottom: 5px;
  font-weight: 600;
}

.footer-blessing { font-size: 0.76rem; opacity: 0.85; }

/* ==========================================================================
   弹窗统一体系
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: auto;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  background: linear-gradient(135deg, rgba(23, 33, 62, 0.96) 0%, rgba(12, 18, 38, 0.98) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(251, 211, 105, 0.18);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 5;
  transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover { color: var(--gold-primary); background: rgba(255, 255, 255, 0.08); }

.modal-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 6px;
  font-weight: 700;
}

.modal-subtitle {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* 表单 */
.form-group { margin-bottom: 14px; text-align: left; }

.form-label {
  display: block;
  font-size: 0.84rem;
  color: var(--gold-secondary);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(10, 16, 32, 0.72);
  border: 1px solid rgba(251, 211, 105, 0.28);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(251, 211, 105, 0.35);
  background: rgba(16, 26, 52, 0.9);
}

.form-textarea { min-height: 76px; resize: vertical; line-height: 1.6; }

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

.quick-tag {
  background: rgba(251, 211, 105, 0.1);
  border: 1px solid rgba(251, 211, 105, 0.22);
  color: var(--gold-light);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.quick-tag:hover {
  background: rgba(251, 211, 105, 0.25);
  border-color: var(--gold-primary);
}

/* 按钮 */
.btn-primary {
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #fbd369 0%, #e6a827 100%);
  border: none;
  border-radius: 30px;
  color: #161205;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(230, 168, 39, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: rgba(251, 211, 105, 0.18);
  border-color: var(--gold-primary);
}

.card-action-bar { display: flex; gap: 10px; margin-top: 16px; }
.card-action-bar .btn-primary { flex: 2; }
.card-action-bar .btn-secondary { flex: 1; }

/* ==========================================================================
   贺卡预览（国风回纹卡面）
   ========================================================================== */

.card-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.card-preview-container {
  margin: 4px 0 16px;
  display: flex;
  justify-content: center;
}

.greeting-card-preview {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 2px solid var(--gold-secondary);
  background: radial-gradient(circle at 80% 20%, #293d6d 0%, #101c38 60%, #080d1e 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(251, 211, 105, 0.15);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.card-corner-ornament {
  position: absolute;
  width: 20px;
  height: 20px;
  border-style: solid;
  border-color: var(--gold-primary);
  opacity: 0.75;
  pointer-events: none;
}
.card-corner-ornament.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.card-corner-ornament.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.card-corner-ornament.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.card-corner-ornament.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.card-inner-border {
  position: absolute;
  top: 9px; left: 9px; right: 9px; bottom: 9px;
  border: 1px solid rgba(251, 211, 105, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.card-watermark-moon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 192, 0.16) 0%, rgba(251, 211, 105, 0.08) 50%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.card-header-art { position: relative; z-index: 2; }

.card-top-tag {
  font-size: 0.82rem;
  letter-spacing: 4px;
  color: var(--gold-secondary);
  font-weight: 700;
}

.card-main-content { position: relative; z-index: 2; margin: 14px 0; }

.card-to {
  font-size: 1.1rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-weight: 700;
  text-align: left;
}

.card-body-text {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #fff9ea;
  letter-spacing: 2px;
  margin-top: 12px;
  white-space: pre-wrap;
  text-align: left;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.card-from {
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  font-weight: 600;
  min-height: 1.4em;
}

.card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.seal-stamp {
  width: 48px;
  height: 48px;
  border: 2px solid var(--red-seal);
  border-radius: 8px;
  color: var(--red-seal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: var(--red-seal-bg);
  box-shadow: inset 0 0 8px rgba(192, 48, 43, 0.4);
  transform: rotate(-5deg);
}

/* ==========================================================================
   祝福海报
   ========================================================================== */

.poster-img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(251, 211, 105, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   月饼盲盒
   ========================================================================== */

.mooncake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 4px;
}

.mooncake-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: inherit;
  color: inherit;
}

.mooncake-item:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--gold-primary);
  background: rgba(251, 211, 105, 0.15);
  box-shadow: 0 10px 25px rgba(251, 211, 105, 0.2);
}

.mooncake-item:active { transform: scale(0.95); }

.mooncake-svg-wrap {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.mooncake-item:hover .mooncake-svg-wrap { transform: rotate(15deg) scale(1.08); }

.mooncake-name {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.blindbox-result {
  text-align: center;
  padding: 18px;
  background: rgba(251, 211, 105, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-top: 14px;
  animation: fadeIn 0.4s ease;
}

.fortune-sign-badge {
  display: inline-block;
  background: var(--red-seal);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(192, 48, 43, 0.4);
}

.fortune-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #fff9ea;
  margin-bottom: 8px;
}

.fortune-poetry {
  font-size: 0.9rem;
  color: var(--gold-secondary);
  letter-spacing: 1px;
}

/* ==========================================================================
   猜灯谜
   ========================================================================== */

.riddle-card {
  background: rgba(251, 211, 105, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.riddle-question {
  font-size: 1.3rem;
  color: #fff9e6;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.riddle-hint {
  font-size: 0.85rem;
  color: var(--gold-secondary);
}

.riddle-answer-box {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(251, 211, 105, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1.05rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  display: none;
}

.riddle-answer-box.revealed { display: block; animation: fadeIn 0.3s ease; }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(16, 24, 48, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 15px var(--gold-glow);
  z-index: 999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  max-width: 88vw;
  text-align: center;
}

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

/* ==========================================================================
   动画关键帧
   ========================================================================== */

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes floatCloud {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(15px); }
}

@keyframes rabbitBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-3px) scaleY(1.02); }
}

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

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

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 640px) {
  .app-container { padding: 10px 14px 24px; }

  .moon-wrapper { width: 148px; height: 148px; }
  .crater-1 { width: 42px; height: 37px; top: 26px; left: 30px; }
  .crater-2 { width: 54px; height: 46px; bottom: 33px; right: 26px; }
  .crater-3 { width: 27px; height: 27px; top: 82px; left: 49px; }
  .crater-4 { width: 20px; height: 20px; top: 30px; right: 42px; }
  .rabbit-svg { width: 64px; height: 64px; }

  .interactive-nav { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .nav-card { padding: 12px 6px; }
  .nav-icon { font-size: 1.6rem; }
  .nav-title { font-size: 0.85rem; letter-spacing: 1px; }
  .nav-desc { display: none; }

  .wish-bar { padding-left: 14px; }
  .wish-fly-btn { padding: 8px 14px; }

  .modal-content { padding: 22px 16px; border-radius: 18px; }
  .card-action-bar { flex-direction: column; }
  .card-action-bar .btn-primary, .card-action-bar .btn-secondary { width: 100%; }
  .mooncake-grid { gap: 8px; }
  .festival-badge { font-size: 0.76rem; padding: 6px 14px; letter-spacing: 1px; }
}
