/**
 * 中国传统节日特效样式
 * 半透明不遮挡内容，可手动关闭
 */

/* 特效容器 */
.festival-effect-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

/* 关闭动画 */
.festival-effect-container.festival-closing {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* 特效画布 */
.festival-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 祝福语浮动框 */
.festival-greeting-float {
  position: fixed;
  top: 100px;
  right: 10px;
  background: linear-gradient(135deg, rgba(213, 64, 83, 0.85) 0%, rgba(200, 50, 70, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(213, 64, 83, 0.25);
  pointer-events: auto;
  animation: festival-greeting-in 0.6s ease-out;
  max-width: 200px;
  text-align: center;
  z-index: 9999;
}

@keyframes festival-greeting-in {
  from {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.festival-greeting-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
  line-height: 1.3;
}

.festival-greeting-sub {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* 关闭按钮 */
.festival-close-btn {
  position: fixed;
  top: 72px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 9999;
}

.festival-close-btn:hover {
  background: #fff;
  color: #D54053;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.festival-close-btn {
  font-size: 14px;
}

/* 深色模式适配 */
body.dark-mode .festival-close-btn {
  background: rgba(50, 50, 50, 0.9);
  color: #ccc;
}

body.dark-mode .festival-close-btn:hover {
  background: #444;
  color: #FF6B6B;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .festival-greeting-float {
    top: 90px;
    right: 10px;
    left: auto;
    max-width: 160px;
    padding: 8px 12px;
  }
  
  .festival-greeting-main {
    font-size: 14px;
  }
  
  .festival-greeting-sub {
    font-size: 11px;
  }
  
  .festival-close-btn {
    top: 70px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* 节日特定样式 - 可根据需要调整各节日的祝福语颜色 */

/* 春节 - 红色主题 */
.festival-effect-container[data-festival="spring-festival"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(213, 64, 83, 0.9) 0%, rgba(180, 40, 60, 0.9) 100%);
}

/* 元宵节 - 暖色主题 */
.festival-effect-container[data-festival="lantern-festival"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(255, 140, 66, 0.9) 0%, rgba(255, 69, 0, 0.9) 100%);
}

/* 端午节 - 绿色主题 */
.festival-effect-container[data-festival="dragon-boat"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(46, 125, 50, 0.9) 100%);
}

/* 七夕 - 粉色主题 */
.festival-effect-container[data-festival="qixi"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.9) 0%, rgba(255, 20, 147, 0.9) 100%);
}

/* 中秋节 - 金色主题 */
.festival-effect-container[data-festival="mid-autumn"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
}

/* 重阳节 - 黄色主题 */
.festival-effect-container[data-festival="double-ninth"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 165, 0, 0.9) 100%);
}

/* 冬至 - 暖色主题 */
.festival-effect-container[data-festival="winter-solstice"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(160, 82, 45, 0.9) 100%);
}

/* 元旦 - 多彩主题 */
.festival-effect-container[data-festival="new-year"] .festival-greeting-float {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.9) 0%, rgba(103, 58, 183, 0.9) 100%);
}
