feat: 设计系统迁移至 Microsoft Fluent 2 / Windows 11 风格
Deploy Wiki to Production / deploy (push) Has been cancelled

- 品牌色 #1677FF → #0078D4 (Fluent Communication Blue)
- 中性色升级为 11 级 Fluent 2 阶梯 + 8 级 alpha 透明色
- 新增材质效果 (Acrylic/Mica/Smoke)、动效缓动、完整 Type Ramp
- 阴影升级为 6 级 Elevation 体系 (shadow2-64 + z-index 映射)
- index.html 全面重设计:亚克力顶栏、Fluent 卡片、Tab 风格 Chip
- 响应式断点改为 Fluent 2 标准 (639/1023/1024px)
- 字体优先 Segoe UI Variable,行高 1.4285 (20px)
- design-tokens.md 新增向后兼容矩阵与非标准文件清单
This commit is contained in:
zdh
2026-06-05 18:59:22 +08:00
parent 667786bc94
commit 798200cdd2
2 changed files with 781 additions and 217 deletions
+300 -93
View File
@@ -5,101 +5,233 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wiki — 一人公司知识库</title>
<style>
/* ===== Fluent 2 / Windows 11 Design Tokens ===== */
:root {
--color-primary: #1677FF;
--color-primary-hover: #4096FF;
--color-primary-active: #0958D9;
--color-primary-bg: #E6F4FF;
--bg: #F5F5F5;
/* Brand — Fluent 2 Communication Blue */
--color-primary: #0078D4;
--color-primary-hover: #106EBE;
--color-primary-active: #005A9E;
--color-primary-bg: #DEECF9;
/* Functional */
--color-success: #107C10;
--color-warning: #FF8C00;
--color-error: #FF4D4F;
/* Neutral — light */
--bg: #FAF9F8;
--bg-container: #FFFFFF;
--bg-elevated: #FAFAFA;
--border: #D9D9D9;
--border-light: #F0F0F0;
--text-primary: #141414;
--text-secondary: #595959;
--text-tertiary: #8C8C8C;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02);
--shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px -2px rgba(0,0,0,0.04);
--bg-elevated: #F3F2F1;
--border: #E1DFDD;
--border-light: #EDEBE9;
--text-primary: #201F1E;
--text-secondary: #605E5C;
--text-tertiary: #8A8886;
/* Radius */
--radius-xs: 2px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
/* Shadows — Fluent 2 elevation */
--shadow-sm: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
--shadow-md: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
--shadow-lg: 0 0 2px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.14);
/* Layout */
--header-h: 64px;
--sidebar-w: 260px;
--drawer-bg: #FFFFFF;
/* === Added: Fluent 2 native tokens === */
/* Brand tint/shade chain */
--fluent-primary-tint-40: #EFF6FC;
--fluent-primary-tint-30: #DEECF9;
--fluent-primary-tint-20: #C7E0F4;
--fluent-primary-tint-10: #2B88D8;
--fluent-primary-shade-10: #106EBE;
--fluent-primary-shade-20: #005A9E;
--fluent-primary-shade-30: #004578;
/* Functional backgrounds */
--fluent-success-bg: #DFF6DD;
--fluent-warning-bg: #FFF4CE;
--fluent-error-bg: #FDE7E9;
--fluent-success-border: #A7E3A1;
--fluent-warning-border: #FFD335;
--fluent-error-border: #EEACB2;
/* Neutral alpha overlay */
--fluent-alpha-2: rgba(0,0,0,0.02);
--fluent-alpha-4: rgba(0,0,0,0.04);
--fluent-alpha-8: rgba(0,0,0,0.08);
--fluent-alpha-10: rgba(0,0,0,0.10);
--fluent-alpha-20: rgba(0,0,0,0.20);
--fluent-alpha-30: rgba(0,0,0,0.30);
--fluent-alpha-40: rgba(0,0,0,0.40);
/* Radius — Fluent naming */
--fluent-radius-medium: 4px;
--fluent-radius-large: 6px;
--fluent-radius-xlarge: 8px;
--fluent-radius-circular: 9999px;
/* Shadows — Fluent elevation system */
--fluent-shadow-2: 0 0 2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
--fluent-shadow-4: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
--fluent-shadow-8: 0 0 2px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.14);
--fluent-shadow-16: 0 0 2px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.14);
--fluent-shadow-28: 0 0 2px rgba(0,0,0,0.12), 0 14px 28px rgba(0,0,0,0.14);
--fluent-shadow-64: 0 0 2px rgba(0,0,0,0.12), 0 32px 64px rgba(0,0,0,0.14);
/* Material */
--fluent-acrylic-default: rgba(255,255,255,0.7);
--fluent-mica-bg: rgba(243,242,241,0.7);
--fluent-smoke-default: rgba(0,0,0,0.4);
--fluent-backdrop-blur: 40px;
/* Motion */
--fluent-easing-accelerate: cubic-bezier(0.9, 0.1, 1.0, 0.2);
--fluent-easing-decelerate: cubic-bezier(0.1, 0.9, 0.2, 1.0);
--fluent-easing-standard: cubic-bezier(0.8, 0.0, 0.2, 1.0);
--fluent-duration-faster: 83ms;
--fluent-duration-fast: 100ms;
--fluent-duration-normal: 167ms;
--fluent-duration-slow: 250ms;
--fluent-duration-slower: 333ms;
/* Typography */
--fluent-font-family-text: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
--fluent-font-family-display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--fluent-font-family-monospace: 'Cascadia Code', 'Fira Code', 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
}
/* ===== Dark Theme — Fluent 2 Dark ===== */
[data-theme="dark"] {
--color-primary: #177DDC;
--color-primary-hover: #4096FF;
--color-primary-active: #0958D9;
--color-primary-bg: rgba(23,125,220,0.15);
--bg: #111111;
--bg-container: #1C1C1E;
--bg-elevated: #242426;
--border: #3A3A3C;
--border-light: #2C2C2E;
--text-primary: #D1D1D6;
--text-secondary: #8E8E93;
--text-tertiary: #636366;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.15), 0 1px 4px -1px rgba(0,0,0,0.1);
--shadow-md: 0 2px 4px rgba(0,0,0,0.2), 0 4px 10px -2px rgba(0,0,0,0.15);
--drawer-bg: #1C1C1E;
--color-primary: #479EF5;
--color-primary-hover: #60A5FA;
--color-primary-active: #3B8AD9;
--color-primary-bg: rgba(71,158,245,0.15);
--bg: #1F1F1F;
--bg-container: #292929;
--bg-elevated: #333333;
--border: #474747;
--border-light: #3D3D3D;
--text-primary: #DADADA;
--text-secondary: #A0A0A0;
--text-tertiary: #7A7A7A;
--drawer-bg: #292929;
/* Dark material */
--fluent-acrylic-default: rgba(47,47,47,0.85);
--fluent-mica-bg: rgba(32,31,30,0.7);
--fluent-smoke-default: rgba(0,0,0,0.6);
/* Dark alpha */
--fluent-alpha-2: rgba(255,255,255,0.02);
--fluent-alpha-4: rgba(255,255,255,0.04);
--fluent-alpha-8: rgba(255,255,255,0.08);
--fluent-alpha-10: rgba(255,255,255,0.10);
--fluent-alpha-20: rgba(255,255,255,0.20);
--fluent-alpha-30: rgba(255,255,255,0.30);
--fluent-alpha-40: rgba(255,255,255,0.40);
/* Dark functional backgrounds */
--fluent-success-bg: rgba(16,124,16,0.15);
--fluent-warning-bg: rgba(255,140,0,0.15);
--fluent-error-bg: rgba(255,77,79,0.15);
}
/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-family: var(--fluent-font-family-text);
background: var(--bg); color: var(--text-primary);
line-height: 1.57; font-size: 14px; min-height: 100vh;
line-height: 1.4285; font-size: 14px; min-height: 100vh;
-webkit-tap-highlight-color: transparent;
transition: background 0.2s ease, color 0.2s ease;
transition: background var(--fluent-duration-normal) var(--fluent-easing-standard),
color var(--fluent-duration-normal) var(--fluent-easing-standard);
}
/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
/* ===== Header — Fluent 2 Acrylic Command Bar ===== */
.header-bar {
position: sticky; top: 0; height: var(--header-h);
background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
background: var(--fluent-acrylic-default);
backdrop-filter: blur(var(--fluent-backdrop-blur)) saturate(125%);
-webkit-backdrop-filter: blur(var(--fluent-backdrop-blur)) saturate(125%);
border-bottom: 1px solid var(--border-light);
display: flex; align-items: center; justify-content: center; padding: 0 2rem; z-index: 100; gap: 16px;
display: flex; align-items: center; justify-content: center;
padding: 0 2rem; z-index: 100; gap: 16px;
}
.header-bar-inner {
display: flex; align-items: center; gap: 16px;
max-width: 1200px; width: 100%;
}
.header-bar-inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; width: 100%; }
[data-theme="dark"] .header-bar { background: rgba(28,28,30,0.85); }
.header-bar .menu-btn {
width: 36px; height: 36px; border: none; background: none;
cursor: pointer; border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; padding: 0;
color: var(--text-secondary);
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.header-bar .menu-btn:hover { background: var(--bg-elevated); }
.header-bar .menu-btn svg { width: 20px; height: 20px; color: var(--text-secondary); }
.header-bar .menu-btn svg { width: 20px; height: 20px; }
.header-bar .brand { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.header-bar h1 {
font-size: 18px; font-weight: 700;
background: linear-gradient(135deg, var(--color-primary) 0%, #722ED1 100%);
background: linear-gradient(135deg, #0078D4 0%, #2B88D8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-bar .tagline { font-size: 12px; color: var(--text-tertiary); display: inline; }
/* Search — Fluent 2 outline input */
.search-box { flex: 1; min-width: 120px; max-width: 360px; position: relative; }
.search-box input {
width: 100%; padding: 8px 12px 8px 34px;
border: 1px solid var(--border); border-radius: var(--radius-sm);
font-size: 14px; outline: none; background: var(--bg-elevated); color: var(--text-primary);
transition: border-color 0.15s ease, box-shadow 0.15s ease;
transition: border-color var(--fluent-duration-fast) var(--fluent-easing-standard),
box-shadow var(--fluent-duration-fast) var(--fluent-easing-standard),
background var(--fluent-duration-fast) var(--fluent-easing-standard);
}
.search-box input::placeholder { color: var(--text-tertiary); }
.search-box input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-bg); background: var(--bg-container); }
.search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); font-size: 15px; pointer-events: none; }
.search-box input:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 2px var(--fluent-primary-tint-20);
background: var(--bg-container);
}
.search-box .search-icon {
position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
color: var(--text-tertiary); font-size: 15px; pointer-events: none;
}
/* Theme toggle */
.header-bar .theme-btn {
width: 36px; height: 36px; border: none; background: none;
cursor: pointer; border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
font-size: 16px; color: var(--text-secondary); flex-shrink: 0; padding: 0;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.header-bar .theme-btn:hover { background: var(--bg-elevated); }
/* ===== Mobile Chip Bar — Fluent 2 Tab style ===== */
.chip-bar {
display: none; padding: 10px 16px 0; background: var(--bg-container);
border-bottom: 1px solid var(--border-light); position: sticky; top: var(--header-h); z-index: 90;
border-bottom: 1px solid var(--border-light);
position: sticky; top: var(--header-h); z-index: 90;
}
.chip-bar-inner {
display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
@@ -108,43 +240,69 @@ body {
.chip-bar-inner::-webkit-scrollbar { display: none; }
.chip {
display: inline-flex; align-items: center; gap: 5px;
padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; white-space: nowrap;
border: 1px solid var(--border); background: var(--bg-container); color: var(--text-secondary);
cursor: pointer; transition: all 0.15s ease; user-select: none;
padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
white-space: nowrap; border: 1px solid var(--border);
background: var(--bg-container); color: var(--text-secondary);
cursor: pointer; user-select: none;
-webkit-tap-highlight-color: transparent; min-height: 36px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate),
border-color var(--fluent-duration-fast) var(--fluent-easing-decelerate),
color var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.chip:active { transform: scale(0.96); }
.chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.chip .chip-count { font-size: 11px; background: rgba(0,0,0,0.08); border-radius: 10px; padding: 0 5px; }
.chip.active .chip-count { background: rgba(255,255,255,0.25); }
.chip:hover { background: var(--fluent-primary-tint-40); border-color: var(--fluent-primary-tint-20); }
.chip.active {
background: var(--fluent-primary-tint-30);
border-color: var(--color-primary);
color: var(--color-primary);
}
.chip .chip-count { font-size: 11px; background: var(--fluent-alpha-8); border-radius: 10px; padding: 0 5px; }
.chip.active .chip-count { background: var(--fluent-primary-tint-20); color: var(--color-primary); }
.layout { display: flex; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - var(--header-h)); }
/* ===== Layout ===== */
.layout {
display: flex; max-width: 1200px; margin: 0 auto;
min-height: calc(100vh - var(--header-h));
}
/* ===== Sidebar — Fluent 2 NavigationView ===== */
.sidebar {
width: var(--sidebar-w); flex-shrink: 0; background: var(--bg-container);
border-right: 1px solid var(--border); padding: 1.25rem 0;
overflow-y: auto; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
overflow-y: auto; position: sticky; top: var(--header-h);
height: calc(100vh - var(--header-h));
}
.sidebar .nav-section { padding: 0 16px; margin-bottom: 8px; }
.sidebar .nav-section-title {
font-size: 11px; font-weight: 600; color: var(--text-tertiary);
letter-spacing: 0.5px; margin-bottom: 4px; padding: 4px 0;
font-size: 10px; font-weight: 600; color: var(--text-tertiary);
text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; padding: 4px 0;
}
.sidebar .nav-item {
display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
font-size: 13px; color: var(--text-secondary); cursor: pointer;
transition: all 0.12s ease; text-decoration: none; min-height: 40px;
display: flex; align-items: center; gap: 8px; padding: 8px 12px;
border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary);
cursor: pointer; text-decoration: none; min-height: 40px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate),
color var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.sidebar .nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sidebar .nav-item.active { background: var(--color-primary-bg); color: var(--color-primary); font-weight: 500; }
.sidebar .nav-item.active {
background: var(--fluent-primary-tint-30);
color: var(--color-primary); font-weight: 500;
}
.sidebar .nav-item .nav-icon { font-size: 14px; flex-shrink: 0; width: 20px; text-align: center; }
.sidebar .nav-item .nav-count {
margin-left: auto; font-size: 11px; color: var(--text-tertiary);
background: var(--bg-elevated); border-radius: 10px; padding: 0 6px;
}
.sidebar .nav-item.active .nav-count { background: rgba(22,119,255,0.12); color: var(--color-primary); }
.sidebar .sub-nav { padding-left: 24px; overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
.sidebar .nav-item.active .nav-count {
background: var(--fluent-primary-tint-20); color: var(--color-primary);
}
.sidebar .sub-nav {
padding-left: 24px; overflow: hidden; max-height: 0;
transition: max-height var(--fluent-duration-slow) var(--fluent-easing-standard);
}
.sidebar .sub-nav.open { max-height: 500px; }
.sidebar .sub-nav .nav-item { font-size: 12px; padding: 5px 12px; }
.sidebar .theme-section {
padding: 12px 16px; border-top: 1px solid var(--border-light); margin-top: 8px;
}
@@ -153,18 +311,25 @@ body {
padding: 8px 12px; border: none; background: none; cursor: pointer;
border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary);
min-height: 40px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate),
color var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.sidebar .theme-toggle-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
/* ===== Drawer — Fluent 2 Flyout ===== */
.drawer-overlay {
display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
z-index: 200; opacity: 0; transition: opacity 0.2s ease;
display: none; position: fixed; inset: 0;
background: var(--fluent-smoke-default);
z-index: 200; opacity: 0;
transition: opacity var(--fluent-duration-normal) var(--fluent-easing-decelerate);
}
.drawer-overlay.show { display: block; opacity: 1; }
.drawer {
position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw;
background: var(--drawer-bg); z-index: 201;
transform: translateX(-100%); transition: transform 0.25s ease; overflow-y: auto;
transform: translateX(-100%);
transition: transform var(--fluent-duration-slow) var(--fluent-easing-standard);
overflow-y: auto;
}
.drawer-overlay.show .drawer { transform: translateX(0); }
.drawer-header {
@@ -173,48 +338,75 @@ body {
}
.drawer-header .close-btn {
width: 32px; height: 32px; border: none; background: var(--bg-elevated);
border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center;
justify-content: center; font-size: 18px; color: var(--text-secondary);
border-radius: var(--radius-sm); cursor: pointer; display: flex;
align-items: center; justify-content: center; font-size: 18px;
color: var(--text-secondary);
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.drawer-header .close-btn:hover { background: var(--fluent-primary-tint-30); color: var(--color-primary); }
.drawer .theme-toggle-btn {
display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); margin: 12px 16px;
padding: 8px 12px; border: 1px solid var(--border); background: var(--bg-elevated);
cursor: pointer; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary);
min-height: 40px;
display: flex; align-items: center; gap: 8px; width: calc(100% - 32px);
margin: 12px 16px; padding: 8px 12px; border: 1px solid var(--border);
background: var(--bg-elevated); cursor: pointer; border-radius: var(--radius-sm);
font-size: 13px; color: var(--text-secondary); min-height: 40px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate),
color var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.drawer .theme-toggle-btn:hover { background: var(--color-primary-bg); color: var(--color-primary); }
/* ===== Main Content ===== */
.main { flex: 1; padding: 32px 40px 64px; min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.breadcrumb {
font-size: 12px; color: var(--text-tertiary); margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-tertiary); text-decoration: none;
transition: color var(--fluent-duration-fast) var(--fluent-easing-standard);
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 4px; }
/* Stats — Fluent 2 Info style */
.stats-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-item {
display: flex; align-items: baseline; gap: 4px; padding: 8px 14px;
background: var(--bg-container); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
display: flex; align-items: baseline; gap: 4px;
padding: 8px 14px; background: var(--bg-container);
border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.stat-num { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.stat-label { font-size: 12px; color: var(--text-tertiary); }
/* Section */
.wiki-section { margin-bottom: 28px; }
.wiki-section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.wiki-section-title {
font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px;
}
.wiki-section-desc { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
/* ===== Cards — Fluent 2 Card with elevation ===== */
.all-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.all-card {
background: var(--bg-container); border: 1px solid var(--border);
border-radius: var(--radius-md); padding: 24px;
transition: all 0.2s ease; text-decoration: none; color: var(--text-primary); display: block;
border-radius: var(--radius-md); padding: 20px;
box-shadow: var(--fluent-shadow-2);
text-decoration: none; color: var(--text-primary); display: block; cursor: pointer;
transition: box-shadow var(--fluent-duration-normal) var(--fluent-easing-standard),
border-color var(--fluent-duration-normal) var(--fluent-easing-standard);
}
.all-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.all-card:active { transform: scale(0.99); }
.all-card:hover { box-shadow: var(--fluent-shadow-4); border-color: var(--border); }
.all-card .card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.all-card .card-desc {
font-size: 12px; color: var(--text-tertiary); line-height: 1.5;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.all-card .card-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.all-card .card-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.all-card .card-badge {
font-size: 11px; padding: 2px 8px; border-radius: var(--radius-xs); font-weight: 500;
}
.all-card .card-date { font-size: 11px; color: var(--text-tertiary); }
/* ===== Wiki TOC — Fluent 2 Accordion ===== */
.wiki-toc {
background: var(--bg-container); border: 1px solid var(--border-light);
border-radius: var(--radius-md); overflow: hidden; margin-top: 8px;
@@ -222,40 +414,53 @@ body {
.wiki-toc-header {
display: flex; align-items: center; gap: 10px; padding: 14px 18px;
background: var(--bg-elevated); border-bottom: 1px solid var(--border-light);
cursor: pointer; user-select: none; transition: background 0.12s ease; min-height: 44px;
cursor: pointer; user-select: none; min-height: 44px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.wiki-toc-header:hover { background: var(--fluent-primary-tint-30); }
.wiki-toc-header .toc-icon {
font-size: 16px; color: var(--text-secondary);
transition: transform var(--fluent-duration-normal) var(--fluent-easing-standard);
}
.wiki-toc-header:hover { background: var(--color-primary-bg); }
.wiki-toc-header .toc-icon { font-size: 16px; transition: transform 0.2s ease; }
.wiki-toc-header.open .toc-icon { transform: rotate(90deg); }
.wiki-toc-header .toc-title { font-size: 14px; font-weight: 600; flex: 1; }
.wiki-toc-header .toc-count { font-size: 12px; color: var(--text-tertiary); }
.wiki-toc-body { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.wiki-toc-body {
overflow: hidden; max-height: 0;
transition: max-height var(--fluent-duration-slow) var(--fluent-easing-standard);
}
.wiki-toc-body.open { max-height: 2000px; }
.wiki-toc-item {
display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 42px;
border-bottom: 1px solid var(--border-light); transition: background 0.1s ease;
border-bottom: 1px solid var(--border-light);
text-decoration: none; color: var(--text-primary); min-height: 48px;
transition: background var(--fluent-duration-fast) var(--fluent-easing-decelerate);
}
.wiki-toc-item:last-child { border-bottom: none; }
.wiki-toc-item:active { background: var(--color-primary-bg); }
.wiki-toc-item:hover { background: var(--bg-elevated); }
.wiki-toc-item:active { background: var(--fluent-primary-tint-30); }
.wiki-toc-item .item-icon { font-size: 14px; color: var(--text-tertiary); flex-shrink: 0; }
.wiki-toc-item .item-title { flex: 1; font-size: 13px; }
.wiki-toc-item .item-tag {
font-size: 11px; padding: 2px 8px; border-radius: 10px;
font-size: 11px; padding: 2px 8px; border-radius: var(--radius-xs);
background: var(--bg-elevated); color: var(--text-tertiary); flex-shrink: 0;
}
@media (min-width: 769px) { .chip-bar { display: none !important; } }
@media (max-width: 768px) {
.header-bar { padding: 0 20px; }
/* ===== Responsive — Fluent 2 Breakpoints ===== */
@media (min-width: 1024px) { .chip-bar { display: none !important; } }
@media (max-width: 1023px) {
.sidebar { width: 220px; }
}
@media (max-width: 639px) {
.header-bar { padding: 0 16px; }
.header-bar .tagline { display: none; }
.search-box input { padding: 7px 10px 7px 30px; }
.search-box .search-icon { left: 8px; font-size: 14px; }
.chip-bar { display: block; }
.sidebar { display: none; }
.main { padding: 24px 20px 48px; }
.main { padding: 24px 16px 48px; }
.all-grid { grid-template-columns: 1fr; }
.all-card { padding: 20px; }
.all-card { padding: 16px; }
.stats-bar { gap: 8px; }
.stat-item { padding: 6px 10px; }
.stat-num { font-size: 16px; }
@@ -363,6 +568,8 @@ const wikiData = [
{ path: "研发型企业AI转型方案/报告/ai-enterprise-maturity-model.html", title: "企业 AI 成熟度五级模型", desc: "L0前AI期→L1萌芽期→L2规范期→L2.5增强期→L3原生期,含每级判定标准、跃迁路径、触发信号与常见陷阱", date: "2026-06-03" },
{ path: "研发型企业AI转型方案/报告/ai-training-outline-for-it-services.html", title: "AI 赋能 IT 服务团队:培训与落地全套提纲", desc: "融合企业实际需求:工具全景图→四角色赋能矩阵→三阶培训体系→方法论进化→12周落地路线图,面向IT服务企业的端到端AI赋能方案", date: "2026-06-03" },
{ path: "智能体平台调研/报告/ai-agent-platform-comparison.html", title: "全功能智能体平台深度对比", desc: "覆盖10个核心平台(GitHub 7+Gitee 3),五大功能维度矩阵:多智能体平面·低代码编排·Harness基建·技能市场·评测服务,含81个开源项目索引与选型建议", date: "2026-06-04" },
{ path: "智能体平台调研/报告/spring-ai-alibaba-deployment-guide.html", title: "Spring AI Alibaba 全功能部署指南", desc: "本地内网环境从零部署全功能平台:WSL2环境准备→PostgreSQL+Nacos+MinIO中间件→全功能模块激活→内网访问配置→运维手册→故障排查,含Docker Compose一键编排与启动脚本", date: "2026-06-05" },
{ path: "AI核心技能原理说明.html", title: "AI 核心技能原理说明", desc: "系统梳理 LLM / Prompt Engineering / Agent / Skills 编排 / RAG / AI Coding / YOLO 七大方向的技术原理与工程实践", date: "2026-06-05" },
]},
{ dir: "抖音话题", icon: "🎙️", desc: "行业观点、口播话术、短视频脚本", color: "orange",
items: [