/* ===========================================================
   WorkBuddy · 简约科幻主题 (Sci-Fi Minimal)
   覆盖 New API 的 shadcn 变量，同时作用于 :root 与 .dark
   =========================================================== */

:root, .dark, [data-theme="dark"] {
  color-scheme: dark;

  /* ---- 底色 ---- */
  --background: #060910;
  --foreground: #e6f0ff;

  --card: #0a1120;
  --card-foreground: #e6f0ff;
  --popover: #0c1526;
  --popover-foreground: #e6f0ff;

  /* ---- 主色 ---- */
  --primary: #22d3ee;
  --primary-foreground: #03131a;
  --secondary: #111c2e;
  --secondary-foreground: #cfe3ff;
  --accent: #22d3ee;
  --accent-foreground: #03131a;

  --muted: #0e1726;
  --muted-foreground: #7d90ab;

  /* ---- 语义色 ---- */
  --destructive: #ff4d6d;
  --destructive-foreground: #1a0308;
  --success: #34d399;
  --success-foreground: #04140e;
  --warning: #fbbf24;
  --warning-foreground: #1a1203;
  --info: #38bdf8;
  --info-foreground: #03121a;
  --neutral: #64748b;
  --neutral-foreground: #e6f0ff;

  /* ---- 描边 ---- */
  --border: rgba(120, 190, 255, 0.14);
  --input: rgba(120, 190, 255, 0.18);
  --ring: #22d3ee;
  --radius: 0.75rem;

  /* ---- 侧栏 ---- */
  --sidebar: #070c16;
  --sidebar-foreground: #cfe3ff;
  --sidebar-accent: #101c2f;
  --sidebar-accent-foreground: #e6f0ff;
  --sidebar-border: rgba(120, 190, 255, 0.10);
  --sidebar-primary: #22d3ee;
  --sidebar-primary-foreground: #03131a;
  --sidebar-ring: #22d3ee;

  /* ---- 表格 ---- */
  --table-header: #0b1424;
  --table-header-hover: #101c2f;
  --table-row: #0a1120;
  --table-disabled: #0a0f18;
  --table-disabled-border: rgba(120, 190, 255, 0.08);
  --table-disabled-hover: #0d1421;

  /* ---- 骨架屏 ---- */
  --skeleton-base: #0d1728;
  --skeleton-highlight: #16233a;

  /* ---- 图表 ---- */
  --chart-1: #22d3ee;
  --chart-2: #3b82f6;
  --chart-3: #8b5cf6;
  --chart-4: #34d399;
  --chart-5: #fbbf24;

  --overview-accent-1: #22d3ee;
  --overview-accent-2: #6366f1;
  --overview-accent-3: #34d399;
}

/* ================= 全局底纹 ================= */
html { background-color: #060910; }

body {
  background-color: #060910 !important;
  background-image:
    radial-gradient(1000px 560px at 10% -10%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(900px 520px at 95% 2%, rgba(99, 102, 241, 0.13), transparent 64%),
    radial-gradient(700px 400px at 50% 110%, rgba(34, 211, 238, 0.07), transparent 70%),
    linear-gradient(rgba(120, 190, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

/* 数字等宽，价格/额度不跳动 */
code, pre, kbd, samp,
[class*="tabular"], .font-mono {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace !important;
  font-variant-numeric: tabular-nums;
}

::selection { background: rgba(34, 211, 238, 0.28); color: #eafaff; }

/* ================= 滚动条 ================= */
* { scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, 0.28) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.35), rgba(59, 130, 246, 0.30));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(34, 211, 238, 0.6), rgba(59, 130, 246, 0.5)); background-clip: padding-box; }

/* ================= 面板 / 卡片 ================= */
[class*="rounded-lg"], [class*="rounded-xl"], [class*="rounded-2xl"] {
  border-color: var(--border);
}

/* 顶栏：毛玻璃 */
header, [class*="sticky"][class*="top-0"] {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background-color: rgba(6, 9, 16, 0.62) !important;
  border-bottom: 1px solid rgba(120, 190, 255, 0.10) !important;
}

/* ================= 按钮 ================= */
button, a[class*="button"], [role="button"] { transition: all .18s ease; }

/* 主按钮发光 */
[class*="bg-primary"]:not([class*="foreground"]):not([class*="muted"]) {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 6px 20px -8px rgba(34, 211, 238, 0.55);
}
[class*="bg-primary"]:hover {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.6), 0 8px 26px -6px rgba(34, 211, 238, 0.7);
}

/* 输入框：聚焦时青色光环 */
input, textarea, select, [class*="border-input"] {
  background-color: rgba(9, 15, 26, 0.85) !important;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(34, 211, 238, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  outline: none;
}

/* ================= 表格 ================= */
table { border-collapse: separate; border-spacing: 0; }
thead th {
  background: linear-gradient(180deg, rgba(16, 28, 47, 0.9), rgba(11, 20, 36, 0.9)) !important;
  color: #9fd8ff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18) !important;
}
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background-color: rgba(34, 211, 238, 0.045) !important; }

/* ================= 徽章 / 状态点 ================= */
[class*="rounded-full"][class*="bg-"] {
  letter-spacing: 0.02em;
}

/* ================= 链接 ================= */
a { transition: color .15s ease, opacity .15s ease; }
a:hover { color: #22d3ee; }

/* ================= 弹窗 ================= */
[role="dialog"], [class*="DialogContent"] {
  background: linear-gradient(180deg, #0c1526, #080e1a) !important;
  border: 1px solid rgba(34, 211, 238, 0.20) !important;
  box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 211, 238, 0.08) !important;
  backdrop-filter: blur(12px);
}

/* ================= 标题质感 ================= */
h1, h2 { letter-spacing: -0.01em; }
h1 { text-shadow: 0 0 28px rgba(34, 211, 238, 0.18); }

/* ================= 顶部品牌条 ================= */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee 22%, #3b82f6 50%, #8b5cf6 78%, transparent);
  opacity: .55;
  pointer-events: none;
  z-index: 9999;
}

/* ================= 细微动画 ================= */
@keyframes wb-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
main > * { animation: wb-fade-up .28s ease both; }

@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
  * { transition: none !important; }
}


