|
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>方案C:进度条式折扣可视化</title>
- <style>
- * { margin: 0; padding: 0; box-sizing: border-box; }
- body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
-
- .panel {
- max-width: 580px; margin: 40px auto; background: #fff;
- border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); overflow: hidden;
- }
-
- .panel-header {
- display: flex; align-items: center; gap: 12px;
- padding: 20px 24px 16px; border-bottom: 1px solid #f0f0f0;
- }
- .model-icon {
- width: 48px; height: 48px; border-radius: 12px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- display: flex; align-items: center; justify-content: center;
- color: #fff; font-weight: 700; font-size: 18px;
- }
- .model-name { font-size: 18px; font-weight: 600; }
- .model-desc { font-size: 13px; color: #888; margin-top: 2px; }
-
- .section { padding: 16px 24px; }
- .section-title {
- display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
- }
- .section-title .icon {
- width: 28px; height: 28px; border-radius: 8px;
- display: flex; align-items: center; justify-content: center;
- font-size: 14px; color: #fff;
- }
- .section-title .icon.orange { background: #fa8c16; }
- .section-title .icon.cyan { background: #13c2c2; }
- .section-title h3 { font-size: 15px; font-weight: 600; }
- .section-title small { font-size: 12px; color: #999; }
-
- .divider { height: 1px; background: #f0f0f0; margin: 0 24px; }
-
- /* ===== 方案C核心样式:进度条式折扣可视化 ===== */
- .discount-card {
- background: #fff;
- border: 1px solid #f0f0f0;
- border-radius: 12px;
- padding: 16px 20px;
- margin-bottom: 12px;
- position: relative;
- }
-
- .discount-card-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- }
-
- .discount-big-number {
- font-size: 36px;
- font-weight: 800;
- background: linear-gradient(135deg, #ff4d4f, #cf1322);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- line-height: 1;
- }
-
- .discount-percent {
- font-size: 14px;
- font-weight: 600;
- color: #cf1322;
- }
-
- .group-badge {
- display: inline-flex; align-items: center; gap: 4px;
- padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500;
- }
- .group-badge.vip { background: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
- .group-badge.svip { background: #fff7e6; color: #d48806; border: 1px solid #ffe58f; }
-
- /* 进度条 */
- .bar-container {
- position: relative;
- height: 32px;
- background: #f5f5f5;
- border-radius: 6px;
- overflow: hidden;
- margin-bottom: 8px;
- }
-
- .bar-full {
- position: absolute;
- top: 0; left: 0;
- height: 100%;
- background: #e8e8e8;
- border-radius: 6px;
- display: flex; align-items: center; justify-content: flex-end;
- padding-right: 8px;
- font-size: 11px; color: #999; font-weight: 500;
- transition: width 0.5s ease;
- }
-
- .bar-discount {
- position: absolute;
- top: 0; left: 0;
- height: 100%;
- border-radius: 6px;
- display: flex; align-items: center;
- padding-left: 10px;
- font-size: 12px; color: #fff; font-weight: 600;
- transition: width 0.5s ease;
- }
-
- .bar-discount.green { background: linear-gradient(90deg, #52c41a, #73d13d); }
- .bar-discount.blue { background: linear-gradient(90deg, #1890ff, #40a9ff); }
- .bar-discount.orange { background: linear-gradient(90deg, #fa8c16, #ffa940); }
-
- .bar-labels {
- display: flex;
- justify-content: space-between;
- font-size: 11px;
- color: #bbb;
- margin-bottom: 16px;
- }
-
- /* 价格明细 */
- .price-details {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px;
- }
-
- .price-detail-item {
- background: #fafafa;
- border-radius: 8px;
- padding: 10px 12px;
- }
-
- .price-detail-label {
- font-size: 11px;
- color: #999;
- margin-bottom: 4px;
- }
-
- .price-detail-row {
- display: flex;
- align-items: baseline;
- gap: 6px;
- }
-
- .price-old {
- font-size: 13px;
- color: #ccc;
- text-decoration: line-through;
- }
-
- .price-new {
- font-size: 16px;
- font-weight: 700;
- color: #237804;
- }
-
- .price-new.red { color: #cf1322; }
-
- .price-detail-unit {
- font-size: 10px;
- color: #bbb;
- }
-
- /* 通道表格 */
- .channel-table {
- width: 100%; border-collapse: collapse; font-size: 13px;
- }
- .channel-table th {
- text-align: left; padding: 8px 0; color: #999;
- font-weight: 500; font-size: 12px;
- border-bottom: 1px solid #f0f0f0;
- }
- .channel-table td {
- padding: 10px 0; border-bottom: 1px solid #f5f5f5;
- }
- .channel-table tr:last-child td { border-bottom: none; }
- .channel-tag {
- display: inline-block; padding: 1px 8px; border-radius: 8px;
- font-size: 11px; margin-right: 4px;
- }
- .channel-tag.cyan { background: #e6fffb; color: #13c2c2; }
- .channel-tag.violet { background: #f9f0ff; color: #722ed1; }
- .channel-tag.amber { background: #fff7e6; color: #d48806; }
- .channel-tag.green { background: #f6ffed; color: #52c41a; }
- .price-orange { color: #d4380d; font-weight: 600; }
-
- .scheme-label {
- text-align: center; padding: 12px;
- background: #722ed1; color: #fff;
- font-weight: 600; font-size: 16px; letter-spacing: 1px;
- }
- .scheme-sub { font-size: 12px; font-weight: 400; opacity: 0.85; }
- </style>
- </head>
- <body>
-
- <div class="scheme-label">
- 方案C:进度条式折扣可视化
- <div class="scheme-sub">用进度条直观展示折扣力度 + 价格明细</div>
- </div>
-
- <div class="panel">
- <div class="panel-header">
- <div class="model-icon">G4</div>
- <div>
- <div class="model-name">gpt-4o</div>
- <div class="model-desc">OpenAI 最新多模态模型</div>
- </div>
- </div>
-
- <div class="section">
- <div class="section-title">
- <div class="icon orange">$</div>
- <div>
- <h3>您的分组价格</h3>
- <small>VIP 分组专属折扣</small>
- </div>
- </div>
-
- <!-- 折扣大卡片 -->
- <div class="discount-card">
- <div class="discount-card-header">
- <div>
- <span class="group-badge vip">
- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
- VIP 分组
- </span>
- </div>
- <div style="text-align:right;">
- <div class="discount-big-number">8折</div>
- <div class="discount-percent">节省 20%</div>
- </div>
- </div>
-
- <!-- 输入价格进度条 -->
- <div style="font-size:12px;color:#888;margin-bottom:4px;">输入价格</div>
- <div class="bar-container">
- <div class="bar-full" style="width: 100%;">
- ¥0.0300
- </div>
- <div class="bar-discount green" style="width: 80%;">
- ¥0.0240
- </div>
- </div>
- <div class="bar-labels">
- <span>default 分组基准价</span>
- <span style="color:#52c41a;font-weight:500;">VIP 折扣价</span>
- </div>
-
- <!-- 输出价格进度条 -->
- <div style="font-size:12px;color:#888;margin-bottom:4px;">输出价格</div>
- <div class="bar-container">
- <div class="bar-full" style="width: 100%;">
- ¥0.0600
- </div>
- <div class="bar-discount blue" style="width: 80%;">
- ¥0.0480
- </div>
- </div>
- <div class="bar-labels">
- <span>default 分组基准价</span>
- <span style="color:#1890ff;font-weight:500;">VIP 折扣价</span>
- </div>
-
- <!-- 价格明细网格 -->
- <div class="price-details">
- <div class="price-detail-item">
- <div class="price-detail-label">输入价格</div>
- <div class="price-detail-row">
- <span class="price-old">¥0.0300</span>
- <span class="price-new">¥0.0240</span>
- </div>
- <div class="price-detail-unit">/ 1K tokens</div>
- </div>
- <div class="price-detail-item">
- <div class="price-detail-label">输出价格</div>
- <div class="price-detail-row">
- <span class="price-old">¥0.0600</span>
- <span class="price-new">¥0.0480</span>
- </div>
- <div class="price-detail-unit">/ 1K tokens</div>
- </div>
- </div>
- </div>
-
- <!-- 按次计费示例 -->
- <div class="discount-card" style="border-color:#e6f7ff;">
- <div class="discount-card-header">
- <div>
- <span class="group-badge svip">
- <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"/></svg>
- SVIP 分组
- </span>
- <span style="font-size:11px;color:#999;margin-left:4px;">按次计费示例</span>
- </div>
- <div style="text-align:right;">
- <div class="discount-big-number" style="background:linear-gradient(135deg, #d48806, #ad6800);-webkit-background-clip:text;background-clip:text;">7折</div>
- <div class="discount-percent" style="color:#d48806;">节省 30%</div>
- </div>
- </div>
- <div style="font-size:12px;color:#888;margin-bottom:4px;">每次调用价格</div>
- <div class="bar-container">
- <div class="bar-full" style="width: 100%;">
- ¥0.0500
- </div>
- <div class="bar-discount orange" style="width: 70%;">
- ¥0.0350
- </div>
- </div>
- <div class="bar-labels">
- <span>default 分组基准价</span>
- <span style="color:#fa8c16;font-weight:500;">SVIP 折扣价</span>
- </div>
- </div>
- </div>
-
- <div class="divider"></div>
-
- <div class="section">
- <div class="section-title">
- <div class="icon cyan">
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"/><rect x="2" y="14" width="20" height="8" rx="2" ry="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg>
- </div>
- <div>
- <h3>通道价格</h3>
- <small>所有支持该模型的通道价格</small>
- </div>
- </div>
- <table class="channel-table">
- <thead>
- <tr><th>通道</th><th>计费类型</th><th>输入价格</th><th>输出价格</th></tr>
- </thead>
- <tbody>
- <tr>
- <td><span class="channel-tag cyan">OpenAI 官方</span><span class="channel-tag amber">默认</span></td>
- <td><span class="channel-tag violet">按量计费</span></td>
- <td class="price-orange">¥0.0240<br><span style="font-size:11px;color:#999">/ 1K tokens</span></td>
- <td class="price-orange">¥0.0480<br><span style="font-size:11px;color:#999">/ 1K tokens</span></td>
- </tr>
- <tr>
- <td><span class="channel-tag cyan">Azure 中转</span><span class="channel-tag green">高速</span></td>
- <td><span class="channel-tag violet">按量计费</span></td>
- <td class="price-orange">¥0.0280<br><span style="font-size:11px;color:#999">/ 1K tokens</span></td>
- <td class="price-orange">¥0.0560<br><span style="font-size:11px;color:#999">/ 1K tokens</span></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-
- </body>
- </html>
|