/* ============================================================
   芒瓜机器人后台 · 专业中性视觉（灰白底 + 蓝色点缀，去紫）
   ============================================================ */
:root {
  --el-color-primary: #2563eb;
  --el-color-primary-light-3: #60a5fa;
  --el-color-primary-light-5: #93c5fd;
  --el-color-primary-light-7: #bfdbfe;
  --el-color-primary-light-8: #dbeafe;
  --el-color-primary-light-9: #eff6ff;
  --el-color-primary-dark-2: #1d4ed8;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --el-border-color: #e5e8ee;
  --el-fill-color-blank: #ffffff;
  --el-text-color-primary: #111827;
  --el-text-color-regular: #4b5563;
  --el-font-size-base: 14px;
  --accent: #2563eb;
  --ink: #0f172a;
  --card-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #111827;
  -webkit-font-smoothing: antialiased; letter-spacing: .01em;
}
#app { height: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d5d9e0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #b9bfc9; }

/* ============ 登录页 ============ */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eef2f7 0%, #e8edf5 50%, #eef1f6 100%); position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 320px at 15% 10%, rgba(37,99,235,.08), transparent 60%),
    radial-gradient(700px 320px at 85% 90%, rgba(14,165,233,.07), transparent 60%);
}
.login-card {
  position: relative; width: 400px; background: #fff; border-radius: 16px; padding: 42px 38px;
  box-shadow: 0 10px 40px rgba(16,24,40,.10); border: 1px solid #eef0f4;
}
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.login-logo .dot { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#2563eb,#0ea5e9); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(37,99,235,.28); }
.login-sub { color: #8a94a3; font-size: 13px; margin-bottom: 16px; }
.login-feats { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.login-feats span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; padding: 5px 10px; border-radius: 999px; }
.login-feats .el-icon { font-size: 14px; }

/* ============ 顶部导航 ============ */
.top-nav {
  height: 60px; background: #fff; backdrop-filter: blur(10px);
  display: flex; align-items: center; padding: 0 26px;
  box-shadow: 0 1px 0 #eceef2; position: sticky; top: 0; z-index: 100;
}
.top-nav .brand { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.top-nav .brand-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; white-space: nowrap; }
.top-nav .menu { display: flex; gap: 4px; margin-left: 40px; flex: 1; }
.top-nav .menu-item { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: #5b6472; font-weight: 500; transition: all .16s; }
.top-nav .menu-item .mi { font-size: 16px; }
.top-nav .menu-item:hover { background: #f2f4f8; color: #111827; }
.top-nav .menu-item.active { background: #111827; color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(17,24,39,.22); }
.top-nav .user { display: flex; align-items: center; }
.top-nav .user-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #374151; font-weight: 600; }
.top-nav .user-ava { background: linear-gradient(135deg,#2563eb,#0ea5e9); color: #fff; font-weight: 700; }

/* ============ 内容区 ============ */
.page { max-width: 1280px; margin: 24px auto; padding: 0 28px; }
.page-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 22px 24px; box-shadow: var(--card-shadow); }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-title { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.t-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #2563eb; font-size: 17px; flex: none; }

/* ============ 统计卡 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 20px; box-shadow: var(--card-shadow); position: relative; overflow: hidden; transition: transform .16s, box-shadow .16s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,24,40,.08); }
.stat-card::after { content: ""; position: absolute; right: -28px; top: -28px; width: 100px; height: 100px; border-radius: 50%; opacity: .10; }
.stat-card.blue::after { background: #2563eb; } .stat-card.green::after { background: #10b981; }
.stat-card.gray::after { background: #64748b; } .stat-card.purple::after { background: #0ea5e9; }
.stat-card .num { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.stat-card .label { color: #8a94a3; font-size: 13px; margin-top: 6px; font-weight: 500; }
.stat-card.green .num { color: #10b981; } .stat-card.blue .num { color: #2563eb; }
.stat-card.gray .num { color: #64748b; } .stat-card.purple .num { color: #0ea5e9; }

/* ============ 状态点 ============ */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.status-dot.running { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.status-dot.stopped { background: #9ca3af; }
.status-dot.error { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.14); }

/* ============ 表格 ============ */
.el-table { --el-table-header-bg-color: #f8f9fb; border-radius: 12px; }
.el-table th.el-table__cell { font-weight: 700; color: #4b5563; }

/* ============ 日志 ============ */
.log-box { background: #0b1220; color: #cbd5e1; font-family: "JetBrains Mono","Cascadia Code","Consolas","Menlo",monospace; font-size: 13px; line-height: 1.7; padding: 18px; border-radius: 12px; height: 62vh; overflow-y: auto; white-space: pre-wrap; word-break: break-all; box-shadow: inset 0 2px 12px rgba(0,0,0,.4); }
.log-box::-webkit-scrollbar-thumb { background: #334155; }
.log-box .ln-err { color: #f87171; } .log-box .ln-ok { color: #4ade80; }
.log-box .ln-warn { color: #fbbf24; } .log-box .ln-info { color: #60a5fa; }

/* ============ 账号整卡 ============ */
.acc-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; box-shadow: var(--card-shadow); margin-bottom: 20px; overflow: hidden; }
.acc-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: #fafbfc; border-bottom: 1px solid #eef0f4; }
.acc-head .acc-name { width: 200px; }
.acc-head .acc-name .el-input__wrapper { background: transparent; box-shadow: none; font-weight: 700; font-size: 15px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.acc-sec { padding: 20px 24px; border-right: 1px solid #f1f2f5; border-bottom: 1px solid #f1f2f5; }
.acc-sec:nth-child(2n) { border-right: none; }
.acc-sec:nth-last-child(-n+2) { border-bottom: none; }
.sec-t { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: #1f2937; margin-bottom: 14px; }
.sec-t .el-icon { color: #2563eb; font-size: 17px; }
.acc-full { grid-column: 1 / -1; }
.rule-box { border: 1px solid #e5e8ee; background: #fafbfc; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.rule-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rule-row:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .acc-grid { grid-template-columns: 1fr; } .acc-sec { border-right: none; } }

/* ============ 今日进房大屏（深蓝+青，去紫）============ */
.bigscreen { margin-top: 20px; display: grid; grid-template-columns: 320px 1fr; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); background: linear-gradient(135deg,#0b1220 0%, #12203a 55%, #0e2a44 100%); color: #e2e8f0; }
.bs-left { padding: 26px 28px; border-right: 1px solid rgba(226,232,240,.10); }
.bs-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #93c5fd; }
.bs-num { font-size: 62px; font-weight: 800; line-height: 1.1; margin-top: 10px; background: linear-gradient(120deg,#38bdf8,#34d399); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bs-num .bs-unit { font-size: 20px; margin-left: 6px; -webkit-text-fill-color: #93c5fd; }
.bs-sub { font-size: 12px; color: #7da2d9; margin-top: 4px; }
.bs-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: #93c5fd; flex-wrap: wrap; }
.bs-right { padding: 20px 24px; }
.bs-listhead { font-weight: 700; font-size: 14px; color: #93c5fd; margin-bottom: 10px; }
.bs-list { max-height: 260px; overflow-y: auto; }
.bs-list::-webkit-scrollbar-thumb { background: #27415f; }
.bs-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.bs-row:nth-child(odd) { background: rgba(226,232,240,.05); }
.bs-idx { width: 22px; color: #38bdf8; font-weight: 700; }
.bs-nick { font-weight: 600; color: #f1f5f9; }
.bs-uid { color: #7d93b4; font-size: 12px; }
.bs-ent { margin-left: auto; color: #93c5fd; }
.bs-time { color: #7d93b4; font-size: 12px; }
.bs-empty { color: #7d93b4; text-align: center; padding: 30px 0; }
@media (max-width: 900px) { .bigscreen { grid-template-columns: 1fr; } .bs-left { border-right: none; } }

/* ============ 按钮统一规范（中性+蓝主色）============ */
.el-button { border-radius: 10px; font-weight: 600; letter-spacing: .01em; }
.el-button--small { height: 30px; padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.el-button + .el-button { margin-left: 8px; }
.el-button--default { background: #fff; border: 1px solid #dfe3ea; color: #3f4756; }
.el-button--default:hover { border-color: #2563eb; color: #2563eb; background: #f5f9ff; }
.el-button--primary:not(.is-plain):not(.is-text) { background: #2563eb !important; border: none !important; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.el-button--primary:not(.is-plain):not(.is-text):hover { background: #1d4ed8 !important; }
.el-button--primary.is-plain { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.el-button--success:not(.is-plain):not(.is-text) { background: #10b981; border: none; color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.25); }
.el-button--success.is-plain { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; }
.el-button--danger:not(.is-plain):not(.is-text) { background: #ef4444; border: none; color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.25); }
.el-button--danger.is-plain { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.el-button--warning:not(.is-plain):not(.is-text) { background: #f59e0b; border: none; color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.25); }
.el-button--warning.is-plain { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.el-button.is-text { color: #2563eb; }

/* ============ 上传按钮（精致描边）============ */
.up-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #2563eb; background: #fff; border: 1px dashed #b9c8e8; transition: all .15s; }
.up-btn:hover { border-color: #2563eb; background: #f5f9ff; box-shadow: 0 2px 8px rgba(37,99,235,.12); }
.up-btn .el-icon { font-size: 15px; }

/* ============ 其它 ============ */
.song-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.song-item .idx { width: 26px; color: #9ca3af; text-align: center; font-weight: 600; }
.muted { color: #8a94a3; font-size: 12px; }
.mono { font-family: "Consolas", monospace; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.el-tag { border-radius: 8px; }
.el-divider__text { font-weight: 700; color: #4b5563; display: inline-flex; align-items: center; }
.el-card, .el-dialog { border-radius: 16px; overflow: hidden; }
.el-input__wrapper, .el-textarea__inner { border-radius: 10px; }
