 /* 步跃 Step系统 - 主站统一样式（用户端 + 管理后台，多页面复用） */

:root {
  --bg: #f2f5fb;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --field-bg: #ffffff;
  --line: rgba(30, 41, 59, .09);
  --line-strong: rgba(30, 41, 59, .16);
  --txt: #0f172a;
  --txt-2: #475569;
  --muted: #7b8aa3;
  --accent: #635bff;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(99, 91, 255, .1);
  --ok: #0ea472;
  --warn: #d97706;
  --bad: #e11d48;
  --shadow: 0 18px 44px rgba(15, 23, 42, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-w: 250px;
  --nav-mini: 78px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

.scope-admin {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --panel: rgba(20, 30, 50, .78);
  --panel-solid: #131d33;
  --field-bg: rgba(8, 13, 24, .55);
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .28);
  --txt: #e8eefb;
  --txt-2: #aebbd0;
  --muted: #7d8ca6;
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 108, 255, .16);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --shadow: 0 20px 50px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--txt);
  background: var(--bg); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px; z-index: 99; }
.skip-link:focus { left: 8px; }

.bg-aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-aura::before, .bg-aura::after {
  content: ""; position: absolute; width: 56vw; height: 56vw; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.bg-aura::before { background: radial-gradient(circle, rgba(99, 91, 255, .32), transparent 65%); top: -22vw; left: -12vw; }
.bg-aura::after { background: radial-gradient(circle, rgba(14, 165, 233, .28), transparent 65%); bottom: -26vw; right: -14vw; }
.scope-admin .bg-aura::before { background: radial-gradient(circle, rgba(124, 108, 255, .3), transparent 65%); }
.scope-admin .bg-aura::after { background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 65%); }

/* ---------------- 导航 ---------------- */
.app-nav {
  display: flex; gap: 8px; background: var(--panel); backdrop-filter: blur(18px);
  border: 1px solid var(--line); z-index: 50;
}
.nav-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; flex: 1; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px rgba(99, 91, 255, .35);
}
.brand-mark .ico { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b, .brand-text em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text b { font-size: 15px; letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }
.nav-toggle {
  display: none; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: rgba(127, 127, 127, .08);
  color: var(--txt-2); transition: .18s;
}
.nav-toggle .ico { width: 16px; height: 16px; transition: transform .24s ease; }
.nav-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.nav-fab, .nav-scrim { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px;
  color: var(--txt-2); font-size: 13.5px; transition: .18s; white-space: nowrap;
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: var(--accent-soft); color: var(--txt); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 91, 255, .16), rgba(14, 165, 233, .12));
  color: var(--txt); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(99, 91, 255, .28);
}
.nav-item.nav-admin, .nav-item.nav-back { margin-top: 6px; border-top: 1px dashed var(--line); border-radius: 0 0 11px 11px; }
.nav-item.nav-admin { color: var(--accent); }
.nav-extra { display: flex; flex-direction: column; gap: 10px; }
.nav-mode { display: flex; gap: 3px; padding: 3px; background: rgba(127, 127, 127, .1); border-radius: 10px; }
.mode-btn {
  flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 11.5px;
  padding: 5px 4px; border-radius: 7px; cursor: pointer; transition: .15s;
}
.mode-btn.on { background: var(--panel-solid); color: var(--accent); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.nav-user { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 12px; background: rgba(127, 127, 127, .08); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: 0 0 auto;
}
.nav-user-txt { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; flex: 1; }
.nav-user-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-txt em { font-style: normal; font-size: 11px; color: var(--muted); }
.nav-logout { color: var(--muted); padding: 4px; border-radius: 8px; }
.nav-logout:hover { color: var(--bad); background: rgba(225, 29, 72, .08); }
.nav-logout .ico { width: 17px; height: 17px; }
.nav-logout.nav-switch {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--accent);
  background: rgba(124, 108, 255, .12); border: 1px solid rgba(124, 108, 255, .28);
}
.nav-logout.nav-switch:hover { color: var(--accent); background: rgba(124, 108, 255, .2); }
.nav-logout.nav-switch .ico { width: 15px; height: 15px; }
@media (max-width: 520px) {
  body.nav-bottom .nav-logout.nav-switch { padding: 4px 8px; font-size: 11.5px; }
}

