chore: 添加基础组件、样式文件和项目文档

## 新增文件
- src/components/BaseButton.vue:可复用按钮组件
- src/components/BaseInput.vue:可复用输入框组件
- src/components/BaseModal.vue:可复用模态框组件
- src/styles/:样式文件目录
  * components.css:组件样式
  * design-tokens.css:设计 token
  * utilities.css:工具类
- docs/需求解析功能使用指南.md:需求解析功能文档
- docs/req.md:组织生活会对照检查材料需求文档

## 更新文件
- .gitignore:忽略 MCP 缓存、截图和测试文件

## 删除文件
- docs/找问题Prompt.md:旧文档

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2026-01-11 14:01:24 +08:00
parent 29bb7e2e87
commit 5a3cec6600
10 changed files with 1064 additions and 53 deletions

View File

@@ -0,0 +1,98 @@
/* ========== 设计令牌系统 - Modern Minimalist ========== */
/* ===== 深色模式(默认) ===== */
:root {
/* 背景色 */
--bg-primary: #0f172a; /* 页面主背景 */
--bg-secondary: #1e293b; /* 卡片/面板背景 */
--bg-elevated: #334155; /* 悬浮元素背景 */
--bg-sunken: #0f172a; /* 凹陷元素背景 */
/* 边框色 */
--border-default: #334155; /* 默认边框 */
--border-subtle: #1e293b; /* 微妙边框 */
--border-strong: #475569; /* 强调边框 */
--border-focus: #60a5fa; /* 焦点边框 */
/* 文本色 */
--text-primary: #f1f5f9; /* 主要内容 */
--text-secondary: #94a3b8; /* 次要内容 */
--text-muted: #64748b; /* 禁用/提示文本 */
--text-inverse: #0f172a; /* 反色文本 */
/* 语义色 */
--accent-primary: #60a5fa; /* 主操作色 - 蓝色 */
--accent-primary-hover: #3b82f6;
--accent-success: #34d399; /* 成功 - 绿色 */
--accent-warning: #fbbf24; /* 警告 - 黄色 */
--accent-danger: #f87171; /* 危险 - 红色 */
/* 语义背景色(带透明度) */
--info-bg: rgba(96, 165, 250, 0.1);
--success-bg: rgba(52, 211, 153, 0.1);
--warning-bg: rgba(251, 191, 36, 0.1);
--danger-bg: rgba(248, 113, 113, 0.1);
/* 字体 */
--font-display: system-ui, -apple-system, sans-serif;
--font-body: system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
/* 字号 */
--text-xs: 0.6875rem; /* 11px - 标签、提示 */
--text-sm: 0.8125rem; /* 13px - 次要内容 */
--text-base: 0.9375rem; /* 15px - 正文 */
--text-lg: 1.125rem; /* 18px - 小标题 */
--text-xl: 1.375rem; /* 22px - 页面标题 */
--text-2xl: 1.75rem; /* 28px - 大标题 */
/* 行高 */
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
/* 字重 */
--font-normal: 400;
--font-medium: 500;
--font-semibold: 600;
--font-bold: 700;
/* 间距4px 基础倍数) */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
--space-10: 40px;
--space-12: 48px;
/* 圆角 */
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-2xl: 16px;
--radius-full: 9999px;
/* 阴影(深色模式更明显) */
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
/* 过渡 */
--transition-fast: 0.15s ease;
--transition-normal: 0.2s ease;
--transition-slow: 0.3s ease;
/* Z-index 层级 */
--z-dropdown: 1000;
--z-sticky: 1020;
--z-fixed: 1030;
--z-modal-backdrop: 1040;
--z-modal: 1050;
--z-popover: 1060;
--z-tooltip: 1070;
}