/* ===== Aether 风格主题覆盖（全站） ===== */
:root,
.dark {
  --background: #0d0c0b;
  --foreground: #f2ede4;

  --card: #171614;
  --card-foreground: #f2ede4;
  --popover: #1d1b18;
  --popover-foreground: #f2ede4;

  --primary: #e8663d;
  --primary-foreground: #ffffff;
  --secondary: #1d1b18;
  --secondary-foreground: #f2ede4;

  --muted: #1d1b18;
  --muted-foreground: #9a938a;
  --accent: rgba(232, 102, 61, 0.14);
  --accent-foreground: #f2ede4;

  --destructive: #d94f43;
  --destructive-foreground: #ffffff;

  --border: rgba(255, 255, 255, 0.09);
  --input: rgba(255, 255, 255, 0.10);
  --ring: rgba(232, 102, 61, 0.55);

  --sidebar: #121110;
  --sidebar-foreground: #cfc8bd;
  --sidebar-primary: #e8663d;
  --sidebar-accent: rgba(232, 102, 61, 0.12);

  --radius: 0.75rem;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-ui-sans: var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html body {
  background-color: #0d0c0b !important;
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(232, 102, 61, 0.10), transparent 62%),
    radial-gradient(820px 420px at 8% 8%, rgba(255, 255, 255, 0.035), transparent 60%) !important;
  background-attachment: fixed !important;
  color: var(--foreground);
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
}

/* 卡片/面板统一暖黑 */
.bg-card, .bg-background, .bg-popover { background-color: var(--card) !important; }

/* 主按钮保持品牌橙 */
.bg-primary { background-color: var(--primary) !important; color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.hover\:bg-primary\/90:hover { background-color: #f08a63 !important; }

/* 侧边栏 */
aside, [data-sidebar], .sidebar {
  background-color: var(--sidebar) !important;
  border-color: var(--border) !important;
}

/* 表格/分割线 */
table, .border, .border-b, .border-t, .divide-y > * + * {
  border-color: var(--border) !important;
}

/* 输入框 */
input, textarea, select, .bg-input {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--foreground) !important;
  border-radius: 0.6rem;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: var(--ring) !important;
  box-shadow: 0 0 0 3px rgba(232, 102, 61, 0.16) !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(232, 102, 61, 0.45); background-clip: content-box; }

/* 品牌小细节 */
a { color: inherit; }
::selection { background: rgba(232, 102, 61, 0.35); }