/* 侧边模式 */
body.nav-side .app-nav {
  position: fixed; left: 0; top: 0; width: var(--nav-w); height: 100vh; padding: 16px 12px;
  flex-direction: column; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  transition: width .24s ease, padding .24s ease, transform .26s ease;
}
body.nav-side .nav-toggle { display: grid; }
body.nav-side .nav-links { flex-direction: column; margin-top: 16px; flex: 1; overflow-y: auto; gap: 3px; }
body.nav-side .nav-item { width: 100%; }
body.nav-side .nav-extra { margin-top: auto; }
body.nav-side .page-main { margin-left: var(--nav-w); transition: margin-left .24s ease; }

/* 侧边栏收起：仅显示图标，悬停显示名称 */
@media (min-width: 861px) {
  body.nav-side.nav-mini .app-nav { width: var(--nav-mini); padding: 16px 8px; }
  body.nav-side.nav-mini .page-main { margin-left: var(--nav-mini); }
  body.nav-side.nav-mini .nav-head { flex-direction: column; gap: 10px; }
  body.nav-side.nav-mini .brand { justify-content: center; padding: 0; flex: 0 0 auto; }
  body.nav-side.nav-mini .brand-text { display: none; }
  body.nav-side.nav-mini .nav-item { justify-content: center; padding: 10px 0; }
  body.nav-side.nav-mini .nav-item span { display: none; }
  body.nav-side.nav-mini .nav-item .ico { width: 20px; height: 20px; opacity: .95; }
  body.nav-side.nav-mini .nav-item.nav-admin,
  body.nav-side.nav-mini .nav-item.nav-back { border-radius: 11px; border-top: 0; margin-top: 3px; }
  body.nav-side.nav-mini .nav-mode { display: none; }
  body.nav-side.nav-mini .nav-user { justify-content: center; padding: 0; background: transparent; }
  body.nav-side.nav-mini .nav-user-txt,
  body.nav-side.nav-mini .nav-logout { display: none; }
  body.nav-side.nav-mini .nav-toggle .ico { transform: rotate(180deg); }
}

/* 顶部模式 */
body.nav-top .app-nav {
  position: sticky; top: 0; padding: 10px 22px; align-items: center; gap: 18px;
  border-left: 0; border-right: 0; border-top: 0; border-radius: 0;
}
body.nav-top .nav-head { flex: 0 0 auto; }
body.nav-top .nav-links { flex: 1; overflow-x: auto; padding-bottom: 2px; }
body.nav-top .nav-extra { flex-direction: row; align-items: center; gap: 12px; margin-left: auto; }
body.nav-top .nav-mode { order: 2; }
body.nav-top .nav-user { order: 3; }
body.nav-top .nav-links::-webkit-scrollbar { height: 0; }

/* 底部悬浮模式 */
body.nav-bottom .app-nav {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100vw - 24px);
  align-items: center; overflow: hidden;
}
body.nav-bottom .brand-text, body.nav-bottom .nav-user-txt, body.nav-bottom .avatar { display: none; }
body.nav-bottom .nav-head { flex: 0 0 auto; }
body.nav-bottom .nav-extra { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-left: 6px; flex-shrink: 0; }
body.nav-bottom .nav-mode { flex-shrink: 0; }
body.nav-bottom .nav-user { padding: 0; background: transparent; }
body.nav-bottom .mode-btn { padding: 5px 6px; }
body.nav-bottom .brand { padding: 2px 4px; }
body.nav-bottom .brand-mark { width: 32px; height: 32px; }
body.nav-bottom .nav-links { overflow-x: auto; min-width: 0; }
body.nav-bottom .nav-item { padding: 8px 11px; }
body.nav-bottom .page-main { padding-bottom: 110px; }

