* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  color: #1f2329;
  font-size: 14px;
}
[v-cloak] { display: none; }

/* 登录 */
.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 10%, #2e6be6 0%, #123a8f 45%, #0b1730 100%);
}
.login-card {
  width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 34px 32px 24px;
  box-shadow: 0 24px 60px rgba(4, 18, 48, 0.35);
}
.login-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; }
.login-brand h2 { margin: 0; font-size: 20px; }
.login-brand p { margin: 4px 0 0; color: #86909c; font-size: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #3b7bf6, #5b93fa);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.login-tip { color: #a3aab8; font-size: 12px; text-align: center; margin: 16px 0 0; }

/* 布局 */
.layout { height: 100%; }
.sidebar {
  background: #0f1b33;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: 16px; letter-spacing: 1px; }
.brand-text span { color: #5c6b88; font-size: 9px; letter-spacing: .5px; }
.menu { border: 0; flex: 1; padding: 6px 10px; }
.menu .el-menu-item {
  height: 44px; line-height: 44px; margin: 4px 0; border-radius: 8px;
  padding-left: 12px !important;
}
.menu .el-menu-item.is-active { background: #2e6be6 !important; }
.menu .el-menu-item:hover { background: #16264a !important; }
.menu .el-menu-item .el-icon { margin-right: 8px; }
.menu-badge { margin-left: auto; }
.menu .el-badge__content { transform: translateY(-6px); }
.side-foot { color: #46567a; font-size: 11px; text-align: center; padding: 14px; }

.topbar {
  background: #fff; height: 60px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid #eef1f5; padding: 0 24px;
}
.top-left { display: flex; align-items: center; gap: 10px; }
.fold { color: #86909c; cursor: pointer; }
.page-title { font-size: 16px; font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 20px; }
.admin-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #4e5969; }
.main { padding: 20px; overflow-y: auto; background: #f5f7fa; }

/* 通用卡片 */
.card { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 2px 10px rgba(31,35,41,.04); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .sub { color: #86909c; font-size: 12px; }
.muted { color: #86909c; }
.up { color: #f53f3f; font-weight: 500; }
.down { color: #00b42a; font-weight: 500; }
.flat { color: #86909c; }
.mt12 { margin-top: 12px; }
.flex { display: flex; align-items: center; }
.gap8 { gap: 8px; }
.gap12 { gap: 12px; }
.wrap { flex-wrap: wrap; }
.right { margin-left: auto; }
.pager { display: flex; justify-content: flex-end; padding-top: 14px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: #fff; border-radius: 8px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 10px rgba(31,35,41,.04);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,107,230,.12); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #eaf1ff; color: #2e6be6; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.stat-info b { font-size: 24px; display: block; line-height: 1.2; }
.stat-info span { color: #86909c; font-size: 13px; }
.chart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
.chart { height: 300px; width: 100%; }

/* 行情表格 */
.price-input { width: 110px; }
.remark-input { width: 170px; }
.market-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.market-meta .el-textarea { width: 100%; }

/* 状态标签 */
.tag-pending { color: #ff8b00; }
.tag-pass { color: #00b42a; }
.tag-reject { color: #f53f3f; }
.tag-offline { color: #86909c; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 34px; height: 34px; border-radius: 4px; }
.detail-img { width: 96px; height: 96px; border-radius: 6px; margin: 0 8px 8px 0; }
.kv { display: grid; grid-template-columns: 90px 1fr; row-gap: 10px; font-size: 14px; }
.kv .k { color: #86909c; }
.kv .v { color: #1f2329; word-break: break-all; }
.section-title { font-size: 14px; font-weight: 600; margin: 18px 0 10px; }
.empty-tip { text-align: center; color: #a3aab8; padding: 40px 0; font-size: 13px; }
.login-card .el-form-item { margin-bottom: 18px; }
.el-table .cell { font-size: 13px; }
.el-table th.el-table__cell { background: #f7f9fc; color: #4e5969; font-weight: 500; }

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
