/* ============================================================
 * Nexus AI · Design Tokens
 * 创建于 2026-05-25，对应 spec §2 设计风格
 * ============================================================ */

:root {
  /* ===== Color · Primary (产品主色：柔和蓝) ===== */
  --color-primary-50:  #EEF2FF;
  --color-primary-100: #E0E7FF;
  --color-primary-200: #C7D2FE;
  --color-primary-300: #A5B4FC;
  --color-primary-500: #3366FF;
  --color-primary-600: #2952CC;
  --color-primary-700: #1F3D99;

  /* ===== Color · Neutral Gray ===== */
  --color-gray-50:  #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* ===== Color · Semantic ===== */
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FEF3C7;
  --color-danger: #EF4444;
  --color-danger-bg: #FEE2E2;
  --color-info: #3B82F6;
  --color-info-bg: #DBEAFE;

  /* ===== Background & Border ===== */
  --bg-page: #F7F8FA;
  --bg-card: #FFFFFF;
  --border-default: #E5E7EB;
  --border-strong: #D1D5DB;

  /* ===== Radius ===== */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ===== Shadow ===== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.12);

  /* ===== Font ===== */
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue',
               -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* ===== Z-index ===== */
  --z-topbar: 50;
  --z-drawer-backdrop: 100;
  --z-drawer: 101;
  --z-modal-backdrop: 110;
  --z-modal: 111;
  --z-toast: 200;
}

/* ============================================================
 * Base Styles
 * ============================================================ */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  font-family: var(--font-sans);
  color: var(--color-gray-900);
  background: var(--bg-page);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }
::-webkit-scrollbar-track { background: transparent; }

/* 链接动效 */
a.link {
  color: var(--color-primary-500);
  transition: color .15s;
}
a.link:hover { color: var(--color-primary-700); text-decoration: underline; }

/* 工具类：截断 */
.truncate-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
 * Feature Toggle 隐藏开关
 * 客户验收阶段，根据指示取消下列对应注释即可隐藏功能。
 * 命名约定见 spec §10。
 * ============================================================ */

/* === 模块级隐藏 === */
/* [data-feature="module-trigger"] { display: none !important; } */
/* [data-feature="module-shared-resources"] { display: none !important; } */

/* === 智能体功能隐藏 === */
/* [data-feature="agent-long-memory"] { display: none !important; } */
/* [data-feature="agent-version-ab-test"] { display: none !important; } */
/* [data-feature="agent-reasoning"] { display: none !important; } */
/* [data-feature="agent-advanced-workflow"] { display: none !important; } */

/* === 知识库类型隐藏 === */
/* [data-feature="knowledge-lark"] { display: none !important; } */
/* [data-feature="knowledge-yuque"] { display: none !important; } */
/* [data-feature="knowledge-workflow"] { display: none !important; } */

/* === 工具类型隐藏 === */
/* [data-feature="tool-mcp"] { display: none !important; } */
/* [data-feature="tool-workflow"] { display: none !important; } */

/* === 第三方接入隐藏 === */
/* [data-feature="access-wechat-mp"] { display: none !important; } */
/* [data-feature="access-slack"] { display: none !important; } */
/* [data-feature="access-dingtalk"] { display: none !important; } */
/* [data-feature="access-feishu"] { display: none !important; } */

/* === 系统功能隐藏 === */
/* [data-feature="system-backup-restore"] { display: none !important; } */
/* [data-feature="system-storage-s3"] { display: none !important; } */
/* [data-feature="system-version-upgrade"] { display: none !important; } */
