/* ==========================================================================
   邻修云 · 视觉系统
   深色科技风：冷色底 + 青紫渐变 + 玻璃拟态 + 细网格
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-elev: #0a1120;
  --panel: rgba(15, 23, 38, 0.72);
  --panel-solid: #0d1522;
  --panel-2: rgba(22, 32, 50, 0.6);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  --text: #e8eef9;
  --text-2: #bfcbdd;
  --muted: #9dabc1;
  --dim: #76859c;

  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #7c6cff;
  --purple: #a855f7;
  --green: #34d399;
  --teal: #2dd4bf;
  --amber: #f5a524;
  --red: #fb7185;

  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 52%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.14));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 12px 40px -14px rgba(34, 211, 238, 0.45);
  --sidebar-w: 246px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 600px at 8% -8%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(124, 108, 255, 0.12), transparent 62%),
    radial-gradient(900px 700px at 50% 110%, rgba(168, 85, 247, 0.07), transparent 60%);
  background-attachment: fixed;
}

/* 细网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(34, 211, 238, 0.3); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.32); background-clip: padding-box; }

.app-root { position: relative; z-index: 1; min-height: 100vh; }

/* 启动占位 */
.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  justify-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.boot-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  animation: bootPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.12) rotate(45deg); opacity: 1; }
}
.noscript { position: fixed; inset: 0; display: grid; place-content: center; color: var(--text-2); }

/* ==========================================================================
   基础视觉组件
   ========================================================================== */
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  position: relative;
  background: var(--grad);
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.6);
  display: grid;
  place-items: center;
  flex: none;
}
.logo-mark svg { width: 19px; height: 19px; }
svg { max-width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-xs svg { width: 12px; height: 12px; }
.btn-icon svg { width: 17px; height: 17px; }
.stat-label svg { width: 14px; height: 14px; flex: none; }
.topbar-clock svg { width: 14px; height: 14px; flex: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff, #b9c8ff 60%, #7ce7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: -4px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.card.pad { padding: 22px; }
.card.tight { padding: 16px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 0;
}
.section-desc { color: var(--muted); font-size: 12.5px; margin: 3px 0 0; }

/* 按钮 */
.btn {
  --btn-h: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: var(--btn-h);
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--grad);
  color: #06121c;
  box-shadow: 0 10px 26px -12px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 700;
}
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(34, 211, 238, 0.7); filter: brightness(1.06); }

.btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.16); border-color: var(--line-strong); }

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-quiet:hover { background: rgba(148, 163, 184, 0.1); color: var(--text); }

.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
  color: #ffb3c0;
}
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }

