/* ============ AutoFix 共享样式 (暗夜霓虹主题) ============ */
:root {
  --bg: #070b14;
  --bg2: #0c1220;
  --card: rgba(18, 26, 45, .72);
  --border: rgba(90, 130, 220, .18);
  --text: #e8eefc;
  --muted: #8b96b5;
  --primary: #38e1ff;
  --primary2: #7c5cff;
  --success: #2ee6a8;
  --danger: #ff5c7a;
  --warning: #ffc75c;
  --grad: linear-gradient(135deg, #38e1ff, #7c5cff 55%, #ff5cd0);
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(56, 225, 255, .3); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #223252; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 背景 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(124, 92, 255, .18), transparent),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(56, 225, 255, .12), transparent),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(255, 92, 208, .08), transparent),
    var(--bg);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 130, 220, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 130, 220, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 75%);
}

/* ---------- 通用组件 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  padding: 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card.hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 225, 255, .45);
  box-shadow: 0 12px 40px rgba(56, 225, 255, .12), 0 4px 20px rgba(124, 92, 255, .12);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; user-select: none; white-space: nowrap;
}
.btn:hover { border-color: rgba(56, 225, 255, .5); box-shadow: 0 0 18px rgba(56, 225, 255, .18); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.primary {
  background: var(--grad); border: none; color: #051019;
  box-shadow: 0 4px 24px rgba(124, 92, 255, .35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 92, 255, .5); }
.btn.sm { padding: 6px 14px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { border-color: rgba(255, 92, 122, .4); color: var(--danger); }
.btn.success { border-color: rgba(46, 230, 168, .4); color: var(--success); }

.input, select.input, textarea.input {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(8, 12, 24, .6);
  color: var(--text); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(56, 225, 255, .12); }
textarea.input { resize: vertical; min-height: 90px; }
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; border: 1px solid transparent;
}
.badge.cyan  { color: var(--primary); background: rgba(56, 225, 255, .1); border-color: rgba(56, 225, 255, .3); }
.badge.purple{ color: #b49aff; background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .35); }
.badge.green { color: var(--success); background: rgba(46, 230, 168, .1); border-color: rgba(46, 230, 168, .3); }
.badge.red   { color: var(--danger); background: rgba(255, 92, 122, .1); border-color: rgba(255, 92, 122, .3); }
.badge.yellow{ color: var(--warning); background: rgba(255, 199, 92, .1); border-color: rgba(255, 199, 92, .3); }
.badge.gray  { color: var(--muted); background: rgba(139, 150, 181, .1); border-color: rgba(139, 150, 181, .3); }

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

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(90, 130, 220, .1); }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.table tr:hover td { background: rgba(56, 225, 255, .04); }
.table .mono { font-family: Consolas, monospace; font-size: 12.5px; color: #9fd8ff; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager button { padding: 5px 12px; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 14, .7); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.mask.show { display: flex; }
.modal {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: pop .22s ease;
}
.modal h3 { margin-bottom: 18px; font-size: 17px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Toast ---------- */
#toast {
  position: fixed; top: 26px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 200; padding: 10px 22px; border-radius: 10px; font-size: 13.5px;
  background: rgba(18, 26, 45, .95); border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: all .25s; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(255, 92, 122, .5); color: #ffb9c6; }
#toast.ok { border-color: rgba(46, 230, 168, .5); color: #a9f5dc; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .78); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.logo .icon {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #051019; font-size: 15px; font-weight: 900;
  box-shadow: 0 0 18px rgba(124, 92, 255, .55);
}
.nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav a {
  padding: 7px 14px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: all .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: rgba(56, 225, 255, .08); }
.topbar .actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 其它 ---------- */
.empty { text-align: center; color: var(--muted); padding: 42px 0; font-size: 13.5px; }
.muted { color: var(--muted); font-size: 12.5px; }
.mono { font-family: Consolas, monospace; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 200px; }
.hr { border: none; border-top: 1px solid rgba(90, 130, 220, .12); margin: 18px 0; }
.copy-line {
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 12, 24, .7); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.copy-line .val { flex: 1; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
.copy-line .btn { flex-shrink: 0; }
.section-title { font-size: 16px; font-weight: 700; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--grad); }