/* ---------------- 页面主体 ---------------- */
.page-main { max-width: none; width: 100%; margin: 0; padding: 24px 22px 40px; }
body.nav-side .page-main { width: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 22px; letter-spacing: .2px; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-body { display: flex; flex-direction: column; gap: 16px; }
.page-foot {
  display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap;
  color: var(--muted); font-size: 12px; margin-top: 28px; opacity: .8;
}
.foot-sep { opacity: .4; }

/* ---------------- 卡片与统计 ---------------- */
.card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); padding: 20px; min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head > * { min-width: 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card-head .dot-accent { width: 7px; height: 7px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.card-head .sub { font-size: 12px; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi-grid.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid.kpi-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card {
  position: relative; padding: 16px 18px; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-soft), var(--panel));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 91, 255, .18), transparent 70%);
}
.stat-card.ok::after { background: radial-gradient(circle, rgba(14, 164, 114, .2), transparent 70%); }
.stat-card.warn::after { background: radial-gradient(circle, rgba(217, 119, 6, .2), transparent 70%); }
.stat-card.bad::after { background: radial-gradient(circle, rgba(225, 29, 72, .2), transparent 70%); }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { display: block; font-size: 26px; font-weight: 700; letter-spacing: .3px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.stat-hint { font-size: 12px; color: var(--muted); }

/* 布局网格 */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-2.fill { align-items: stretch; }
.card.fill { display: flex; flex-direction: column; height: 100%; }
.mt-auto { margin-top: auto; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.notice-grid .notice-box { margin: 0; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 > *, .grid-equal > *, .page-body > *, .stack > * { min-width: 0; }

/* 额度进度条 */
.quota-track { height: 9px; border-radius: 99px; background: rgba(127, 127, 127, .18); margin-top: 6px; overflow: hidden; }
.quota-fill { height: 100%; min-width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .45s ease; }
.quota-fill.on { min-width: 3px; }

/* ---------------- 表单与按钮 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field .help { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea, .field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--field-bg); outline: none; transition: .18s; font-size: 14px;
}
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.toolbar .field.grow { grid-column: span 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  font-size: 13.5px; font-weight: 600; transition: .18s; white-space: nowrap;
  background: var(--panel-solid); color: var(--txt);
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), #4f46e5 60%, var(--accent-2));
  box-shadow: 0 12px 26px rgba(79, 70, 229, .3);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(79, 70, 229, .38); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--txt-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(225, 29, 72, .1); color: var(--bad); border-color: rgba(225, 29, 72, .25); }
.btn-ok { background: rgba(14, 164, 114, .12); color: var(--ok); border-color: rgba(14, 164, 114, .25); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* 切换 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 23px; border-radius: 99px; background: rgba(127, 127, 127, .3); transition: .2s; position: relative; flex: 0 0 auto; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.switch input:checked + .track { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked + .track::after { left: 22px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid var(--line); min-width: 0; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 11px 12px; font-weight: 600; color: var(--muted); font-size: 12.5px;
  background: rgba(127, 127, 127, .07); white-space: nowrap;
}
tbody td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(127, 127, 127, .05); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.ok { background: rgba(14, 164, 114, .12); color: var(--ok); }
.badge.warn { background: rgba(217, 119, 6, .13); color: var(--warn); }
.badge.bad { background: rgba(225, 29, 72, .12); color: var(--bad); }
.badge.muted { background: rgba(127, 127, 127, .14); color: var(--muted); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
/* 今日已执行 / 已完成：描边样式，与「已启用」区分 */
.badge.done { background: transparent; border: 1px solid var(--ok); color: var(--ok); }
.badge[hidden] { display: none !important; }

.empty-block { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty-block .ico { width: 36px; height: 36px; margin: 0 auto 10px; opacity: .5; }
.empty-block p { margin: 0; font-size: 13px; }

.pager { display: flex; gap: 5px; justify-content: flex-end; align-items: center; padding: 12px 2px 0; flex-wrap: wrap; }
.pager-btn { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; color: var(--txt-2); }
.pager-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-dot { color: var(--muted); padding: 0 3px; }

/* ---------------- 提示与弹层 ---------------- */
.toast-wrap {
  position: fixed; top: 18px; top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%; transform: translateX(-50%); z-index: 999;
  display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none;
}
body.nav-top .toast-wrap { top: 74px; top: calc(env(safe-area-inset-top, 0px) + 74px); }
.toast {
  display: flex; gap: 9px; align-items: flex-start; padding: 12px 10px 12px 15px; border-radius: 12px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 13px; animation: toastIn .3s ease; pointer-events: auto;
}
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; max-height: 32vh; overflow-y: auto; }
.toast-close {
  flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 7px; transition: .16s;
}
.toast-close:hover { background: rgba(127, 127, 127, .14); color: var(--txt); }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--bad); }
.toast.warn { border-left: 3px solid var(--warn); }
.toast.info { border-left: 3px solid var(--accent); }
.toast.toast-bump { animation: toastBump .3s ease; }
@keyframes toastBump { 0% { transform: scale(1); } 45% { transform: scale(1.018); } 100% { transform: scale(1); } }
@media (max-width: 860px) {
  .toast-wrap { top: 66px; top: calc(env(safe-area-inset-top, 0px) + 66px); width: min(90vw, 380px); }
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.modal {
  position: fixed; inset: 0; z-index: 900; display: none; align-items: center; justify-content: center;
  background: rgba(4, 8, 18, .55); backdrop-filter: blur(4px); padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: min(620px, 100%); max-height: 84vh; overflow: auto; background: var(--panel-solid);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); padding: 22px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px; }
.modal-close:hover { background: rgba(127, 127, 127, .12); }

.license-banner {
  display: flex; gap: 10px; align-items: center; padding: 12px 15px; border-radius: 13px;
  background: rgba(217, 119, 6, .1); border: 1px solid rgba(217, 119, 6, .28); color: var(--warn); font-size: 13px; margin-bottom: 16px;
}
.license-banner .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--warn); animation: pulse 1.6s infinite; }
.license-banner a { color: inherit; text-decoration: underline; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------------- 业务组件 ---------------- */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.segmented.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg-card {
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer;
  background: var(--panel-solid); transition: .18s; position: relative; min-width: 0;
}
.seg-card input { position: absolute; opacity: 0; }
.seg-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg-card b { display: block; font-size: 14px; }
.seg-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.seg-card .tag { position: absolute; right: 12px; top: 12px; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.result-panel { display: none; margin-top: 16px; }
.result-panel.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 10px; }
.result-ok { color: var(--ok); font-weight: 700; }
.result-bad { color: var(--bad); font-weight: 700; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.kv { background: rgba(127, 127, 127, .07); border-radius: 11px; padding: 9px 12px; }
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { font-size: 14px; word-break: break-all; }
.kv b span, .kv b em, .kv b i { display: inline; font-size: inherit; color: inherit; font-style: normal; }
.code-block {
  background: rgba(6, 11, 22, .82); color: #cbd5e1; border-radius: 12px; padding: 14px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-all;
}

.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); min-height: 4px; transition: height .5s ease; }
.chart-col .lbl { font-size: 11px; color: var(--muted); }
.chart-col .val { font-size: 11px; color: var(--txt-2); font-variant-numeric: tabular-nums; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-main b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-main span { font-size: 11.5px; color: var(--muted); }

.hero-steps {
  display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 91, 255, .12), rgba(14, 165, 233, .1)); border: 1px solid var(--line);
}
.hero-steps-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-label { font-size: 12.5px; color: var(--muted); }
.hero-value { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.hero-meta b { color: var(--txt); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-steps-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.hero-member { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hero-member-exp { font-size: 12px; color: var(--muted); }
.hero-member-exp b { color: var(--txt); font-weight: 600; }
.hero-limit { align-self: stretch; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted); }
.hero-limit b { color: var(--txt); }
@media (max-width: 640px) {
  .hero-steps { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
  .hero-value { font-size: 34px; }
  .hero-steps-side { align-items: stretch; text-align: left; }
  .hero-member { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .hero-limit { padding-top: 8px; }
  .chart-bars { gap: 6px; }
  .chart-col .lbl, .chart-col .val { font-size: 10.5px; }
  .list-row { align-items: flex-start; }
  .list-main b { white-space: normal; overflow-wrap: anywhere; }
}

.copy-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-bar .input { font-family: ui-monospace, monospace; font-size: 12px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.login-card { width: min(420px, 100%); padding: 30px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-card .brand { justify-content: center; margin-bottom: 18px; }
.login-card h1 { text-align: center; font-size: 20px; margin: 0 0 4px; }
.login-card p.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-card form { display: flex; flex-direction: column; gap: 13px; }
.login-card .btn { margin-top: 6px; padding: 12px; }
.login-alt { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.login-alt a { color: var(--accent); }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: 11.5px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-guest { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); background: linear-gradient(135deg, rgba(99, 91, 255, .12), rgba(14, 165, 233, .09)); transition: .18s; }
.login-guest:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 26px -20px var(--accent); }
.login-guest-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 108, 255, .18); color: var(--accent); }
.login-guest-ico .ico { width: 19px; height: 19px; }
.login-guest-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.login-guest-txt b { font-size: 13.5px; color: var(--txt); }
.login-guest-txt em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.login-guest-arrow { margin-left: auto; color: var(--muted); transition: .18s; }
.login-guest-arrow .ico { width: 16px; height: 16px; transform: rotate(180deg); }
.login-guest:hover .login-guest-arrow { color: var(--accent); transform: translateX(3px); }
.login-copy { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 12px; opacity: .85; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quick-action { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-solid); transition: .18s; }
.quick-action:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-action .ico { width: 22px; height: 22px; color: var(--accent); }
.quick-action b { font-size: 13px; }
.quick-action span { font-size: 11.5px; color: var(--muted); }

.notice-box { padding: 12px 15px; border-radius: 12px; background: rgba(14, 165, 233, .08); border: 1px solid rgba(14, 165, 233, .2); color: var(--txt-2); font-size: 13px; }

/* 紧凑提示列表（授权须知等） */
.tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tip-list li { position: relative; padding-left: 15px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.tip-list li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px; border-radius: 99px; background: var(--accent); opacity: .7; }
.tip-list li b { color: var(--txt); font-weight: 600; }

/* AI 对话 */
.chat-card { display: flex; flex-direction: column; }
.chat-log {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; min-height: 320px; max-height: 480px;
  overflow-y: auto; border-radius: 14px; background: rgba(127, 127, 127, .06); border: 1px solid var(--line);
}
.chat-msg { display: flex; gap: 9px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.chat-msg.user .chat-avatar { background: linear-gradient(135deg, #0ea472, #0ea5e9); }
.chat-bubble {
  max-width: 78%; padding: 10px 13px; border-radius: 12px 12px 12px 4px; font-size: 13px; line-height: 1.7;
  background: var(--panel-solid); border: 1px solid var(--line); word-break: break-word;
}
.chat-msg.user .chat-bubble { border-radius: 12px 12px 4px 12px; background: var(--accent-soft); border-color: rgba(99, 91, 255, .28); }
.chat-quick { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.chat-inputrow { display: flex; gap: 10px; align-items: flex-end; }
.chat-inputrow .input { flex: 1; min-height: 48px; max-height: 140px; resize: vertical; }


/* 响应式 */
@media (max-width: 980px) {
  .grid-2, .grid-equal, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .notice-grid { grid-template-columns: minmax(0, 1fr); }
  .segmented.seg-3 { grid-template-columns: minmax(0, 1fr); }
  .toolbar .field.grow { grid-column: auto; }
}
@media (max-width: 860px) {
  /* 侧边模式：改为抽屉式导航，展开后显示图标 + 文字 */
  body.nav-side .app-nav {
    position: fixed; left: 0; top: 0; right: auto; bottom: auto;
    width: min(80vw, 300px); height: 100vh; flex-direction: column;
    padding: 16px 14px; border: 0; border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0; box-shadow: var(--shadow); z-index: 60;
    transform: translateX(-102%); transition: transform .26s ease;
  }
  body.nav-side.nav-open .app-nav { transform: none; }
  body.nav-side.nav-open { overflow: hidden; }
  body.nav-side .nav-head { flex-direction: row; }
  body.nav-side .brand { justify-content: flex-start; padding: 6px 8px; }
  body.nav-side .brand-text { display: flex; }
  body.nav-side .nav-toggle .ico { transform: rotate(0deg); }
  body.nav-side .nav-links { flex-direction: column; margin-top: 10px; flex: 1; overflow-y: auto; gap: 3px; }
  body.nav-side .nav-item { width: 100%; justify-content: flex-start; padding: 10px 12px; }
  body.nav-side .nav-item span { display: inline; }
  body.nav-side .nav-item .ico { width: 19px; height: 19px; }
  body.nav-side .nav-extra { margin-top: auto; flex-direction: column; gap: 10px; }
  body.nav-side .nav-mode { display: flex; flex-direction: row; gap: 3px; padding: 3px; }
  body.nav-side .mode-btn { padding: 6px 4px; font-size: 11.5px; }
  body.nav-side .nav-user { padding: 9px 8px; background: rgba(127, 127, 127, .08); justify-content: flex-start; }
  body.nav-side .nav-user-txt { display: flex; }
  body.nav-side .nav-logout { display: inline-flex; }
  body.nav-side .page-main { margin-left: 0; padding-top: 68px; padding-bottom: 24px; }
  body.nav-side .nav-fab {
    display: grid; position: fixed; left: 12px; top: 12px; z-index: 55;
    width: 44px; height: 44px; place-items: center; cursor: pointer;
    border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
    backdrop-filter: blur(14px); box-shadow: var(--shadow); color: var(--txt);
    transition: opacity .18s ease;
  }
  body.nav-side .nav-fab .ico { width: 20px; height: 20px; }
  body.nav-side.nav-open .nav-fab { opacity: 0; pointer-events: none; }
  body.nav-side .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 59;
    background: rgba(9, 14, 26, .45); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  body.nav-side.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

  /* 顶部模式：磁吸吸顶，横向滚动 */
  body.nav-top .app-nav {
    position: sticky; top: 0; left: auto; right: auto; bottom: auto; width: auto; height: auto;
    flex-direction: row; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    transform: none; align-items: center; gap: 8px;
  }
  body.nav-top .brand, body.nav-top .nav-user-txt { display: none; }
  body.nav-top .nav-links { flex-direction: row; margin: 0; flex: 1; overflow-x: auto; }
  body.nav-top .nav-item { padding: 8px 9px; }
  body.nav-top .nav-item span { display: none; }
  body.nav-top .nav-item .ico { width: 20px; height: 20px; }
  body.nav-top .nav-extra { flex-direction: row; gap: 6px; margin-left: auto; flex-shrink: 0; }
  body.nav-top .nav-mode { display: flex; padding: 2px; gap: 1px; }
  body.nav-top .mode-btn { padding: 4px 5px; font-size: 10px; }
  body.nav-top .page-main { margin-left: 0; padding-bottom: 24px; }

  body.nav-bottom .page-main { padding-bottom: 96px; }
  body.nav-bottom .app-nav { bottom: 10px; padding: 6px 8px; }
  body.nav-bottom .brand { display: none; }
  body.nav-bottom .nav-mode { padding: 2px; gap: 1px; }
  body.nav-bottom .mode-btn { padding: 4px 5px; font-size: 10.5px; }
  body.nav-bottom .nav-item span { display: none; }
  body.nav-bottom .nav-item .ico { width: 20px; height: 20px; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .segmented { grid-template-columns: minmax(0, 1fr); }
  .segmented.seg-3 { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none !important; }

  /* 窄屏表格改为自动换行的行卡片，避免横向滑动被裁切 */
  .table-mobile thead { display: none; }
  .table-mobile table, .table-mobile tbody { display: block; width: 100%; }
  .table-mobile tbody tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 10px 4px; border-top: 1px solid var(--line);
  }
  .table-mobile tbody tr:first-child { border-top: 0; }
  .table-mobile tbody td {
    display: inline-flex; align-items: center; padding: 0; border: 0;
    max-width: 100%; word-break: break-word; overflow-wrap: anywhere;
  }
  .table-mobile tbody td.ml-auto { margin-left: auto; }
  .table-mobile .cell-wide { flex: 1 1 100%; }

  /* 手机端通用自适应：内容留白、表单、弹层、对话 */
  .page-main { padding-left: 16px; padding-right: 16px; }
  .card-head { align-items: flex-start; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding: 12px; }
  .modal-card { width: 100%; max-height: 90vh; padding: 18px; border-radius: 16px; }
  .chat-inputrow { flex-direction: column; align-items: stretch; }
  .pager { justify-content: center; }
  .copy-bar .input { flex: 1 1 100%; }
  .kpi-grid.kpi-3 { grid-template-columns: 1fr 1fr; }
  .notice-box, .license-banner { word-break: break-word; }
}
@media (max-width: 520px) {
  .page-main { padding: 18px 14px 34px; }
  .page-title h1 { font-size: 19px; }
  .stat-value { font-size: 23px; }
  .card { padding: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid.kpi-3, .kpi-grid.kpi-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { font-size: 12px; }
  .table-mobile tbody tr { padding: 9px 2px; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .login-shell { padding: 22px 12px; }
  .login-card { padding: 24px 18px; border-radius: 18px; }
  .stat-card { padding: 14px; }
  .chat-bubble { max-width: 88%; }
  .modal-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ================= 步数提交页（steps.php） ================= */
.steps-page .page-body > * { animation: fadeUp .45s ease both; }
.steps-page .page-body > *:nth-child(2) { animation-delay: .05s; }
.steps-page .page-body > *:nth-child(3) { animation-delay: .1s; }
.steps-page .page-body > *:nth-child(4) { animation-delay: .15s; }
.steps-page .page-body > *:nth-child(5) { animation-delay: .2s; }

/* 主控卡片 */
.steps-hero {
  position: relative; overflow: hidden; padding: 22px;
  transition: box-shadow .4s ease, border-color .4s ease;
}
.steps-hero::before,
.steps-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.steps-hero::before {
  top: -170px; right: -90px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 91, 255, .2), transparent 68%);
}
.steps-hero::after {
  bottom: -190px; left: -70px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 70%);
}
.steps-hero.is-success {
  border-color: rgba(14, 164, 114, .4);
  box-shadow: 0 0 0 1px rgba(14, 164, 114, .25), 0 26px 60px -34px rgba(14, 164, 114, .75);
}
.steps-hero-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.steps-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.steps-today { font-size: 12px; color: var(--muted); }
.steps-today b { color: var(--txt); font-variant-numeric: tabular-nums; }
.steps-columns {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 26px; align-items: center;
}

/* 左侧当前步数 */
.steps-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.steps-current { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; padding: 12px 0 4px; text-align: center; }
.cur-label { font-size: 12.5px; color: var(--muted); letter-spacing: .6px; }
.cur-num {
  font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.12;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cur-track { width: min(250px, 82%); height: 6px; border-radius: 99px; background: rgba(127, 127, 127, .16); overflow: hidden; margin-top: 4px; }
.cur-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .85s cubic-bezier(.22, .61, .36, 1); }
.cur-sub { font-size: 11.5px; color: var(--muted); }
.cur-sub em { font-style: normal; font-weight: 600; color: var(--accent); }
.steps-hero.is-success .cur-num { animation: stepPop .7s ease; }
@keyframes stepPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  70% { transform: scale(.985); }
  100% { transform: scale(1); }
}
.steps-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.steps-mini > div {
  padding: 9px 12px; border-radius: 12px; min-width: 0;
  background: rgba(127, 127, 127, .07); border: 1px solid var(--line);
}
.steps-mini span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-mini b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-mini b i { font-style: normal; font-weight: inherit; }

/* 右侧表单 */
.steps-control { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.steps-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.steps-pass { position: relative; }
.steps-pass .input { padding-right: 58px; }
.steps-pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer;
  padding: 5px 9px; border-radius: 8px; transition: .16s;
}
.steps-pass-eye:hover { color: var(--accent); background: var(--accent-soft); }
.steps-remember { margin-top: 2px; font-size: 12px; color: var(--muted); }
.steps-target-input { position: relative; }
.steps-target-input .input {
  font-size: 24px; font-weight: 700; letter-spacing: .4px; padding: 11px 48px 11px 16px;
  font-variant-numeric: tabular-nums;
}
.steps-target-input .unit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--muted); pointer-events: none;
}
.steps-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -6px; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--txt-2); font-size: 12px; cursor: pointer;
  transition: .16s; font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.steps-jitter { display: flex; flex-direction: column; gap: 8px; }
.steps-jitter-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.mini-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--txt-2); font-size: 12px; cursor: pointer; transition: .18s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px -10px var(--accent);
}

/* 账号快捷切换 */
.quick-acc { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 2px; scrollbar-width: none; }
.quick-acc::-webkit-scrollbar { height: 0; }
.quick-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; cursor: pointer;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel-solid);
  font-size: 12.5px; transition: .18s; max-width: 190px;
}
.quick-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 20px -16px var(--accent); }
.qc-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.qc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 提交按钮 */
.steps-submit {
  position: relative; overflow: hidden; width: 100%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 18px; border-radius: 14px; color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--accent), #4f46e5 55%, var(--accent-2));
  background-size: 180% 180%;
  box-shadow: 0 16px 34px -16px rgba(79, 70, 229, .85);
  transition: transform .18s ease, box-shadow .18s ease, background-position .6s ease;
}
.steps-submit:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 22px 40px -18px rgba(79, 70, 229, .95); }
.steps-submit:active { transform: translateY(0); }
.steps-submit .ico { width: 19px; height: 19px; }
.steps-submit-shine {
  position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); animation: stepShine 3.8s ease-in-out infinite;
}
@keyframes stepShine { 0%, 55% { left: -60%; } 100% { left: 135%; } }
.steps-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: stepSpin .7s linear infinite; }
@keyframes stepSpin { to { transform: rotate(360deg); } }
.steps-submit.is-loading { cursor: progress; }
.steps-submit.is-loading .steps-spinner { display: block; }
.steps-submit.is-loading .steps-submit-shine { display: none; }
.steps-submit[disabled] { opacity: .88; transform: none; }

