/* 北境云设计令牌：浅色毛玻璃 */
:root {
  /* 底色：近白偏冷，不用纯白，给玻璃留出可被感知的底 */
  --canvas: #f2f4f9;
  --canvas-deep: #e8ecf6;

  /* 玻璃面板：白度 .72 保证黑字对比度，blur 22px 不再往上堆 */
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .84);
  --glass-quiet: rgba(255, 255, 255, .52);
  --glass-blur: 22px;
  --glass-line: rgba(255, 255, 255, .9);
  --glass-edge: rgba(16, 21, 38, .07);

  /* 数据区实底：表格套毛玻璃可读性会崩，这里必须实底 */
  --solid: #ffffff;
  --solid-quiet: #f7f8fc;
  --solid-line: #e6e9f2;

  --ink: #10131f;
  --ink-2: #3d465e;
  --ink-3: #6b7590;
  --ink-4: #9aa3bb;

  --accent: #2f5fff;
  --accent-deep: #1d43cc;
  --accent-wash: rgba(47, 95, 255, .1);
  /* 旧样式里散落的 --primary 引用从未定义过，统一别名到 --accent */
  --primary: var(--accent);
  --lemon: #d8ef4a;
  --coral: #ff6a4d;
  --mint: #10b39a;
  --amber: #f0a72c;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --window-radius: 28px;

  /* 双层投影：贴地一层收边，扩散一层给浮起感 */
  --shadow-sm: 0 1px 2px rgba(16, 21, 38, .05), 0 4px 14px rgba(16, 21, 38, .05);
  --shadow-md: 0 1px 3px rgba(16, 21, 38, .07), 0 12px 34px rgba(16, 21, 38, .08);
  --shadow-lg: 0 2px 6px rgba(16, 21, 38, .08), 0 28px 70px rgba(16, 21, 38, .13);

  --ease: cubic-bezier(.22, .68, .28, 1);
  --topbar-h: 46px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body {
  border-radius: var(--window-radius);
  background: transparent;
  color: var(--ink);
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景层：极淡单色光斑 + 细网格，不用蓝紫渐变糊满 */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: var(--window-radius);
  background: var(--canvas);
}

.backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(16, 21, 38, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 38, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 42%, #000 5%, transparent 74%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .5;
  will-change: transform;
}

.orb-1 {
  top: -18%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(47, 95, 255, .3), transparent 68%);
  animation: drift-1 34s var(--ease) infinite alternate;
}

.orb-2 {
  right: -12%;
  bottom: -22%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(216, 239, 74, .3), transparent 66%);
  animation: drift-2 40s var(--ease) infinite alternate;
}

.orb-3 {
  top: 34%;
  right: 22%;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(255, 106, 77, .2), transparent 66%);
  animation: drift-3 46s var(--ease) infinite alternate;
}

@keyframes drift-1 {
  to {
    transform: translate3d(7vw, 5vh, 0) scale(1.12);
  }
}

@keyframes drift-2 {
  to {
    transform: translate3d(-6vw, -7vh, 0) scale(1.16);
  }
}

@keyframes drift-3 {
  to {
    transform: translate3d(-5vw, 6vh, 0) scale(.88);
  }
}

/* 玻璃面板通用件：模糊 + 白边 + 内高光 */
.glass {
  position: relative;
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-line);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
}

.glass-quiet {
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md);
  background: var(--glass-quiet);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

/* 滚动条：细、低对比，不抢视觉 */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(16, 21, 38, .17);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 21, 38, .3);
  background-clip: content-box;
}

::selection {
  background: rgba(47, 95, 255, .22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 无障碍：跟随系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
