/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0D12;
  --bg-soft: #0E1218;
  --panel: #131923;
  --panel-2: #171E2A;
  --panel-3: #1C2433;
  --line: #242E3E;
  --line-soft: #1B2432;
  --text: #E6EDF7;
  --text-2: #A7B4C8;
  --muted: #7A889C;
  --gold: #E0AE55;
  --gold-2: #F5CE86;
  --gold-dim: rgba(224, 174, 85, 0.14);
  --green: #3BC48D;
  --green-dim: rgba(59, 196, 141, 0.14);
  --red: #E3615C;
  --red-dim: rgba(227, 97, 92, 0.14);
  --blue: #5B9BE8;
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2A3547; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3A4860; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--gold); text-decoration: none; }

/* ============ 标题栏 ============ */
.titlebar {
  height: 46px;
  display: flex;
  align-items: center;
  background: #0A0D12;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 50;
  -webkit-app-region: drag;
}
.tb-left { display: flex; align-items: center; gap: 10px; padding-left: 16px; }
.tb-logo {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #F5CE86, #C8912F);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #23180A; letter-spacing: .5px;
  box-shadow: 0 0 14px rgba(224, 174, 85, .35);
}
.tb-name { font-size: 13.5px; font-weight: 600; letter-spacing: .5px; }
.tb-tag {
  font-size: 11px; color: var(--muted); padding-left: 10px;
  border-left: 1px solid var(--line); letter-spacing: 1px;
}
.tb-drag { flex: 1; height: 100%; }
.tb-right { display: flex; -webkit-app-region: no-drag; height: 100%; }
.tb-btn {
  width: 46px; height: 100%; color: var(--text-2); font-size: 13px;
  transition: .15s;
}
.tb-btn:hover { background: #1A222E; color: #fff; }
.tb-close:hover { background: #C4403B; color: #fff; }

/* ============ 布局 ============ */
.app-root { height: calc(100vh - 46px); }
.shell { display: flex; height: 100%; }

.sidebar {
  width: 212px; flex-shrink: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  padding: 18px 12px;
}
.user-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 16px; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2C3A4E, #1A2434);
  border: 1px solid #35435A;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--gold-2);
}
.user-meta { min-width: 0; flex: 1; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-sub { font-size: 11px; color: var(--muted); }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px; color: #5E6B7E; letter-spacing: 1px;
  padding: 14px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: .16s; position: relative;
}
.nav-item:hover { background: #161E2A; color: var(--text); }
.nav-item.active { background: var(--gold-dim); color: var(--gold-2); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; display: grid; place-items: center;
}
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.logout-btn {
  width: 100%; padding: 8px; color: var(--muted); font-size: 12px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.logout-btn:hover { background: #1A222E; color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 18, 24, .85);
}
.page-title { font-size: 16px; font-weight: 600; letter-spacing: .3px; }
.page-desc { font-size: 12px; color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.content { flex: 1; overflow-y: auto; padding: 22px 26px 40px; }

/* ============ 通用组件 ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 14px; font-weight: 600; }
.card-sub { font-size: 12px; color: var(--muted); }
.card-body { padding: 18px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  border: 1px solid transparent; transition: .16s; white-space: nowrap;
}
.btn svg, .logout-btn svg, .badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, #F0C271, #D19A3C);
  color: #251A08; font-weight: 600;
  box-shadow: 0 4px 14px rgba(224, 174, 85, .22);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text-2); background: transparent; }
.btn-ghost:hover { border-color: #3B4A61; color: var(--text); background: #171F2B; }
.btn-danger { border-color: rgba(227, 97, 92, .35); color: #F0807A; background: rgba(227, 97, 92, .08); }
.btn-danger:hover { background: rgba(227, 97, 92, .16); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 500;
  background: #202A39; color: var(--text-2); white-space: nowrap;
}
.badge-gold { background: var(--gold-dim); color: var(--gold-2); }
.badge-green { background: var(--green-dim); color: #5FD9AC; }
.badge-red { background: var(--red-dim); color: #F08B86; }
.badge-blue { background: rgba(91, 155, 232, .14); color: #8FBCF2; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 18px; position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,174,85,.07), transparent 70%);
}
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.stat-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.tone-gold { color: var(--gold-2); }
.tone-green { color: #5FD9AC; }
.tone-red { color: #F08B86; }
.tone-muted { color: var(--muted); }

/* ============ 表单 ============ */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; background: #0F141C; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text);
  transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #B98B3D; background: #111823; }
.input::placeholder, .textarea::placeholder { color: #5A6779; }
.textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.select { appearance: none; cursor: pointer; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-row { display: flex; gap: 12px; }
.form-row > .field { flex: 1; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); }
.switch input { display: none; }
.switch .track {
  width: 34px; height: 19px; border-radius: 10px; background: #26303F; position: relative; transition: .18s;
}
.switch .track::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px;
  border-radius: 50%; background: #8A97AB; transition: .18s;
}
.switch input:checked + .track { background: rgba(224,174,85,.5); }
.switch input:checked + .track::after { left: 17px; background: var(--gold-2); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; background: #10161F;
}
table.tb td {
  padding: 11px 14px; border-bottom: 1px solid #161E29; color: var(--text-2);
  vertical-align: middle;
}
table.tb tbody tr:hover { background: #141B25; }
table.tb td.strong { color: var(--text); font-weight: 500; }
table.tb td.num { font-variant-numeric: tabular-nums; }
.tb-actions { display: flex; gap: 6px; }

/* ============ 会员卡 ============ */
.member-card {
  position: relative; border-radius: 14px; padding: 22px 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(224,174,85,.16), transparent 55%),
    linear-gradient(135deg, #1B222E 0%, #141A24 60%, #1A1922 100%);
  border: 1px solid #2B3446; overflow: hidden;
}
.member-card::before {
  content: ''; position: absolute; right: -60px; bottom: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,174,85,.13), transparent 68%);
}
.member-card::after {
  content: 'FX'; position: absolute; right: 22px; top: 10px;
  font-size: 70px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,.045); pointer-events: none;
}
.mc-top { display: flex; align-items: flex-start; gap: 12px; }
.mc-plan { font-size: 19px; font-weight: 700; letter-spacing: .5px; }
.mc-plan small { font-size: 11px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.mc-days { margin-left: auto; text-align: right; }
.mc-days b { font-size: 30px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.mc-days span { font-size: 11px; color: var(--muted); }
.mc-bar {
  height: 5px; border-radius: 3px; background: #232C3A; margin: 18px 0 10px; overflow: hidden;
}
.mc-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #D19A3C, #F5CE86); border-radius: 3px; }
.mc-meta { display: flex; gap: 22px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.mc-meta b { color: var(--text); font-weight: 500; }
.mc-actions { margin-top: 16px; display: flex; gap: 10px; }

.sub-bar {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg, rgba(224,174,85,.13), rgba(224,174,85,.02));
  border: 1px solid rgba(224,174,85,.24); border-radius: 10px;
  padding: 11px 16px; font-size: 13px; margin-bottom: 16px; color: var(--gold-2);
}
.sub-bar .btn { margin-left: auto; }

/* ============ 策略卡 ============ */
.strategy-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 18px; cursor: pointer;
  transition: .18s; position: relative; overflow: hidden;
}
.strategy-card:hover { border-color: #3A4557; transform: translateY(-2px); background: #151B26; }
.st-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-market {
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: var(--gold-2); background: var(--gold-dim);
  padding: 2px 7px; border-radius: 4px;
}
.st-dir { font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.dir-up { background: var(--green-dim); color: #5FD9AC; }
.dir-down { background: var(--red-dim); color: #F08B86; }
.dir-range { background: rgba(91,155,232,.14); color: #8FBCF2; }
.st-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.st-summary {
  font-size: 12.5px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.st-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted);
  flex-wrap: wrap; row-gap: 6px;
}
.st-foot > span { white-space: nowrap; }
.st-foot .lock { margin-left: auto; }
.lock-icon { font-size: 11px; color: #C08A3A; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 13px; border-radius: 16px; font-size: 12px;
  border: 1px solid var(--line); color: var(--text-2); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: #3B4A61; color: var(--text); }
.chip.active { background: var(--gold-dim); border-color: rgba(224,174,85,.5); color: var(--gold-2); }

/* ============ 策略详情 ============ */
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; font-size: 12.5px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; color: var(--text); }
.plan-pre {
  white-space: pre-wrap; font-size: 12.5px; line-height: 1.95;
  color: var(--text-2); background: #0F141C; border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 18px;
}
.locked-box {
  border: 1px dashed #3A4557; border-radius: 10px; padding: 26px;
  text-align: center; background: #0F141C;
}
.locked-box h4 { font-size: 14px; margin-bottom: 6px; color: var(--gold-2); display: flex; align-items: center; justify-content: center; gap: 6px; }
.locked-box h4 svg { width: 15px; height: 15px; flex-shrink: 0; }
.locked-box p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* ============ 套餐 ============ */
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 20px 18px; position: relative; transition: .18s;
  cursor: pointer; display: flex; flex-direction: column;
}
.plan:hover { border-color: #445066; transform: translateY(-2px); }
.plan.sel { border-color: rgba(224,174,85,.65); background: #1A1F2B; box-shadow: 0 0 0 1px rgba(224,174,85,.18) inset; }
.plan.hot { border-color: rgba(224,174,85,.4); }
.plan-tag {
  position: absolute; top: -1px; right: 14px;
  background: linear-gradient(135deg, #F0C271, #C8912F);
  color: #2A1D08; font-size: 10.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 0 0 6px 6px;
}
.plan-name { font-size: 15px; font-weight: 600; }
.plan-price { margin: 10px 0 2px; }
.plan-price b { font-size: 28px; color: var(--gold-2); font-weight: 700; }
.plan-price span { font-size: 12px; color: var(--muted); }
.plan-origin { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.plan-feats { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.plan-feats li { font-size: 12px; color: var(--text-2); display: flex; gap: 7px; align-items: flex-start; }
.plan-feats li::before { content: '✓'; color: var(--gold); font-size: 11px; margin-top: 1px; }
.plan-btn { width: 100%; margin-top: auto; }

/* ============ 代理 ============ */
.invite-box {
  display: flex; align-items: center; gap: 14px;
  background: #0F141C; border: 1px dashed #3A4553; border-radius: 10px; padding: 14px 16px;
}
.invite-code { font-size: 22px; font-weight: 700; letter-spacing: 3px; color: var(--gold-2); font-family: Consolas, monospace; }
.rank-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #161E29;
}
.rank-no {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; background: #202A39; color: var(--text-2);
}
.rank-no.top { background: var(--gold-dim); color: var(--gold-2); }

.rule-list { display: flex; flex-direction: column; gap: 12px; }
.rule-item { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.rule-item .n {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

/* ============ Tab ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.tab {
  padding: 8px 16px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold-2); border-bottom-color: var(--gold); }

/* ============ 登录 ============ */
.login-wrap { height: 100%; display: flex; }
.login-left {
  flex: 1; position: relative; padding: 60px 56px;
  background:
    radial-gradient(70% 80% at 80% 20%, rgba(224,174,85,.13), transparent 62%),
    linear-gradient(160deg, #0C1016 0%, #0A0D12 100%);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}
.login-left::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.brand-mark {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, #F5CE86, #B8822A);
  display: grid; place-items: center; font-weight: 800; color: #241807; font-size: 20px;
  box-shadow: 0 10px 30px rgba(224,174,85,.25); margin-bottom: 28px; position: relative;
}
.login-left h1 { font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: .5px; position: relative; }
.login-left h1 em { font-style: normal; color: var(--gold-2); }
.login-left .sub { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 440px; position: relative; }
.feature-list { margin-top: 38px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .fi {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: #161E2A; border: 1px solid #26303F; display: grid; place-items: center;
  color: var(--gold); font-size: 13px;
}
.feature h5 { font-size: 13px; font-weight: 600; }
.feature p { font-size: 12px; color: var(--muted); }

.login-right { width: 480px; flex-shrink: 0; display: grid; place-items: center; padding: 30px; background: var(--bg-soft); }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-card .desc { font-size: 12.5px; color: var(--muted); margin-bottom: 26px; }
.login-tabs { display: flex; gap: 20px; margin-bottom: 22px; }
.login-tabs button { font-size: 13px; color: var(--muted); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.login-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.login-error {
  background: var(--red-dim); border: 1px solid rgba(227,97,92,.3); color: #F08B86;
  padding: 8px 12px; border-radius: 8px; font-size: 12px; margin-bottom: 14px; display: none;
}
.login-foot { margin-top: 22px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ============ 弹窗 / Toast ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(4, 7, 11, .68);
  backdrop-filter: blur(3px); z-index: 100;
  display: grid; place-items: center; padding: 30px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #131923; border: 1px solid #2A3547; border-radius: 14px;
  width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: pop .2s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.modal.wide { max-width: 780px; }
.modal-head { padding: 18px 22px 12px; display: flex; align-items: center; }
.modal-head h3 { font-size: 16px; font-weight: 600; }
.modal-head .x { margin-left: auto; color: var(--muted); font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.modal-head .x:hover { background: #1C2433; color: var(--text); }
.modal-body { padding: 6px 22px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; }

.toast-root { position: fixed; top: 62px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1B2432; border: 1px solid #33405A; border-left: 3px solid var(--gold);
  padding: 11px 16px; border-radius: 8px; font-size: 12.5px; min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: slideIn .2s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ============ 其它 ============ */
.empty {
  padding: 46px 20px; text-align: center; color: var(--muted); font-size: 12.5px;
}
.empty .icon { font-size: 26px; opacity: .35; margin-bottom: 10px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head .right { margin-left: auto; display: flex; gap: 8px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--text); margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 13px; background: var(--gold); border-radius: 2px; }
.notice {
  font-size: 12px; color: #A7B4C8; line-height: 1.8;
  background: rgba(91,155,232,.07); border: 1px solid rgba(91,155,232,.2);
  border-radius: 10px; padding: 12px 16px;
}
.notice strong { color: #9DC3F5; font-weight: 500; }
.mono { font-family: Consolas, "SF Mono", monospace; font-size: 12px; letter-spacing: .3px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.gap8 { display: flex; gap: 8px; align-items: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.flex1 { flex: 1; }

/* ===== 浏览器模式：无原生窗口，隐藏窗口按钮 ===== */
html.web-mode .tb-right { display: none; }
html.web-mode .titlebar { -webkit-app-region: no-drag; }
html.web-mode .tb-drag { -webkit-app-region: no-drag; }