.btn-sm { --btn-h: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-xs { --btn-h: 27px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 34px; height: 34px; border-radius: 9px; }

/* 输入 */
.field { display: flex; flex-direction: column; gap: 7px; }
.label {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.label .req { color: var(--red); font-size: 11px; }
.hint { font-size: 11.5px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%;
  background: rgba(6, 11, 20, 0.72);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0 12px;
  height: 40px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  background: rgba(8, 14, 24, 0.9);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237d8ea8'%3E%3Cpath d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.select option { background: #0d1522; color: var(--text); }
.input.error, .select.error, .textarea.error { border-color: rgba(251, 113, 133, 0.6); }

.input-icon { position: relative; }
.input-icon .input { padding-left: 38px; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }

/* 状态徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.badge.amber { color: #fbc66b; background: rgba(245, 165, 36, 0.12); border-color: rgba(245, 165, 36, 0.28); }
.badge.blue { color: #8ab7ff; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.28); }
.badge.cyan { color: #6ee7f5; background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.28); }
.badge.violet { color: #b9a8ff; background: rgba(124, 108, 255, 0.14); border-color: rgba(124, 108, 255, 0.3); }
.badge.teal { color: #6ef0dc; background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.28); }
.badge.green { color: #76eab8; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); }
.badge.gray { color: #9aa8bd; background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.22); }
.badge.red { color: #ffa6b4; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.badge.plain { height: 20px; font-size: 11px; background: rgba(148, 163, 184, 0.08); color: var(--text-2); border-color: var(--line); }

.tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid var(--line);
  font-weight: 500;
}
.tag.hot { color: #ffb1bd; background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.3); }
.tag.tech { color: #9fc5ff; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.24); }

/* 表格 */
.table-wrap { width: 100%; overflow: auto; border-radius: var(--radius); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.table thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 30, 0.5);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 2;
  white-space: nowrap;
}
.table tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  color: var(--text-2);
  vertical-align: middle;
}
.table tbody td.strong { color: var(--text); font-weight: 600; }
.table tbody tr { transition: background 0.16s; }
.table tbody tr:hover { background: rgba(99, 102, 241, 0.06); }
.table tbody tr:last-child td { border-bottom: none; }
.table .mono { font-family: var(--mono); font-size: 12px; color: var(--text); letter-spacing: -0.01em; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 2px; flex-wrap: wrap; }
.pager-info { color: var(--muted); font-size: 12px; }
.pager-btns { display: flex; gap: 6px; }

/* 空状态 */
.empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-title { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.empty-desc { font-size: 12px; color: var(--dim); max-width: 300px; }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, rgba(148,163,184,.08) 25%, rgba(148,163,184,.16) 37%, rgba(148,163,184,.08) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 提示条 */
.tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px solid;
}
.tip.info { color: #a9c9ff; background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.24); }
.tip.warn { color: #f7cd86; background: rgba(245, 165, 36, 0.08); border-color: rgba(245, 165, 36, 0.24); }
.tip.danger { color: #ffb3c0; background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.24); }
.tip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Toast */
.toast-stack {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(13, 21, 34, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
  backdrop-filter: blur(16px);
  font-size: 13px;
  color: var(--text);
  animation: toastIn 0.26s cubic-bezier(.2,.9,.3,1.2);
}
.toast.out { animation: toastOut 0.2s ease forwards; }
.toast .ico { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.toast .ico svg { width: 14px; height: 14px; }
.toast.success .ico { background: rgba(52, 211, 153, 0.16); color: var(--green); }
.toast.error .ico { background: rgba(251, 113, 133, 0.16); color: var(--red); }
.toast.info .ico { background: rgba(34, 211, 238, 0.16); color: var(--cyan); }
.toast.warn .ico { background: rgba(245, 165, 36, 0.16); color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px) scale(.96); } }

/* 弹窗 */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px #000;
  animation: modalIn 0.24s cubic-bezier(.2,.9,.3,1.1);
}
.modal.wide { width: min(760px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--panel-solid);
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-title { font-size: 15.5px; font-weight: 650; margin: 0; }
.modal-sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky; bottom: 0;
  background: var(--panel-solid);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 抽屉 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 780;
  background: rgba(3, 6, 12, 0.66);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(520px, 100%);
  z-index: 790;
  background: linear-gradient(180deg, #0b1220, #080d17);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 80px -30px #000;
  display: flex;
  flex-direction: column;
  animation: drawerIn 0.28s cubic-bezier(.2,.9,.3,1);
}
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 17, 30, 0.6);
}
.drawer-body { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: rgba(8, 13, 23, 0.9); flex-wrap: wrap; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(600px 420px at 20% 20%, rgba(34, 211, 238, 0.13), transparent 65%),
    radial-gradient(520px 420px at 85% 85%, rgba(124, 108, 255, 0.16), transparent 65%);
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 40% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 40% 40%, #000, transparent 72%);
  pointer-events: none;
}
.auth-orb {
  position: absolute;
  width: 420px; height: 420px;
  right: -120px; top: 18%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34,211,238,.5), rgba(124,108,255,.5), rgba(168,85,247,.35), rgba(34,211,238,.5));
  filter: blur(70px);
  opacity: 0.5;
  animation: orbSpin 22s linear infinite;
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
.auth-brand { position: relative; z-index: 2; }
.auth-copy { position: relative; z-index: 2; max-width: 460px; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
  color: #7fe9f7;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.auth-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.auth-title {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.auth-desc { color: var(--text-2); font-size: 14px; line-height: 1.8; margin: 0 0 30px; max-width: 400px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point-ico {
  width: 32px; height: 32px; flex: none;
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--cyan);
}
.auth-point-ico svg { width: 16px; height: 16px; }
.auth-point strong { display: block; font-size: 13.5px; font-weight: 600; }
.auth-point span { font-size: 12px; color: var(--muted); }
.auth-foot { position: relative; z-index: 2; color: var(--dim); font-size: 11.5px; display: flex; gap: 16px; flex-wrap: wrap; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}
.auth-card {
  width: min(420px, 100%);
  padding: 30px 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(13, 21, 34, 0.78);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -50px #000, inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  animation: rise 0.5s cubic-bezier(.2,.8,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.auth-tab {
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.on { background: var(--grad); color: #04121b; box-shadow: 0 8px 20px -10px rgba(34,211,238,.8); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn-primary { height: 44px; margin-top: 4px; font-size: 14px; }
.auth-alert {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #ffb3c0;
  font-size: 12.5px;
}
.auth-alert.show { display: block; }
.auth-switch { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }
.auth-switch b { color: var(--cyan); cursor: pointer; font-weight: 600; }

/* ==========================================================================
   应用外壳
   ========================================================================== */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.92), rgba(6, 10, 18, 0.88));
  backdrop-filter: blur(18px);
  z-index: 60;
}
.sidebar-brand { padding: 0 6px 22px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 16px 10px 8px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-item svg { width: 17px; height: 17px; color: var(--dim); transition: color 0.18s; flex: none; }
.nav-item:hover { background: rgba(148, 163, 184, 0.08); color: var(--text); }
.nav-item:hover svg { color: var(--text-2); }
.nav-item.on {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(124, 108, 255, 0.1));
  border-color: rgba(34, 211, 238, 0.22);
  color: #eaf6ff;
}
.nav-item.on svg { color: var(--cyan); }
.nav-item.on::before {
  content: "";
  position: absolute;
  left: -16px; top: 9px; bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.7);
}
.nav-item .nav-badge {
  margin-left: auto;
  min-width: 20px; height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.16);
  color: #ffb1bd;
  font-size: 10.5px;
  font-weight: 700;
  display: grid; place-items: center;
  font-family: var(--mono);
}

