:root {
  --primary: #0b5fff;
  --primary-2: #2f7bff;
  --primary-soft: #eaf1ff;
  --ink: #16213e;
  --ink-2: #34415c;
  --muted: #7b879d;
  --muted-2: #98a3b5;
  --line: #e7ebf2;
  --bg: #f4f6fa;
  --card: #ffffff;
  --green: #16a36a;
  --green-soft: #e7f8f0;
  --orange: #e8890c;
  --orange-soft: #fff4e2;
  --red: #e5484d;
  --red-soft: #fdecec;
  --purple: #7c5cff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(22, 33, 62, .07);
  --shadow-lg: 0 24px 64px rgba(22, 33, 62, .16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
  background: #fff;
}
.login-visual {
  position: relative;
  overflow: hidden;
  padding: 54px 64px 40px;
  color: #fff;
  background: linear-gradient(145deg, #071a3d 0%, #0b3ea8 48%, #0b5fff 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 90%);
}
.login-visual::before, .login-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.login-visual::before {
  width: 460px; height: 460px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgba(64, 150, 255, .55), transparent 65%);
}
.login-visual::after {
  width: 360px; height: 360px; left: -140px; bottom: -150px;
  background: radial-gradient(circle, rgba(0, 210, 190, .28), transparent 66%);
}
.visual-content, .visual-foot { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #2f7bff, #0b5fff);
  color: #fff;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(11, 95, 255, .35);
}
.brand strong { display: block; font-size: 20px; letter-spacing: 1px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 1.6px; }
.brand-light small { color: rgba(255,255,255,.62); }
.visual-content h1 {
  margin: 78px 0 20px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.22;
  letter-spacing: -.5px;
  font-weight: 800;
}
.visual-lead { max-width: 500px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.85; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; max-width: 560px; margin-top: 40px; }
.feature-list div {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,.9);
  font-size: 13px;
}
.feature-list span { color: #8ec0ff; font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.visual-stats { display: flex; gap: 46px; margin-top: 48px; }
.visual-stats strong { display: block; font-size: 30px; font-weight: 800; }
.visual-stats span { color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: 1px; }
.visual-foot { color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .5px; }
.login-panel { display: grid; place-items: center; padding: 40px; background: linear-gradient(180deg, #fbfcff, #fff); }
.login-card { width: min(410px, 100%); }
.login-head { margin-bottom: 30px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 2.4px; }
.login-head h2 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.5px; }
.login-head p { margin: 0; color: var(--muted); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
  padding: 12px 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(11,95,255,.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11,95,255,.09);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 15px;
  background: #f1f4f9;
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: #e9eef7; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11,95,255,.22); }
.btn-primary:hover { background: #074fe0; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: #f6f8fc; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; padding: 13px; margin-top: 6px; border-radius: 12px; font-size: 15px; }
.demo-box { margin-top: 26px; padding: 15px; border: 1px dashed #dbe3f0; border-radius: 12px; background: #f9fbff; }
.demo-title { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.demo-title span { color: var(--muted-2); font-weight: 400; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.demo-grid button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px; color: var(--ink-2); font-size: 12px; }
.demo-grid button:hover { border-color: var(--primary); color: var(--primary); }
.login-tip { margin: 18px 0 0; color: var(--muted-2); font-size: 11.5px; line-height: 1.7; }

/* ---------- 应用框架 ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 24px 16px 18px;
  background: #0c1830;
  color: #bac6da;
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(47,123,255,.24), transparent 38%),
              radial-gradient(circle at 100% 100%, rgba(0,184,169,.10), transparent 45%);
  pointer-events: none;
}
.sidebar > * { position: relative; z-index: 1; }
.sidebar .brand { padding: 0 8px 26px; color: #fff; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.sidebar .brand strong { font-size: 18px; }
.sidebar .brand small { color: #6f809c; font-size: 9.5px; }
.nav { flex: 1; overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-group { margin: 16px 10px 7px; color: #5d6f8d; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 3px;
  border-radius: 9px;
  color: #a9b7cd;
  font-size: 13.5px;
  transition: background .18s, color .18s;
  cursor: pointer;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(47,123,255,.26), rgba(47,123,255,.08)); color: #fff; box-shadow: inset 2px 0 0 #4c8dff; }
.nav-item .nav-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.1); color: #cdd9ee; font-size: 10px; text-align: center; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.07); color: #71829f; font-size: 11px; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: #31d0a0; box-shadow: 0 0 0 4px rgba(49,208,160,.12); }
.sidebar-foot small { margin-left: auto; color: #4f5f7a; }
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 17px 32px;
  background: rgba(244,246,250,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231,235,242,.8);
}
.crumb { color: var(--muted-2); font-size: 11.5px; letter-spacing: .3px; }
.topbar h1 { margin: 2px 0 0; font-size: 21px; letter-spacing: -.3px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: #cdd8ea; }
.badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700;
}
.user-chip strong { display: block; font-size: 13px; }
.user-chip small { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; }
.text-btn { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 6px; }
.text-btn:hover { color: var(--red); }
.view { padding: 26px 32px 50px; max-width: 1440px; margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid rgba(231,235,242,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.1px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 20px; }
.card-link { color: var(--primary); font-size: 12px; font-weight: 600; cursor: pointer; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin: 26px 0 14px; }
.section-title h2 { margin: 0; font-size: 16px; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.stat-card { position: relative; overflow: hidden; padding: 19px 20px; }
.stat-card::after {
  content: "";
  position: absolute; right: -28px; bottom: -46px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--stat-soft, var(--primary-soft));
  opacity: .8;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--stat-soft, var(--primary-soft)); color: var(--stat-color, var(--primary)); }
.stat-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-value { margin-top: 12px; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.stat-foot { display: flex; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.stat-foot b { color: var(--ink-2); font-weight: 700; }
.stat-foot .danger { color: var(--red); }
.stat-foot .warning { color: var(--orange); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--muted-2); stroke-width: 1.8; }
.search-box input {
  width: 230px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 12px 9px 33px;
  outline: 0;
}
.search-box input:focus { border-color: rgba(11,95,255,.5); box-shadow: 0 0 0 3px rgba(11,95,255,.08); }
.select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 30px 9px 12px;
  color: var(--ink-2);
  outline: 0;
}
.select:focus { border-color: rgba(11,95,255,.5); }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef2f8; }
.segmented button { border: 0; border-radius: 8px; background: transparent; padding: 7px 15px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22,33,62,.08); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
  text-align: left;
  white-space: nowrap;
  background: #fafbfd;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfcff; }
table.data .cell-main { font-weight: 600; color: var(--ink); }
table.data .cell-sub { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.table-empty { padding: 54px 20px; color: var(--muted); text-align: center; }
.table-empty strong { display: block; margin-bottom: 6px; color: var(--ink-2); }
.table-actions { display: flex; gap: 4px; }
.link-btn { border: 0; background: transparent; color: var(--primary); padding: 5px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.link-btn:hover { background: var(--primary-soft); }
.link-btn.danger { color: var(--red); }
.link-btn.danger:hover { background: var(--red-soft); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-orange { background: var(--orange-soft); color: var(--orange); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-gray { background: #eef1f6; color: #7c8799; }
.chip-blue { background: var(--primary-soft); color: var(--primary); }
.chip-purple { background: #f0edff; color: var(--purple); }
.tag { display: inline-flex; padding: 2px 7px; border-radius: 6px; background: #f2f5fa; color: var(--muted); font-size: 10.5px; }

.thumb { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: #eef3fb; border: 1px solid var(--line); }
.thumb-lg { width: 64px; height: 64px; border-radius: 10px; }
.eq-cell { display: flex; align-items: center; gap: 11px; }
.eq-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #eef4ff, #dfeaff); color: var(--primary); font-weight: 800; font-size: 13px; }
.progress { height: 6px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.mini-bar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.mini-bar .progress { flex: 1; }

.empty { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin: 10px 0 6px; color: var(--ink-2); font-size: 15px; }
.empty span { font-size: 12px; }
.loading { display: grid; place-items: center; min-height: 280px; color: var(--muted); }
.spinner { width: 26px; height: 26px; margin-bottom: 10px; border: 2.5px solid #e3e9f4; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 弹窗 / 通知 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(9, 20, 40, .45);
  backdrop-filter: blur(4px);
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(680px, 100%);
  max-height: min(86vh, 900px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: pop .2s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal.wide { width: min(920px, 100%); }
.modal.narrow { width: min(440px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f2f5fa; color: var(--muted); font-size: 17px; line-height: 1; }
.modal-close:hover { background: #e9eef7; color: var(--ink); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 20px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .field { margin-bottom: 14px; }
.help { margin-top: 5px; color: var(--muted-2); font-size: 11px; line-height: 1.6; }
.form-error { margin: 4px 0 12px; padding: 9px 11px; border-radius: 8px; background: var(--red-soft); color: var(--red); font-size: 12px; }

.toast-root { position: fixed; top: 22px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 250px; max-width: 380px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22,33,62,.14);
  color: var(--ink-2);
  font-size: 13px;
  animation: slideIn .22s ease-out;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--orange); }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }

/* ---------- 工作台 ---------- */
.hero-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 26px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(120deg, #071a3d, #0b3ea8 60%, #0b5fff);
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 62, 168, .22);
}
.hero-band::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(120,180,255,.45), transparent 68%);
}
.hero-band h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.3px; }
.hero-band p { margin: 0; color: rgba(255,255,255,.66); font-size: 12.5px; }
.hero-actions { position: relative; z-index: 1; display: flex; gap: 9px; }
.hero-actions .btn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hero-actions .btn:hover { background: rgba(255,255,255,.2); }
.hero-actions .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.reminder-list { display: flex; flex-direction: column; }
.reminder-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #f0f3f8; cursor: pointer; }
.reminder-item:last-child { border-bottom: 0; }
.reminder-item:hover { background: #fbfcff; }
.reminder-kind { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: .4px; }
.reminder-kind.m { background: var(--primary-soft); color: var(--primary); }
.reminder-kind.i { background: #e8f8f6; color: #0f9d8a; }
.reminder-main { min-width: 0; flex: 1; }
.reminder-main strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reminder-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.reminder-date { text-align: right; }
.reminder-date strong { display: block; font-size: 12px; }
.reminder-date span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.reminder-date .overdue { color: var(--red); }

/* ---------- 维修时间线 ---------- */
.timeline { position: relative; margin: 4px 0 0 10px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 6px; width: 1px; background: #e4e9f2; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #c7d3e6; box-shadow: 0 0 0 4px #f5f8fd; }
.timeline-item.done::before { background: var(--primary); }
.timeline-item strong { font-size: 12.5px; }
.timeline-item span { margin-left: 7px; color: var(--muted-2); font-size: 11px; }
.timeline-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; }
.detail-grid .label { color: var(--muted); font-size: 11px; }
.detail-grid .value { margin-top: 3px; font-size: 13px; font-weight: 600; word-break: break-all; }
.detail-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 9px; font-size: 13px; }
.detail-desc { color: var(--ink-2); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); cursor: zoom-in; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 二维码打印 ---------- */
.qr-preview { display: flex; flex-direction: column; align-items: center; padding: 14px; }
.qr-preview img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; }
.qr-preview strong { margin-top: 12px; }
.qr-preview span { margin-top: 3px; color: var(--muted); font-size: 12px; }

/* ---------- 通知 ---------- */
.notify-list { display: flex; flex-direction: column; }
.notify-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0f3f8; }
.notify-item:last-child { border-bottom: 0; }
.notify-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.notify-item.read .notify-dot { background: #d4dbe7; }
.notify-item strong { display: block; font-size: 12.5px; }
.notify-item p { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.notify-item time { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-visual { padding: 46px; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { min-height: 100vh; padding: 28px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; }
  .sidebar .brand { padding: 0 16px 0 4px; }
  .sidebar .brand small { display: none; }
  .nav { display: flex; gap: 4px; overflow: visible; }
  .nav-group, .sidebar-foot { display: none; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 11px; margin: 0; }
  .nav-item .nav-count { display: none; }
  .topbar { padding: 13px 18px; }
  .topbar h1 { font-size: 18px; }
  .view { padding: 18px; }
  .user-chip span:last-child, .text-btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .search-box input { width: 170px; }
}
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 26px; }
  .hero-band { flex-direction: column; align-items: flex-start; }
  .modal-mask { padding: 10px; }
  .modal { max-height: 94vh; border-radius: 14px; }
}
