:root {
  --yt-primary: #2b70f4;
  --yt-sidebar: #1a2b4a;
  --yt-bg: #f0f2f5;
  --yt-card: #fff;
  --yt-text: #333;
  --yt-muted: #888;
  --yt-danger: #e54d42;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--yt-text); background: var(--yt-bg); }
a { color: var(--yt-primary); text-decoration: none; }

.yt-login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a2b4a 0%, #2b70f4 55%, #6ea8ff 100%);
}
.yt-login-card {
  width: 400px; max-width: 92vw; background: #fff; border-radius: 12px; padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.yt-login-card h1 { margin: 0; font-size: 22px; text-align: center; color: var(--yt-primary); }
.yt-login-sub { text-align: center; color: var(--yt-muted); margin: 8px 0 24px; }
.yt-login-error { background: #fff1f0; color: var(--yt-danger); padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; font-size: 13px; }
.yt-captcha-row { display: flex; gap: 10px; }
.yt-captcha-row .layui-input { flex: 1; }
.yt-captcha-img { height: 38px; border-radius: 4px; cursor: pointer; border: 1px solid #eee; }
.yt-btn-primary, .layui-btn.yt-btn-primary { background: var(--yt-primary); }

.yt-admin-body { display: flex; min-height: 100vh; }
.yt-sidebar {
  width: 220px; background: var(--yt-sidebar); color: #cfd8e8; flex-shrink: 0;
  transition: margin-left .2s;
}
.yt-sidebar.collapsed { margin-left: -220px; }
.yt-logo {
  height: 56px; line-height: 56px; padding: 0 16px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden;
}
.yt-menu { padding: 12px 0 40px; overflow-y: auto; height: calc(100vh - 56px); }
.yt-menu-title { padding: 10px 18px 6px; font-size: 12px; color: #8a9bb5; }
.yt-menu-item {
  display: block; padding: 10px 18px 10px 28px; color: #cfd8e8; font-size: 14px;
}
.yt-menu-item:hover, .yt-menu-item.active {
  background: var(--yt-primary); color: #fff;
}
.yt-menu-group > .yt-menu-item { padding-left: 18px; }

.yt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yt-header {
  height: 56px; background: #fff; display: flex; align-items: center; padding: 0 16px;
  border-bottom: 1px solid #e8e8e8; gap: 12px;
}
.yt-toggle { border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.yt-header-title { font-weight: 600; flex: 1; }
.yt-header-right { color: var(--yt-muted); font-size: 13px; display: flex; gap: 12px; align-items: center; }
.yt-content { padding: 16px; }

.yt-card {
  background: var(--yt-card); border-radius: 8px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.yt-card-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.yt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.yt-stat-item { background: #f5f8ff; border-radius: 8px; padding: 16px; text-align: center; }
.yt-stat-num { font-size: 28px; font-weight: 700; color: var(--yt-primary); }
.yt-stat-label { color: var(--yt-muted); margin-top: 6px; font-size: 13px; }
.yt-help { color: var(--yt-muted); font-size: 13px; line-height: 1.7; }
.yt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.yt-toolbar .layui-input, .yt-toolbar .layui-select { height: 36px; }
.yt-status-pending_dispatch { color: #2b70f4; }
.yt-status-pending_repair { color: #2b70f4; }
.yt-status-done { color: #52c41a; }
.yt-status-evaluated { color: #52c41a; }
.yt-status-cancelled { color: #999; }
.yt-upload-preview { max-width: 160px; max-height: 90px; border-radius: 4px; margin-top: 8px; }
.yt-cover-tip { color: var(--yt-muted); font-size: 12px; margin-top: 4px; }
.yt-pager { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--yt-muted); font-size: 13px; }
.yt-form-box { max-width: 920px; }
.yt-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; background: #f5f5f5; vertical-align: middle; }
.yt-tree-child { margin: 4px 0 4px 28px; }
.yt-tree-item { margin: 6px 0; }
.yt-muted { color: var(--yt-muted); font-size: 12px; }

@media (max-width: 960px) {
  .yt-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-sidebar { position: fixed; z-index: 1000; height: 100vh; }
  .yt-sidebar:not(.open) { margin-left: -220px; }
  .yt-sidebar.open { margin-left: 0; }
}
@media (max-width: 640px) {
  .yt-stat-grid { grid-template-columns: 1fr; }
}