.sidebar-foot { margin-top: auto; padding-top: 16px; }
.side-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(148, 163, 184, 0.05);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-status .row { display: flex; justify-content: space-between; align-items: center; }
.side-status b { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.side-status b::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(18px);
}
.topbar-title { font-size: 15px; font-weight: 650; letter-spacing: 0.01em; }
.topbar-crumb { color: var(--dim); font-size: 12px; margin-left: 2px; }
.topbar-spacer { flex: 1; }
.topbar-clock {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.05);
  white-space: nowrap;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(148, 163, 184, 0.1); }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #06121c;
  background: var(--grad);
  flex: none;
  letter-spacing: 0;
}
.avatar.lg { width: 44px; height: 44px; font-size: 16px; border-radius: 13px; }
.user-chip .meta { line-height: 1.25; }
.user-chip .meta b { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.user-chip .meta span { font-size: 10.5px; color: var(--muted); }

.content { padding: 26px 28px 44px; flex: 1; }
.page { display: flex; flex-direction: column; gap: 22px; animation: pageIn 0.35s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mobile-bar { display: none; }

/* ==========================================================================
   顾客端
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(600px 320px at 88% 110%, rgba(168, 85, 247, 0.18), transparent 60%),
    linear-gradient(140deg, #0b1526, #0a0f1c 60%);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  pointer-events: none;
}
.hero-body { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fe9f7;
  margin-bottom: 14px;
}
.hero-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--cyan); }
.hero h1 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 700;
}
.hero p { color: var(--text-2); font-size: 13.5px; max-width: 520px; margin: 0 0 22px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 20px; font-family: var(--mono); color: #eaf6ff; letter-spacing: -0.02em; }
.hero-stat span { font-size: 11.5px; color: var(--muted); }

.hero-visual { position: relative; z-index: 2; display: grid; place-items: center; min-height: 190px; }
.radar {
  width: 176px; height: 176px;
  border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(34,211,238,.08), transparent 70%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 50px rgba(34, 211, 238, 0.08), 0 0 60px -20px rgba(34, 211, 238, 0.4);
}
.radar::before, .radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.14);
}
.radar::before { width: 124px; height: 124px; }
.radar::after { width: 72px; height: 72px; }
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.34), transparent 26%);
  animation: sweep 4s linear infinite;
  mask-image: radial-gradient(circle, #000 60%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%);
}
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-core {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.65);
  z-index: 2;
}
.radar-core svg { width: 26px; height: 26px; color: #05121b; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
  text-align: left;
}
.quick-card:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.4); background: rgba(20, 32, 50, 0.8); }
.quick-ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--cyan);
}
.quick-ico svg { width: 20px; height: 20px; }
.quick-card b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.quick-card span { font-size: 12px; color: var(--text-2); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.stat::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--grad-soft);
  filter: blur(20px);
  opacity: 0.8;
}
.stat-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; letter-spacing: 0.02em; }
.stat-value { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 2px; line-height: 1.1; }
.stat-value small { font-size: 12px; color: var(--muted); font-family: var(--font); margin-left: 4px; }
.stat-foot { font-size: 11.5px; color: var(--dim); }
.stat-foot .up { color: var(--green); }
.stat-foot .warn { color: var(--amber); }

/* 工单卡片 */
.order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.order-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card:hover { transform: translateY(-2px); border-color: rgba(124, 108, 255, 0.38); box-shadow: 0 18px 40px -28px rgba(99, 102, 241, 0.8); }
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-no { font-family: var(--mono); font-size: 12px; color: var(--text-2); letter-spacing: -0.02em; }
.order-device { display: flex; align-items: center; gap: 9px; }
.order-device b { font-size: 14.5px; font-weight: 650; }
.order-fault { font-size: 12px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; min-height: 36px; }
.order-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.order-meta span { display: inline-flex; align-items: center; gap: 5px; }
.order-meta svg { width: 13px; height: 13px; }
.mini-steps { display: flex; gap: 4px; }
.mini-step { flex: 1; height: 3px; border-radius: 2px; background: rgba(148, 163, 184, 0.16); }
.mini-step.on { background: var(--grad); box-shadow: 0 0 8px rgba(99, 102, 241, 0.5); }
.mini-step.dead { background: rgba(148, 163, 184, 0.08); }

/* 进度步骤（详情） */
.steps { display: flex; align-items: flex-start; gap: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px; left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 2px;
}
.step.done:not(:last-child)::after { background: linear-gradient(90deg, rgba(34,211,238,.7), rgba(124,108,255,.7)); box-shadow: 0 0 8px rgba(99,102,241,.4); }
.step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  z-index: 2;
}
.step.done .step-dot { background: var(--grad); border-color: transparent; color: #05121b; box-shadow: 0 0 18px rgba(99, 102, 241, 0.5); }
.step.done .step-dot svg { width: 13px; height: 13px; }
.step.cur .step-dot { box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14), 0 0 20px rgba(34,211,238,.5); }
.step-label { font-size: 11.5px; color: var(--dim); text-align: center; }
.step.done .step-label { color: var(--text-2); }
.step.cur .step-label { color: #7fe9f7; font-weight: 600; }
.step-time { font-size: 10px; color: var(--dim); font-family: var(--mono); }

/* 时间线 */
.timeline { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(34,211,238,.4), rgba(124,108,255,.25), transparent); }
.tl-item { position: relative; }
.tl-dot {
  position: absolute;
  left: -22px; top: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
  border: 2px solid #0a1120;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}
.tl-item:last-child .tl-dot { background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-head b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.tl-time { font-size: 10.5px; color: var(--dim); font-family: var(--mono); margin-left: auto; }
.tl-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }

/* 信息栅格 */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.info-item label { display: block; font-size: 10.5px; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; margin-bottom: 2px; }
.info-item span { font-size: 13px; color: var(--text); word-break: break-all; }
.info-item.full { grid-column: 1 / -1; }

/* ==========================================================================
   工程师工作台
   ========================================================================== */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  transition: border-color 0.18s, background 0.18s;
}
.task:hover { border-color: rgba(34, 211, 238, 0.32); background: rgba(18, 28, 44, 0.72); }
.task-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.task-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.task-title b { font-size: 14px; font-weight: 650; }
.task-desc { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.task-contact { font-size: 11.5px; color: var(--dim); font-family: var(--mono); }

/* ==========================================================================
   管理端
   ========================================================================== */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.chart-card { padding: 20px; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 16px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 44px; display: flex; flex-direction: row; align-items: flex-end; gap: 4px; justify-content: center; height: 100%; }
.bar {
  flex: 1;
  max-width: 18px;
  border-radius: 5px;
  min-height: 3px;
  transition: height 0.5s cubic-bezier(.2,.8,.3,1);
  position: relative;
}
.bar.created { background: linear-gradient(180deg, rgba(34, 211, 238, 0.85), rgba(34, 211, 238, 0.35)); box-shadow: 0 0 14px rgba(34, 211, 238, 0.25); }
.bar.done { background: linear-gradient(180deg, rgba(124, 108, 255, 0.85), rgba(168, 85, 247, 0.35)); box-shadow: 0 0 14px rgba(124, 108, 255, 0.25); }
.bar-col span { font-size: 10.5px; color: var(--dim); font-family: var(--mono); white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut {
  width: 148px; height: 148px;
  border-radius: 50%;
  position: relative;
  flex: none;
  display: grid; place-items: center;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #0a1120;
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
}
.donut-center { position: relative; z-index: 2; text-align: center; }
.donut-center b { display: block; font-family: var(--mono); font-size: 22px; letter-spacing: -0.03em; }
.donut-center span { font-size: 10.5px; color: var(--muted); }
.legend-list { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 130px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.legend-row i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.legend-row b { margin-left: auto; font-family: var(--mono); color: var(--text); font-weight: 600; }

.tech-load { display: flex; flex-direction: column; gap: 12px; }
.load-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.load-bar { height: 5px; border-radius: 3px; background: rgba(148, 163, 184, 0.14); overflow: hidden; margin-top: 5px; }
.load-bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }
.load-name { font-size: 12.5px; color: var(--text); font-weight: 600; }
.load-sub { font-size: 10.5px; color: var(--dim); }
.load-count { font-family: var(--mono); font-size: 12px; color: var(--text-2); }

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.toolbar .search { width: min(280px, 100%); }
.toolbar .select { width: 150px; height: 36px; }
.toolbar .spacer { flex: 1; }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.07);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.seg button {
  height: 28px;
  padding: 0 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.seg button.on { background: rgba(34, 211, 238, 0.16); color: #9beeff; box-shadow: inset 0 0 0 1px rgba(34,211,238,.24); }

/* 用户表 */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .meta b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.user-cell .meta span { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.role-tags { display: flex; gap: 4px; flex-wrap: wrap; }

/* 角色卡 */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.role-card { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.role-card.system { border-color: rgba(34, 211, 238, 0.22); }
.role-head { display: flex; align-items: center; gap: 10px; }
.role-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--cyan); }
.role-ico svg { width: 17px; height: 17px; }
.role-head b { font-size: 14px; }
.role-head span { font-size: 11px; color: var(--dim); font-family: var(--mono); }
.role-desc { font-size: 12px; color: var(--muted); line-height: 1.6; min-height: 38px; }
.perm-list { display: flex; flex-wrap: wrap; gap: 5px; }
.role-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.role-foot span { font-size: 11.5px; color: var(--dim); }

.perm-matrix { display: flex; flex-direction: column; gap: 16px; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.perm-group-head { padding: 9px 13px; font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); background: rgba(148, 163, 184, 0.06); text-transform: uppercase; }
.perm-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 13px; border-top: 1px solid rgba(148,148,184,.06); cursor: pointer; }
.perm-row:hover { background: rgba(148, 163, 184, 0.05); }
.perm-row input { accent-color: #22d3ee; margin-top: 3px; }
.perm-row div b { display: block; font-size: 12.5px; font-weight: 600; }
.perm-row div span { font-size: 11px; color: var(--dim); font-family: var(--mono); }

/* 审计 */
.audit-list { display: flex; flex-direction: column; }
.audit-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; padding: 12px 4px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); align-items: baseline; }
.audit-row:last-child { border-bottom: none; }
.audit-time { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.audit-main b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.audit-main p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.audit-ip { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* 筛选标签 */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-tab b { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.filter-tab.on { color: #9beeff; border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); }

/* 个人中心 */
.profile-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.profile-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 20px; text-align: center; }
.profile-card .avatar.lg { width: 66px; height: 66px; font-size: 24px; border-radius: 18px; }
.profile-card b { font-size: 17px; }
.profile-card span { font-size: 12px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

/* 登录页底部提示 */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* 状态点动画（加急） */
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(251,113,133,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(251,113,133,0); } 100% { box-shadow: 0 0 0 0 rgba(251,113,133,0); } }

/* 折线/迷你图 */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.spark i { width: 5px; border-radius: 2px; background: linear-gradient(180deg, rgba(34,211,238,.8), rgba(34,211,238,.2)); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .profile-grid { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-104%);
    transition: transform 0.26s cubic-bezier(.2,.8,.3,1);
    z-index: 200;
    box-shadow: 30px 0 80px -30px #000;
  }
  .sidebar.open { transform: none; }
  .sidebar-mask {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(3, 6, 12, 0.6);
    backdrop-filter: blur(3px);
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 70;
  }
  .topbar { height: 54px; padding: 0 16px; }
  .topbar-clock { display: none; }
  .topbar-title { font-size: 13px; }
  .content { padding: 18px 16px 40px; }
  .hero { padding: 24px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 22px; }
  .order-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .task { grid-template-columns: 1fr; }
  .task-side { justify-content: flex-start; }
  .audit-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-chart { height: 150px; }
  .drawer { width: 100%; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .quick-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 18px; }
  .section-head { align-items: flex-start; }
  .toolbar .search { width: 100%; }
  .toolbar .select { flex: 1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* 页面右下角版权 */
.page-copy {
  padding: 0 28px 18px;
  text-align: right;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
}
@media (max-width: 720px) {
  .page-copy { padding: 0 16px 40px; text-align: center; }
}

/* 右下角常驻版权（不随页面滚动） */
.page-copy{
  position: fixed;
  right: 22px;
  bottom: 12px;
  padding: 0;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--dim);
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.65);
}
@media (max-width: 720px) {
  .page-copy { left: 0; right: 0; bottom: 10px; text-align: center; }
}

/* ==========================================================
   三屏合一自适应（桌面 / 平板 / 手机）
   ========================================================== */

/* ① 桌面宽屏：内容居中限宽，避免一行拉得过散 */
@media (min-width: 1280px) {
  .content { width: 100%; max-width: 1280px; margin: 0 auto; }
}

/* ② 平板横屏 / 小笔记本 961–1279 */
@media (min-width: 961px) and (max-width: 1279px) {
  .content { padding: 22px 22px 56px; }
  .quick-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { gap: 20px; padding: 26px; }
}

/* ③ 平板竖屏 768–960：侧栏已抽屉化 */
@media (min-width: 768px) and (max-width: 960px) {
  .content { padding: 20px 20px 60px; }
  .quick-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .modal { width: min(520px, 100%); }
}

/* ④ 手机 ≤ 600 */
@media (max-width: 600px) {
  .content { padding: 14px 14px 76px; }
  .hero { padding: 18px; border-radius: 14px; }
  .hero h1 { font-size: 22px; line-height: 1.32; }
  .hero p { font-size: 13px; margin-bottom: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stat-grid { gap: 8px; }
  .stat { padding: 12px; }
  .stat-value { font-size: 20px; }
  .card, .panel, .auth-card { border-radius: 12px; }
  .modal { width: 100%; max-height: 94vh; border-radius: 14px; }
  .modal-body { padding: 16px; gap: 12px; }
  .modal-foot { padding: 12px 16px; }
  .modal-foot .btn { flex: 1; justify-content: center; }
  .auth-main { padding: 16px 12px 28px; }
  .auth-card { padding: 20px 16px; width: 100%; }
  .auth-title { font-size: 25px; }
  .input, .select, .textarea { font-size: 16px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 34px; }
}

/* ⑤ 手机横屏（矮屏） */
@media (max-height: 480px) and (orientation: landscape) {
  .mobile-bar { height: 46px; }
  .topbar { height: 46px; }
  .hero { padding: 16px; }
}

/* ⑥ 刘海屏安全区 */
.page-copy { bottom: calc(10px + env(safe-area-inset-bottom)); }

/* 费用说明信息栏 */
.fee-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
}
.fee-note b { display: block; color: var(--text); font-size: 12.5px; margin-bottom: 2px; }
.fee-note p { margin: 0; }
.fee-note-ico {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}
.fee-note-ico svg { width: 15px; height: 15px; }

/* 类型编辑行 */
.type-row { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.type-row:last-child { border-bottom: none; }
.type-idx { width: 22px; text-align: center; font-size: 11.5px; color: var(--dim); flex: none; }
.type-input { flex: 1; height: 36px; }
