/* ===== 医美项目预算 ===== */
.am-hero {
    background: linear-gradient(150deg, #fdf2f8 0%, #f5f3ff 100%);
    border: 1px solid #f9a8d4;
    border-radius: 22px; padding: 28px; margin-bottom: 26px;
    box-shadow: 0 12px 36px rgba(157, 23, 77, .10);
}
.am-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.am-logo {
    font-size: 28px; width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #be185d 0%, #f9a8d4 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(190, 24, 93, .3);
}
.am-title { font-size: 20px; font-weight: 800; color: #831843; }
.am-sub { font-size: 13px; color: #64748b; margin-top: 2px; }

.am-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.am-form { background: rgba(255,255,255,.92); border: 1px solid #f9a8d4; border-radius: 16px; padding: 16px; }
.am-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-field { display: flex; flex-direction: column; gap: 4px; }
.am-field > span { font-size: 12px; color: #64748b; font-weight: 600; }
.am-field input, .am-field select {
    border: 2px solid #fce7f3; border-radius: 10px; padding: 9px 12px;
    font-size: 14px; background: #fff; color: #0f172a; outline: none; transition: border-color .2s;
}
.am-field input:focus, .am-field select:focus { border-color: #db2777; }

.am-result {
    background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.am-total { text-align: center; }
.am-total > span { display: block; font-size: 12px; color: #64748b; }
.am-total b { font-size: 30px; font-weight: 900; color: #831843; font-variant-numeric: tabular-nums; }
.am-total b::after { content: ' 元'; font-size: 13px; }
.am-total em { display: block; font-style: normal; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.am-break { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.am-break li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: #fdf2f8; border: 1px solid #fce7f3; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #be185d;
}
.am-break li b { color: #0f172a; font-variant-numeric: tabular-nums; text-align: right; }
.am-break li.ok { border-color: #db2777; background: #fce7f3; color: #831843; font-weight: 700; }
.am-break li.ok.bad { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.am-note { margin-top: 14px; font-size: 12px; color: #64748b; line-height: 1.7; }

@media (max-width: 860px) {
    .am-body { grid-template-columns: 1fr; }
    .am-hero { padding: 20px 14px; }
}

/* ===== 深色模式 ===== */
[data-theme="dark"] .am-hero {
    background: linear-gradient(150deg, #500724 0%, #0f172a 100%);
    border-color: rgba(249, 168, 212, .22);
}
[data-theme="dark"] .am-title { color: #f9a8d4; }
[data-theme="dark"] .am-form, [data-theme="dark"] .am-result {
    background: rgba(255,255,255,.05); border-color: rgba(249, 168, 212, .18);
}
[data-theme="dark"] .am-field input, [data-theme="dark"] .am-field select {
    background: rgba(255,255,255,.06); color: #e2e8f0; border-color: rgba(249,168,212,.25);
}
[data-theme="dark"] .am-field > span { color: #94a3b8; }
[data-theme="dark"] .am-total b { color: #f9a8d4; }
[data-theme="dark"] .am-break li { background: rgba(255,255,255,.04); border-color: rgba(148,163,184,.2); color: #94a3b8; }
[data-theme="dark"] .am-break li b { color: #e2e8f0; }
[data-theme="dark"] .am-break li.ok { background: rgba(190,24,93,.22); border-color: rgba(244,114,182,.4); color: #f9a8d4; }
[data-theme="dark"] .am-break li.ok.bad { background: rgba(217,119,6,.18); border-color: rgba(251,191,36,.4); color: #fde68a; }
