:root {
  --primary: #2456f0;
  --primary-dark: #1b3fc4;
  --primary-soft: #eef3ff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --green: #12805c;
  --green-soft: #e7f7f0;
  --amber: #b25e09;
  --amber-soft: #fdf2e3;
  --red: #c0362c;
  --red-soft: #fdecea;
  --slate-soft: #f1f4f9;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--primary); color: #fff; font-weight: 500; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); box-shadow: 0 6px 16px rgba(36, 86, 240, 0.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--slate-soft); color: var(--ink); box-shadow: none; }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: #e1eaff; box-shadow: none; }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c8c4; }
.btn-danger:hover { background: var(--red-soft); box-shadow: none; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 16px; border-radius: 12px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.field .req { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 86, 240, 0.12);
}
.textarea { height: auto; min-height: 108px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 17px; }
.card-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: var(--slate-soft); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--primary-soft); color: var(--primary-dark); }
.badge.no-dot::before { display: none; }

#toastWrap {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  align-items: center; pointer-events: none;
}
.toast {
  min-width: 220px; max-width: 460px; padding: 11px 18px; border-radius: 10px;
  background: #101828; color: #fff; font-size: 14px;
  box-shadow: var(--shadow-md); animation: toastIn 0.22s ease both;
}
.toast.ok { background: #0f6b4c; }
.toast.err { background: #a4261e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* 登录 / 注册 */
.auth-page { background: #0d1730; }
.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand {
  position: relative; padding: 52px 56px; color: #fff;
  background:
    radial-gradient(900px 500px at 15% 8%, rgba(94, 137, 255, 0.5), transparent 62%),
    radial-gradient(700px 480px at 85% 92%, rgba(0, 196, 180, 0.28), transparent 60%),
    linear-gradient(150deg, #12224a 0%, #0b1226 60%, #0a1020 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; inset: auto -80px -140px auto;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-mark { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(140deg, #4d7bff, #25c2a0);
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.auth-brand h1 { font-size: 38px; line-height: 1.35; margin: 34px 0 18px; font-weight: 600; }
.auth-brand h1 span { color: #7fa3ff; }
.auth-brand .lead { color: rgba(255, 255, 255, 0.66); font-size: 15px; max-width: 420px; }
.feature-list { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, 0.82); font-size: 14.5px; }
.feature-list .dot {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; font-size: 12px; color: #9dbaff;
}
.auth-brand .foot { color: rgba(255, 255, 255, 0.42); font-size: 12.5px; }

.auth-panel {
  background: #fff; display: flex; align-items: flex-start; justify-content: center;
  padding: 46px 40px; overflow-y: auto;
}
.auth-box { width: 100%; max-width: 520px; }
.auth-box.wide { max-width: 640px; }
.auth-tabs { display: flex; padding: 4px; background: var(--slate-soft); border-radius: 12px; margin-bottom: 26px; }
.auth-tabs button {
  flex: 1; height: 40px; border: 0; background: transparent; border-radius: 9px;
  cursor: pointer; font-weight: 500; color: var(--muted); transition: all 0.18s ease;
}
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-title { font-size: 25px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-form .btn-lg { margin-top: 6px; }
.auth-split { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.demo-tip {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; line-height: 1.6;
}
.form-alert {
  display: none; padding: 11px 14px; border-radius: 10px;
  background: var(--red-soft); color: var(--red); font-size: 13.5px;
}
.form-alert.show { display: block; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 -2px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 上传 */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-tile {
  position: relative; border: 1px dashed #cfd6e4; border-radius: 12px;
  background: #fbfcfe; padding: 13px 14px; display: flex; gap: 11px;
  align-items: center; cursor: pointer; min-height: 70px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.upload-tile:hover { border-color: var(--primary); background: #f7f9ff; }
.upload-tile.done { border-style: solid; border-color: #bfe3d5; background: #f6fbf8; }
.upload-tile input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
}
.upload-tile.done .upload-icon { background: var(--green-soft); color: var(--green); }
.upload-text { min-width: 0; }
.upload-text b { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.upload-text small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 框架 */
.topbar {
  height: 66px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 28px; }
.topbar .brand-mark { color: var(--ink); font-size: 16px; }
.topbar .brand-logo { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.topbar-meta { font-size: 13px; color: var(--muted); padding-left: 24px; border-left: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, #3d6bff, #25b6a0);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.user-chip .who { font-size: 14px; font-weight: 500; line-height: 1.2; }
.user-chip .room { font-size: 12px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 218px 1fr; min-height: calc(100vh - 66px); }
.sidebar {
  background: #fff; border-right: 1px solid var(--line); padding: 22px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 66px; height: calc(100vh - 66px);
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; cursor: pointer; border: 0; background: transparent;
  text-align: left; width: 100%; transition: background 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: var(--slate-soft); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 500; }
.nav-item .ico {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--slate-soft); color: var(--muted);
  display: grid; place-items: center; font-size: 13px;
}
.nav-item.active .ico { background: #fff; color: var(--primary-dark); }
.nav-foot { margin-top: auto; padding: 12px 12px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.7; }

.main { padding: 26px 30px 60px; max-width: 1320px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 23px; }
.page-head .desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; align-items: center; }

.section { display: none; }
.section.active { display: block; animation: fade 0.25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 账单 */
.bill-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 20px; }
.amount-card {
  position: relative; padding: 26px 28px; border-radius: var(--radius); color: #fff;
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #1b3ac0 0%, #2456f0 48%, #2f8bff 100%);
  box-shadow: 0 14px 34px rgba(36, 86, 240, 0.28);
  overflow: hidden;
}
.amount-card::after {
  content: ""; position: absolute; right: -60px; bottom: -90px;
  width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.amount-card .label { font-size: 13px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.04em; }
.amount-card .month { font-size: 14px; color: rgba(255, 255, 255, 0.9); margin-top: 4px; }
.amount-card .amount { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 6px; }
.amount-card .amount .cur { font-size: 22px; font-weight: 500; }
.amount-card .amount .num { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.amount-card .amount .dec { font-size: 19px; opacity: 0.86; }
.amount-card .state { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.amount-card .pay-btn {
  margin-top: 22px; width: 100%; height: 46px; border-radius: 11px;
  background: #fff; color: var(--primary-dark); font-weight: 600; border: 0; cursor: pointer;
}
.amount-card .pay-btn:hover { background: #f0f4ff; }
.amount-card .pay-btn:disabled { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.65); cursor: not-allowed; }
.amount-card { display: flex; flex-direction: column; }
.amount-card .pay-foot { margin-top: auto; padding-top: 22px; }
.amount-card .ways { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-card .ways span {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
.amount-card .note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, 0.66); }

.breakdown { padding: 8px 4px; }
.breakdown .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; font-size: 14px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.breakdown .row:last-child { border-bottom: 0; }
.breakdown .row .k { color: var(--muted); }
.breakdown .row .v { font-variant-numeric: tabular-nums; }
.breakdown .row.strong { background: #f8faff; font-weight: 600; color: var(--ink); }
.breakdown .row.strong .v { color: var(--primary-dark); font-size: 16px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 21px; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em; }
.stat .v small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; white-space: nowrap; }
th { font-size: 12.5px; color: var(--muted); font-weight: 500; background: #fafbff; border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid #f2f4f9; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .strong-amt { color: var(--ink); font-weight: 600; }
.amount-paid { color: var(--green); font-weight: 600; }
.amount-unpaid { color: var(--red); font-weight: 600; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .ico { font-size: 30px; margin-bottom: 8px; opacity: 0.5; }
.empty b { display: block; color: var(--ink-2); font-size: 15px; font-weight: 500; margin-bottom: 4px; }

/* 车位 */
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.parking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.parking-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.parking-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #cfd6e4; }
.parking-card.rented::before { background: var(--green); }
.parking-card.mine { box-shadow: 0 0 0 2px rgba(36, 86, 240, 0.18), var(--shadow-md); }
.parking-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.parking-code { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.parking-body { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.parking-body .line { display: flex; justify-content: space-between; gap: 10px; }
.parking-body .line b { color: var(--ink-2); font-weight: 500; }
.parking-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--primary-dark); }
.parking-actions { margin-top: 14px; display: flex; gap: 8px; }
.parking-actions .btn { flex: 1; }

/* 报修 */
.repair-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ticket {
  border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ticket-head .cat { font-weight: 600; font-size: 15px; }
.ticket-head .time { font-size: 12.5px; color: var(--muted); }
.ticket-content { font-size: 14px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.ticket-media { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb {
  width: 96px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #0f172a;
  display: grid; place-items: center; position: relative; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0, 0, 0, 0.22); }
.ticket-reply {
  margin-top: 12px; padding: 11px 13px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 13.5px; line-height: 1.65;
}
.ticket-reply b { font-weight: 600; }

.file-drop {
  border: 1px dashed #cfd6e4; border-radius: 12px; background: #fbfcfe;
  padding: 22px; text-align: center; cursor: pointer; position: relative;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.file-drop:hover { border-color: var(--primary); background: #f7f9ff; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .big { font-size: 24px; color: var(--primary); }
.file-drop b { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.file-drop small { color: var(--muted); font-size: 12.5px; }
.preview-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.preview-item {
  width: 104px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: #fff; font-size: 11.5px; position: relative;
}
.preview-item .pv { height: 66px; background: #101828; display: grid; place-items: center; color: #fff; font-size: 11px; }
.preview-item .pv img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .nm { padding: 5px 7px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-item .x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; border: 0; cursor: pointer; font-size: 11px; line-height: 1;
}

/* 资料 */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-row .k { color: var(--muted); }
.info-row .v { color: var(--ink); font-weight: 500; text-align: right; word-break: break-all; }
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; font-size: 13px;
}
.doc-item .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; flex: none; }
.doc-item .meta { min-width: 0; }
.doc-item .meta b { display: block; font-weight: 500; }
.doc-item .meta small { color: var(--muted); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(9, 14, 28, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 900;
  padding: 24px; backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease both;
}
.modal.wide { max-width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-close { border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.modal-close:hover { background: var(--slate-soft); color: var(--ink); }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

.pay-total {
  display: flex; align-items: baseline; justify-content: space-between;
  background: #f7f9ff; border: 1px solid #e3eaff; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 18px;
}
.pay-total .k { font-size: 13px; color: var(--muted); }
.pay-total .v { font-size: 28px; font-weight: 600; color: var(--primary-dark); letter-spacing: -0.02em; }
.method-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.method {
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 10px; text-align: center;
  cursor: pointer; background: #fff; transition: all 0.16s ease;
}
.method:hover { border-color: #b9c9f7; }
.method.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(36, 86, 240, 0.1); }
.method .mi { font-size: 20px; line-height: 1; margin-bottom: 6px; }
.method .mt { font-size: 13.5px; font-weight: 500; }
.method .ms { font-size: 11.5px; color: var(--muted); }

.pay-panel { display: none; }
.pay-panel.show { display: block; }
.qr-box { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.qr-img-wrap {
  width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; overflow: hidden;
}
.qr-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.qr-caption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.pay-info { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 9px; }
.pay-info .line { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.pay-info .line span:first-child { color: var(--muted); flex: none; }
.pay-info .line b { font-weight: 500; text-align: right; white-space: nowrap; font-size: 13px; }
.copy-btn { flex: none; white-space: nowrap; border: 0; background: var(--primary-soft); color: var(--primary-dark); border-radius: 6px; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.notice { font-size: 12.5px; color: var(--muted); line-height: 1.65; background: var(--slate-soft); border-radius: 9px; padding: 10px 12px; margin-top: 14px; }

/* 管理端 */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .input, .filter-bar .select { width: auto; height: 40px; }
.seg { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 500; }

.review-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; background: #fafbff; border-bottom: 1px solid var(--line); }
.review-person { display: flex; align-items: center; gap: 12px; }
.review-person .avatar { background: linear-gradient(140deg, #f1a33c, #e97b3b); }
.review-person b { font-size: 15px; }
.review-person small { display: block; font-size: 12.5px; color: var(--muted); }
.review-body { padding: 16px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.review-fields { font-size: 13.5px; }
.review-fields .row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.review-fields .row .k { color: var(--muted); width: 86px; flex: none; }
.review-fields .row .v { color: var(--ink-2); word-break: break-all; }
.doc-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-mini {
  display: block; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: #fbfcfe; font-size: 12px; color: var(--muted); text-align: center;
}
.doc-mini .pv { height: 84px; background: #0f172a; display: grid; place-items: center; color: #fff; }
.doc-mini .pv img { width: 100%; height: 100%; object-fit: cover; }
.doc-mini .nm { padding: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-foot { padding: 0 20px 18px; display: flex; gap: 10px; justify-content: flex-end; }

.admin-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-preview {
  grid-column: span 3;
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
  background: var(--primary-soft); border-radius: 10px; padding: 13px 16px;
  font-size: 13.5px; color: var(--primary-dark);
}
.calc-preview b { font-size: 18px; font-weight: 600; }

.bill-row-actions { display: flex; gap: 6px; }
.bill-row-actions .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title-row h3 { font-size: 16.5px; }
.section-title-row .sub { font-size: 12.5px; color: var(--muted); }

/* 响应式 */
@media (max-width: 1180px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 1080px) {
  .parking-grid { grid-template-columns: repeat(2, 1fr); }
  .bill-hero { grid-template-columns: 1fr; }
  .repair-layout { grid-template-columns: 1fr; }
  .review-body { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
  .calc-preview { grid-column: span 2; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .qr-box { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; flex-direction: row; overflow-x: auto;
    padding: 10px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .nav-item { width: auto; white-space: nowrap; }
  .nav-foot { display: none; }
  .main { padding: 18px 16px 50px; }
  .form-row, .upload-grid, .info-grid, .doc-list, .grid-2, .settings-grid { grid-template-columns: 1fr; }
  .parking-grid { grid-template-columns: 1fr; }
  .topbar-meta { display: none; }
  .method-list { grid-template-columns: 1fr; }
  .amount-card .amount .num { font-size: 38px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .calc-preview { grid-column: span 1; }
}

/* 表格右侧操作列吸边，横向滚动时按钮始终可见 */
.table-wrap table th:last-child,
.table-wrap table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 12px -8px rgba(16, 24, 40, 0.18); }
.table-wrap table thead th:last-child { background: #fafbfd; }
.sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* 后台独立登录门（/sz-admin） */
.admin-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(900px 500px at 12% 6%, rgba(47, 139, 255, 0.16), transparent 62%),
    radial-gradient(700px 520px at 88% 92%, rgba(20, 40, 120, 0.5), transparent 60%),
    linear-gradient(160deg, #0b1636 0%, #14264f 58%, #0d1a3a 100%);
}
.gate-card {
  width: 100%; max-width: 388px; background: #fff; border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: 0 26px 60px rgba(4, 12, 32, 0.4);
}
.gate-card .brand-mark { margin-bottom: 22px; }
.gate-card h3 { font-size: 20px; margin: 0 0 6px; }
.gate-card .desc { font-size: 13px; color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.gate-card .field { margin-bottom: 14px; }
.gate-card .field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.gate-card .field input {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  padding: 0 13px; font-size: 14px; background: #fbfcfe; outline: none;
}
.gate-card .field input:focus { border-color: var(--primary); background: #fff; }
.gate-card .btn-block { width: 100%; height: 44px; border-radius: 10px; }
.gate-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
