/* =====================================================================
   LAB40 · 40 定价阶梯设计 · 独立视觉母题「阶梯定价台」
   色板：翠绿 + 浅苔底；版式：左参数阶梯 / 右收入仪表，阶梯柱状图。
   仅作用于 .l40--pt 容器。
   ===================================================================== */
.l40--pt {
    --l40-pri: #15803d;
    --l40-pri2: #3fa868;
    --l40-tint: #e4f4e9;
    --l40-bg: #f3f6f2;
    --l40-bg2: #e7ede6;
    --l40-ink: #1d2b22;
    --l40-sub: #4f6456;
    --l40-mute: #829587;
    --l40-line: #dfe8de;
    --l40-line2: #c8d7c7;
}
html[data-theme="dark"] .l40--pt {
    --l40-pri: #6fd396;
    --l40-pri2: #94e2b2;
    --l40-tint: rgba(21, 128, 61, .28);
    --l40-bg: #131a15;
    --l40-bg2: #1d2620;
    --l40-ink: #e6f1e9;
    --l40-sub: #b0c5b6;
    --l40-mute: #859a8b;
    --l40-line: #28352c;
    --l40-line2: #3b4d40;
}

.pt-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); gap: 30px; align-items: center; }
.pt-hero-art { display: flex; justify-content: flex-end; }
.pt-ladder { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 160px; }
.pt-ladder i { display: block; width: 40px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, #3fa868, #15803d); box-shadow: 0 6px 16px rgba(21, 128, 61, .2); }
.pt-ladder i:nth-child(1) { height: 54px; opacity: .55; }.pt-ladder i:nth-child(2) { height: 86px; opacity: .72; }.pt-ladder i:nth-child(3) { height: 124px; }.pt-ladder i:nth-child(4) { height: 156px; opacity: .45; }
.pt-ladder span { position: absolute; left: 0; top: 0; font-family: var(--l40-mono); font-size: 11px; letter-spacing: .14em; color: var(--l40-pri); }

.pt-studio { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; margin-top: 30px; align-items: start; }
.pt-config { padding: 22px; background: var(--l40-card); border: 1px solid var(--l40-line); border-radius: var(--l40-r); box-shadow: var(--l40-shadow-sm); }
.pt-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; }
.pt-panel-title { font-size: var(--l40-md); margin: 6px 0 14px; }
.pt-floor { margin-top: 12px; padding: 12px 14px; background: var(--l40-tint); border-radius: 10px; font-size: var(--l40-sm); color: var(--l40-sub); }
.pt-floor b { color: var(--l40-pri); font-family: var(--l40-mono); font-size: var(--l40-md); }
.pt-segs { display: inline-flex; gap: 6px; padding: 4px; background: var(--l40-card2); border: 1px solid var(--l40-line); border-radius: 999px; margin-bottom: 12px; }
.pt-tiers { display: grid; gap: 10px; }
.pt-tier { display: grid; grid-template-columns: 40px minmax(90px, 1fr) 108px 86px; align-items: center; gap: 10px; padding: 11px 13px; background: var(--l40-card2); border: 1px solid var(--l40-line); border-radius: 10px; border-left: 3px solid var(--l40-pri); }
.pt-tier .pt-tier-n { width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--l40-mono); font-size: 12px; font-weight: 700; color: #fff; background: var(--l40-pri); border-radius: 50%; }
.pt-tier .pt-tier-role { font-size: var(--l40-sm); font-weight: 700; }
.pt-tier .pt-tier-role small { display: block; font-size: var(--l40-xs); color: var(--l40-mute); font-weight: 400; }
.pt-tier input { 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; }
.pt-tier .pt-tier-up label { font-size: var(--l40-xs); color: var(--l40-mute); }

.pt-dash { position: sticky; top: 16px; padding: 20px; background: #152a1e; border: 1px solid #2b4a36; border-radius: var(--l40-r); box-shadow: 0 18px 44px rgba(20, 50, 30, .26); color: #e8f4ec; }
.pt-dash-hd { display: flex; justify-content: space-between; font-size: var(--l40-sm); font-weight: 700; margin-bottom: 16px; }
.pt-dash-hd span { font-family: var(--l40-mono); font-size: 11px; color: #8ed4a8; }
.pt-dash-rev { padding: 16px; text-align: center; background: #0f2016; border-radius: 12px; }
.pt-dash-rev span { display: block; font-size: var(--l40-xs); color: #8ed4a8; }
.pt-dash-rev b { display: block; margin: 4px 0; font-family: var(--l40-mono); font-size: 40px; line-height: 1; color: #9ce6b7; }
.pt-dash-rev em { font-style: normal; font-size: var(--l40-xs); color: #8ed4a8; }
.pt-chart { display: grid; gap: 10px; margin-top: 16px; }
.pt-bar-row { display: grid; grid-template-columns: 60px 1fr 74px; align-items: center; gap: 8px; font-size: 11px; }
.pt-bar-row .pt-bar-t { color: #8ed4a8; }
.pt-bar-track { height: 16px; background: #223c2c; border-radius: 6px; overflow: hidden; }
.pt-bar-fill { height: 100%; background: linear-gradient(90deg, #15803d, #6fd396); border-radius: 6px; transition: width .3s; }
.pt-bar-row .pt-bar-v { font-family: var(--l40-mono); text-align: right; color: #fff; }
.pt-recommend { margin-top: 16px; padding: 13px 14px; background: #234030; border-radius: 10px; font-size: var(--l40-sm); color: #c8ecd7; line-height: 1.7; }
.pt-recommend b { color: #9ce6b7; }

.pt-ai-out { margin-top: 16px; padding: 16px; background: var(--l40-tint); border-radius: 12px; }
.pt-ai-out pre { margin: 10px 0 0; white-space: pre-wrap; word-break: break-word; font-family: var(--l40-font); font-size: var(--l40-sm); line-height: 1.85; color: var(--l40-ink); }

@media (max-width: 900px) { .pt-hero, .pt-studio { grid-template-columns: 1fr; } .pt-dash { position: static; } }
@media (max-width: 560px) { .pt-tier { grid-template-columns: 32px 1fr 92px; } .pt-tier .pt-tier-up { grid-column: 2 / -1; } }
