# Appendix A — 逐頁深度盤點 **Companion to:** `claude_design_brief.md` **Version:** 1.0 (2026-05-01) **Scope:** 41 個 HTML template + 3 個共用 component,每頁的版面結構、元件、互動、設計問題與改造重點。 --- ## 0. 重要更新:發現第四種設計風格 原 brief 提到「兩套設計系統」,深掃後發現實際是 **四種視覺風格混雜**: | 風格 | 背景 | Accent | 代表頁面 | |------|------|--------|---------| | **A. 深藍 + 藍紫漸層**(舊) | `#f5f7fa` | `#1e3c72→#2a5298` + `#667eea→#764ba2` | `base.html`、`dashboard.html`、`sales_analysis.html` | | **B. 焦糖橘暖系**(目標) | `#ebe6dc` | `#c96442` | `ewoooc_base.html`、`vendor_stockout_index_v2.html` | | **C. 紫色獨立頁** | `#667eea→#764ba2` 漸層 | `#4F46E5` | `login.html`、`403.html`、`maintenance.html`、`_loading.html` | | **D. GitHub Dark Terminal** | `#0d1117` | `#3fb950`/`#58a6ff`/`#bc8cff` | `ai_automation_smoke.html`、`code_review.html` | **改造原則**: - 風格 A 全部遷移至風格 B(焦糖橘) - 風格 C 統一品牌入口頁,可保留漸層但改用焦糖橘色相 - 風格 D(開發者工具頁)可保留深色主題,但需與焦糖橘做點綴對齊 --- ## 1. 主儀表板與分析報表(風格 A,全部待遷移) ### 1.1 dashboard.html — 商品看板(首頁) - **路徑**:`templates/dashboard.html`(1405 行) - **路由**:`/`(系統首頁) - **Layout**:獨立(自包含 HTML,不 extends) - **用途**:MOMO 價格監控主控台,KPI + 商品清單 + 歷史圖表 - **區塊(從上到下)**: 1. Navbar(include `_navbar.html`) 2. KPI Cards(2 大卡:商品監控概況 + 今日價格動態) 3. 動態 KPI Grid(9 小卡:漲/降/下架數、平均幅度、活躍度、最活躍分類、最大變動) 4. 控制列(搜尋 + 分類篩選 + 狀態篩選 button group + 更新/通知按鈕) 5. 商品列表 Table(可排序,含商品圖、名稱、品號、價格、漲跌幅、上架時間) 6. Pagination 7. Modal: 歷史價格圖表(Chart.js line + 雙軸) 8. Modal: 價格變動明細(xl,動態 fetch + table) - **元件**:Bootstrap Card/Table/Modal/Dropdown/Badge/Button Group + Chart.js 3.9.1 - **互動**: - `/api/history/{productId}` 取歷史價格 - `/api/price_change_details?type=...` 取分類/變動明細 - `/api/run_task` 手動爬蟲、`/api/trigger_momo_notification` 發送通知 - 行點擊 → 開歷史圖 Modal - KPI 卡點擊 → 開明細 Modal - 品號點擊 → Clipboard API 複製 - **配色現況**:⚠️ 風格 A,主色 `#667eea/#764ba2`(藍紫)+ Navbar `#1e3c72/#2a5298` - **設計問題**: - 內嵌 `