:root {
  --ink: #20323b;
  --muted: #71818a;
  --line: #e6ecec;
  --paper: #ffffff;
  --wash: #f5f9f8;
  --teal: #159a8c;
  --orange: #f47c48;
  --shadow: 0 18px 48px rgba(35, 75, 78, .1);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 14px/1.6 "Microsoft YaHei", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #eef9f6, #fff8f1); }
.login-panel { width: min(440px, 100%); padding: 38px; background: var(--paper); box-shadow: var(--shadow); border-radius: 8px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--orange); border-radius: 12px 12px 12px 3px; font-weight: 800; font-size: 20px; }
h1, h2, h3, p { margin-top: 0; }
.login h1 { margin: 20px 0 4px; font-size: 27px; }
.subtle, .hint { color: var(--muted); }
.hint { font-size: 12px; margin: 8px 0 0; }
.field { display: grid; gap: 6px; margin: 18px 0; }
.field label { font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21,154,140,.12); }
textarea { min-height: 92px; resize: vertical; }
.primary { padding: 11px 16px; border-radius: 5px; color: #fff; background: var(--teal); font-weight: 700; }
.primary:hover { background: #107b70; }
.secondary { padding: 10px 14px; color: var(--ink); background: #eef4f3; border-radius: 5px; font-weight: 700; }
.danger { color: #b64d3a; background: #fff0ed; }
.shell { min-height: 100vh; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.topbar-title .brand-mark { width: 32px; height: 32px; font-size: 15px; border-radius: 9px 9px 9px 2px; }
.userbox { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.layout { display: grid; grid-template-columns: 218px 1fr; max-width: 1440px; margin: auto; }
.sidebar { min-height: calc(100vh - 68px); padding: 24px 14px; border-right: 1px solid var(--line); background: #fff; }
.nav { width: 100%; padding: 12px 14px; margin: 4px 0; text-align: left; color: var(--muted); background: transparent; border-radius: 5px; }
.nav.active, .nav:hover { color: var(--teal); background: #eaf7f4; font-weight: 700; }
.main { padding: 34px; }
.view-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.view-head h2 { margin-bottom: 3px; font-size: 26px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 5px 22px rgba(27, 63, 68, .04); }
.panel h3 { margin-bottom: 18px; font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; padding: 10px; background: #f7faf9; border: 1px solid var(--line); border-radius: 5px; }
.check input { width: auto; accent-color: var(--teal); }
.money { color: var(--orange); font-weight: 800; font-size: 24px; }
.summary { position: sticky; top: 24px; }
.preview-frame { overflow: hidden; width: 100%; aspect-ratio: 3 / 4; background: #f5f7f6; border: 1px solid var(--line); border-radius: 5px; }
.preview-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.total { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.total .label { color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.quote-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.quote-card img { display: block; width: 100%; aspect-ratio: 1 / 1.25; object-fit: cover; background: #f5f7f6; }
.quote-meta { padding: 14px; }
.quote-meta strong { display: block; margin-bottom: 4px; }
.quote-meta small { color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 700; background: #f7faf9; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; color: #147b70; background: #e8f6f2; font-size: 12px; }
.badge.off { color: #9b6258; background: #fff0ed; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; color: white; background: #263e45; border-radius: 5px; box-shadow: var(--shadow); z-index: 10; }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21, 42, 45, .35); z-index: 5; }
.modal { width: min(580px, 100%); max-height: 90vh; overflow: auto; padding: 26px; background: white; border-radius: 7px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; }
.close { width: 32px; height: 32px; color: var(--muted); background: #f1f5f4; border-radius: 50%; }
.qr-preview { width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 680px) { .topbar { height: auto; min-height: 64px; padding: 12px 16px; gap: 10px; } .userbox span { display: none; } .layout { display: block; } .sidebar { min-height: auto; display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .nav { min-width: max-content; } .main { padding: 22px 16px; } .view-head { align-items: start; flex-direction: column; } .grid-2, .check-grid { grid-template-columns: 1fr; } .panel { padding: 18px; } .login-panel { padding: 26px 22px; } }
