:root {
  --qixi-purple: #8b5cf6;
  --qixi-pink: #ec4899;
  --qixi-light-pink: #fdf2f8;
  --qixi-gold: #fbbf24;
  --qixi-text: #831843;
  --qixi-card-bg: #ffffff;
  --qixi-accent: #be185d;
}

.dark-theme:root {
  --qixi-purple: #a78bfa;
  --qixi-pink: #f472b6;
  --qixi-light-pink: #4a044e;
  --qixi-gold: #fcd34d;
  --qixi-text: #fbcfe8;
  --qixi-card-bg: #1e1b4b;
  --qixi-accent: #f9a8d4;
}

/* 强制隐藏侧边栏，确保和春节页面宽度一致 */
#sidebar-placeholder {
  display: none !important;
}

body.seasonal-page.qixi-page {
  background-color: var(--qixi-light-pink);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  color: var(--qixi-text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.seasonal-main.qixi-main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto 0;
  text-align: center;
  box-sizing: border-box;
}

.festive-hero.qixi-hero {
  position: relative;
  padding: 40px 20px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--qixi-pink) 0%, var(--qixi-purple) 100%);
  color: white;
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3);
  margin-bottom: 30px;
  overflow: hidden;
  width: 100%;
}

.festive-hero.qixi-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 15l5.878 12.122L49 29.3l-9.5 9.262L41.756 52 30 45.878 18.244 52 20.5 38.562 11 29.3l13.122-2.178L30 15z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-title {
  font-size: clamp(48px, 10vw, 84px);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: clamp(18px, 4vw, 28px);
  opacity: 0.9;
  letter-spacing: 4px;
}

.wish-card.qixi-card {
  background: var(--qixi-card-bg);
  padding: 30px;
  border-radius: 32px;
  border: 2px solid var(--qixi-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.wish-title.card-title {
  color: var(--qixi-pink);
  font-size: 28px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wish-content.card-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--qixi-text);
}

.magpie-icon {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 100;
  cursor: pointer;
  animation: magpieFly 3s ease-in-out infinite alternate;
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme .magpie-icon {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.magpie-icon:hover {
  transform: scale(1.15) rotate(10deg);
}

.magpie-icon.bounce {
  animation: iconBounce 0.6s ease;
}

@keyframes magpieFly {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.3) rotate(-15deg); }
  60% { transform: scale(0.9) rotate(10deg); }
}

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

.action-buttons {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--qixi-pink) 0%, var(--qixi-purple) 100%);
  color: white;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.35);
  filter: brightness(1.1);
}

.poem-section {
  margin-top: 25px;
  font-style: italic;
  color: var(--qixi-purple);
  opacity: 0.85;
}

.poem-line {
  margin-bottom: 5px;
  font-size: 16px;
}

.festival-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.festival-tag {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--qixi-pink), var(--qixi-purple));
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .magpie-icon { 
    top: 15px; 
    right: 15px; 
  }
  .magpie-icon svg {
    width: 44px;
    height: 44px;
  }
  
  .festive-hero.qixi-hero {
    padding: 30px 20px;
  }
  
  .wish-card.qixi-card {
    padding: 25px 20px;
  }
  
  .seasonal-main.qixi-main {
    padding: 15px;
  }
  
  .festival-tags {
    gap: 8px;
  }
  
  .festival-tag {
    padding: 5px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }
  
  .wish-title.card-title {
    font-size: 20px;
  }
  
  .wish-content.card-content {
    font-size: 14px;
  }
  
  .poem-line {
    font-size: 14px;
  }
}
