:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --ink: #1a1d26;
  --ink-2: #6b7280;
  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --primary-dark: #4338ca;
  --line: #e8eaf0;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover: 0 4px 12px rgba(79,70,229,.1);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "Segoe UI", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 32px; }

.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand-logo {
  width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,var(--primary),#7c3aed);
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;
  box-shadow: 0 4px 12px rgba(79,70,229,.3);
}
.brand-name { font-weight:600; font-size:16px; }
.brand-sub { font-size:12px; color:var(--ink-2); }
.status-pill {
  background: #d1fae5; color: #065f46; padding:6px 14px; border-radius:999px;
  font-size:12px; font-weight:500;
}
.lang-switch {
  background:#fff; border:1px solid var(--line); padding:6px 12px; border-radius:8px;
  cursor:pointer; font-size:13px; color:var(--ink-2); margin-left:8px;
}
.lang-switch:hover { background: var(--primary-light); color: var(--primary); }

.tabs { display:flex; gap:4px; margin-bottom:20px; background:#fff; padding:6px; border-radius:12px; box-shadow:var(--shadow); width:fit-content; }
.tab {
  padding:8px 16px; border-radius:8px; cursor:pointer;
  background: transparent; color: var(--ink-2); border:none; font-size:13px; text-decoration:none;
  transition: all .15s;
}
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.active { background: var(--primary); color:#fff; }

.subtabs { display:flex; gap:6px; margin-bottom:20px; flex-wrap:wrap; }
.subtab {
  padding:6px 14px; border-radius:6px; cursor:pointer;
  background: transparent; color: var(--ink-2); text-decoration:none; font-size:13px;
}
.subtab.active { background: var(--primary-light); color: var(--primary); font-weight:500; }

.hero {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color:#fff; border-radius:16px; padding:28px 32px; margin-bottom:20px;
  display:flex; justify-content:space-between; align-items:center;
  box-shadow: 0 8px 24px rgba(79,70,229,.2);
}
.hero h1 { margin:0 0 8px; font-size:22px; font-weight:600; }
.hero p { margin:0; color:rgba(255,255,255,.85); max-width:560px; line-height:1.6; font-size:13px; }
.hero-nums { display:flex; gap:24px; }
.hero-num { text-align:right; }
.hero-num .n { font-size:28px; font-weight:700; }
.hero-num .l { font-size:11px; color:rgba(255,255,255,.7); }

.grid2 { display:grid; grid-template-columns: 1.6fr 1fr; gap:20px; }
.card {
  background: var(--card); border-radius:14px; padding:22px; border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-hover); transition: box-shadow .2s; }
.card h3 { margin:0 0 6px; font-size:16px; font-weight:600; }
.card .sub { color: var(--ink-2); font-size:13px; margin-bottom:16px; }

.stat-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.stat {
  background: var(--primary-light); border-radius:10px; padding:14px;
}
.stat .n { font-size:22px; font-weight:700; color: var(--primary); }
.stat .l { font-size:12px; color: var(--ink-2); margin-top:4px; }

.step {
  display:flex; align-items:center; gap:14px; padding:14px;
  background: #fafbff; border:1px solid var(--line); border-radius:10px; margin-bottom:10px;
}
.step .num {
  width:28px;height:28px;border-radius:50%;background:var(--primary-light);
  display:flex;align-items:center;justify-content:center;
  font-weight:600; color:var(--primary); flex-shrink:0;
}
.step .body { flex:1; }
.step .t { font-weight:600; }
.step .d { font-size:12px; color:var(--ink-2); margin-top:2px; }
.step button {
  background:#fff; border:1px solid var(--line); padding:6px 14px;
  border-radius:6px; cursor:pointer; color:var(--ink);
}

.btn {
  background: var(--primary); color:#fff; border:none; padding:9px 18px;
  border-radius:8px; cursor:pointer; font-size:14px; font-weight:500;
  transition: all .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
.btn.secondary:hover { background: var(--bg); }
.btn.small { padding:5px 10px; font-size:12px; }

table { width:100%; border-collapse: collapse; }
th, td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); font-size:13px; }
th { color: var(--ink-2); font-weight:500; font-size:12px; }
tr:hover { background: #fafbff; }

.badge { padding:3px 10px; border-radius:999px; font-size:11px; font-weight:500; }
.badge.idle { background:#d1fae5; color:#065f46; }
.badge.busy { background:#fef3c7; color:#92400e; }
.badge.cooldown { background:#fee2e2; color:#991b1b; }
.badge.logged_out { background:#f3f4f6; color:#6b7280; }
.badge.queued { background:#dbeafe; color:#1e40af; }
.badge.running { background:#fef3c7; color:#92400e; }
.badge.done { background:#d1fae5; color:#065f46; }
.badge.failed { background:#fee2e2; color:#991b1b; }
.badge.doubao { background:#e0e7ff; color:#4338ca; }
.badge.jimeng { background:#fef3c7; color:#92400e; }
.badge.tiktok_shop { background:#fce7f3; color:#9d174d; }

input, textarea, select {
  width:100%; padding:9px 12px; border:1px solid var(--line); border-radius:8px;
  font-size:13px; font-family: inherit; background:#fff;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus { outline:none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
textarea { min-height:80px; resize: vertical; }
label { font-size:12px; color:var(--ink-2); display:block; margin:8px 0 4px; font-weight:500; }

.row { display:flex; gap:10px; }
.row > * { flex:1; }

.trend-bar {
  display:flex; align-items:flex-end; gap:4px; height:60px; margin-top:10px;
}
.trend-bar .bar {
  flex:1; background: var(--primary-light); border-radius:3px 3px 0 0; min-height:4px;
  transition: background .15s;
}
.trend-bar .bar:hover { background: var(--primary); }


/* cangshan-theme */
:root{
  --bg:#f7f3ea;
  --card:#fffdf9;
  --ink:#2f2a24;
  --ink-2:#6f6558;
  --primary:#8a6f4e;
  --primary-light:#efe7da;
  --primary-dark:#6d5640;
  --line:#e6ddd0;
  --shadow:0 1px 3px rgba(80,60,40,.05), 0 4px 16px rgba(80,60,40,.05);
  --shadow-hover:0 4px 12px rgba(138,111,78,.14);
}
.hero{background:linear-gradient(135deg,#8a6f4e,#6a5340);box-shadow:0 8px 24px rgba(138,111,78,.22);}
.brand-logo{background:linear-gradient(135deg,#8a6f4e,#6a5340)!important;}
.badge.doubao{background:#efe7da;color:#6d5640;}
