fix: remove Google Fonts dependency + lazy-load page scripts

- CSS: drop @import fonts.googleapis (blocked by CSP style-src,
  unreachable in CN) - use system font stack with YaHei fallback
- index.html: remove all 26 js/pages/*.js tags - core 4 scripts only
- app.js: route-based lazy loading - PAGE_SCRIPTS map, loadScript
  with cache, async route() loads page scripts before render
- cross-deps: home->ticket-create, reset defined in forgot.js
This commit is contained in:
2026-08-22 12:26:15 +08:00
parent da26dd5f69
commit 4ebabfc703
3 changed files with 60 additions and 29 deletions

View File

@@ -1,5 +1,5 @@
/* ===== Modern MC Report System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
/* 字体使用系统栈, 不依赖 Google Fonts(国内不可达且受 CSP 限制) */
:root {
--p: #6366f1; --pd: #4f46e5; --pl: #eef2ff; --pg: linear-gradient(135deg,#6366f1,#8b5cf6);
@@ -19,7 +19,7 @@
*{margin:0;padding:0;box-sizing:border-box}
body{
font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans SC',sans-serif;
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans SC','Microsoft YaHei',sans-serif;
background:var(--g1);color:var(--g8);line-height:1.6;
-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh;
}