/* 成功粒子 */
.steps-burst { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.steps-burst i {
  position: absolute; left: 50%; top: 42%; width: 7px; height: 7px; border-radius: 2px;
  opacity: 0; animation: stepBurst .9s ease-out forwards;
}
@keyframes stepBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(240deg); }
}

/* 结果面板 */
.steps-page .result-panel { margin-top: 18px; position: relative; z-index: 2; }
.steps-page .result-card {
  padding: 16px; border-radius: 14px;
  background: rgba(127, 127, 127, .06); border: 1px dashed var(--line-strong);
}
.steps-page .result-panel.show .result-card { animation: fadeUp .35s ease both; }
.steps-page .result-head { flex-wrap: wrap; }

/* 常用账号 */
.cred-acc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cred-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cred-row { animation: fadeUp .3s ease both; }
.cred-row:hover { background: var(--accent-soft); }

/* 批量进度 */
.steps-progress { height: 8px; border-radius: 99px; overflow: hidden; background: rgba(127, 127, 127, .16); margin: 10px 0 4px; }
.steps-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.table-mobile tbody tr.picked { background: var(--accent-soft); }

/* 记录状态 */
.rec-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.rec-status i { width: 7px; height: 7px; border-radius: 50%; }
.rec-status.ok { color: var(--ok); }
.rec-status.ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 164, 114, .16); }
.rec-status.bad { color: var(--bad); }
.rec-status.bad i { background: var(--bad); box-shadow: 0 0 0 3px rgba(225, 29, 72, .16); }

