|
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>方案B:双卡片对比</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; }
-
- /* ===== 方案B核心样式:双卡片对比 ===== */
- .price-cards {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 12px;
- margin-bottom: 12px;
- }
-
- .price-card {
- border-radius: 12px;
- padding: 16px;
- position: relative;
- overflow: hidden;
- }
-
- .price-card.standard {
- background: #fafafa;
- border: 1px solid #e8e8e8;
- }
-
- .price-card.discounted {
- background: linear-gradient(135deg, #f6ffed 0%, #d9f7be 100%);
- border: 2px solid #52c41a;
- }
-
- .price-card .card-label {
- font-size: 11px;
- text-transform: uppercase;
- letter-spacing: 1px;
- font-weight: 600;
- margin-bottom: 8px;
- }
-
- .price-card.standard .card-label { color: #999; }
- .price-card.discounted .card-label { color: #389e0d; }
-
- .price-card .card-group {
- font-size: 12px;
- color: #888;
- margin-bottom: 12px;
- }
-
- .price-card.discounted .card-group {
- color: #389e0d;
- }
-
- .price-item {
- margin-bottom: 8px;
- }
- .price-item:last-child { margin-bottom: 0; }
- .price-item-label {
- font-size: 11px;
- color: #999;
- margin-bottom: 2px;
- }
- .price-item-value {
- font-weight: 700;
- font-size: 18px;
- }
- .price-card.standard .price-item-value { color: #bbb; }
- .price-card.discounted .price-item-value { color: #237804; }
-
- .price-unit {
- font-size: 11px;
- font-weight: 400;
- opacity: 0.6;
- }
-
- .savings-banner {
- background: linear-gradient(90deg, #52c41a, #73d13d);
- color: #fff;
- border-radius: 8px;
- padding: 8px 16px;
- text-align: center;
- font-weight: 600;
- font-size: 13px;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- }
-
- .savings-amount {
- font-size: 18px;
- font-weight: 700;
- }
-
- /* 通道表格 */
- .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: #52c41a; color: #fff;
- font-weight: 600; font-size: 16px; letter-spacing: 1px;
- }
- .scheme-sub { font-size: 12px; font-weight: 400; opacity: 0.85; }
-
- /* 节省箭头 */
- .arrow-down {
- display: flex; justify-content: center; margin: 8px 0;
- }
- .arrow-down svg { color: #52c41a; }
- </style>
- </head>
- <body>
-
- <div class="scheme-label">
- 方案B:双卡片对比
- <div class="scheme-sub">标准价格 vs 用户价格 左右对比,突出节省金额</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 style="font-size:12px;color:#888;margin-bottom:6px;">输入价格</div>
- <div class="price-cards">
- <div class="price-card standard">
- <div class="card-label">标准价格</div>
- <div class="card-group">default 分组</div>
- <div class="price-item">
- <div class="price-item-label">每千 tokens</div>
- <div class="price-item-value">¥0.0300 <span class="price-unit">/ 1K</span></div>
- </div>
- </div>
- <div class="price-card discounted">
- <div class="card-label">您的价格</div>
- <div class="card-group">VIP 分组 · 8折</div>
- <div class="price-item">
- <div class="price-item-label">每千 tokens</div>
- <div class="price-item-value">¥0.0240 <span class="price-unit">/ 1K</span></div>
- </div>
- </div>
- </div>
-
- <div class="savings-banner">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"/><polyline points="17 6 23 6 23 12"/></svg>
- 输入节省 <span class="savings-amount">20%</span> · 每千 tokens 省 ¥0.006
- </div>
-
- <!-- 输出价格对比 -->
- <div style="font-size:12px;color:#888;margin-bottom:6px;margin-top:20px;">输出价格</div>
- <div class="price-cards">
- <div class="price-card standard">
- <div class="card-label">标准价格</div>
- <div class="card-group">default 分组</div>
- <div class="price-item">
- <div class="price-item-label">每千 tokens</div>
- <div class="price-item-value">¥0.0600 <span class="price-unit">/ 1K</span></div>
- </div>
- </div>
- <div class="price-card discounted">
- <div class="card-label">您的价格</div>
- <div class="card-group">VIP 分组 · 8折</div>
- <div class="price-item">
- <div class="price-item-label">每千 tokens</div>
- <div class="price-item-value">¥0.0480 <span class="price-unit">/ 1K</span></div>
- </div>
- </div>
- </div>
-
- <div class="savings-banner">
- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"/><polyline points="17 6 23 6 23 12"/></svg>
- 输出节省 <span class="savings-amount">20%</span> · 每千 tokens 省 ¥0.012
- </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>
|