/* ============================================================
   创想工作台 · 设计令牌与基础样式
   主题：科技蓝 · 浅色（白底 + 科技蓝）
   研发单位：烟台创想企服数字科技有限公司
   ============================================================ */

:root {
  /* 背景（浅色） */
  --bg-deep: #e9eef7;
  --bg-base: #f2f5fb;
  --bg-panel: #ffffff;
  --bg-float: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.6);

  /* 边框（淡蓝） */
  --border: rgba(37, 74, 138, 0.14);
  --border-strong: rgba(37, 74, 138, 0.28);

  /* 文字 */
  --text-1: #101b33;
  --text-2: #41527a;
  --text-3: #8796b8;

  /* 品牌色（科技蓝） */
  --gold: #2563eb;
  --gold-2: #38bdf8;
  --grad-gold: linear-gradient(135deg, #38bdf8 0%, #2563eb 48%, #4f46e5 100%);
  --grad-cyan: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --grad-green: linear-gradient(135deg, #34d399 0%, #16a085 100%);
  --grad-pink: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);

  /* 状态色 */
  --cyan: #0ea5e9;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --blue: #2563eb;

  /* 尺寸 */
  --sidebar-w: 238px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* 叠加层（白底上使用深色微叠加）与星点 */
  --white-rgb: 13, 25, 52;
  --star-rgb: 56, 132, 255;

  /* 布局面板 */
  --sidebar-bg: linear-gradient(180deg, #ffffff, #f1f5fd);
  --topbar-bg: rgba(255, 255, 255, 0.85);

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(31, 60, 120, 0.08);
  --shadow-md: 0 8px 30px rgba(31, 60, 120, 0.14);
  --shadow-gold: 0 6px 26px rgba(59, 130, 246, 0.22);

  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-1);
  background:
    radial-gradient(1200px 620px at 85% -10%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0, 120, 255, 0.08), transparent 55%),
    var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text-1); }
::placeholder { color: var(--text-3); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(56, 110, 220, 0.2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 110, 220, 0.36); }
::-webkit-scrollbar-track { background: transparent; }

/* 数字网格底纹 + 星点（CSS 生成，全后台页面背景，浅色淡化） */
.starfield::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.2px 1.2px at 20% 30%, rgba(var(--star-rgb), 0.5), transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(var(--star-rgb), 0.36), transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(var(--star-rgb), 0.32), transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(var(--star-rgb), 0.4), transparent 100%),
    radial-gradient(1.2px 1.2px at 15% 80%, rgba(var(--star-rgb), 0.28), transparent 100%),
    radial-gradient(1px 1px at 90% 85%, rgba(var(--star-rgb), 0.36), transparent 100%),
    radial-gradient(1.4px 1.4px at 55% 88%, rgba(var(--star-rgb), 0.28), transparent 100%),
    radial-gradient(1px 1px at 30% 12%, rgba(var(--star-rgb), 0.32), transparent 100%),
    linear-gradient(rgba(70, 120, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 220, 0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 42px 42px, 42px 42px;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% { opacity: 0.45; }
  100% { opacity: 0.75; }
}

/* 通用文本工具 */
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-20 { font-size: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.flex { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* 徽章基础 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(var(--white-rgb), 0.04);
}
.badge i { font-size: 10px; }

/* 头像（首字 + 渐变） */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  flex: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.md { width: 40px; height: 40px; font-size: 16px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
