:root {
  --bg:#0f1115; --panel:#1a1d24; --panel2:#212530; --border:#2b303b;
  --text:#e8eaed; --muted:#8b909a; --dim:#6b7079;
  --accent:#6c8cff; --accent2:#a06cff; --green:#4ade80; --red:#f87171; --amber:#fbbf24;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); min-height:100vh; }
button,input,select,textarea { font-family:inherit; }
b { font-weight:600; }

/* ---------- 登录注册 ---------- */
.auth-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;
  background:radial-gradient(1000px 600px at 50% -10%, #1e2440 0%, var(--bg) 60%); }
.auth-card { width:100%; max-width:400px; background:var(--panel); border:1px solid var(--border);
  border-radius:16px; padding:32px; box-shadow:0 20px 60px rgba(0,0,0,.45); }
.auth-logo { width:54px; height:54px; margin:0 auto 16px; border-radius:15px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:19px; color:#fff; }
.auth-card h1 { text-align:center; font-size:21px; }
.auth-sub { text-align:center; color:var(--muted); font-size:13px; margin:7px 0 22px; }
.tabs { display:flex; gap:6px; background:var(--bg); padding:4px; border-radius:10px; margin-bottom:18px; }
.tab { flex:1; padding:9px; border:none; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; font-size:14px; }
.tab.active { background:var(--panel2); color:var(--text); }
.auth-form { display:flex; flex-direction:column; gap:11px; }
.auth-form input { background:var(--bg); border:1px solid var(--border); border-radius:9px;
  padding:11px 13px; color:var(--text); font-size:14px; outline:none; }
.auth-form input:focus { border-color:var(--accent); }
.msg { font-size:13px; min-height:18px; text-align:center; }
.msg.err { color:var(--red); } .msg.ok { color:var(--green); }

/* ---------- 布局 ---------- */
.app { display:flex; min-height:100vh; }
.side { width:232px; flex-shrink:0; background:var(--panel); border-right:1px solid var(--border);
  padding:16px 12px; display:flex; flex-direction:column; }
.brand { display:flex; align-items:center; gap:10px; padding:2px 6px 18px; }
.brand-logo { width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; color:#fff; }
.brand-t { font-weight:700; font-size:14px; } .brand-s { font-size:11px; color:var(--muted); margin-top:2px; }
.nav { display:flex; flex-direction:column; gap:3px; }
.nav-i { text-align:left; padding:10px 12px; border:none; border-radius:9px; background:transparent;
  color:#b9bdc6; cursor:pointer; font-size:13.5px; }
.nav-i:hover { background:var(--panel2); color:var(--text); }
.nav-i.active { background:var(--panel2); color:var(--text); box-shadow:inset 2px 0 0 var(--accent); }
.nav-sep { font-size:11px; color:var(--dim); margin:16px 12px 6px; text-transform:uppercase; letter-spacing:.5px; }
.side-foot { margin-top:auto; }
.credit-card { background:var(--panel2); border:1px solid var(--border); border-radius:11px; padding:12px 14px; margin-bottom:10px; }
.cc-l { font-size:11px; color:var(--muted); } .cc-v { font-size:26px; font-weight:700; color:var(--amber); margin-top:2px; }
.cc-f { font-size:11px; color:var(--muted); margin-top:3px; }
.user-row { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:#b9bdc6; padding:0 4px; }
.btn-ghost { background:transparent; border:1px solid var(--border); color:var(--muted);
  border-radius:7px; padding:5px 10px; cursor:pointer; font-size:12px; }
.btn-ghost:hover { color:var(--text); border-color:#3a4050; }

.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.top { height:52px; flex-shrink:0; border-bottom:1px solid var(--border); display:flex; align-items:center;
  padding:0 22px; gap:14px; font-weight:600; font-size:14px; }
.node-state { margin-left:auto; font-size:12px; color:var(--muted); font-weight:400; }
.content { padding:22px; overflow:auto; }
.view { display:flex; flex-direction:column; gap:16px; }

.panel { background:var(--panel); border:1px solid var(--border); border-radius:13px; padding:18px 20px; }
.panel-h { font-weight:600; font-size:14px; margin-bottom:14px; }
.lab { display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
textarea,input[type=text],input[type=number],input[type=email],input[type=password],select {
  width:100%; background:var(--bg); border:1px solid var(--border); border-radius:9px;
  padding:10px 12px; color:var(--text); font-size:14px; outline:none; }
textarea:focus,input:focus,select:focus { border-color:var(--accent); }
textarea { resize:vertical; line-height:1.6; }
.tips { font-size:12px; color:var(--dim); margin-top:7px; line-height:1.6; }
.grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:16px; }
.row-between { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.cost { font-size:13px; color:var(--muted); } .cost b { color:var(--amber); font-size:16px; }
.btn-primary { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; border:none;
  border-radius:10px; padding:11px 26px; cursor:pointer; font-size:14px; font-weight:600; }
.btn-primary:hover { filter:brightness(1.12); }
.btn-primary:disabled { opacity:.45; cursor:not-allowed; }
.btn-sm { background:var(--panel2); color:var(--text); border:1px solid var(--border);
  border-radius:7px; padding:6px 12px; cursor:pointer; font-size:12px; }
.btn-sm:hover { border-color:var(--accent); }
.btn-warn { background:#3a2a12; color:var(--amber); border:1px solid #6b5218; }

/* ---------- 任务 ---------- */
.tasks { display:flex; flex-direction:column; gap:10px; }
.task { border:1px solid var(--border); border-radius:11px; padding:13px 15px; background:var(--panel2); }
.task-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.task-p { font-size:13.5px; line-height:1.6; margin-bottom:9px; word-break:break-word; }
.tag { font-size:11px; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.t-queued { background:#1f2a3d; color:#7ba7e8; } .t-running { background:#2a2210; color:var(--amber); }
.t-succeeded { background:#14301f; color:var(--green); } .t-failed { background:#311a1a; color:var(--red); }
.t-cancelled { background:#26282e; color:var(--dim); }
.task-m { font-size:11.5px; color:var(--dim); display:flex; gap:14px; flex-wrap:wrap; }
.err-txt { color:var(--red); font-size:12px; margin-top:5px; }

/* ---------- 作品 ---------- */
.works { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.work { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--panel2); }
.work video { width:100%; display:block; background:#000; }
.work-m { padding:9px 12px; font-size:12px; color:var(--muted); }
.work-m a { color:var(--accent); text-decoration:none; float:right; }
.work-m a:hover { text-decoration:underline; }

/* ---------- 套餐 / 表格 ---------- */
.pkgs { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px; }
.pkg { border:1px solid var(--border); border-radius:12px; padding:18px; background:var(--panel2); text-align:center; }
.pkg-n { font-weight:600; margin-bottom:8px; }
.pkg-c { font-size:26px; font-weight:700; color:var(--amber); }
.pkg-p { font-size:13px; color:var(--muted); margin:6px 0 13px; }
.tbl { display:flex; flex-direction:column; gap:7px; font-size:12.5px; }
.tr { display:flex; gap:12px; align-items:center; padding:10px 13px; background:var(--panel2);
  border-radius:9px; flex-wrap:wrap; }
.tr:hover { border:1px solid var(--border); }
.tr-b { flex:1; min-width:70px; } .tr-k { color:var(--dim); font-size:11.5px; }
.tbl-h { font-size:11.5px; color:var(--dim); }
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:12px; }
.st { background:var(--panel2); border-radius:10px; padding:14px; }
.st-v { font-size:22px; font-weight:700; } .st-l { font-size:11.5px; color:var(--muted); margin-top:2px; }

.empty { color:var(--dim); font-size:13px; padding:18px; text-align:center; }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:28px; background:#212530;
  border:1px solid var(--border); color:var(--text); padding:11px 22px; border-radius:10px;
  font-size:13.5px; opacity:0; pointer-events:none; transition:.25s; z-index:99; }
.toast.show { opacity:1; }

@media (max-width:820px) {
  .side { width:190px; } .grid3 { grid-template-columns:1fr; }
}
