:root {
  --brand: #E8590C;
  --brand-dark: #C2410C;
  --ink: #1F1B16;
  --ink2: #6B6259;
  --line: #EAE6E1;
  --bg: #F6F5F3;
}

html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
#app { height: 100%; }

/* 登录 */
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; }
.login-box {
  width: 380px; padding: 36px; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
}
.login-box h2 { margin: 0 0 6px; text-align: center; font-weight: 700; }
.login-box .sub { text-align: center; color: var(--ink2); font-size: 13px; margin-bottom: 26px; }

/* 布局 */
.layout { display: flex; height: 100%; }
.side {
  width: 200px; background: #1F1B16; color: #E8E3DD; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.side .brand-title { padding: 0 10px 18px; font-size: 16px; font-weight: 700; color: #fff; }
.side .nav {
  padding: 11px 13px; border-radius: 8px; font-size: 14px; color: #B5ADA4;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.side .nav:hover { background: rgba(255,255,255,.07); color: #fff; }
.side .nav.on { background: var(--brand); color: #fff; font-weight: 600; }
.side .foot { margin-top: auto; padding: 10px 13px; font-size: 12px; color: #6E665E; cursor: pointer; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-head {
  height: 56px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.main-head .title { font-size: 17px; font-weight: 700; }
.main-body { flex: 1; overflow: auto; padding: 20px 22px; }

/* 通用 */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

.stat-row { display: flex; gap: 12px; margin-bottom: 16px; }
.stat-card {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.stat-card .l { font-size: 12px; color: var(--ink2); }
.stat-card .n { font-size: 24px; font-weight: 700; margin-top: 3px; }
.stat-card.warn { background: #FDECEC; border-color: #F5C6C6; }
.stat-card.warn .l, .stat-card.warn .n { color: #A32A2A; }

.live-card {
  background: #fff; border: 2px solid var(--brand); border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: center; gap: 24px; margin-bottom: 18px;
}
.live-card .sep { width: 1px; height: 40px; background: var(--line); }
.live-card .l { font-size: 12px; color: var(--ink2); }
.live-card .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.live-card .v.brand { color: var(--brand-dark); }
.live-card .v.mono { font-family: Menlo, Consolas, monospace; color: #E03131; }

.pickup { font-family: Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; }
.pickup.live { color: var(--brand-dark); }
.pickup.dead { color: #9A9189; text-decoration: line-through; }

.muted { color: var(--ink2); }
.tip-bar {
  background: #FFF8E6; border: 1px solid #F0DCB4; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #92400E; margin-bottom: 16px; line-height: 1.6;
}
.empty-box { padding: 60px 0; text-align: center; color: #B9B1A8; }

.uploader-img { width: 100px; height: 100px; border-radius: 6px; object-fit: cover; display: block; }
.uploader-box {
  width: 100px; height: 100px; border: 1px dashed #DCD6CF; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #9A9189; font-size: 12px;
  cursor: pointer;
}

/* 订单表格行状态 */
.el-table .row-warn { background: #FFF8E6 !important; }
.el-table .row-dead { opacity: .6; }
.danger-text { color: #A32A2A; font-weight: 600; }
code { background: #F2EEE9; padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* 拖拽排序 */
.drag-handle {
  cursor: grab;
  color: #B9B1A8;
  font-size: 18px;
  letter-spacing: 1px;
  user-select: none;
}
.drag-handle:hover { color: var(--brand); }
.drag-handle.off { cursor: not-allowed; opacity: .35; }
.drag-ghost { background: #FFF6F0 !important; opacity: .6; }

/* 左侧菜单是 a 标签，去掉浏览器默认样式 */
.side .nav { text-decoration: none; }
.side a.nav:hover { text-decoration: none; }

/* 截止时间的快捷按钮 */
.quick-dl { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
