/**
 * 粉红女郎主题 (Pink Lady Theme)
 * 适合少女的浪漫梦幻风格
 */

:root[data-color-theme="pink"],
body.pink-theme {
  /* 背景色 */
  --bg: #1a0a10;
  --card: #2d1520;
  --card2: #3d1f2d;
  --card3: #4e2840;

  /* 强调色 */
  --accent: #FF69B4;
  --accent2: #FFB6C1;
  --accent-rgb: 255, 105, 180;

  /* 文字色 */
  --text: #FFF0F5;
  --text2: #FFB6C1;
  --text3: #E8D5E8;

  /* 边框 */
  --border: #8B4557;
  --border-light: #5C3A3A;

  /* 功能色 */
  --success: #E8A0BF;
  --warn: #FFD1DC;
  --danger: #FF6B8A;

  /* 渐变 */
  --bg-gradient: linear-gradient(135deg, #1a0a10 0%, #2d1520 50%, #3d1f2d 100%);

  /* 阴影 */
  --shadow: 0 4px 20px rgba(255, 105, 180, 0.2);
  --shadow-lg: 0 8px 32px rgba(255, 105, 180, 0.3);

  /* 圆角 */
  --radius: 12px;
  --radius-lg: 16px;
}

/* 背景装饰 */
body.pink-theme::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 105, 180, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 182, 193, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* 侧边栏 */
body.pink-theme .sidebar {
  background: linear-gradient(180deg, #2d1520 0%, #1a0a10 100%);
  border-color: var(--border);
}

/* 按钮 */
body.pink-theme .btn {
  background: linear-gradient(135deg, var(--accent) 0%, #DB7093 100%);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

body.pink-theme .btn:hover {
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* 卡片 */
body.pink-theme .card {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.pink-theme .card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* 进度条 */
body.pink-theme .progress {
  background: rgba(255, 105, 180, 0.2);
}

body.pink-theme .progress-bar {
  background: linear-gradient(90deg, var(--accent), #FFB6C1);
}

/* 滚动条 */
body.pink-theme ::-webkit-scrollbar-track {
  background: var(--bg);
}

body.pink-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), #DB7093);
  border-color: var(--bg);
}

/* Toast */
body.pink-theme .toast {
  background: linear-gradient(135deg, #DB7093 0%, var(--accent) 100%);
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.4);
}

/* 输入框 */
body.pink-theme input,
body.pink-theme select,
body.pink-theme textarea {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

body.pink-theme input:focus,
body.pink-theme select:focus,
body.pink-theme textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

/* ============================================
   樱花飘落效果
   ============================================ */
body.pink-theme .sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

body.pink-theme .sakura {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent2) 0%, #FFE4EC 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.7;
  animation: sakuraFall linear infinite;
}

body.pink-theme .sakura:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
body.pink-theme .sakura:nth-child(2) { left: 20%; animation-duration: 14s; animation-delay: -2s; }
body.pink-theme .sakura:nth-child(3) { left: 30%; animation-duration: 11s; animation-delay: -4s; }
body.pink-theme .sakura:nth-child(4) { left: 40%; animation-duration: 13s; animation-delay: -6s; }
body.pink-theme .sakura:nth-child(5) { left: 50%; animation-duration: 15s; animation-delay: -8s; }
body.pink-theme .sakura:nth-child(6) { left: 60%; animation-duration: 12s; animation-delay: -1s; }
body.pink-theme .sakura:nth-child(7) { left: 70%; animation-duration: 14s; animation-delay: -3s; }
body.pink-theme .sakura:nth-child(8) { left: 80%; animation-duration: 11s; animation-delay: -5s; }
body.pink-theme .sakura:nth-child(9) { left: 90%; animation-duration: 13s; animation-delay: -7s; }
body.pink-theme .sakura:nth-child(10) { left: 15%; animation-duration: 16s; animation-delay: -9s; }

@keyframes sakuraFall {
  0% {
    transform: translateY(-20px) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) translateX(100px);
    opacity: 0;
  }
}

/* 卡片顶部装饰线 - 粉红渐变 */
body.pink-theme .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent2));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

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