/* 线路说明折叠 */
.steps-notes > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600;
}
.steps-notes > summary::-webkit-details-marker { display: none; }
.steps-notes > summary .dot-accent { width: 7px; height: 7px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.steps-notes > summary::after { content: "展开"; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.steps-notes[open] > summary::after { content: "收起"; }
.steps-notes .notice-grid { margin-top: 14px; }

@media (max-width: 980px) {
  .steps-columns { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .steps-visual { order: -1; }
}
@media (max-width: 640px) {
  .steps-hero { padding: 16px; }
  .steps-row { grid-template-columns: minmax(0, 1fr); }
  .cur-num { font-size: 38px; letter-spacing: -1px; }
  .steps-target-input .input { font-size: 21px; }
  .steps-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-acc { margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
}

/* ================= 自动提交任务列表（tasks.php） ================= */
.task-list { display: grid; gap: 12px; }
.task-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 12px);
  background: var(--panel-solid, #fff);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.task-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.task-acc { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.task-acc .mono { font-size: 14px; font-weight: 600; word-break: break-all; line-height: 1.4; }
.task-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; }
.task-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.task-main { font-size: 13.5px; line-height: 1.7; color: var(--txt); word-break: break-word; overflow-wrap: anywhere; }
.task-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 12px; color: var(--txt-2); }
.task-sub b { color: var(--txt); font-weight: 600; }
.task-run { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 12px; color: var(--txt-2); }
.task-run .mono { color: var(--muted); white-space: nowrap; }
.task-run-res { flex: 1 1 100%; min-width: 0; word-break: break-word; overflow-wrap: anywhere; line-height: 1.6; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
@media (max-width: 640px) {
  .task-item { padding: 12px; gap: 9px; }
  .task-head { align-items: flex-start; }
  .task-acc { flex: 1 1 100%; }
  .task-acc .mono { font-size: 13.5px; }
  .task-main { font-size: 13px; }
  .task-run { flex-direction: column; align-items: flex-start; gap: 2px; }
  .task-run .mono { white-space: normal; }
  .task-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .task-actions .btn { width: 100%; }
  .task-actions .btn-primary { grid-column: 1 / -1; }
}

/* ================= 云端接口卡片（admin_apis.php） ================= */
.cloud-proxy {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm, 12px);
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%);
}
.cloud-proxy-main { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; }
.cloud-proxy-icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 16px rgba(99, 91, 255, .28);
}
.cloud-proxy-icon svg { width: 19px; height: 19px; }
.cloud-proxy-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cloud-proxy-text b { font-size: 14px; color: var(--txt); }
.cloud-proxy-text span { font-size: 12.5px; line-height: 1.5; color: var(--txt-2); word-break: break-word; }
.cloud-proxy-metrics { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.cloud-metric { display: flex; flex-direction: column; gap: 2px; }
.cloud-metric em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.cloud-metric b { font-size: 14px; color: var(--txt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cloud-proxy > .switch { margin-left: auto; flex: 0 0 auto; }

/* 云端接口紧凑列表（减少页面占用） */
.cloud-list { display: flex; flex-direction: column; gap: 8px; }
.cloud-row {
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  background: var(--panel-solid); min-width: 0; transition: border-color .16s;
}
.cloud-row:hover { border-color: var(--line-strong); }
.cloud-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cloud-row-name { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-row-price { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cloud-row-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cloud-row-actions .switch { font-size: 12px; gap: 7px; }
.cloud-row-actions .switch .track { width: 36px; height: 20px; }
.cloud-row-actions .switch .track::after { width: 14px; height: 14px; }
.cloud-row-actions .switch input:checked + .track::after { left: 19px; }
.cloud-row-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--muted); }
.cloud-row-meta .help { margin: 0; }
.cloud-empty { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .cloud-row-actions { width: 100%; margin-left: 0; }
  .cloud-row-price { margin-left: auto; }
  .cloud-proxy { padding: 12px 13px; gap: 12px; }
  .cloud-proxy-main { flex: 1 1 100%; }
  .cloud-proxy-text span { font-size: 12px; }
  .cloud-proxy-metrics { flex: 1 1 auto; gap: 16px; }
  .cloud-proxy > .switch { margin-left: 0; }
}

