fix: 代码审查修复 — 空值保护、Firefox渐变、移动端导航、CSS变量化、NPM私服配置

- index.html: section.items空值检查(5处)、移除dead badgeStyle
- 物流网报告×3 + AI转型方案×3: 添加background-clip:text兼容Firefox
- ai-dev-workflow/v2: 移动端汉堡导航+抽屉覆盖层+返回顶部
- crmeb-deploy-plan: Markdown→HTML+新增NPM私服(Verdaccio)章节
- 需求对比分析报告: 谷歌蓝→品牌蓝, CSS变量化
- ai-dev-workflow-v2: npm私服统一指向npm.ycbat.com(上游阿里云镜像)
- CLAUDE.md/design-tokens.md: 修正UI规范与目录文档
This commit is contained in:
zdh
2026-05-31 16:43:08 +08:00
parent ddcbd3f1f2
commit a2eea31c9b
17 changed files with 10362 additions and 95 deletions
@@ -5,53 +5,65 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>需求文档 vs 系统实际功能 对比分析报告</title>
<style>
:root {
--color-primary: #1677FF; --color-primary-hover: #4096FF; --color-primary-active: #0958D9; --color-primary-bg: #E6F4FF;
--color-success: #52C41A; --color-success-bg: #F6FFED; --color-success-border: #B7EB8F;
--color-warning: #FAAD14; --color-warning-bg: #FFFBE6; --color-warning-border: #FFE58F;
--color-error: #FF4D4F; --color-error-bg: #FFF2F0; --color-error-border: #FFCCC7;
--bg: #F5F5F5; --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);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; color: #333; line-height: 1.8; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text-primary); line-height: 1.8; font-size: 14px; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; padding: 40px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.header { background: linear-gradient(135deg, var(--color-primary), #722ED1); color: #fff; padding: 40px; border-radius: var(--radius-lg); margin-bottom: 30px; text-align: center; }
.header h1 { font-size: 28px; margin-bottom: 10px; }
.header p { font-size: 14px; opacity: 0.85; }
.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.card { background: #fff; border-radius: 10px; padding: 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card { background: var(--bg-container); border-radius: var(--radius-md); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.card .number { font-size: 36px; font-weight: 700; margin: 8px 0; }
.card .label { font-size: 14px; color: #666; }
.card.match .number { color: #52c41a; }
.card.exceed .number { color: #1890ff; }
.card.missing .number { color: #ff4d4f; }
.card.partial .number { color: #faad14; }
.section { background: #fff; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.section-header { padding: 16px 24px; font-size: 18px; font-weight: 600; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.section-header .icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.section-header .icon.green { background: #52c41a; }
.section-header .icon.blue { background: #1890ff; }
.section-header .icon.red { background: #ff4d4f; }
.section-header .icon.orange { background: #faad14; }
.card .label { font-size: 14px; color: var(--text-secondary); }
.card.match .number { color: var(--color-success); }
.card.exceed .number { color: var(--color-primary); }
.card.missing .number { color: var(--color-error); }
.card.partial .number { color: var(--color-warning); }
.section { background: var(--bg-container); border-radius: var(--radius-md); margin-bottom: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); overflow: hidden; }
.section-header { padding: 16px 24px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; }
.section-header .icon { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.section-header .icon.green { background: var(--color-success); }
.section-header .icon.blue { background: var(--color-primary); }
.section-header .icon.red { background: var(--color-error); }
.section-header .icon.orange { background: var(--color-warning); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
th { background: #fafafa; font-weight: 600; color: #555; white-space: nowrap; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 14px; }
th { background: var(--bg-elevated); font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
td:first-child { white-space: nowrap; }
tr:hover td { background: #f8faff; }
tr:hover td { background: var(--color-primary-bg); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.match { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge.exceed { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.badge.missing { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.badge.partial { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.badge.not-needed { background: #f5f5f5; color: #999; border: 1px solid #d9d9d9; }
.note { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 12px 16px; margin: 12px 16px; font-size: 13px; color: #8c6d1f; }
.note.red { background: #fff1f0; border-color: #ffa39e; color: #a83232; }
.note.blue { background: #e6f7ff; border-color: #91d5ff; color: #096dd9; }
.progress-bar { background: #f0f0f0; border-radius: 10px; height: 20px; overflow: hidden; margin: 8px 0; }
.badge.match { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success-border); }
.badge.exceed { background: var(--color-primary-bg); color: var(--color-primary); border: 1px solid #91CAFF; }
.badge.missing { background: var(--color-error-bg); color: var(--color-error); border: 1px solid var(--color-error-border); }
.badge.partial { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid var(--color-warning-border); }
.badge.not-needed { background: var(--bg-elevated); color: var(--text-tertiary); border: 1px solid var(--border); }
.note { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); border-radius: var(--radius-md); padding: 12px 16px; margin: 12px 16px; font-size: 13px; color: #8c6d1f; }
.note.red { background: var(--color-error-bg); border-color: var(--color-error-border); color: #a83232; }
.note.blue { background: var(--color-primary-bg); border-color: #91CAFF; color: #096dd9; }
.progress-bar { background: var(--border-light); border-radius: 10px; height: 20px; overflow: hidden; margin: 8px 0; }
.progress-bar .fill { height: 100%; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; min-width: 40px; }
.fill.green { background: linear-gradient(90deg, #52c41a, #73d13d); }
.fill.blue { background: linear-gradient(90deg, #1890ff, #40a9ff); }
.fill.orange { background: linear-gradient(90deg, #faad14, #ffc53d); }
.fill.red { background: linear-gradient(90deg, #ff4d4f, #ff7875); }
.detail-text { font-size: 13px; color: #888; max-width: 300px; }
.toc { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.fill.green { background: linear-gradient(90deg, var(--color-success), #73d13d); }
.fill.blue { background: linear-gradient(90deg, var(--color-primary), #40a9ff); }
.fill.orange { background: linear-gradient(90deg, var(--color-warning), #ffc53d); }
.fill.red { background: linear-gradient(90deg, var(--color-error), #ff7875); }
.detail-text { font-size: 13px; color: var(--text-tertiary); max-width: 300px; }
.toc { background: var(--bg-container); border-radius: var(--radius-md); padding: 24px; margin-bottom: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.toc h3 { margin-bottom: 12px; font-size: 16px; }
.toc a { display: block; padding: 4px 0; color: #1a73e8; text-decoration: none; font-size: 14px; }
.toc a { display: block; padding: 4px 0; color: var(--color-primary); text-decoration: none; font-size: 14px; }
.toc a:hover { text-decoration: underline; }
.footer { text-align: center; padding: 20px; color: #999; font-size: 12px; }
.footer { text-align: center; padding: 20px; color: var(--text-tertiary); font-size: 12px; }
@media (max-width: 768px) { .summary-cards { grid-template-columns: repeat(2, 1fr); } }
</style>
</head>