/* 中秋央视频 —— 纯白极简风。仅用中性灰 + 单一深色主色，无杂色。 */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --line: #e6e6e6;
  --line-strong: #d4d4d4;
  --accent: #1a1a1a;
  --accent-fg: #ffffff;
  --soft: #f7f7f8;
  --danger: #b42318;
  --ok: #067647;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); }

/* 布局 */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.userbox { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 24px; flex-wrap: wrap; }
.tab {
  padding: 10px 16px; cursor: pointer; color: var(--muted);
  border: none; background: none; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }

/* 卡片 */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; margin-bottom: 20px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* 表单 */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; background: #fff; color: var(--fg); outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 72px; font-family: inherit; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row .field { flex: 1; margin-bottom: 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); font-size: 14px; cursor: pointer;
  transition: opacity .15s; white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--soft); opacity: 1; }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c8c4; }
.btn.danger:hover { background: #fdf3f2; opacity: 1; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn-block { width: 100%; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; background: var(--soft); }
.table tr:last-child td { border-bottom: none; }
.table .empty { text-align: center; color: var(--muted); padding: 32px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; }

/* 徽标 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.badge.ok { color: var(--ok); border-color: #bfe3cf; background: #f2fbf6; }
.badge.warn { color: #b54708; border-color: #f0d6a8; background: #fffaf0; }
.badge.off { color: var(--danger); border-color: #f0c8c4; background: #fdf3f2; }
.badge.win { color: var(--ok); border-color: #bfe3cf; background: #f2fbf6; }

/* 弹窗 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,.4); display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn { border: none; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--fg); }

/* 提示 */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1a1a1a; color: #fff; padding: 11px 16px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); max-width: 320px; }
.toast-ok { background: var(--ok); }
.toast-error { background: var(--danger); }

/* 登录页 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card { padding: 28px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 13px; }

/* 杂项 */
.muted { color: var(--muted); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.spacer { flex: 1; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.mt { margin-top: 16px; }
.code-list { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 220px; overflow: auto; }
.code-list div { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; padding: 2px 0; }

.fade-enter-active, .fade-leave-active { transition: opacity .18s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.slide-enter-active { transition: all .2s; }
.slide-enter-from { opacity: 0; transform: translateX(20px); }
