/* ============================================================
   QZ 贵金属管理平台 · 设计系统 v3（金融商务）
   规范：深海军蓝 #1E4E8C 主色 / #F6F9FC 灰白底 / 扁平化 / 金色仅作品牌点缀
   涨红(#E5484D)跌绿(#1E9E6A) / 数字 tabular-nums / 投影分层不描边
   ============================================================ */
:root {
  --brand: #1E4E8C;
  --brand-deep: #163C6E;
  --brand-dark: #0F2B52;
  --brand-light: #3B67A4;
  --brand-grad: linear-gradient(135deg, #1E4E8C 0%, #1E4E8C 100%);
  --brand-soft: #EDF2F9;
  --brand-softer: #F5F8FC;
  --brand-shadow: rgba(30, 78, 140, 0.22);
  --gold: #C0A062;
  --gold-deep: #A8863F;
  --gold-soft: #F6F0E0;
  --bg: #F6F9FC;
  --card: #FFFFFF;
  --ink-1: #1B2532;
  --ink-2: #46536A;
  --ink-3: #8492A6;
  --ink-4: #AFBAC8;
  --line: #E8EEF5;
  --danger: #E5484D;
  --danger-soft: #FCECEB;
  --ok: #1E9E6A;
  --ok-soft: #E8F6F0;
  --warn: #C98A2D;
  --warn-soft: #FBF3E2;
  --radius-lg: 12px;
  --radius-md: 9px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 10px rgba(16, 35, 63, 0.05);
  --shadow-lift: 0 8px 24px rgba(16, 35, 63, 0.09);
  --shadow-pop: 0 16px 44px rgba(16, 35, 63, 0.13);
  --ease: cubic-bezier(.22, .68, .35, 1);
  /* Element Plus 主色阶（与深蓝体系对齐） */
  --el-color-primary: #1E4E8C;
  --el-color-primary-light-3: #4A72A8;
  --el-color-primary-light-5: #7B96BE;
  --el-color-primary-light-7: #ADC2DA;
  --el-color-primary-light-8: #C8D6E8;
  --el-color-primary-light-9: #EDF2F9;
  --el-color-primary-dark-2: #163C6E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#app { height: 100vh; }
::selection { background: rgba(30, 78, 140, .16); }

/* 数字统一等宽数字形，金额/克重更整齐 */
.el-table .cell, .stat-card .v, .screen-card .v, .ticker-item .p, .kv-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ================= 登录页 v2：品牌区 + 表单区 ================= */
.login-wrap {
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}
/* 左侧品牌区 */
.login-brand {
  flex: 1.15;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 7vw;
  color: #fff;
  background: linear-gradient(160deg, #102C52 0%, #0F2B52 55%, #123763 100%);
  overflow: hidden;
}
.login-brand::before {
  display: none;
}
.login-brand::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(192, 162, 98, .65), transparent);
}
.brand-inner { position: relative; z-index: 2; max-width: 520px; }
.brand-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 42px; }
.brand-logo .mark img { height: 56px; width: auto; display: block; }
.brand-logo .nm { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand-logo .en { font-size: 11px; letter-spacing: 3px; opacity: .55; margin-top: 2px; }
.brand-title {
  font-size: 42px; font-weight: 800; line-height: 1.25; letter-spacing: 2px; margin: 0 0 18px;
}
.brand-title em {
  font-style: normal;
  color: #D8BC7F;
}
.brand-desc { font-size: 15px; line-height: 1.9; opacity: .72; margin-bottom: 40px; }
.brand-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.brand-point { display: flex; align-items: center; gap: 12px; font-size: 14px; opacity: .9; }
.brand-point .dot {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255, 255, 255, .10);
  display: flex; align-items: center; justify-content: center; color: #D8BC7F;
}
/* 行情玻璃卡 */
.brand-glass {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: none;
}
.brand-glass .gt { font-size: 12px; letter-spacing: 2px; opacity: .6; margin-bottom: 12px; }
.brand-glass .grow { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.brand-glass .grow b { font-size: 24px; font-weight: 800; }
.brand-glass .up { color: #FF8A7A; }
.brand-glass .down { color: #4FE3A5; }
.brand-glass .spark { margin-top: 10px; height: 44px; }

/* 右侧表单区 */
.login-side {
  width: 520px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.login-card { width: 380px; }
.login-card .lc-head { margin-bottom: 30px; }
.login-card .lc-title { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.login-card .lc-sub { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; }
.login-card .el-input__wrapper {
  border-radius: var(--radius-md); padding: 6px 16px;
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: box-shadow .18s var(--ease);
}
.login-card .el-input__wrapper.is-focus { box-shadow: 0 0 0 2px var(--brand) inset; }
.login-card .el-form-item { margin-bottom: 20px; }
.login-btn {
  width: 100%; height: 46px; border-radius: var(--radius-md); font-size: 15px; letter-spacing: 8px; font-weight: 600;
  background: var(--brand);
  border: none; box-shadow: 0 4px 12px var(--brand-shadow);
  transition: background .15s var(--ease), box-shadow .15s var(--ease);
  margin-top: 6px;
}
.login-btn:hover { background: var(--brand-light); box-shadow: 0 6px 16px var(--brand-shadow); opacity: 1; }
.login-btn:active { background: var(--brand-deep); }
.login-tip {
  margin-top: 22px; padding: 10px 14px; border-radius: 10px;
  background: var(--brand-soft); color: var(--ink-2); font-size: 12.5px; line-height: 1.7;
}
.login-tip b { color: var(--brand); }
.login-foot {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: var(--ink-4); font-size: 12px;
}
@media (max-width: 960px) {
  .login-brand { display: none; }
  .login-side { width: 100%; }
}

/* ================= 主布局 ================= */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--card);
  box-shadow: 2px 0 16px rgba(16, 35, 63, 0.05);
  display: flex; flex-direction: column;
  z-index: 20;
  transition: width .22s var(--ease);
}
.sidebar.collapsed { width: 68px; }
.side-logo {
  height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  white-space: nowrap; overflow: hidden; flex-shrink: 0;
}
.side-logo .mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.side-logo .mark img { width: 38px; height: auto; display: block; }
.side-logo .txt { line-height: 1.3; }
.side-logo .nm { font-weight: 800; font-size: 15.5px; letter-spacing: .5px; }
.side-logo .en { font-size: 10px; letter-spacing: 2.5px; color: var(--ink-4); }
.side-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px 24px; }
.side-menu::-webkit-scrollbar { width: 4px; }
.side-menu::-webkit-scrollbar-thumb { background: #E2E9F2; border-radius: 4px; }

.side-menu .el-menu { border-right: none; background: transparent; }
.side-menu .m-ic { display: inline-flex; margin-right: 8px; vertical-align: -3px; color: inherit; }
.side-menu .el-sub-menu__title, .side-menu .el-menu-item {
  height: 42px; line-height: 42px; border-radius: 11px; margin: 2px 0;
  color: var(--ink-2); font-size: 13.5px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side-menu .el-sub-menu__title { font-weight: 600; color: var(--ink-1); }
.side-menu .el-sub-menu__title:hover { background: var(--brand-soft); color: var(--brand); }
.side-menu .el-menu-item { padding-left: 46px !important; position: relative; }
.side-menu .el-menu-item::before {
  content: ''; position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4);
  transition: all .16s var(--ease);
}
.side-menu .el-menu-item:hover { background: var(--brand-soft); color: var(--brand); }
.side-menu .el-menu-item:hover::before { background: var(--brand); }
.side-menu .el-menu-item.is-active {
  background: var(--brand);
  color: #fff; font-weight: 600;
}
.side-menu .el-menu-item.is-active::before { background: #fff; }
.side-menu .el-menu { --el-menu-hover-bg-color: var(--brand-soft); }
.side-menu .el-sub-menu .el-sub-menu__icon { font-size: 12px; }
/* 折叠态 */
.sidebar.collapsed .side-menu .el-menu-item::before { display: none; }

/* ---------- 主区 ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---------- 顶部条 ---------- */
.topbar {
  height: 62px; flex-shrink: 0;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(16, 35, 63, 0.05);
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  z-index: 10;
}
.collapse-btn {
  cursor: pointer; color: var(--ink-2); font-size: 17px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  transition: all .15s var(--ease);
}
.collapse-btn:hover { background: var(--brand-soft); color: var(--brand); }
.crumb { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.crumb b { color: var(--ink-1); font-weight: 700; font-size: 14px; }

/* 行情条 v2 */
.ticker { flex: 1; display: flex; gap: 8px; overflow: hidden; justify-content: center; }
.ticker-item {
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  padding: 5px 14px; background: var(--brand-softer); border-radius: var(--radius-md); min-width: 92px;
}
.ticker-item .n { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.ticker-item .p { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.ticker-item .p.up { color: #E5484D; }
.ticker-item .p.down { color: #1E9E6A; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer; font-size: 16px; transition: all .15s var(--ease);
}
.top-actions .icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.user-chip {
  display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 10px 4px 4px;
  border-radius: 12px; transition: background .15s var(--ease);
}
.user-chip:hover { background: var(--brand-soft); }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.user-chip .un { font-size: 13.5px; font-weight: 600; }
.user-chip .ur { font-size: 11px; color: var(--ink-3); }

/* ---------- 页签栏 ---------- */
.tabsbar {
  height: 46px; flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; overflow-x: auto;
}
.tabsbar::-webkit-scrollbar { height: 3px; }
.tab-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px; border-radius: 9px;
  background: var(--card); color: var(--ink-2); font-size: 12.5px; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all .15s var(--ease);
}
.tab-chip:hover { color: var(--brand); }
.tab-chip:not(.active) { background: #f1f5fa; box-shadow: none; color: #617187; }
.tab-chip.active {
  background: var(--brand); color: #fff; font-weight: 600;
}
.tab-chip .x { font-size: 11px; opacity: .55; border-radius: 50%; padding: 1px; }
.tab-chip .x:hover { opacity: 1; }

/* ---------- 内容区 ---------- */
.content { flex: 1; overflow-y: auto; padding: 18px 20px 32px; }
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-thumb { background: #D8E1EE; border-radius: 6px; }
.content > * { animation: pageIn .28s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= 通用面板 ================= */
.panel {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 20px 22px; margin-bottom: 16px;
}
.panel-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 15px; font-weight: 700;
}
.panel-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 4px; background: var(--brand-grad);
}

/* ---------- 搜索区 ---------- */
.search-panel { padding-bottom: 6px; }
.search-panel .el-form-item { margin-bottom: 14px; margin-right: 20px; }
.search-panel .el-form-item__label { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.search-panel .el-input, .search-panel .el-select { font-size: 14px; }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.toolbar .tool-icon {
  width: 33px; height: 33px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px;
  transition: all .15s var(--ease);
}
.toolbar .tool-icon:hover { background: var(--brand); color: #fff; box-shadow: 0 4px 10px var(--brand-shadow); }
.table-panel { padding: 16px 18px 12px; }
.pager { display: flex; justify-content: flex-end; padding: 16px 4px 4px; }

/* ---------- 按钮 ---------- */
.el-button { border-radius: var(--radius-md); font-weight: 500; transition: all .15s var(--ease); }
.el-button--primary {
  --el-button-bg-color: var(--brand);
  --el-button-border-color: var(--brand);
  --el-button-hover-bg-color: #3B67A4;
  --el-button-hover-border-color: #3B67A4;
  --el-button-active-bg-color: var(--brand-deep);
}
.el-button--primary:hover { box-shadow: 0 4px 12px var(--brand-shadow); }
.el-button--danger { box-shadow: none; }
.el-button.is-plain { box-shadow: none; }

/* ---------- 表格 ---------- */
.el-table {
  --el-table-header-bg-color: var(--brand-softer);
  --el-table-header-text-color: var(--ink-2);
  --el-table-row-hover-bg-color: var(--brand-softer);
  --el-table-border-color: var(--line);
  border-radius: 12px;
}
.el-table th.el-table__cell { font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.el-table .el-table__cell { padding: 11px 0; }
.el-table .cell { line-height: 1.6; font-size: 14px; }
.el-table .table-money { font-weight: 700; font-variant-numeric: tabular-nums; }
.el-table .el-table__empty-block { min-height: 160px; }
.el-table .el-empty { padding: 20px 0; }
.el-table .el-empty__description { margin-top: 12px; }
.el-table .cell .el-link { margin-right: 10px; font-weight: 500; }
.el-table .el-table__row { transition: background .12s var(--ease); }
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: #FAFCFF; }

/* ---------- 标签 ---------- */
.el-tag {
  border-radius: 8px; border: none; font-weight: 600; padding: 3px 10px; height: auto; line-height: 1.7;
}
.el-tag--success { background: var(--ok-soft); color: var(--ok); }
.el-tag--warning { background: var(--warn-soft); color: var(--warn); }
.el-tag--danger { background: var(--danger-soft); color: var(--danger); }
.el-tag--info { background: #F0F4FA; color: var(--ink-3); }
.el-tag--primary { background: var(--brand-soft); color: var(--brand); }

/* ---------- 弹窗 / 抽屉 ---------- */
.el-dialog {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.el-dialog__header {
  padding: 20px 24px 14px; margin-right: 0;
  box-shadow: 0 1px 0 var(--line);
}
.el-dialog__title { font-weight: 800; font-size: 16.5px; letter-spacing: .5px; }
.el-dialog__body { padding: 20px 24px; }
.el-dialog__footer { padding: 14px 24px 18px; box-shadow: 0 -1px 0 var(--line); }
.el-drawer { border-radius: var(--radius-lg) 0 0 var(--radius-lg); box-shadow: var(--shadow-pop); }
.el-drawer__header { margin-bottom: 0; padding: 20px 22px; font-weight: 800; color: var(--ink-1); box-shadow: 0 1px 0 var(--line); }
.el-drawer__body { padding: 20px 22px; }
.el-overlay { backdrop-filter: blur(3px); }

/* ---------- 表单控件 ---------- */
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner {
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px var(--line) inset !important;
  transition: box-shadow .16s var(--ease);
}
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused, .el-textarea__inner:focus {
  box-shadow: 0 0 0 2px var(--brand) inset !important;
}
.el-input-number { width: 100%; }
.el-input-number .el-input__wrapper { border-radius: 10px !important; }
.record-edit-form .el-form-item__label, .customer-settings-panel .el-form-item__label { height: auto !important; line-height: 1.6 !important; white-space: normal; padding-bottom: 7px; color: var(--ink-2); font-size: 14px; }
.record-edit-form .el-form-item { margin-bottom: 20px; }
.customer-settings-panel h3 { font-size: 18px; line-height: 1.6; margin: 0 0 20px; }
.customer-settings-panel h3:not(:first-child) { margin-top: 28px; }
.customer-settings-panel p, .settings-help { line-height: 1.8; font-size: 13px; color: #64748b; white-space: normal; overflow-wrap: anywhere; }
.settings-help { background: #f4f7fc; border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.settings-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.settings-custom { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.settings-custom .el-input-number { width: 112px; }
.customer-settings-panel .fee-rate-input { width: 220px; }
.customer-settings-panel .fee-mode-input { width: 280px; max-width: 100%; }
.el-radio__input.is-checked .el-radio__inner { background: var(--brand); border-color: var(--brand); }
.el-checkbox__input.is-checked .el-checkbox__inner { background: var(--brand); border-color: var(--brand); }
.el-switch { --el-switch-on-color: var(--brand); }

/* ---------- 分页 ---------- */
.el-pagination { --el-pagination-button-bg-color: var(--card); --el-pagination-hover-color: var(--brand); }
.el-pagination .el-pager li { border-radius: var(--radius-sm); }
.el-pagination .el-pager li.is-active { background: var(--brand); }

/* ---------- 描述列表 / 空态 / 气泡 ---------- */
.el-descriptions__label { color: var(--ink-3) !important; }
.el-descriptions--border .el-descriptions__cell { border-color: var(--line) !important; }
.el-message-box { border-radius: var(--radius-lg) !important; }
.el-message { border-radius: 10px !important; box-shadow: var(--shadow-lift) !important; }
.el-popper.is-light { border-radius: 10px !important; }

/* ================= 统计卡片 v2 ================= */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 20px; display: flex; align-items: center; gap: 15px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stat-card .ic {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.stat-card .t { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.stat-card .v { font-size: 24px; font-weight: 800; margin-top: 3px; letter-spacing: .3px; }
.chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.chart-box { height: 320px; }

/* ================= 数据大屏 v2 ================= */
.screen-wrap {
  background: linear-gradient(165deg, #102C52 0%, #0C2140 60%, #0A1C38 100%);
  border-radius: var(--radius-lg);
  min-height: calc(100vh - 170px);
  padding: 24px 26px 30px;
  color: #D8E6FF;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.screen-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(151, 181, 220, .16);
}
.screen-title {
  font-size: 26px; font-weight: 800; letter-spacing: 8px; color: #EAF1FB;
}
.screen-clock { font-size: 13px; color: #8FA9CF; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.screen-badges { display: flex; gap: 8px; }
.screen-badge {
  font-size: 12px; color: #7FE3A8; background: rgba(30, 158, 106, 0.14);
  padding: 5px 13px; border-radius: 20px;
}
.screen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screen-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: background .18s var(--ease);
}
.screen-card:hover { background: rgba(255, 255, 255, 0.08); }
.screen-card .t { font-size: 13px; color: #93AED6; margin-bottom: 8px; }
.screen-card .v { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.screen-card .v small { font-size: 13px; font-weight: 500; color: #93AED6; margin-left: 3px; }
.screen-card .s { font-size: 12px; color: #6B87B4; margin-top: 6px; }
.screen-card .v.red { color: #FF6B5E; }
.screen-card .v.green { color: #3DDC97; }
.screen-section {
  margin-top: 18px; background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg); padding: 18px 20px;
}
.screen-section h3 {
  margin: 0 0 14px; font-size: 14.5px; color: #C3D6F0; letter-spacing: 3px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.screen-section h3::before {
  content: ''; width: 4px; height: 14px; border-radius: 3px;
  background: #C0A062;
}
.screen-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv-table td { padding: 8px 4px; color: #A9C4F2; border-bottom: 1px dashed rgba(151, 181, 220, 0.14); }
.kv-table tr:last-child td { border-bottom: none; }
.kv-table td:last-child { text-align: right; color: #fff; font-weight: 700; }
.kv-table td.red, .kv-table td .red { color: #FF6B5E; } .kv-table td.green, .kv-table td .green { color: #3DDC97; }
.holding-filter label { display: flex; align-items: center; gap: 12px; color: #C3D6F0; }

/* ================= 素材中心 v2 ================= */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.asset-card {
  background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  overflow: hidden; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.asset-card .thumb {
  height: 116px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 34px; overflow: hidden;
}
.asset-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.asset-card:hover .thumb img { transform: scale(1.05); }
.asset-card .meta { padding: 10px 12px; font-size: 12px; color: var(--ink-2); }
.asset-card .meta .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.asset-card .meta .sz { color: var(--ink-4); margin-top: 3px; }

/* ================= 响应式 ================= */
@media (max-width: 1200px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .ticker { display: none; }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s var(--ease); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { width: 240px; }
  .content { padding: 12px; }
  .stat-cards { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-cols { grid-template-columns: 1fr; }
  .screen-title { font-size: 20px; letter-spacing: 4px; }
  .panel { padding: 16px; }
  .login-card { width: 88vw; }
}
.mobile-mask { display: none; position: fixed; inset: 0; background: rgba(16, 35, 63, .35); z-index: 15; backdrop-filter: blur(2px); }
.notice-dock { position: fixed; right: 0; bottom: 24px; z-index: 12; display: flex; align-items: flex-start; filter: drop-shadow(0 4px 16px rgba(16,35,63,.16)); }
.notice-handle { border: 0; border-radius: 6px 0 0 6px; background: #24528b; color: white; cursor: pointer; padding: 10px 8px; font-size: 20px; }
.notice-handle span { display: block; writing-mode: vertical-rl; font-size: 15px; letter-spacing: 3px; margin-top: 6px; }
.notice-body { width: 224px; padding: 14px; background: #fff; border: 1px solid #e5eaf2; border-radius: 0 0 0 8px; }
.notice-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #edf0f5; }
.notice-category { display: flex; align-items: center; gap: 8px; width: 100%; background: transparent; border: 0; border-bottom: 1px solid #edf0f5; padding: 10px 4px; font-size: 14px; cursor: pointer; text-align: left; }
.notice-category:hover { background: #f6f9fc; }
.notice-category b { font-size: 15px; font-variant-numeric: tabular-nums; }
.notice-category.notice-zero { color: #718096 !important; }
.notice-arrow { margin-left: auto; }
.notice-foot { color: #8491a4; font-size: 12px; padding-top: 12px; }
.notice-sound-bar { padding: 12px 0 0; }
.notice-sound-bar > span { display: block; color: #8491a4; font-size: 11px; line-height: 1.6; margin-top: 6px; }
.screen-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.screen-assets button { padding: 20px; text-align: left; color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(143,180,238,.12); border-radius: 12px; cursor: pointer; font-family: inherit; }
.screen-assets button:hover { background: rgba(255,255,255,.1); }
.screen-assets span { display: block; color: #a7bddb; font-size: 14px; margin-bottom: 12px; }
.screen-assets b { display: block; font-size: clamp(18px, 2vw, 28px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.screen-assets small { font-size: 12px; font-weight: 400; }
.screen-asset-note { color: #92aacd; font-size: 12px; line-height: 1.8; margin-top: 16px; }
.referrer-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.referrer-filters .el-select, .referrer-filters .el-date-editor { width: 100% !important; min-width: 0; }
.referrer-summary { background: #f4f7fc; padding: 14px 16px; border-radius: 8px; line-height: 1.8; margin-bottom: 16px; }
.referrer-note { color: #8491a4; font-size: 12px; line-height: 1.8; }
@media (max-width: 900px) { .screen-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .screen-assets { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .notice-dock { bottom: 12px; } .notice-body { width: 210px; } }
@media (max-width: 768px) { .mobile-mask.show { display: block; } }
/* UI refinement only: semantic colours, readable hierarchy and accessible focus. */
.market-up { color:#cc3340 !important; }
.market-down { color:#13845a !important; }
.market-flat { color:#64748b !important; }
.el-switch { --el-switch-on-color:#16845b; --el-switch-off-color:#94a3b8; }
.el-tag { border-radius:6px; font-weight:600; }
.el-link.action-danger { color:#c93443; background:#fff0f1; }
.el-link.action-warning { color:#995d0a; background:#fff6e5; }
.el-link.action-success { color:#13754e; background:#eaf8f0; }
.el-link.action-neutral { color:#53657c; background:#f0f3f8; }
.el-link.action-primary { color:#2459a0; background:#edf4ff; }
.el-table .el-link { padding:4px 7px; margin:3px 4px 3px 0; border-radius:5px; font-size:12px; line-height:1.4; }
.el-table .el-link:hover { filter:brightness(.93); text-decoration:underline; }
.panel { border:1px solid #e5eaf2; box-shadow:0 3px 14px rgba(24,43,70,.045); }
.search-panel { border-top:3px solid #9ab7db; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px 20px; }
.filter-grid .el-form-item { display:flex; margin:0; min-width:0; align-items:center; }
.filter-grid .el-form-item__label { width:88px; flex-shrink:0; justify-content:flex-start; line-height:1.4; height:auto; }
.filter-grid .el-form-item__content { min-width:0; flex:1; }
.filter-grid .el-input,.filter-grid .el-select,.filter-grid .el-date-editor { width:100% !important; min-width:0; }
.filter-grid .filter-actions { grid-column:1/-1; padding-top:4px; }
.filter-grid .filter-actions .el-form-item__content { gap:8px; }
.filter-grid .filter-actions .el-button { margin-left:0; }
.table-secondary .cell { color:#738095; font-size:13px; font-variant-numeric:tabular-nums; }
.pager { overflow-x:auto; padding-top:16px; }
.el-dialog { max-width:calc(100vw - 32px); }
.el-dialog__body { overflow-wrap:anywhere; }
.el-descriptions__label { color:#65748a !important; font-weight:500 !important; }
.el-descriptions__content { font-variant-numeric:tabular-nums; }
.el-button.is-disabled,.el-link.is-disabled { opacity:.6; box-shadow:none; }
.toolbar .el-button { margin-left:0; }
@media (max-width:768px) {
  .filter-grid { grid-template-columns:1fr; gap:12px; }
  .el-dialog__body { padding:16px; }
  .el-dialog__footer { padding:12px 16px; }
  .panel { padding:16px; }
  .ticker-item { min-width:104px; }
}
.toolbar { gap:8px; flex-wrap:wrap; }
.el-table th.el-table__cell { background:#eef3fa !important; color:#405471; font-weight:700; }
.el-table .el-table__row:hover > td.el-table__cell { background:#f0f6ff !important; }
.ticker-item { border:1px solid #e1e8f1; background:#fbfcff; min-width:116px; }
.stat-card:nth-child(4n+1) { border-top:3px solid #5282ba; }
.stat-card:nth-child(4n+2) { border-top:3px solid #2b9b77; }
.stat-card:nth-child(4n+3) { border-top:3px solid #bc9140; }
.stat-card:nth-child(4n) { border-top:3px solid #8971bb; }
.stat-card:nth-child(4n+2) .ic { background:#e8f7ef; color:#16845b; }
.stat-card:nth-child(4n+3) .ic { background:#fff5df; color:#996707; }
.stat-card:nth-child(4n) .ic { background:#f3edfb; color:#7653a5; }
.el-button:focus-visible,.el-link:focus-visible,.tool-icon:focus-visible { outline:3px solid #83ade2; outline-offset:3px; }
.deposit-rate-partial { color:#a66b09;font-weight:700;font-variant-numeric:tabular-nums; }
.deposit-rate-covered { color:#2563b8;font-weight:700;font-variant-numeric:tabular-nums; }
.vault-stock-totals { display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;padding:4px 16px 18px; }
.vault-stock-totals>div { background:#f2f6fc;border:1px solid #e1e9f4;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px;color:#4c607c; }
.vault-stock-totals strong { color:#234f88;font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.vault-stock-totals small { font-size:12px;font-weight:400; }.vault-stock-totals>p { grid-column:1/-1;color:#a66b09; }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
.analysis-summary-groups { display:grid;gap:24px;padding:20px 16px;border-bottom:1px solid var(--line); }
.analysis-summary-groups h3 { margin:0 0 12px;font-size:15px;font-weight:600; }
.analysis-summary-groups dl { display:flex;flex-wrap:wrap;gap:16px 28px;margin:0; }
.analysis-summary-groups dl>div { min-width:140px; }
.analysis-summary-groups dt { font-size:13px; }
.analysis-summary-groups dd { margin:6px 0 0;font-size:19px;font-weight:700;font-variant-numeric:tabular-nums; }
.analysis-summary-groups dd small { font-size:12px;font-weight:400; }
