* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f1f5f9; color: #1e293b; }
.app { display: flex; height: 100vh; }

/* 侧边栏 */
.sidebar { width: 200px; background: linear-gradient(180deg, #0f172a, #1e293b); color: #fff; display: flex; flex-direction: column; }
.sidebar-header { padding: 20px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-header i { font-size: 20px; color: #60a5fa; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: #94a3b8; text-decoration: none; font-size: 14px; transition: .2s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { border-left: 3px solid #60a5fa; }

/* 主内容 */
.main-content { flex: 1; overflow-y: auto; padding: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.topbar h1 { font-size: 18px; font-weight: 600; }
.filters { display: flex; gap: 8px; align-items: center; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; margin: 16px 24px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; background: #f8fafc; font-size: 12px; color: #64748b; font-weight: 600; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
tr:hover td { background: #f8fafc; }

/* 按钮 */
.btn { padding: 7px 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: .2s; color: #374151; }
.btn:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }

/* 输入 */
select, input[type="text"], input[type="password"] { padding: 7px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; background: #fff; }

/* 播放器容器 */
.player-container { margin: 16px 24px; background: #0f172a; border-radius: 12px; height: calc(100vh - 240px); min-height: 400px; overflow: hidden; position: relative; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 16px; }
.pagination button { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; }
.pagination button.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* 隐藏 */
.hidden { display: none !important; }

/* mono font */
.mono { font-family: 'SF Mono', Monaco, Consolas, monospace; }

/* Toast */
.toast { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px; z-index: 9999; animation: slideIn .3s ease; }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
