/* ============ 设计系统 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e9ecf0;
  --line-strong: #d8dde4;
  --text: #16191d;
  --text-2: #5b6472;
  --text-3: #8f98a5;
  --brand: #07c160;
  --brand-dark: #05a251;
  --brand-soft: #e9f9f0;
  --blue: #2f6fed;
  --blue-soft: #eaf1ff;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #f59e0b;
  --amber-soft: #fef4e5;
  --purple: #7c5cff;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(16,24,40,.05);
  --sh-2: 0 2px 8px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --sh-3: 0 12px 32px rgba(16,24,40,.12);
  --sidebar-w: 232px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a1f; --surface-2: #1c2027;
    --line: #262b33; --line-strong: #343b45;
    --text: #e8eaed; --text-2: #9aa4b2; --text-3: #6b7480;
    --brand-soft: #0d2e1c; --blue-soft: #14213d; --red-soft: #331618; --amber-soft: #332614;
    --sh-2: 0 2px 8px rgba(0,0,0,.3); --sh-3: 0 12px 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a1f; --surface-2: #1c2027;
  --line: #262b33; --line-strong: #343b45;
  --text: #e8eaed; --text-2: #9aa4b2; --text-3: #6b7480;
  --brand-soft: #0d2e1c; --blue-soft: #14213d; --red-soft: #331618; --amber-soft: #332614;
  --sh-2: 0 2px 8px rgba(0,0,0,.3); --sh-3: 0 12px 32px rgba(0,0,0,.5);
}

html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--brand); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(7,193,96,.14), transparent 70%), var(--bg);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px 32px; box-shadow: var(--sh-3);
  animation: rise .4s cubic-bezier(.16,1,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.login-card .logo-mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #0aa8d8); font-size: 24px; margin-bottom: 20px;
}
.login-card h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.login-card p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; margin-bottom: 24px; }
.login-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ============ 布局 ============ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(135deg, var(--brand), #0aa8d8);
}
.brand b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; display: block; }
.brand small { font-size: 11px; color: var(--text-3); letter-spacing: .3px; }

.nav { flex: 1; padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background .12s, color .12s;
}
.nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav a.active svg { opacity: 1; }
.nav .badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px;
}
.nav-sep { height: 1px; background: var(--line); margin: 8px 12px; }

.side-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.conn { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); padding: 3px 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.dot.on { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dot.off { background: var(--red); }

.main { flex: 1; min-width: 0; padding: 26px 30px 96px; max-width: 1240px; }
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s cubic-bezier(.16,1,.3,1); box-shadow: var(--sh-3); }
  .sidebar.open { transform: none; }
  .main { padding: 18px 16px 110px; }
  .mobile-bar { display: flex !important; }
}

.mobile-bar {
  display: none; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; margin: -18px -16px 16px;
}
.scrim { position: fixed; inset: 0; background: rgba(10,14,20,.4); z-index: 39; }

/* ============ 头部 ============ */
.head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.head .t { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.head .s { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.head .spacer { flex: 1; }

/* ============ 卡片 ============ */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.card > h3 {
  font-size: 14px; font-weight: 650; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
  letter-spacing: -.01em;
}
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h3 { padding: 16px 20px 12px; margin: 0; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--sh-1); transition: border-color .15s;
}
.stat:hover { border-color: var(--line-strong); }
.stat .k { font-size: 12px; color: var(--text-2); font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 5px 0 1px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 11.5px; color: var(--text-3); }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  transition: background .12s, border-color .12s, transform .06s, opacity .12s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { filter: brightness(.94); }
.btn.danger { background: transparent; border-color: transparent; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 11px 20px; font-size: 14.5px; width: 100%; }
.btn svg { width: 15px; height: 15px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-bottom: 5px; }
.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); outline: none; font-size: 13.5px;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder { color: var(--text-3); }
textarea.input { resize: vertical; line-height: 1.75; font-family: inherit; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f98a5' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

.switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; transition: .18s; cursor: pointer; }
.switch .sl::before { content: ''; position: absolute; width: 17px; height: 17px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .18s; box-shadow: var(--sh-1); }
.switch input:checked + .sl { background: var(--brand); }
.switch input:checked + .sl::before { transform: translateX(17px); }

