/* ========== 生日主题样式 ========== */
body.birthday-theme {
  background: linear-gradient(135deg, #ffeef5 0%, #fff5e6 50%, #ffeef5 100%) !important;
  min-height: 100vh;
}

/* 导航栏生日样式 */
body.birthday-theme .navbar,
body.birthday-theme .top-nav,
body.birthday-theme header {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%) !important;
  box-shadow: 0 2px 20px rgba(255, 154, 158, 0.3) !important;
}

body.birthday-theme .navbar a,
body.birthday-theme .top-nav a,
body.birthday-theme header a {
  color: #8b4513 !important;
}

/* 主内容区背景 - 透明，让body粉色透出来 */
body.birthday-theme .main-content,
body.birthday-theme .content-area,
body.birthday-theme #app {
  background: transparent !important;
}

/* 卡片生日样式 - 只改背景色，不加边框 */
body.birthday-theme .card,
body.birthday-theme .settings-item,
body.birthday-theme .post-item {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* 按钮生日样式 */
body.birthday-theme .btn-primary,
body.birthday-theme button.primary {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8e8e 100%) !important;
  border: none !important;
}

/* ========== 飘落气球动画 ========== */
.birthday-balloons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.birthday-balloon {
  position: absolute;
  bottom: -150px;
  width: 50px;
  height: 65px;
  border-radius: 50%;
  animation: balloonFloat linear infinite;
  opacity: 0.7;
}

.birthday-balloon::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 1px;
  height: 40px;
  background: rgba(150, 150, 150, 0.4);
}

.birthday-balloon::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid inherit;
}

@keyframes balloonFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(0, -110vh, 0) rotate(15deg);
    opacity: 0;
  }
}

/* 彩带 */
.birthday-confetti {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 20px;
  pointer-events: none;
  z-index: 9998;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translate3d(0, 110vh, 0) rotate(360deg);
    opacity: 0.2;
  }
}

/* ========== 生日弹窗 ========== */
.birthday-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: birthdayFadeIn 0.4s ease;
}

@keyframes birthdayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.birthday-popup {
  position: relative;
  width: 90%;
  max-width: 420px;
  background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
  border-radius: 28px;
  padding: 40px 30px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.5);
  animation: birthdayPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

@keyframes birthdayPopIn {
  0% {
    transform: scale(0.5) translateY(50px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* 弹窗顶部装饰 */
.birthday-popup-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #ff6b9d, #ffd93d, #6bcb77, #4d96ff, #ff6b9d);
  background-size: 200% 100%;
  animation: birthdayRainbow 3s linear infinite;
}

@keyframes birthdayRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* 蛋糕图标 */
.birthday-cake {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  position: relative;
  animation: birthdayBounce 2s ease-in-out infinite;
}

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

/* 弹窗标题 */
.birthday-popup h2 {
  font-size: 26px;
  font-weight: 800;
  color: #d63384;
  margin: 0 0 8px;
  text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.5);
}

.birthday-popup .birthday-subtitle {
  font-size: 15px;
  color: #c2185b;
  margin: 0 0 20px;
  font-weight: 600;
}

/* 祝福内容 */
.birthday-wishes {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 24px;
  border: 2px dashed #ffb6c1;
}

.birthday-wish-item {
  font-size: 16px;
  color: #8b4513;
  font-weight: 600;
  line-height: 2;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.birthday-wish-item .wish-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* 弹窗底部按钮 */
.birthday-popup-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8e8e 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.birthday-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

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

/* 关闭按钮 */
.birthday-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: #d63384;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.birthday-popup-close:hover {
  background: #ff6b9d;
  color: #fff;
  transform: rotate(90deg);
}

/* 弹窗角落气球装饰 */
.birthday-popup-deco {
  position: absolute;
  font-size: 40px;
  opacity: 0.6;
  animation: birthdayFloat 3s ease-in-out infinite;
}

.birthday-popup-deco.left {
  top: 30px;
  left: 15px;
  animation-delay: 0s;
}

.birthday-popup-deco.right {
  top: 30px;
  right: 15px;
  animation-delay: 1.5s;
}

@keyframes birthdayFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* 首页生日横幅 */
.birthday-banner {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffecd2 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 154, 158, 0.3);
}

.birthday-banner h3 {
  margin: 0 0 6px;
  color: #d63384;
  font-size: 20px;
  font-weight: 800;
}

.birthday-banner p {
  margin: 0;
  color: #8b4513;
  font-size: 14px;
  font-weight: 600;
}

/* 确保内容在气球之上 - 只给主容器加 */
body.birthday-theme #app {
  position: relative;
  z-index: 2;
}
