:root {
  /* 主色：明亮的翡翠绿（替代暗黑荧光绿） */
  --brand: #10b981;
  --brand-deep: #059669;
  --brand-dark: #047857;
  --brand-soft: #ecfdf5;
  --ink: #1f2937;
  --el-color-primary: #10b981;
  --el-color-primary-light-3: #4cc9a8;
  --el-color-primary-light-5: #86dcc6;
  --el-color-primary-light-7: #b8ecdf;
  --el-color-primary-light-8: #d2f4ea;
  --el-color-primary-light-9: #ecfdf5;
  --el-color-primary-dark-2: #0a9069;
  --el-border-radius-base: 9px;
}

* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: #f3f6f5;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
}

/* ===== 登录页（浅色明亮） ===== */
.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(720px 420px at 12% -10%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(680px 420px at 100% 110%, rgba(52, 211, 153, 0.16), transparent 60%),
    linear-gradient(160deg, #f2fbf7 0%, #f5f8f7 45%, #eef4f2 100%);
  padding: 24px;
}
.login-card {
  width: 408px;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e5f0ea;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(16, 120, 90, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 42px 38px 32px;
}
.login-logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px;
}
.login-logo .mark {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #ffffff;
  background: linear-gradient(135deg, #34d399, #10b981 55%, #059669);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.login-logo .t1 { color: #14251c; font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.login-logo .t2 { color: #9aa7a0; font-size: 12px; letter-spacing: 2px; }
.login-btn {
  width: 100%; height: 46px; font-size: 15px; font-weight: 700; letter-spacing: 3px;
  background: linear-gradient(135deg, #34d399, #10b981 55%, #059669);
  border: none; color: #fff;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.28);
}
.login-btn:hover { background: linear-gradient(135deg, #45d9a4, #12c088); }
.login-foot { text-align: center; color: #a3b0a8; font-size: 12px; margin-top: 20px; }

/* ===== 主布局 ===== */
.layout { display: flex; height: 100%; }
.sidebar {
  width: 228px; flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #e8eeea;
  display: flex; flex-direction: column;
}
.sb-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid #f0f4f2;
}
.sb-brand .mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, #34d399, #10b981 55%, #059669);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}
.sb-brand .bt .t1 { color: #14251c; font-weight: 800; font-size: 15.5px; letter-spacing: 0.5px; }
.sb-brand .bt .t2 { color: #9aa7a0; font-size: 11px; letter-spacing: 1.5px; margin-top: 2px; }
.sb-menu { padding: 14px 12px; flex: 1; }
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 11px; cursor: pointer;
  color: #5b6b62; font-size: 14.5px; font-weight: 600;
  margin-bottom: 6px; transition: all .18s;
  border-left: 3px solid transparent;
}
.sb-item .el-icon { font-size: 18px; }
.sb-item:hover { background: #f2faf6; color: var(--brand-dark); }
.sb-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-left-color: var(--brand);
  font-weight: 700;
}
.sb-foot { padding: 14px 18px; color: #a3b0a8; font-size: 11.5px; line-height: 1.7; border-top: 1px solid #f0f4f2; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; flex-shrink: 0;
  background: #fff; border-bottom: 1px solid #e8eeea;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.topbar .page-title { font-size: 17px; font-weight: 800; color: #14251c; }
.topbar .page-sub { font-size: 12.5px; color: #93a098; margin-top: 2px; }
.content { flex: 1; overflow-y: auto; padding: 22px 24px 32px; }

/* ===== 卡片 / 统计 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 16px; padding: 18px 20px;
  border: 1px solid #eaf0ed;
  box-shadow: 0 1px 3px rgba(20, 60, 45, 0.04);
  position: relative; overflow: hidden;
}
.stat-card .label { color: #82908a; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.stat-card .value { font-size: 30px; font-weight: 800; color: #16201a; margin-top: 8px; line-height: 1; }
.stat-card .value small { font-size: 14px; font-weight: 600; color: #93a098; margin-left: 4px; }
.stat-card .ic {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.ic-green { background: #e9fbf1; color: #10b981; }
.ic-blue { background: #eaf2ff; color: #3b82f6; }
.ic-orange { background: #fff4e3; color: #f59e0b; }
.ic-red { background: #ffecec; color: #ef4444; }
.ic-purple { background: #f2eeff; color: #8b5cf6; }
/* 总资产高亮卡片 */
.stat-card.asset {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
}
.stat-card.asset .label, .stat-card.asset .value, .stat-card.asset .value small { color: #fff; }
.stat-card.asset .label { color: rgba(255,255,255,.85); }
.stat-card.asset .ic { background: rgba(255,255,255,.18); color: #fff; }

.panel {
  background: #fff; border: 1px solid #eaf0ed; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(20, 60, 45, 0.04);
}
.panel-title { font-size: 15px; font-weight: 800; color: #14251c; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel-title .el-icon { color: var(--brand-deep); }
.panel-title .extra { margin-left: auto; font-weight: 500; font-size: 12.5px; color: #93a098; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { width: 100%; height: 280px; }
.chart-tall { height: 340px; }

.currency-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.currency-card {
  min-width: 168px; flex: 1;
  border: 1px solid #eaf0ed; border-radius: 13px; padding: 14px 16px;
  background: linear-gradient(180deg, #fcfffd, #ffffff);
}
.currency-card .cur { font-size: 12.5px; color: #7f8c83; font-weight: 700; }
.currency-card .cur .cname { font-weight: 500; color: #9aa69e; margin-left: 4px; }
.currency-card .amt { font-size: 21px; font-weight: 800; color: #16201a; margin-top: 6px; }
.currency-card .cny { font-size: 13px; color: var(--brand-dark); font-weight: 700; margin-top: 5px; }
.currency-card .cny .eq { color: #a3b0a8; font-weight: 400; margin-right: 3px; }
.currency-card .cnt { font-size: 11.5px; color: #98a39c; margin-top: 3px; }

/* ===== 账号表格 ===== */
.toolbar {
  background: #fff; border: 1px solid #eaf0ed; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  box-shadow: 0 1px 3px rgba(20, 60, 45, 0.04);
}
.toolbar .spacer { flex: 1; }
.table-card { background: #fff; border: 1px solid #eaf0ed; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 60, 45, 0.04); }
.cell-account { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* TOTP 验证码 */
.totp-box { display: inline-flex; flex-direction: column; gap: 4px; min-width: 116px; }
.totp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 21px; font-weight: 800; letter-spacing: 2.5px;
  color: #059669; display: flex; align-items: center; gap: 6px;
}
.totp-code.soon { color: #e67e22; }
.totp-code .copy-btn { cursor: pointer; color: #b6c3bc; font-size: 15px; }
.totp-code .copy-btn:hover { color: var(--brand-deep); }
.totp-bar { width: 104px; height: 4px; background: #eef2f0; border-radius: 3px; overflow: hidden; }
.totp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #10b981); border-radius: 3px; transition: width .9s linear; }
.totp-bar i.soon { background: linear-gradient(90deg, #f5b041, #e67e22); }
.totp-none { color: #b3bcb5; font-size: 13px; }

.pw-cell { display: inline-flex; align-items: center; gap: 6px; }
.pw-cell .pw-text { font-family: ui-monospace, monospace; font-size: 13px; }
.pw-icon { cursor: pointer; color: #a3b0a8; font-size: 15px; }
.pw-icon:hover { color: var(--brand-deep); }

.pager { display: flex; justify-content: flex-end; padding: 14px 16px; }
.flag-emoji { font-size: 17px; margin-right: 6px; }

/* 弹窗表单 */
.dialog-tip {
  background: #f0fbf6; border: 1px solid #d2f1e2; color: #1f6b4f;
  border-radius: 9px; padding: 9px 12px; font-size: 12.5px; line-height: 1.6; margin-bottom: 14px;
}
.totp-live {
  text-align: center; padding: 12px; border: 1px dashed #9fe0c4; border-radius: 10px;
  background: #f6fefa; margin-top: 8px;
}
.totp-live .big { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: #059669; font-family: ui-monospace, monospace; }
.muted { color: #9aa69e; font-size: 12.5px; }

/* 汇率设置 */
.rate-table-note { color: #7f8c83; font-size: 12.5px; margin-bottom: 12px; line-height: 1.7; }
.rate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.rate-item {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #eaf0ed; border-radius: 10px; padding: 9px 12px; background: #fcfefe;
}
.rate-item .rname { width: 120px; flex-shrink: 0; }
.rate-item .rname .code { font-weight: 800; font-size: 13.5px; color: #14251c; }
.rate-item .rname .cn { font-size: 11px; color: #98a39c; display: block; }
.rate-item .eq { color: #a3b0a8; font-size: 13px; flex-shrink: 0; }
.rate-item .rinput { flex: 1; width: 0; }
.rate-item .unit { color: #93a098; font-size: 12px; flex-shrink: 0; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
}
