|
@@ -1,18 +1,36 @@
|
|
|
-// 全局变量
|
|
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 灵越智报 - 全局样式(匹配原型 UI)
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+
|
|
|
|
|
+// 全局 CSS 变量(与原型保持一致)
|
|
|
:root {
|
|
:root {
|
|
|
|
|
+ // 主色调
|
|
|
--primary: #1890ff;
|
|
--primary: #1890ff;
|
|
|
--primary-dark: #096dd9;
|
|
--primary-dark: #096dd9;
|
|
|
--primary-light: #e6f7ff;
|
|
--primary-light: #e6f7ff;
|
|
|
|
|
+ --primary-gradient: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
|
|
|
|
|
+
|
|
|
|
|
+ // 功能色
|
|
|
--success: #52c41a;
|
|
--success: #52c41a;
|
|
|
--warning: #faad14;
|
|
--warning: #faad14;
|
|
|
--danger: #ff4d4f;
|
|
--danger: #ff4d4f;
|
|
|
|
|
+
|
|
|
|
|
+ // 文字颜色
|
|
|
--text-1: #262626;
|
|
--text-1: #262626;
|
|
|
--text-2: #595959;
|
|
--text-2: #595959;
|
|
|
--text-3: #8c8c8c;
|
|
--text-3: #8c8c8c;
|
|
|
- --border: #e8e8e8;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 背景和边框
|
|
|
|
|
+ --white: #ffffff;
|
|
|
--bg: #f5f7fa;
|
|
--bg: #f5f7fa;
|
|
|
|
|
+ --border: #e8e8e8;
|
|
|
|
|
+
|
|
|
|
|
+ // 渐变色
|
|
|
|
|
+ --ai-gradient: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
|
|
|
|
|
+ --data-gradient: linear-gradient(135deg, #52c41a 0%, #13c2c2 100%);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// 重置样式
|
|
|
* {
|
|
* {
|
|
|
margin: 0;
|
|
margin: 0;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
@@ -25,79 +43,53 @@ body {
|
|
|
line-height: 1.6;
|
|
line-height: 1.6;
|
|
|
color: var(--text-1);
|
|
color: var(--text-1);
|
|
|
background: var(--bg);
|
|
background: var(--bg);
|
|
|
|
|
+ height: 100vh;
|
|
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 实体高亮样式
|
|
|
|
|
-.entity-highlight {
|
|
|
|
|
- display: inline;
|
|
|
|
|
- padding: 2px 8px;
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 通用组件样式
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+
|
|
|
|
|
+// 卡片
|
|
|
|
|
+.card {
|
|
|
|
|
+ background: var(--white);
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 按钮
|
|
|
|
|
+.btn {
|
|
|
|
|
+ display: inline-flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 4px;
|
|
|
|
|
+ padding: 7px 14px;
|
|
|
|
|
+ border: 1px solid var(--border);
|
|
|
|
|
+ background: var(--white);
|
|
|
|
|
+ border-radius: 6px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
+ font-size: 12px;
|
|
|
transition: all 0.2s;
|
|
transition: all 0.2s;
|
|
|
- font-weight: 500;
|
|
|
|
|
-
|
|
|
|
|
- &.entity {
|
|
|
|
|
- border: 1px solid var(--primary);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
color: var(--primary);
|
|
color: var(--primary);
|
|
|
- background: rgba(24, 144, 255, 0.1);
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: var(--primary);
|
|
|
|
|
- color: white;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- &.concept {
|
|
|
|
|
- border: 1px solid #722ed1;
|
|
|
|
|
- color: #722ed1;
|
|
|
|
|
- background: rgba(114, 46, 209, 0.1);
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ &-primary {
|
|
|
|
|
+ background: var(--primary-gradient);
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+
|
|
|
&:hover {
|
|
&:hover {
|
|
|
- background: #722ed1;
|
|
|
|
|
- color: white;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &.data {
|
|
|
|
|
- border: 1px solid #52c41a;
|
|
|
|
|
- color: #52c41a;
|
|
|
|
|
- background: rgba(82, 196, 26, 0.1);
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: #52c41a;
|
|
|
|
|
- color: white;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &.location {
|
|
|
|
|
- border: 1px solid #faad14;
|
|
|
|
|
- color: #d48806;
|
|
|
|
|
- background: rgba(250, 173, 20, 0.1);
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: #faad14;
|
|
|
|
|
- color: white;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &.asset {
|
|
|
|
|
- border: 1px solid #eb2f96;
|
|
|
|
|
- color: #eb2f96;
|
|
|
|
|
- background: rgba(235, 47, 150, 0.1);
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: #eb2f96;
|
|
|
|
|
- color: white;
|
|
|
|
|
|
|
+ box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 卡片样式
|
|
|
|
|
-.card {
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- border-radius: 10px;
|
|
|
|
|
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 页面通用样式
|
|
|
|
|
+// ==========================================
|
|
|
|
|
|
|
|
// 页面标题
|
|
// 页面标题
|
|
|
.page-header {
|
|
.page-header {
|
|
@@ -112,7 +104,9 @@ body {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// ==========================================
|
|
|
// 统计卡片
|
|
// 统计卡片
|
|
|
|
|
+// ==========================================
|
|
|
.stat-card {
|
|
.stat-card {
|
|
|
padding: 18px;
|
|
padding: 18px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -152,13 +146,16 @@ body {
|
|
|
|
|
|
|
|
.stat-trend {
|
|
.stat-trend {
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
|
|
|
&.up { color: var(--success); }
|
|
&.up { color: var(--success); }
|
|
|
&.down { color: var(--danger); }
|
|
&.down { color: var(--danger); }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// ==========================================
|
|
|
// 模板卡片
|
|
// 模板卡片
|
|
|
|
|
+// ==========================================
|
|
|
.tpl-card {
|
|
.tpl-card {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
@@ -210,10 +207,315 @@ body {
|
|
|
|
|
|
|
|
&.hot { background: #fff1f0; color: var(--danger); }
|
|
&.hot { background: #fff1f0; color: var(--danger); }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .tpl-btn {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ padding: 8px;
|
|
|
|
|
+ background: var(--primary-gradient);
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ border-radius: 6px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// AI 对话区域
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.ai-card {
|
|
|
|
|
+ padding: 20px;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-welcome {
|
|
|
|
|
+ background: linear-gradient(135deg, #f0f7ff, #f5f0ff);
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ padding: 16px;
|
|
|
|
|
+ margin-bottom: 16px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-avatar {
|
|
|
|
|
+ width: 44px;
|
|
|
|
|
+ height: 44px;
|
|
|
|
|
+ background: var(--ai-gradient);
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ font-size: 22px;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-title {
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-list {
|
|
|
|
|
+ list-style: none;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+
|
|
|
|
|
+ li {
|
|
|
|
|
+ color: var(--text-2);
|
|
|
|
|
+ padding: 3px 0;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+
|
|
|
|
|
+ &::before {
|
|
|
|
|
+ content: '•';
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ margin-right: 8px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-tip {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+ padding: 8px 12px;
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.7);
|
|
|
|
|
+ border-radius: 6px;
|
|
|
|
|
+ border-left: 3px solid var(--primary);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-input-wrap {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ margin-bottom: 14px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.ai-input {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 46px;
|
|
|
|
|
+ padding: 0 100px 0 18px;
|
|
|
|
|
+ border: 2px solid var(--border);
|
|
|
|
|
+ border-radius: 23px;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ outline: none;
|
|
|
|
|
+ transition: all 0.3s;
|
|
|
|
|
+
|
|
|
|
|
+ &:focus {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 变量标签样式
|
|
|
|
|
-.var-tag {
|
|
|
|
|
|
|
+.thinking-modes {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.mode-btn {
|
|
|
|
|
+ padding: 6px 12px;
|
|
|
|
|
+ background: var(--bg);
|
|
|
|
|
+ border: 1px solid var(--border);
|
|
|
|
|
+ border-radius: 18px;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 区块标题
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.section-header {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 14px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.section-title {
|
|
|
|
|
+ font-size: 15px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.section-link {
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ text-decoration: underline;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 快捷操作
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.quick-actions {
|
|
|
|
|
+ display: grid;
|
|
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
+ gap: 14px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.quick-action {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 12px;
|
|
|
|
|
+ padding: 16px;
|
|
|
|
|
+ background: var(--white);
|
|
|
|
|
+ border: 2px dashed var(--border);
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .quick-action-icon {
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ background: var(--bg);
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .quick-action-title {
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ margin-bottom: 2px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .quick-action-desc {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 实体高亮样式
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.entity-highlight {
|
|
|
|
|
+ display: inline;
|
|
|
|
|
+ padding: 2px 8px;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ border: 1px solid var(--primary);
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ background: rgba(24, 144, 255, 0.1);
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ background: var(--primary);
|
|
|
|
|
+ color: white;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 核心实体
|
|
|
|
|
+ &.entity {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ background: rgba(24, 144, 255, 0.1);
|
|
|
|
|
+ &:hover { background: var(--primary); color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 概念/技术
|
|
|
|
|
+ &.concept {
|
|
|
|
|
+ border-color: #722ed1;
|
|
|
|
|
+ color: #722ed1;
|
|
|
|
|
+ background: rgba(114, 46, 209, 0.1);
|
|
|
|
|
+ &:hover { background: #722ed1; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 数据/指标
|
|
|
|
|
+ &.data {
|
|
|
|
|
+ border-color: #52c41a;
|
|
|
|
|
+ color: #52c41a;
|
|
|
|
|
+ background: rgba(82, 196, 26, 0.1);
|
|
|
|
|
+ &:hover { background: #52c41a; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 位置/地点
|
|
|
|
|
+ &.location {
|
|
|
|
|
+ border-color: #faad14;
|
|
|
|
|
+ color: #d48806;
|
|
|
|
|
+ background: rgba(250, 173, 20, 0.1);
|
|
|
|
|
+ &:hover { background: #faad14; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 资产/产品
|
|
|
|
|
+ &.asset {
|
|
|
|
|
+ border-color: #eb2f96;
|
|
|
|
|
+ color: #eb2f96;
|
|
|
|
|
+ background: rgba(235, 47, 150, 0.1);
|
|
|
|
|
+ &:hover { background: #eb2f96; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 人物
|
|
|
|
|
+ &.person {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ color: var(--primary);
|
|
|
|
|
+ background: rgba(24, 144, 255, 0.1);
|
|
|
|
|
+ &:hover { background: var(--primary); color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 组织
|
|
|
|
|
+ &.org {
|
|
|
|
|
+ border-color: #722ed1;
|
|
|
|
|
+ color: #722ed1;
|
|
|
|
|
+ background: rgba(114, 46, 209, 0.1);
|
|
|
|
|
+ &:hover { background: #722ed1; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 日期
|
|
|
|
|
+ &.date {
|
|
|
|
|
+ border-color: #13c2c2;
|
|
|
|
|
+ color: #13c2c2;
|
|
|
|
|
+ background: rgba(19, 194, 194, 0.1);
|
|
|
|
|
+ &:hover { background: #13c2c2; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 产品
|
|
|
|
|
+ &.product {
|
|
|
|
|
+ border-color: #eb2f96;
|
|
|
|
|
+ color: #eb2f96;
|
|
|
|
|
+ background: rgba(235, 47, 150, 0.1);
|
|
|
|
|
+ &:hover { background: #eb2f96; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 事件
|
|
|
|
|
+ &.event {
|
|
|
|
|
+ border-color: #fa8c16;
|
|
|
|
|
+ color: #fa8c16;
|
|
|
|
|
+ background: rgba(250, 140, 22, 0.1);
|
|
|
|
|
+ &:hover { background: #fa8c16; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 法规
|
|
|
|
|
+ &.law {
|
|
|
|
|
+ border-color: #2f54eb;
|
|
|
|
|
+ color: #2f54eb;
|
|
|
|
|
+ background: rgba(47, 84, 235, 0.1);
|
|
|
|
|
+ &:hover { background: #2f54eb; color: white; }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 变量/要素标签
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.var-tag, .element-tag {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
gap: 6px;
|
|
gap: 6px;
|
|
@@ -222,7 +524,7 @@ body {
|
|
|
border: 1px solid var(--border);
|
|
border: 1px solid var(--border);
|
|
|
border-radius: 16px;
|
|
border-radius: 16px;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+ cursor: grab;
|
|
|
transition: all 0.2s;
|
|
transition: all 0.2s;
|
|
|
user-select: none;
|
|
user-select: none;
|
|
|
|
|
|
|
@@ -231,6 +533,10 @@ body {
|
|
|
background: var(--primary-light);
|
|
background: var(--primary-light);
|
|
|
transform: translateY(-1px);
|
|
transform: translateY(-1px);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ &:active {
|
|
|
|
|
+ cursor: grabbing;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
&.entity { border-left: 3px solid var(--primary); }
|
|
&.entity { border-left: 3px solid var(--primary); }
|
|
|
&.concept { border-left: 3px solid #722ed1; }
|
|
&.concept { border-left: 3px solid #722ed1; }
|
|
@@ -241,3 +547,181 @@ body {
|
|
|
.tag-icon { font-size: 12px; }
|
|
.tag-icon { font-size: 12px; }
|
|
|
.tag-name { font-weight: 500; }
|
|
.tag-name { font-weight: 500; }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 上传区域
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.upload-zone {
|
|
|
|
|
+ border: 2px dashed var(--border);
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ padding: 24px 16px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .upload-icon {
|
|
|
|
|
+ font-size: 32px;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .upload-text {
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ color: var(--text-2);
|
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .upload-hint {
|
|
|
|
|
+ font-size: 11px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 文件项
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.file-item {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+ padding: 10px 12px;
|
|
|
|
|
+ background: var(--white);
|
|
|
|
|
+ border: 1px solid var(--border);
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ transition: all 0.2s;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover, &.active {
|
|
|
|
|
+ border-color: var(--primary);
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .file-icon {
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+
|
|
|
|
|
+ &.pdf { color: #ff4d4f; }
|
|
|
|
|
+ &.docx { color: #1890ff; }
|
|
|
|
|
+ &.xlsx { color: #52c41a; }
|
|
|
|
|
+ &.md { color: #8c8c8c; }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .file-info {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ min-width: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .file-name {
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ margin-bottom: 2px;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .file-meta {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ font-size: 11px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .file-status {
|
|
|
|
|
+ font-size: 11px;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+
|
|
|
|
|
+ &.parsing { color: var(--primary); }
|
|
|
|
|
+ &.done { color: var(--success); }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 数据表格
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+.data-table-card {
|
|
|
|
|
+ background: var(--white);
|
|
|
|
|
+ border: 1px solid var(--border);
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+ margin: 16px 0;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.data-table-header {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ padding: 12px 16px;
|
|
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.data-table-title {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 8px;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.data-table-source {
|
|
|
|
|
+ font-size: 11px;
|
|
|
|
|
+ color: var(--text-3);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.data-table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ border-collapse: collapse;
|
|
|
|
|
+
|
|
|
|
|
+ th {
|
|
|
|
|
+ background: var(--bg);
|
|
|
|
|
+ padding: 10px 16px;
|
|
|
|
|
+ text-align: left;
|
|
|
|
|
+ font-size: 12px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ color: var(--text-2);
|
|
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ td {
|
|
|
|
|
+ padding: 10px 16px;
|
|
|
|
|
+ font-size: 13px;
|
|
|
|
|
+ border-bottom: 1px solid var(--border);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ tr:last-child td {
|
|
|
|
|
+ border-bottom: none;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ tr:hover td {
|
|
|
|
|
+ background: var(--primary-light);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+// 滚动条样式
|
|
|
|
|
+// ==========================================
|
|
|
|
|
+::-webkit-scrollbar {
|
|
|
|
|
+ width: 6px;
|
|
|
|
|
+ height: 6px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+::-webkit-scrollbar-track {
|
|
|
|
|
+ background: var(--bg);
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+::-webkit-scrollbar-thumb {
|
|
|
|
|
+ background: var(--border);
|
|
|
|
|
+ border-radius: 3px;
|
|
|
|
|
+
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ background: var(--text-3);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|