/* =====================================================================
   LAB40 · 37 峰谷电价家充成本 · 独立视觉母题「家充账本」
   色板：琥珀电光 + 深灰仪表；版式：左电价编辑 / 右成本仪表盘，比例堆叠条。
   仅作用于 .l40--pv 容器。
   ===================================================================== */
.l40--pv {
    --l40-pri: #b45309;
    --l40-pri2: #e08b2c;
    --l40-tint: #fdf0dc;
    --l40-bg: #f7f5f0;
    --l40-bg2: #ece8de;
    --l40-ink: #2b261d;
    --l40-sub: #675e4e;
    --l40-mute: #9b9080;
    --l40-line: #e7e0d2;
    --l40-line2: #d6cbb7;
}
html[data-theme="dark"] .l40--pv {
    --l40-pri: #e6a44f;
    --l40-pri2: #f0bd7c;
    --l40-tint: rgba(180, 83, 9, .26);
    --l40-bg: #191612;
    --l40-bg2: #242019;
    --l40-ink: #f2ece1;
    --l40-sub: #c8bda9;
    --l40-mute: #9c917f;
    --l40-line: #352f24;
    --l40-line2: #4b4233;
}

.pv-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, .8fr); gap: 30px; align-items: center; }
.pv-hero-art { display: flex; justify-content: flex-end; }
.pv-meter { width: 190px; padding: 20px; background: #26303a; border: 4px solid #3d4a56; border-radius: 14px; box-shadow: 0 16px 36px rgba(40, 50, 60, .28); transform: rotate(2deg); }
.pv-meter-top { font-family: var(--l40-mono); font-size: 11px; color: #8fa2b3; text-align: right; }
.pv-meter-num { margin: 10px 0; padding: 10px 6px; font-family: var(--l40-mono); font-size: 24px; letter-spacing: 4px; text-align: center; color: #ffd479; background: #121a21; border-radius: 6px; }
.pv-meter-tag { font-family: var(--l40-mono); font-size: 11px; color: #7ee0a8; text-align: center; }

.pv-studio { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; margin-top: 30px; align-items: start; }
.pv-config { padding: 22px; background: var(--l40-card); border: 1px solid var(--l40-line); border-radius: var(--l40-r); box-shadow: var(--l40-shadow-sm); }
.pv-micro { display: block; font-family: var(--l40-mono); font-size: var(--l40-xs); font-weight: 700; letter-spacing: .1em; color: var(--l40-pri); text-transform: uppercase; }
.pv-panel-title { font-size: var(--l40-md); margin: 6px 0 14px; }
.pv-price-table { display: grid; gap: 8px; }
.pv-price-row { display: grid; grid-template-columns: 12px 42px minmax(60px, 1fr) 78px 18px; align-items: center; gap: 7px; padding: 9px 11px; background: var(--l40-card2); border: 1px solid var(--l40-line); border-radius: 10px; min-width: 0; }
.pv-price-row label { font-size: var(--l40-sm); font-weight: 700; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; }
.pv-dot.sharp { background: #c0392b; }.pv-dot.peak { background: #e07b39; }.pv-dot.flat { background: #4a90d9; }.pv-dot.valley { background: #27ae60; }
.pv-time { padding: 7px 9px; font-family: var(--l40-mono); font-size: 12px; color: var(--l40-ink); background: var(--l40-card); border: 1px solid var(--l40-line2); border-radius: 7px; }
.pv-price { padding: 7px 9px; font-family: var(--l40-mono); font-size: 13px; color: var(--l40-ink); background: var(--l40-card); border: 1px solid var(--l40-line2); border-radius: 7px; }
.pv-unit { font-size: var(--l40-xs); color: var(--l40-mute); }
.pv-alloc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pv-alloc label { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: var(--l40-card2); border: 1px solid var(--l40-line); border-radius: 9px; font-size: var(--l40-sm); }
.pv-alloc label span { flex: 1 1 auto; }
.pv-alloc label em { font-style: normal; color: var(--l40-mute); }
.pv-pct { width: 54px; padding: 5px 6px; font-family: var(--l40-mono); font-size: 13px; text-align: center; color: var(--l40-ink); background: var(--l40-card); border: 1px solid var(--l40-line2); border-radius: 6px; }
.pv-alloc-bar { display: flex; height: 12px; margin-top: 10px; border-radius: 999px; overflow: hidden; }
.pv-alloc-bar i { display: block; height: 100%; transition: width .25s; }
.pv-alloc-bar i:nth-child(1) { background: #c0392b; }.pv-alloc-bar i:nth-child(2) { background: #e07b39; }.pv-alloc-bar i:nth-child(3) { background: #4a90d9; }.pv-alloc-bar i:nth-child(4) { background: #27ae60; }

.pv-dash { position: sticky; top: 16px; padding: 20px; background: #232d36; border: 1px solid #36434e; border-radius: var(--l40-r); box-shadow: 0 18px 44px rgba(30, 40, 50, .26); color: #e8eff5; }
.pv-dash-hd { display: flex; justify-content: space-between; align-items: center; font-size: var(--l40-sm); font-weight: 700; margin-bottom: 18px; }
.pv-dash-hd span { font-family: var(--l40-mono); font-size: 11px; color: #8fa2b3; }
.pv-dash-main { padding: 18px; text-align: center; background: #19222a; border-radius: 12px; }
.pv-dash-main span { display: block; font-size: var(--l40-xs); color: #8fa2b3; }
.pv-dash-main b { display: block; margin: 4px 0; font-family: var(--l40-mono); font-size: 46px; line-height: 1; color: #ffd479; }
.pv-dash-main em { font-style: normal; font-size: var(--l40-xs); color: #8fa2b3; }
.pv-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.pv-dash-grid > div { padding: 12px; background: #2b3742; border-radius: 10px; }
.pv-dash-grid span { display: block; font-size: 11px; color: #9fb0bf; }
.pv-dash-grid b { display: block; margin: 3px 0; font-family: var(--l40-mono); font-size: 21px; color: #fff; }
.pv-dash-grid b.pv-best { font-size: 15px; color: #7ee0a8; }
.pv-dash-grid small { font-size: 10px; color: #7e93a5; }
.pv-dash-note { margin-top: 12px !important; font-size: 11px; color: #7e93a5; line-height: 1.6; }

@media (max-width: 900px) { .pv-hero, .pv-studio { grid-template-columns: minmax(0, 1fr); } .pv-dash { position: static; min-width: 0; } }
@media (max-width: 560px) { .pv-alloc { grid-template-columns: repeat(2, 1fr); } }
