/* 轻语API · 可爱粉紫主题（浅色 + 深色两套，覆盖默认蓝色主题） */

/* ================= 浅色 ================= */
:root {
  --radius: 1.1rem;

  --background: #fffafd;
  --foreground: #4a4258;

  --card: #ffffff;
  --card-foreground: #4a4258;
  --popover: #ffffff;
  --popover-foreground: #4a4258;

  --primary: #f472b6;
  --primary-foreground: #ffffff;

  --secondary: #f6ecff;
  --secondary-foreground: #7a5f96;

  --muted: #fbf6ff;
  --muted-foreground: #8a7f9c;

  --accent: #ffeef7;
  --accent-foreground: #6b4f77;

  --border: #f2e7f8;
  --input: #f8f2fc;
  --ring: #f9a8d4;

  --destructive: #e8577a;
  --success: #45b98a;
  --warning: #e0a134;

  /* 侧边栏 / 顶栏：从默认的深灰换成浅粉白 */
  --sidebar: #fff8fc;
  --sidebar-foreground: #57495f;
  --sidebar-accent: #ffe8f4;
  --sidebar-accent-foreground: #a8487c;
  --sidebar-border: #f3e6f1;
  --sidebar-primary: #f472b6;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-ring: #f9a8d4;
}

/* ================= 深色 ================= */
.dark {
  --background: #1d1622;
  --foreground: #f1eaf6;

  --card: #261d2d;
  --card-foreground: #f1eaf6;
  --popover: #2b2133;
  --popover-foreground: #f1eaf6;

  --primary: #ff8fc0;
  --primary-foreground: #2a1a26;

  --secondary: #33263d;
  --secondary-foreground: #f0d9ee;

  --muted: #2a2130;
  --muted-foreground: #bfaecb;

  --accent: #3a2b45;
  --accent-foreground: #fbe3f2;

  --border: #3a2d44;
  --input: #332639;
  --ring: #ff8fc0;

  --destructive: #ff6b8a;
  --success: #4ecfa0;
  --warning: #e8b25a;

  --sidebar: #221a29;
  --sidebar-foreground: #eadff2;
  --sidebar-accent: #33253d;
  --sidebar-accent-foreground: #ffd9ec;
  --sidebar-border: #382a42;
  --sidebar-primary: #ff8fc0;
  --sidebar-primary-foreground: #2a1a26;
  --sidebar-ring: #ff8fc0;
}

/* ================= 背景与质感 ================= */
body {
  background-image: linear-gradient(160deg, #fff1f8 0%, #f7f2ff 48%, #eef8ff 100%);
  background-attachment: fixed;
  background-color: #fffafd;
}
.dark body {
  background-image: linear-gradient(160deg, #241728 0%, #1b1626 50%, #141b26 100%);
  background-color: #1d1622;
}

/* 卡片 / 分割线柔和化 */
[data-slot="card"],
.card,
.border {
  border-color: var(--border);
}

/* 主按钮：粉紫渐变（浅色） */
button.bg-primary,
a.bg-primary,
[data-slot="button"].bg-primary {
  background-image: linear-gradient(100deg, #ff9dc7, #b79bff);
  border-color: transparent;
}
.dark button.bg-primary,
.dark a.bg-primary,
.dark [data-slot="button"].bg-primary {
  background-image: linear-gradient(100deg, #ff85bd, #a888ff);
}

/* 顶栏 / 侧栏毛玻璃 */
header,
aside,
[data-slot="sidebar"],
nav {
  backdrop-filter: blur(8px);
}

/* 滚动条粉色系 */
* {
  scrollbar-color: #ffc6de transparent;
}
*::-webkit-scrollbar-thumb {
  background: #ffc6de;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #ffa6c9;
}
.dark * {
  scrollbar-color: #4a3556 transparent;
}
.dark *::-webkit-scrollbar-thumb {
  background: #4a3556;
}
