.pricing-chart { padding: 2.5rem; background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(240,242,245,0.1) 100%); border-radius: 16px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.1); margin-bottom: 2rem; } .chart-title { font-size: 1.75rem; background: linear-gradient(90deg, #4285f4, #7c4dff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; } .chart-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; } .legend { display: flex; gap: 2rem; margin-bottom: 1rem; } .legend-item { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; } .legend-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); } .legend-color { width: 20px; height: 20px; border-radius: 4px; } .input-color { background-color: #4285f4; } .output-color { background-color: #7c4dff; } .chart-area { display: flex; } .y-axis { display: flex; flex-direction: column; justify-content: space-between; height: 300px; margin-right: 10px; } .y-axis-label { font-size: 0.75rem; text-align: right; } .chart-container { display: flex; align-items: flex-end; gap: 0.5rem; /* 减小柱状图之间的间距 */ height: 300px; position: relative; padding-bottom: 80px; width: 100%; /* 确保容器占满可用宽度 */ overflow: visible; /* 移除水平滚动 */ } .grid-lines { position: absolute; left: 0; right: 0; top: 0; bottom: 80px; z-index: 1; } .grid-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(224,224,224,0.3); } .chart-column { position: relative; flex: 1; /* 使柱状图列可伸缩 */ /* max-width: 60px; */ /* 移除这行 */ z-index: 2; display: flex; flex-direction: column; align-items: center; } /* 让.bar根据可用空间调整宽度 */ .bars-container { display: flex; gap: 2px; align-items: flex-end; height: 100%; justify-content: center; flex-grow: 1; /* 新增 */ } .bar { width: 15px; /* 减小柱状图的宽度 */ position: relative; border-radius: 4px 4px 0 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: linear-gradient(180deg, rgba(66,133,244,0.9), rgba(66,133,244,0.7)); box-shadow: 0 4px 12px rgba(66,133,244,0.2); } .input-bar { background: linear-gradient(180deg, #4285f4, #2b579a); } .output-bar { background: linear-gradient(180deg, #7c4dff, #4a2b9a); margin-left: 5px; } .price-label { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; /* 减小价格标签的字体大小 */ white-space: nowrap; } .provider-info { position: absolute; bottom: -70px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; } .provider-logo { width: 20px; /* 缩小Logo尺寸 */ height: 20px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); transition: transform 0.3s ease; } .provider-logo:hover { transform: scale(1.1); } .provider-name { font-size: 13px; transform: translate(-18px, 36px) rotate(-77deg); transform-origin: top center; /* white-space: nowrap; */ /* margin-top: 35px; */ line-height: 16px; padding-top: -11px; width: 80px; text-align: right; height: 40px; word-break: break-all; white-space: break-spaces; padding-right: 18px; } .pricing-charts-container { padding: 2rem; background: var(--bg-primary); min-height: 100vh; } .update-time { background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 8px; margin-bottom: 2rem; display: inline-block; }