feat(release): v1.4.0 cloud pricing sync, one-click plugin update, and UI copy refresh

This commit is contained in:
yuhuan2498281558
2026-11-03 14:28:56 +09:00
parent cdcbb129f8
commit 551eeb35c3
38 changed files with 8278 additions and 4064 deletions
@@ -0,0 +1,373 @@
/*
* 全景消耗统计视图样式表 (views-consumption.css).
* 包含:
* 1. 消费概览顶栏与 3+2 统一指标矩阵 (.cons-overview-head, .cons-unified-matrix, .cons-split-*, .cons-col)
* 2. 4 段比例条与圆点色块 (.dot-swatch, .cons-seg-bar)
* 3. 热门模型与数据来源列表项样式 (.cons-row-*, .cons-share-pill, .cons-item-*)
* 4. 历史趋势纯 SVG 平滑曲线图与峰值胶囊 (.trend-*)
* 5. 12 个月垂直堆叠柱状图与月度图例 (.monthly-*, .month-*)
*/
/* --- 1. 消费概览顶栏与 3+2 组合指标矩阵 (Consumption Overview Matrix) --- */
.cons-overview-head {
flex-wrap: wrap;
gap: 6px;
}
.cons-badge {
font-size: 11px;
font-weight: 500;
padding: 0;
background: transparent;
border: none;
color: var(--text-secondary);
}
.cons-box {
display: flex;
flex-direction: column;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
background: var(--surface-panel);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-xs);
}
.cons-unified-matrix {
gap: 0;
padding: 0;
border: none;
border-top: 1px solid var(--border-hairline);
border-bottom: 1px solid var(--border-hairline);
border-radius: 0;
overflow: hidden;
}
.cons-split-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
.cons-split-2 {
display: grid;
grid-template-columns: 1fr 1fr;
}
.cons-matrix-bottom {
border-top: 1px solid var(--border-hairline);
}
.cons-col {
display: flex;
flex-direction: column;
gap: 3px;
padding: 8px 10px;
min-width: 0;
}
.cons-col:first-child {
padding-left: 0;
}
.cons-col:last-child {
padding-right: 0;
}
.cons-col.is-bordered-col,
.cons-col.is-right-col {
border-left: 1px solid var(--border-hairline);
}
.cons-baseline {
display: flex;
align-items: baseline;
gap: 5px;
flex-wrap: wrap;
}
.cons-hero-num {
font-size: 17px;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.cons-hero-cost {
font-size: 17px;
font-weight: 700;
color: var(--accent-primary);
letter-spacing: -0.02em;
}
.cons-hero-cache {
font-size: 17px;
font-weight: 700;
color: var(--ctx-cached);
letter-spacing: -0.02em;
}
.cons-mid-num {
font-size: 13px;
font-weight: 700;
color: var(--text-primary);
}
/* --- 2. 4 段比例条与圆点色块 (Four-Segment Bar & Dot Swatches) --- */
.dot-swatch {
width: 6px;
height: 6px;
border-radius: var(--radius-pill);
display: inline-block;
flex-shrink: 0;
}
.dot-swatch.seg-input { background: var(--ctx-input); }
.dot-swatch.seg-cached { background: var(--ctx-cached); }
.dot-swatch.seg-output { background: var(--ctx-output); }
.dot-swatch.seg-thinking { background: var(--ctx-thinking); }
/* --- 3. 热门模型与数据来源行头部对齐 (Popular Models & Sources Row Header) --- */
.cons-row-title {
display: inline-flex;
align-items: center;
height: 20px;
line-height: 20px;
font-size: 12px;
font-weight: 600;
color: var(--text-primary);
}
.cons-row-metrics {
display: inline-flex;
align-items: center;
gap: 8px;
height: 20px;
}
.cons-share-pill {
display: inline-flex;
align-items: center;
justify-content: center;
height: 20px;
line-height: 1;
padding: 0 6px;
font-size: 12px;
font-weight: 600;
color: var(--metric-ok);
background: color-mix(in srgb, var(--metric-ok) 11%, transparent);
border: none;
border-radius: var(--radius-xs);
box-sizing: border-box;
}
.cons-row-tok {
display: inline-flex;
align-items: center;
height: 20px;
line-height: 1;
font-size: 12px;
font-weight: 500;
color: var(--text-secondary);
}
.cons-row-cost {
display: inline-flex;
align-items: center;
height: 20px;
line-height: 1;
font-size: 12px;
font-weight: 700;
color: var(--text-primary);
}
.cons-seg-bar {
height: 5px;
}
/* --- 4. 历史趋势 SVG 平滑曲线图 (Historical Trend SVG Chart) --- */
.trend-chart-wrap {
position: relative;
width: 100%;
padding-top: 8px;
}
.trend-svg {
width: 100%;
height: 112px;
display: block;
overflow: visible;
}
.trend-grid line {
stroke: var(--border-hairline);
stroke-width: 1;
stroke-dasharray: 2 3;
}
.trend-line {
stroke: var(--ctx-cached);
stroke-width: 2;
stroke-linecap: round;
}
.trend-peak-dot {
fill: var(--ctx-cached);
stroke: var(--surface-panel);
stroke-width: 1.5;
}
.trend-peak-pill {
position: absolute;
top: 2px;
left: var(--peak-x, 50%);
transform: translateX(-50%);
font-size: 10px;
font-weight: 600;
padding: 1px 6px;
color: var(--text-primary);
background: color-mix(in srgb, var(--ctx-cached) 16%, var(--surface-panel));
border: none;
border-radius: var(--radius-xs);
pointer-events: none;
white-space: nowrap;
}
.trend-anchors {
display: grid;
grid-template-columns: repeat(3, 1fr);
padding-top: 2px;
font-size: 11px;
}
.trend-anchor-col {
display: flex;
flex-direction: column;
gap: 1px;
}
.trend-anchor-col.is-center {
align-items: center;
}
.trend-anchor-col.is-end {
align-items: flex-end;
}
/* --- 5. 模型与数据来源明细行容器 (Popular Models & Sources Item Rows) --- */
.cons-item-list {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
.cons-item-row {
display: flex;
flex-direction: column;
gap: 6px;
}
.cons-item-foot {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 10px;
font-size: 11px;
color: var(--text-secondary);
}
.cons-item-foot strong {
color: var(--text-primary);
font-weight: 600;
}
/* --- 6. 12 个月垂直堆叠柱状图 (12-Month Stacked Bar Chart) --- */
.monthly-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 3px;
align-items: end;
padding-top: var(--space-2);
}
.month-col {
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
min-width: 0;
}
.month-cost {
font-size: 9.5px;
color: var(--text-secondary);
min-height: 14px;
white-space: nowrap;
}
.month-bar-well {
width: 100%;
height: 82px;
display: flex;
align-items: flex-end;
justify-content: center;
}
.month-stack {
width: 72%;
max-width: 20px;
height: var(--bar-h, 0%);
display: flex;
flex-direction: column;
border-radius: 2px 2px 0 0;
overflow: hidden;
transition: height var(--dur-normal) var(--ease-fast);
}
.month-seg {
width: 100%;
height: var(--seg-h, 0%);
}
.month-seg.seg-input { background: var(--ctx-input); }
.month-seg.seg-cached { background: var(--ctx-cached); }
.month-seg.seg-output { background: var(--ctx-output); }
.month-seg.seg-thinking { background: var(--ctx-thinking); }
.month-zero-dot {
width: 3px;
height: 3px;
border-radius: var(--radius-pill);
background: var(--border-strong);
margin-bottom: 4px;
}
.month-label {
font-size: 10px;
color: var(--text-secondary);
padding: 1px 3px;
border-radius: var(--radius-xs);
white-space: nowrap;
}
.month-label.is-current {
color: var(--ctx-cached);
background: color-mix(in srgb, var(--ctx-cached) 14%, transparent);
font-weight: 600;
}
.month-tok {
font-size: 9px;
color: var(--text-muted);
min-height: 12px;
white-space: nowrap;
}
.monthly-legend {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-4);
padding-top: var(--space-2);
font-size: 11px;
color: var(--text-secondary);
}