# Financial Layouts Reference 金融演示专用页面布局。每种布局都遵循 viewport fitting 规范,所有尺寸使用 `clamp()`。 --- ## 1. KPI Dashboard (关键指标仪表盘) 适用于:业绩概览、核心指标展示、投资亮点 ```html 核心业绩指标 2024年度 / 单位:人民币 营业收入 23.4亿 +18.2% YoY 净利润 5.8亿 +22.5% YoY 毛利率 42.3% +2.1pp ROE 16.8% -0.5pp ``` ```css .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); margin-top: clamp(1rem, 3vh, 2rem); } .kpi-card { background: var(--card-bg, rgba(255, 255, 255, 0.05)); border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); border-radius: clamp(6px, 1vw, 12px); padding: clamp(0.75rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: clamp(0.25rem, 0.5vh, 0.5rem); } .kpi-label { font-size: clamp(0.65rem, 1vw, 0.85rem); color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; } .kpi-value { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; font-family: var(--font-display); color: var(--text-primary); line-height: 1.1; } .kpi-trend { font-size: clamp(0.6rem, 0.9vw, 0.8rem); font-weight: 500; } .kpi-trend.positive { color: var(--color-positive, #16a34a); } .kpi-trend.negative { color: var(--color-negative, #dc2626); } .kpi-trend.neutral { color: var(--text-secondary); } /* A股惯例:涨为红、跌为绿。如需切换,覆盖以下变量 */ /* --color-positive: #dc2626; --color-negative: #16a34a; */ ``` ### KPI 计数动画 ```javascript class KPICounter { constructor(el) { this.el = el; this.target = parseFloat(el.dataset.count) || 0; this.duration = 1200; } animate() { const start = performance.now(); const step = (now) => { const progress = Math.min((now - start) / this.duration, 1); const eased = 1 - Math.pow(1 - progress, 3); // ease-out-cubic const current = this.target * eased; this.el.textContent = formatCN(current); if (progress < 1) requestAnimationFrame(step); }; requestAnimationFrame(step); } } // 在 IntersectionObserver 回调中触发 entry.target.querySelectorAll('.kpi-value[data-count]').forEach(el => { new KPICounter(el).animate(); }); ``` --- ## 2. Data Table (数据表格) 适用于:财务数据对比、同业比较、历史趋势 ```html 财务数据摘要 指标 2022A 2023A 2024A 2025E 营业收入(亿) 156.3 189.7 234.0 278.5 净利润(亿) 38.2 47.5 58.0 69.2 毛利率(%) 39.1 40.8 42.3 43.5 EPS(元) 2.15 2.68 3.27 3.90 PE(倍) 28.5 24.3 21.1 17.7 数据来源:公司年报、券商一致预期 | E = 预测值 ``` ```css .table-wrapper { overflow-x: auto; margin-top: clamp(0.75rem, 2vh, 1.5rem); -webkit-overflow-scrolling: touch; } .data-table { width: 100%; border-collapse: collapse; font-size: clamp(0.7rem, 1.2vw, 0.95rem); font-family: var(--font-body); } .data-table th { font-size: clamp(0.6rem, 1vw, 0.8rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); padding: clamp(0.4rem, 1vh, 0.75rem) clamp(0.5rem, 1.5vw, 1rem); border-bottom: 2px solid var(--border-color, rgba(0, 0, 0, 0.15)); text-align: left; } .data-table th.col-num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; } .data-table td { padding: clamp(0.35rem, 0.8vh, 0.6rem) clamp(0.5rem, 1.5vw, 1rem); border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.06)); color: var(--text-primary); } .data-table tbody tr:hover { background: var(--row-hover, rgba(0, 0, 0, 0.02)); } .data-table .highlight { color: var(--accent); font-weight: 600; } .data-table .separator td { border-top: 2px solid var(--border-color, rgba(0, 0, 0, 0.1)); } .table-note { font-size: clamp(0.55rem, 0.8vw, 0.7rem); color: var(--text-secondary); margin-top: clamp(0.5rem, 1vh, 0.75rem); opacity: 0.7; } /* 深色主题表格适配 */ @media (prefers-color-scheme: dark) { .data-table th { border-bottom-color: rgba(255, 255, 255, 0.15); } .data-table td { border-bottom-color: rgba(255, 255, 255, 0.06); } .data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); } } ``` ### 内容密度规范 | 表格类型 | 最大行数 | 最大列数 | |----------|---------|---------| | 财务摘要 | 6-8 行 | 5-6 列 | | 同业对比 | 4-6 行 | 6-7 列 | | 估值对比 | 5-6 行 | 4-5 列 | **超出限制时拆分为多个 slide,不要压缩字号。** --- ## 3. Timeline (时间线) 适用于:公司发展历程、项目里程碑、政策演变 ```html 发展里程碑 2018 成立与首轮融资 完成A轮融资2亿元,核心团队组建完成 2020 产品商业化 首款产品上市,当年营收突破5000万 2023 IPO上市 科创板上市,市值突破100亿 2025E 全球化布局 海外营收占比目标达30% ``` ```css .timeline { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.5vh, 1.25rem); margin-top: clamp(0.75rem, 2vh, 1.5rem); padding-left: clamp(3rem, 8vw, 6rem); position: relative; } /* 纵轴线 */ .timeline::before { content: ''; position: absolute; left: clamp(1.2rem, 3.5vw, 2.5rem); top: 0; bottom: 0; width: 2px; background: var(--border-color, rgba(0, 0, 0, 0.12)); } .timeline-item { position: relative; display: flex; align-items: flex-start; gap: clamp(0.5rem, 1.5vw, 1rem); } .timeline-date { position: absolute; left: calc(-1 * clamp(3rem, 8vw, 6rem)); width: clamp(2.5rem, 7vw, 5rem); font-size: clamp(0.65rem, 1vw, 0.85rem); font-weight: 700; color: var(--accent); text-align: right; padding-top: 0.15em; } .timeline-dot { position: absolute; left: calc(-1 * clamp(3rem, 8vw, 6rem) + clamp(2.7rem, 7.3vw, 5.3rem)); width: clamp(8px, 1vw, 12px); height: clamp(8px, 1vw, 12px); border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-primary, #fff); box-shadow: 0 0 0 2px var(--accent); flex-shrink: 0; margin-top: 0.3em; } .timeline-dot.active { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(var(--accent-rgb, 37, 99, 235), 0.2); } .timeline-content h4 { font-size: clamp(0.8rem, 1.3vw, 1.05rem); font-weight: 600; color: var(--text-primary); margin-bottom: clamp(0.15rem, 0.3vh, 0.3rem); } .timeline-content p { font-size: clamp(0.65rem, 1vw, 0.85rem); color: var(--text-secondary); line-height: 1.4; } /* 时间线最多 4-5 个节点 */ ``` --- ## 4. Comparison (对比分析) 适用于:可比公司、方案对比、产品差异 ```html 可比公司估值对比 标的公司 当前持仓 PE (TTM)21.3x PB3.8x ROE18.2% 营收增速+23.4% 可比A PE (TTM)25.1x PB4.2x ROE16.5% 营收增速+15.8% 可比B PE (TTM)18.7x PB2.9x ROE15.1% 营收增速+11.2% ``` ```css .comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); margin-top: clamp(0.75rem, 2vh, 1.5rem); } .comp-card { background: var(--card-bg, rgba(0, 0, 0, 0.02)); border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); border-radius: clamp(6px, 1vw, 12px); padding: clamp(0.75rem, 2vw, 1.5rem); } .comp-card.featured { border-color: var(--accent); border-width: 2px; background: var(--card-bg-featured, rgba(var(--accent-rgb, 37, 99, 235), 0.04)); } .comp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(0.5rem, 1vh, 0.75rem); padding-bottom: clamp(0.4rem, 0.8vh, 0.6rem); border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08)); } .comp-header h3 { font-size: clamp(0.85rem, 1.3vw, 1.1rem); font-weight: 700; color: var(--text-primary); } .comp-tag { font-size: clamp(0.5rem, 0.7vw, 0.65rem); background: var(--accent); color: var(--bg-primary, #fff); padding: 0.15em 0.5em; border-radius: 3px; font-weight: 500; } .comp-row { display: flex; justify-content: space-between; align-items: center; padding: clamp(0.25rem, 0.5vh, 0.4rem) 0; font-size: clamp(0.65rem, 1vw, 0.85rem); } .comp-row span { color: var(--text-secondary); } .comp-row strong { color: var(--text-primary); font-variant-numeric: tabular-nums; } /* 最多 3 列对比卡片,每卡片 4-5 行指标 */ ``` --- ## 5. Chart + Text Split (图文分栏) 适用于:数据解读、趋势分析配说明 ```html 营收持续高增长 收入增速 23.4%,连续4年保持20%+增长 核心产品市占率提升至 18.5% 海外业务贡献 12% 增量 ``` ```css .split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; height: 100%; } .split-text h2 { font-size: clamp(1.2rem, 2.8vw, 2rem); margin-bottom: clamp(0.5rem, 1.5vh, 1rem); } .insight-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: clamp(0.4rem, 1vh, 0.75rem); } .insight-list li { font-size: clamp(0.75rem, 1.2vw, 1rem); line-height: 1.5; color: var(--text-secondary); padding-left: clamp(0.75rem, 1.5vw, 1.25rem); position: relative; } .insight-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: clamp(4px, 0.5vw, 6px); height: clamp(4px, 0.5vw, 6px); border-radius: 50%; background: var(--accent); } .insight-list li strong { color: var(--text-primary); font-weight: 600; } /* 窄屏堆叠 */ @media (max-width: 768px) { .split-layout { grid-template-columns: 1fr; } } ``` --- ## 布局选择指南 | 页面用途 | 推荐布局 | 最大内容量 | |----------|---------|-----------| | 业绩概览 | KPI Dashboard | 4-6 个指标卡片 | | 财务数据 | Data Table | 8 行 x 6 列 | | 发展历程 | Timeline | 4-5 个节点 | | 同业对比 | Comparison | 3 列 x 5 行指标 | | 趋势解读 | Chart + Text Split | 1 图 + 3-4 条要点 | | 收入拆解 | Chart (全幅) | 1 个图表 + 标题 | | 投资亮点 | KPI + 简述 | 3-4 个亮点 | **内容超限时拆分为多个 slide。绝对不要缩小字号或减少间距来容纳更多内容。**
2024年度 / 单位:人民币
数据来源:公司年报、券商一致预期 | E = 预测值
完成A轮融资2亿元,核心团队组建完成
首款产品上市,当年营收突破5000万
科创板上市,市值突破100亿
海外营收占比目标达30%