/* 复选框 */
.cb { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); flex-shrink: 0; display: grid; place-items: center; transition: .12s; cursor: pointer; }
.cb svg { width: 11px; height: 11px; opacity: 0; stroke: #fff; stroke-width: 3.5; }
.cb.on { background: var(--brand); border-color: var(--brand); }
.cb.on svg { opacity: 1; }
.cb.partial { background: var(--brand); border-color: var(--brand); }
.cb.partial::after { content: ''; width: 8px; height: 2px; background: #fff; border-radius: 1px; position: absolute; }

/* ============ 标签 ============ */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.7;
}
.tag.gray { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag.green { background: var(--brand-soft); color: var(--brand-dark); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: #b45309; }

/* ============ 列表（可选中行）============ */
/* 列表是操作区不是正文：禁用文本选中，否则框选拖动时会连带选中文字 */
.list, .arrange {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
/* 链接仍可正常选中/右键复制 */
.list a { -webkit-user-select: text; user-select: text; }

.list { display: flex; flex-direction: column; }
.li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: background .1s;
  position: relative;
}
.li:last-child { border-bottom: none; }
.li:hover { background: var(--surface-2); }
.li.sel { background: var(--brand-soft); }
.li.sel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.li .body { flex: 1; min-width: 0; }
.li .ttl { font-size: 13.5px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.li .ttl a { text-decoration: none; }
.li .ttl a:hover { color: var(--brand-dark); }
.li .desc { color: var(--text-2); font-size: 12.5px; margin-top: 3px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li .meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.li .thumb { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.li .actions { display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.li:hover .actions, .li.sel .actions { opacity: 1; }
@media (hover: none) { .li .actions { opacity: 1; } }

.list-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; color: var(--text-2); font-weight: 550; position: sticky; top: 0; z-index: 5;
}

/* ============ 框选 ============ */
.marquee {
  position: fixed; z-index: 90; pointer-events: none;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1.5px solid var(--brand); border-radius: 4px;
}
.marquee-on { cursor: crosshair; }
.marquee-on .li { cursor: crosshair; }

/* ============ 拖动排序 ============ */
.drag-handle {
  cursor: grab; color: var(--text-3); flex-shrink: 0; display: grid; place-items: center;
  width: 20px; height: 26px; border-radius: 4px; touch-action: none;
}
.drag-handle:hover { background: var(--surface-2); color: var(--text-2); }
.dragging { cursor: grabbing !important; transform: rotate(.4deg); }
.dragging .drag-handle { cursor: grabbing; }
.sort-placeholder {
  border: 1.5px dashed var(--brand); border-radius: var(--r-sm);
  background: var(--brand-soft); margin-bottom: 6px;
}

/* ============ 选择操作条 ============ */
.selbar {
  position: fixed; bottom: 20px; left: calc(var(--sidebar-w) + 30px); right: 30px; z-index: 50;
  background: var(--text); color: var(--bg); border-radius: var(--r);
  padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--sh-3); animation: slideUp .22s cubic-bezier(.16,1,.3,1); max-width: 1180px; margin: 0 auto;
  flex-wrap: wrap;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 860px) { .selbar { left: 12px; right: 12px; bottom: 12px; } }
.selbar .n { font-size: 13.5px; font-weight: 600; }
.selbar .n b { font-size: 15px; }
.selbar .btn { background: rgba(255,255,255,.13); border-color: transparent; color: var(--bg); }
.selbar .btn:hover { background: rgba(255,255,255,.22); }
.selbar .btn.pri { background: var(--brand); color: #fff; }
.selbar .btn.pri:hover { background: var(--brand-dark); }
:root[data-theme="dark"] .selbar, :root:not([data-theme="light"]) .selbar { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .selbar .btn { color: #fff; } }

/* ============ 编排面板 ============ */
.arrange { display: flex; flex-direction: column; gap: 6px; }
.arr-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .12s;
}
.arr-item.head-item { border-color: var(--brand); background: var(--brand-soft); }
.arr-item .idx {
  width: 46px; flex-shrink: 0; font-size: 11px; font-weight: 700; text-align: center;
  padding: 3px 0; border-radius: 5px; background: var(--surface-2); color: var(--text-2);
}
.arr-item.head-item .idx { background: var(--brand); color: #fff; }
.arr-item .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arr-item .thumb { width: 44px; height: 28px; border-radius: 4px; object-fit: cover; background: var(--surface-2); }

/* ============ 表格 ============ */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--text-2); font-size: 11.5px; font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.num { font-variant-numeric: tabular-nums; }

/* ============ 其他 ============ */
.empty { text-align: center; color: var(--text-3); padding: 44px 20px; font-size: 13.5px; }
.empty .big { font-size: 32px; margin-bottom: 10px; opacity: .5; }
.muted { color: var(--text-2); font-size: 12.5px; }
.hint { color: var(--text-3); font-size: 12px; line-height: 1.75; }

.stream {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px;
  font-size: 14px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  max-height: 460px; overflow-y: auto; min-height: 100px;
}
.think {
  background: color-mix(in srgb, var(--purple) 8%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--purple) 35%, var(--line));
  color: color-mix(in srgb, var(--purple) 75%, var(--text)); border-radius: var(--r-sm);
  padding: 9px 13px; font-size: 12px; line-height: 1.7; max-height: 100px; overflow-y: auto;
  margin-bottom: 10px; white-space: pre-wrap;
}
.caret::after { content: '▌'; animation: blink 1s steps(2) infinite; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }

.termlog {
  background: #0d1117; color: #7ee2a8; border-radius: var(--r-sm); padding: 13px 15px;
  font-size: 12.5px; line-height: 1.85; font-family: ui-monospace, Menlo, monospace;
  max-height: 320px; overflow-y: auto; white-space: pre-wrap;
}
.termlog .e { color: #ff8a8a; }
.termlog .w { color: #ffd479; }

/* 进度条 */
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }

/* 评分环 */
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .v b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ring .v small { font-size: 10.5px; color: var(--text-3); }
.dim { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; font-size: 12.5px; }
.dim .n { width: 66px; color: var(--text-2); flex-shrink: 0; }
.dim .b { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.dim .b i { display: block; height: 100%; border-radius: 99px; }
.dim .s { width: 26px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.reader {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface);
}
.reader .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.reader .q {
  background: var(--surface-2); border-left: 3px solid var(--brand); padding: 8px 11px;
  border-radius: 0 6px 6px 0; font-size: 12.5px; color: var(--text-2); margin: 7px 0; line-height: 1.7;
}
.reader ul { padding-left: 16px; font-size: 12px; color: var(--text-2); line-height: 1.75; }

/* ============ 弹层 ============ */
#modal:not(:empty) {
  position: fixed; inset: 0; background: rgba(10,14,20,.5); backdrop-filter: blur(3px); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px 24px; width: 100%; max-width: 640px;
  max-height: 86vh; overflow-y: auto; box-shadow: var(--sh-3); border: 1px solid var(--line);
  animation: pop .2s cubic-bezier(.16,1,.3,1);
}
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } }
.modal h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 14px; letter-spacing: -.01em; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-size: 13.5px;
  box-shadow: var(--sh-3); animation: slideIn .22s cubic-bezier(.16,1,.3,1); max-width: 340px; font-weight: 500;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } }
.toast.ok { background: var(--brand-dark); color: #fff; }
.toast.err { background: var(--red); color: #fff; }

/* 公众号预览 */
.wx {
  max-width: 400px; margin: 0 auto; background: #fff; color: #1a1a1a;
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; box-shadow: var(--sh-2);
}
.wx .t { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 7px; }
.wx .m { font-size: 12.5px; color: #9aa3ad; margin-bottom: 16px; }
.wx img { max-width: 100%; }

/* 骨架屏 */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.tabs { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; width: fit-content; margin-bottom: 16px; }
.tabs button { padding: 6px 15px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--text-2); transition: .12s; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

.chart canvas { width: 100%; height: 200px; display: block; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-2); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