/* ================= 自定义落地页组件 ================= */
.wb-landing { max-width: 1080px; margin: 0 auto; padding: 68px 0 48px; }

.wb-hero { position: relative; padding: 16px 0 26px; text-align: center; }
.wb-hero::after {
  content: "";
  position: absolute; left: 50%; top: -40px; width: 560px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(34,211,238,.16), transparent 72%);
  pointer-events: none;
}
.wb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid rgba(34,211,238,.28);
  background: rgba(34,211,238,.07);
  color: #7fe6f7; font-size: 12.5px; letter-spacing: .04em;
  position: relative; z-index: 1;
}
.wb-badge i {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 10px #34d399; display: inline-block;
  animation: wb-pulse 2s ease-in-out infinite;
}
@keyframes wb-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.wb-hero h1 {
  position: relative; z-index: 1;
  font-size: 44px; line-height: 1.15; font-weight: 700; margin: 18px 0 12px;
  background: linear-gradient(180deg, #ffffff 10%, #9fd8ff 60%, #6aa9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.wb-sub { position: relative; z-index: 1; color: #8ea6c4; font-size: 15.5px; margin: 0 0 22px; }

.wb-code {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(8,14,26,.9);
  border: 1px solid rgba(34,211,238,.22);
  box-shadow: 0 0 0 1px rgba(34,211,238,.05), 0 12px 40px -18px rgba(34,211,238,.5);
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13.5px; color: #a8e6ff;
  max-width: 100%; overflow-x: auto;
}
.wb-code b { color: #4a5f7a; font-weight: 500; }

.wb-cta { display: flex; gap: 12px; justify-content: center; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.wb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none !important; transition: all .18s ease;
}
.wb-btn.primary {
  background: linear-gradient(180deg, #2ad4ef, #17b6d8); color: #04141a !important;
  box-shadow: 0 0 0 1px rgba(34,211,238,.5), 0 10px 30px -10px rgba(34,211,238,.75);
}
.wb-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(34,211,238,.8), 0 14px 38px -10px rgba(34,211,238,.9); }
.wb-btn.ghost {
  background: rgba(255,255,255,.03); color: #cfe3ff !important;
  border: 1px solid rgba(120,190,255,.22);
}
.wb-btn.ghost:hover { background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.45); }

.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 0; }
.wb-stat {
  border: 1px solid rgba(120,190,255,.12); border-radius: 14px; padding: 18px 20px;
  background: linear-gradient(180deg, rgba(13,22,38,.9), rgba(8,13,23,.9));
  position: relative; overflow: hidden;
}
.wb-stat::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), transparent);
}
.wb-stat .n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 26px; font-weight: 700; color: #eaf6ff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wb-stat .k { color: #7d90ab; font-size: 12.5px; margin-top: 6px; letter-spacing: .03em; }

.wb-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.wb-card {
  border: 1px solid rgba(120,190,255,.12); border-radius: 14px; padding: 20px 22px;
  background: linear-gradient(180deg, rgba(13,22,38,.75), rgba(8,13,23,.75));
  transition: border-color .2s ease, transform .2s ease;
}
.wb-card:hover { border-color: rgba(34,211,238,.32); transform: translateY(-2px); }
.wb-card h3 { font-size: 15px; margin: 0 0 8px; color: #dceeff; display: flex; align-items: center; gap: 9px; }
.wb-card h3 span {
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.25); font-size: 13px;
}
.wb-card p { margin: 0; color: #8ea6c4; font-size: 13.5px; line-height: 1.7; }
.wb-card code {
  background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.18);
  padding: 1px 6px; border-radius: 5px; color: #9fe8ff; font-size: 12.5px;
}

.wb-foot { margin-top: 26px; text-align: center; color: #5b6b80; font-size: 12.5px; letter-spacing: .03em; }

@media (max-width: 860px) {
  .wb-hero h1 { font-size: 30px; }
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
  .wb-cards { grid-template-columns: 1fr; }
  .wb-landing { padding: 0 4px 28px; }
}


/* 主容器透出底纹 */
main { background-color: transparent !important; }
[class*="bg-background"]:not(header):not([role="dialog"]) {
  background-color: transparent !important;
}


/* 关掉页面自带的 600px 辉光层（与我们自己的底纹冲突，形成色块接缝） */
div[aria-hidden="true"][class*="opacity-20"][class*="h-[600px]"] { display: none !important; }

/* 首屏标题区与顶栏留出呼吸空间 */
main header.mx-auto { padding-top: 1.25rem; }
