:root {
  --xiaolan-deep: #071b3d;
  --xiaolan-ocean: #0d3b83;
  --xiaolan-blue: #1762b8;
  --xiaolan-cyan: #35c4e8;
  --xiaolan-mist: #eaf8ff;
  --background: #f4fbff;
  --foreground: #102b4d;
  --card: #ffffff;
  --card-foreground: #102b4d;
  --primary: #1762b8;
  --primary-foreground: #ffffff;
  --secondary: #dff5ff;
  --secondary-foreground: #0d3b83;
  --muted: #edf7fc;
  --muted-foreground: #52708f;
  --accent: #ccf4ff;
  --accent-foreground: #0d3b83;
  --border: #c8e5f2;
  --input: #c8e5f2;
  --ring: #35c4e8;
  --radius: 0.9rem;
  --shadow-color: 20 76 130;
}

html,
body {
  background: var(--background);
  color: var(--foreground);
}

body {
  background-image: radial-gradient(circle at 12% 8%, #d8f5ff 0, transparent 28rem),
    radial-gradient(circle at 88% 92%, #dbeaff 0, transparent 30rem);
}

button,
[role="button"] {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:hover,
[role="button"]:hover {
  box-shadow: 0 8px 22px rgb(var(--shadow-color) / 0.16);
}

button:active,
[role="button"]:active {
  transform: translateY(1px);
}

input,
textarea,
select {
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.86);
  border-color: var(--border);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--xiaolan-cyan);
  box-shadow: 0 0 0 3px rgb(53 196 232 / 0.18);
}

[data-sidebar="sidebar"] {
  background: linear-gradient(180deg, var(--xiaolan-deep) 0%, #0b2b61 62%, #0d3b83 100%);
  color: #e8f9ff;
  border-color: rgb(139 233 255 / 0.18);
}

[data-sidebar="sidebar"] [data-sidebar="menu-button"] {
  color: #d6f2ff;
  border-radius: 0.75rem;
}

[data-sidebar="sidebar"] [data-sidebar="menu-button"]:hover,
[data-sidebar="sidebar"] [data-sidebar="menu-button"][data-active="true"] {
  background: rgb(139 233 255 / 0.16);
  color: #ffffff;
}

[data-sidebar="sidebar"] svg {
  color: #8be9ff;
}

[data-sidebar="sidebar"]::before {
  content: "小蓝鲸";
  display: block;
  margin: 1.25rem 1rem 0.75rem;
  padding: 3.5rem 0.75rem 0.25rem;
  background: url("/custom/xiaolanwhale.svg") no-repeat 0 0 / 3rem 3rem;
  color: #ffffff;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.dark {
  --background: #06152e;
  --foreground: #e9f8ff;
  --card: #0a2348;
  --card-foreground: #e9f8ff;
  --muted: #0b2d58;
  --muted-foreground: #9bc6df;
  --border: #1f5379;
  --input: #1f5379;
  --secondary: #123b68;
  --secondary-foreground: #c9f5ff;
}

.dark body {
  background-image: radial-gradient(circle at 15% 8%, #0c3962 0, transparent 30rem),
    radial-gradient(circle at 85% 90%, #111e52 0, transparent 28rem);
}
