/* ============================================================
   置换云 · 组件层
   ============================================================ */

/* ---------------- 按钮 ---------------- */
.btn {
  --btn-bg: rgba(147, 165, 192, 0.08);
  --btn-fg: var(--text-soft);
  --btn-bd: rgba(147, 165, 192, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(147, 165, 192, 0.36); background: rgba(147, 165, 192, 0.13); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #3fecb8 0%, #22c9a0 55%, #14b58f 100%);
  color: #04211a;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(31, 209, 162, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #55f4c3 0%, #2bd3a8 55%, #17c098 100%); border-color: transparent; }
.btn-outline { background: transparent; border-color: rgba(53, 226, 174, 0.4); color: var(--mint); }
.btn-outline:hover { background: rgba(53, 226, 174, 0.1); border-color: rgba(53, 226, 174, 0.6); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(147, 165, 192, 0.1); color: var(--text); }
.btn-danger { background: rgba(255, 110, 134, 0.12); border-color: rgba(255, 110, 134, 0.34); color: #ff8fa2; }
.btn-danger:hover { background: rgba(255, 110, 134, 0.2); border-color: rgba(255, 110, 134, 0.5); }
.btn-soft { background: rgba(76, 201, 240, 0.11); border-color: rgba(76, 201, 240, 0.28); color: #7dd8f7; }
.btn-soft:hover { background: rgba(76, 201, 240, 0.18); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: transparent; border-color: transparent; color: var(--muted); }
.btn-icon:hover { background: rgba(147, 165, 192, 0.12); color: var(--text); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-link { background: none; border: none; color: var(--mint); padding: 0; height: auto; font-size: 12px; }
.btn-link:hover { background: none; text-decoration: underline; }

/* ---------------- 页面头部 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 7px; font-weight: 500;
}
.page-head .eyebrow::before {
  content: ''; width: 18px; height: 1px; background: linear-gradient(90deg, var(--mint), transparent);
}
.page-title { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 720px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------- 卡片 / 面板 ---------------- */
.panel {
  background: linear-gradient(165deg, rgba(24, 34, 51, 0.78), rgba(13, 20, 32, 0.72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  position: relative;
  backdrop-filter: blur(14px);
}
.panel.pad { padding: 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.panel-head .sub { color: var(--dim); font-size: 12px; font-weight: 400; }
.panel-body { padding: 20px; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.panel-hairline::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 226, 174, 0.55), transparent);
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* ---------------- 指标卡 ---------------- */
.stat {
  position: relative;
  padding: 18px 20px 16px;
  border-radius: var(--radius);
  background:
    radial-gradient(520px 160px at 100% 0%, rgba(53, 226, 174, 0.08), transparent 70%),
    linear-gradient(160deg, rgba(26, 37, 55, 0.9), rgba(12, 19, 30, 0.8));
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.stat::after {
  content: ''; position: absolute; right: -1px; top: -1px; width: 26px; height: 26px;
  background: linear-gradient(225deg, transparent 48%, rgba(53, 226, 174, 0.35) 50%, transparent 52%);
}
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; letter-spacing: 0.04em; }
.stat-value { font-family: 'Space Grotesk', var(--font); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 10px; }
.stat-value small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--dim); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; }
.delta.up { color: var(--mint); }
.delta.down { color: var(--rose); }
.stat .spark { position: absolute; right: 14px; bottom: 34px; width: 108px; height: 36px; opacity: 0.85; }

/* ---------------- 表单 ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.03em; }
.field > label .req { color: var(--rose); margin-left: 3px; }
.field .hint { font-size: 11px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  background: rgba(9, 14, 23, 0.62);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  appearance: none;
}
.textarea { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #55637a; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(147, 165, 192, 0.36); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(53, 226, 174, 0.62);
  box-shadow: 0 0 0 3px rgba(53, 226, 174, 0.1);
  background: rgba(10, 18, 28, 0.85);
}
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b99ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.select option { background: #101828; color: var(--text); }
.input-group { display: flex; align-items: center; gap: 8px; }
.input-affix {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: rgba(9, 14, 23, 0.62); border: 1px solid var(--line-strong); border-radius: 11px;
}
.input-affix .input { border: none; background: none; padding: 0; height: 100%; }
.input-affix .input:focus { box-shadow: none; }
.input-affix .icon { color: var(--dim); }

.switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 99px; background: rgba(147, 165, 192, 0.22);
  transition: 0.22s; cursor: pointer;
}
.switch span::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  left: 3px; top: 3px; background: #cfd9e6; transition: 0.22s;
}
.switch input:checked + span { background: linear-gradient(135deg, #35e2ae, #14b58f); }
.switch input:checked + span::before { transform: translateX(18px); background: #04211a; }

.checks { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); cursor: pointer; user-select: none; }
.check input { appearance: none; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(9, 14, 23, 0.7); position: relative; cursor: pointer; transition: 0.15s; }
.check input:checked { background: linear-gradient(135deg, #35e2ae, #14b58f); border-color: transparent; }
.check input:checked::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #04211a; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 12px; color: var(--dim); width: 16px; height: 16px; }
.search-box .input { padding-left: 36px; }

/* ---------------- 状态标签 ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
  background: rgba(147, 165, 192, 0.1); color: var(--text-soft);
  border: 1px solid rgba(147, 165, 192, 0.14);
  white-space: nowrap;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip[data-tone="mint"] { background: rgba(53, 226, 174, 0.1); color: #5cf0c6; border-color: rgba(53, 226, 174, 0.24); }
.chip[data-tone="amber"] { background: rgba(246, 185, 92, 0.11); color: #f8c977; border-color: rgba(246, 185, 92, 0.24); }
.chip[data-tone="rose"] { background: rgba(255, 110, 134, 0.11); color: #ff90a2; border-color: rgba(255, 110, 134, 0.24); }
.chip[data-tone="cyan"] { background: rgba(76, 201, 240, 0.11); color: #7dd8f7; border-color: rgba(76, 201, 240, 0.24); }
.chip[data-tone="violet"] { background: rgba(156, 140, 255, 0.11); color: #b6aaff; border-color: rgba(156, 140, 255, 0.24); }
.chip[data-tone="slate"] { background: rgba(147, 165, 192, 0.09); color: #9aa9bf; border-color: rgba(147, 165, 192, 0.16); }
.chip[data-tone="mint"] .dot { animation: pulse-dot 2.4s infinite; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: rgba(76, 201, 240, 0.1); color: #7dd8f7; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { width: 100%; overflow: auto; border-radius: 0 0 var(--radius) var(--radius); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 760px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: rgba(13, 20, 31, 0.96);
  backdrop-filter: blur(8px);
  text-align: left;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl tbody td { padding: 13px 14px; border-bottom: 1px solid rgba(147, 165, 192, 0.07); vertical-align: middle; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: linear-gradient(90deg, rgba(53, 226, 174, 0.05), rgba(76, 201, 240, 0.03) 60%, transparent); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .cell-main { font-weight: 500; color: var(--text); }
.tbl .cell-sub { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.tbl .cell-link { color: var(--text); font-weight: 500; cursor: pointer; transition: color 0.15s; }
.tbl .cell-link:hover { color: var(--mint); }
.tbl .row-actions { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.tbl .num { font-size: 13px; }
.tbl-empty { padding: 60px 20px; text-align: center; color: var(--dim); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .info { font-size: 12px; color: var(--dim); }
.pager .pages { display: flex; align-items: center; gap: 4px; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  font-size: 12px; color: var(--muted); border: 1px solid transparent; transition: 0.15s;
}
.pager button:hover { background: rgba(147, 165, 192, 0.1); color: var(--text); }
.pager button.active { background: rgba(53, 226, 174, 0.14); color: var(--mint); border-color: rgba(53, 226, 174, 0.3); }
.pager button[disabled] { opacity: 0.3; pointer-events: none; }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 4px; overflow-x: auto; }
.tab {
  position: relative; padding: 11px 14px; font-size: 13px; color: var(--muted);
  white-space: nowrap; transition: color 0.16s; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--mint); }
.tab.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  border-radius: 2px;
}
.tab .count { font-size: 11px; color: var(--dim); margin-left: 5px; }

/* ---------------- 弹窗（层次感） ---------------- */
.modal-layer {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(4, 7, 12, 0.62);
  backdrop-filter: blur(7px);
  animation: fade-in 0.18s var(--ease);
}
.modal {
  width: 560px; max-width: 100%; max-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(168deg, #16202f 0%, #0d1522 58%, #0b111c 100%);
  border: 1px solid rgba(147, 165, 192, 0.2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(53, 226, 174, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modal-in 0.26s var(--ease);
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 226, 174, 0.6), rgba(76, 201, 240, 0.4), transparent);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal.sm { width: 420px; }
.modal.lg { width: 760px; }
.modal.xl { width: 960px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; }
.modal-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.modal-head .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: rgba(7, 12, 20, 0.45); }
.modal-foot .left { margin-right: auto; }

/* ---------------- 抽屉 ---------------- */
.drawer-layer { position: fixed; inset: 0; display: flex; justify-content: flex-end; background: rgba(4, 7, 12, 0.58); backdrop-filter: blur(5px); animation: fade-in 0.18s; }
.drawer {
  width: 620px; max-width: 94vw; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #111a28, #0a111c);
  border-left: 1px solid rgba(147, 165, 192, 0.18);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  animation: drawer-in 0.28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: rgba(7, 12, 20, 0.5); }

/* ---------------- Toast ---------------- */
.toasts { position: fixed; top: 20px; right: 22px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  min-width: 250px; max-width: 380px; padding: 12px 15px;
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(17, 26, 40, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 13px; color: var(--text-soft);
  animation: toast-in 0.24s var(--ease);
  pointer-events: auto;
}
.toast .icon { margin-top: 1px; }
.toast[data-type="ok"] { border-color: rgba(53, 226, 174, 0.35); }
.toast[data-type="ok"] .icon { color: var(--mint); }
.toast[data-type="err"] { border-color: rgba(255, 110, 134, 0.38); }
.toast[data-type="err"] .icon { color: var(--rose); }
.toast[data-type="warn"] { border-color: rgba(246, 185, 92, 0.38); }
.toast[data-type="warn"] .icon { color: var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

/* ---------------- 其他 ---------------- */
.bar { height: 6px; border-radius: 99px; background: rgba(147, 165, 192, 0.13); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #35e2ae, #4cc9f0); transition: width 0.5s var(--ease); }
.bar-fill.amber { background: linear-gradient(90deg, #f6b95c, #ff8f6b); }
.bar-fill.rose { background: linear-gradient(90deg, #ff6e86, #ff9f6e); }
.bar-fill.violet { background: linear-gradient(90deg, #9c8cff, #4cc9f0); }

.empty { padding: 52px 20px; text-align: center; color: var(--dim); }
.empty .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: rgba(147, 165, 192, 0.3); }
.empty p { font-size: 13px; }

.sk { border-radius: 8px; background: linear-gradient(90deg, rgba(147,165,192,0.07) 25%, rgba(147,165,192,0.14) 37%, rgba(147,165,192,0.07) 63%); background-size: 560px 100%; animation: shimmer 1.4s infinite linear; }

.kv { display: grid; grid-template-columns: 104px 1fr; gap: 11px 14px; font-size: 13px; }
.kv dt { color: var(--dim); font-size: 12px; }
.kv dd { margin: 0; color: var(--text-soft); word-break: break-all; }

.tl { position: relative; padding-left: 22px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, rgba(53, 226, 174, 0.45), rgba(147, 165, 192, 0.12)); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -22px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #0d1522; border: 2px solid var(--mint); }
.tl-item.slate .tl-dot { border-color: var(--dim); }
.tl-item.amber .tl-dot { border-color: var(--amber); }
.tl-title { font-size: 13px; font-weight: 500; }
.tl-meta { font-size: 11.5px; color: var(--dim); margin-top: 3px; }

.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 5px; border-radius: 5px; background: rgba(147, 165, 192, 0.13); color: var(--muted); border: 1px solid rgba(147, 165, 192, 0.14); }
.note { font-size: 12px; color: var(--dim); display: flex; align-items: flex-start; gap: 7px; line-height: 1.6; }
.note .icon { width: 14px; height: 14px; margin-top: 2px; flex: none; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 500;
  background: #131d2c; border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 6px; display: none;
}
.dropdown.open .dropdown-menu { display: block; animation: fade-up 0.16s var(--ease); }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  border-radius: 8px; font-size: 13px; color: var(--text-soft); text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(147, 165, 192, 0.12); color: var(--text); }
.dropdown-menu .danger { color: #ff8fa2; }
.dropdown-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------------- 命令面板 ---------------- */
.cmd-layer { position: fixed; inset: 0; z-index: 90000; background: rgba(4, 7, 12, 0.62); backdrop-filter: blur(6px); display: flex; justify-content: center; padding-top: 12vh; animation: fade-in 0.16s; }
.cmd {
  width: 620px; max-width: 92vw; max-height: 62vh; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #17222f, #0c1420);
  border: 1px solid rgba(147, 165, 192, 0.22); border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.22s var(--ease); overflow: hidden;
}
.cmd-input { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.cmd-input input { flex: 1; background: none; border: none; outline: none; font-size: 15px; color: var(--text); }
.cmd-list { overflow-y: auto; padding: 8px; }
.cmd-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.cmd-item .icon { color: var(--dim); }
.cmd-item .path { margin-left: auto; font-size: 11px; color: var(--dim); }
.cmd-item.active, .cmd-item:hover { background: rgba(53, 226, 174, 0.1); color: var(--mint); }
.cmd-item.active .icon, .cmd-item:hover .icon { color: var(--mint); }

/* ---------------- 图表 ---------------- */
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }

@media (max-width: 1200px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
  .page-title { font-size: 20px; }
  .modal, .modal.lg, .modal.xl { width: 100%; }
}
