﻿/* ═══════════════════════════════════════════
   IMZFC 设计系统 — 内蒙古电力交易中心官方风格
   品牌色 #1EACA6 (官網綠) + Element Plus 框架
   ═══════════════════════════════════════════ */
:root {
  /* 官方品牌色板 — 官網綠系 */
  --brand-green: #1EACA6;
  --brand-green-hover: #18908b;
  --brand-green-active: #147a76;
  --brand-green-light: #e8f6f5;
  --brand-green-lighter: #f0faf9;
  --brand-green-dark: #0c263d;         /* 深色文字/背景 */

  /* 通用色板 */
  --el-color-primary: var(--brand-green);
  --el-color-primary-light-3: #5ec4bf;
  --el-color-primary-light-5: #8dd7d4;
  --el-color-primary-light-7: #bce9e7;
  --el-color-primary-light-8: #d4f1ef;
  --el-color-primary-light-9: #e8f6f5;
  --el-color-primary-dark-2: var(--brand-green-hover);
  --el-color-success: #67C23A;
  --el-color-warning: #E6A23C;
  --el-color-danger: #F56C6C;
  --el-color-info: #909399;

  /* 布局色 */
  --bg: #f5f7fa;
  --panel: #FFFFFF;
  --border: #DCDFE6;
  --border-light: #F0F0F0;
  --border-lighter: #F5F5F5;
  --border-extra-light: #F2F6FC;

  /* 语义色映射 */
  --primary: var(--brand-green);
  --primary-hover: var(--brand-green-hover);
  --primary-light: var(--brand-green-light);
  --accent: var(--brand-green);
  --accent-hover: var(--brand-green-hover);
  --warning: var(--el-color-warning);
  --error: var(--el-color-danger);

  /* 文字色 — 官網用的深綠黑 #101f1c */
  --text-primary: #101f1c;
  --text-regular: #404946;
  --text-secondary: #909399;
  --text-placeholder: #C0C4CC;
  --text: var(--text-primary);
  --muted: var(--text-secondary);

  /* 侧边栏 (浅色) */
  --sidebar-bg: #FFFFFF;
  --sidebar-text: var(--text-regular);
  --sidebar-active: var(--brand-green);
  --sidebar-active-bg: var(--brand-green-light);

  /* 基础 */
  --font: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-light: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-dark: 0 2px 12px 0 rgba(0,0,0,0.1);
  --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 0.3s cubic-bezier(0.4,0,0.2,1);
  --sidebar-expanded-width: 208px;
  --sidebar-collapsed-width: 56px;
  --header-height: 48px;
  --tabbar-height: 40px;
  --control-height: 32px;
  --control-height-sm: 24px;
  --control-height-lg: 40px;
  --control-radius: 4px;
  --control-border: #d9d9d9;
  --control-focus-ring: 0 0 0 2px rgba(30,172,166,0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
button, input, select, textarea { font-family: var(--font); letter-spacing: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; height: 100vh; overflow: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

.layout { display: flex; height: 100vh; }

/* ═══ 左侧导航 — Ant Design Pro 结构的 IMZFC 适配 ═══ */
#appSidebar {
  width: var(--sidebar-expanded-width);
  color: #526581;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: width var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  z-index: 20;
}

#appSidebar .icon,
.nav-toggle .icon,
.shell-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}
.icon-brand { --nav-icon: url('/assets/brand/zf-symbol-mono.svg'); }
.icon-search { --nav-icon: url('/assets/icons/mingcute/search-line.svg'); }
.icon-accounts { --nav-icon: url('/assets/icons/mingcute/user-3-line.svg'); }
.icon-traders { --nav-icon: url('/assets/icons/mingcute/group-3-line.svg'); }
.icon-quant { --nav-icon: url('/assets/icons/mingcute/ai-line.svg'); }
.icon-key { --nav-icon: url('/assets/icons/mingcute/key-2-line.svg'); }
.icon-trending { --nav-icon: url('/assets/icons/mingcute/trending-up-line.svg'); }
.icon-clearing { --nav-icon: url('/assets/icons/mingcute/clipboard-line.svg'); }
.icon-analytics { --nav-icon: url('/assets/icons/mingcute/chart-bar-line.svg'); }
.icon-files { --nav-icon: url('/assets/icons/mingcute/folder-2-line.svg'); }
.icon-power { --nav-icon: url('/assets/icons/mingcute/lightning-line.svg'); }
.icon-download { --nav-icon: url('/assets/icons/mingcute/download-2-line.svg'); }
.icon-generate { --nav-icon: url('/assets/icons/mingcute/clipboard-line.svg'); }
.icon-user-settings { --nav-icon: url('/assets/icons/mingcute/user-setting-line.svg'); }
.icon-profile { --nav-icon: url('/assets/icons/mingcute/user-3-line.svg'); }
.icon-approval { --nav-icon: url('/assets/icons/mingcute/clipboard-line.svg'); }
.icon-grid { --nav-icon: url('/assets/icons/mingcute/grid-line.svg'); }
.icon-wave { --nav-icon: url('/assets/icons/mingcute/wave-line.svg'); }
.icon-upload { --nav-icon: url('/assets/icons/mingcute/upload-2-line.svg'); }
.icon-solar { --nav-icon: url('/assets/icons/mingcute/solar-panel-line.svg'); }
.icon-heartbeat { --nav-icon: url('/assets/icons/mingcute/heartbeat-line.svg'); }
.icon-history { --nav-icon: url('/assets/icons/mingcute/history-line.svg'); }
.icon-pie { --nav-icon: url('/assets/icons/mingcute/chart-pie-2-line.svg'); }
.icon-transfer { --nav-icon: url('/assets/icons/mingcute/transfer-line.svg'); }
.icon-chevron { --nav-icon: url('/assets/icons/mingcute/down-line.svg'); }
.edge-status { font-size: 12px; font-weight: 600; }
.edge-status.is-active { color: var(--el-color-success); }
.edge-status.is-warn { color: var(--el-color-warning); }
.edge-status.is-off { color: var(--text-secondary); }
.edge-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--text-placeholder); }
.edge-dot.is-online { background: var(--el-color-success); }
.edge-node-id { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.edge-download-panel { margin-top: 16px; }
.edge-download-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.edge-token-reveal { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--el-color-warning); background: #fffaf0; color: var(--text-primary); }
.edge-token-reveal p { margin: 6px 0 10px; color: var(--text-secondary); }
.edge-token-reveal pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: #fff; border: 1px solid var(--border); margin-bottom: 10px; }
.icon-collapse { --nav-icon: url('/assets/icons/mingcute/arrow-left-line.svg'); }
.icon-exit { --nav-icon: url('/assets/icons/mingcute/exit-line.svg'); }
.icon-menu { --nav-icon: url('/assets/icons/mingcute/menu-line.svg'); }
.icon-announcement { --nav-icon: url('/assets/icons/mingcute/clipboard-line.svg'); }

.sidebar-header {
  height: 64px;
  min-height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.sidebar-brand {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #09244b;
  text-decoration: none;
}
.sidebar-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.brand-symbol { display: block; object-fit: contain; }
.sidebar-brand-mark .brand-symbol { width: 28px; height: 22px; }
.sidebar-brand-copy { min-width: 0; display: flex; flex-direction: column; white-space: nowrap; }
.sidebar-brand-copy strong { color: var(--primary); font-size: 18px; line-height: 22px; font-weight: 650; letter-spacing: 0; }
.sidebar-brand-copy small { color: rgba(0,0,0,0.45); font-size: 10px; line-height: 14px; }
.sidebar-logout {
  width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 28px; border: 0; border-radius: 4px; color: rgba(0,0,0,0.45); background: transparent;
  cursor: pointer; transition: color var(--transition-fast), background var(--transition-fast);
}
.sidebar-logout:hover { color: var(--primary); background: var(--brand-green-lighter); }
.sidebar-logout:focus-visible,
.nav-item:focus-visible,
.sidebar-search:focus-within { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.sidebar-logout .icon { width: 18px; height: 18px; flex-basis: 18px; }

.sidebar-search-wrap { padding: 0 16px 8px; flex-shrink: 0; }
.sidebar-search {
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #b5bdc9;
  background: #f5f5f5;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.sidebar-search:focus-within { color: var(--primary); background: #fff; border-color: var(--primary-light-5); }
.sidebar-search input {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  color: rgba(0,0,0,0.85); font: 400 13px/20px var(--font);
}
.sidebar-search input::placeholder { color: #b5bdc9; }
.sidebar-search input::-webkit-search-cancel-button { cursor: pointer; }

.nav-section {
  min-height: 0;
  flex: 1;
  padding: 0 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.nav-section::-webkit-scrollbar { width: 5px; }
.nav-section::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
.nav-item {
  width: calc(100% - 32px);
  height: 40px;
  min-height: 40px;
  margin: 0 16px 4px;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  color: rgba(0,0,0,0.85);
  background: transparent;
  cursor: pointer;
  position: relative;
  text-align: left;
  font: 400 14px/22px var(--font);
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-item:hover { color: var(--primary); background: var(--brand-green-lighter); }
.nav-item.active {
  color: var(--primary);
  background: var(--brand-green-light);
  box-shadow: inset -3px 0 0 var(--primary);
  font-weight: 500;
}
.nav-label { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .icon { width: 16px; height: 16px; flex-basis: 16px; color: rgba(0,0,0,0.45); }
.nav-item:hover .icon { color: currentColor; }
.nav-item.active .icon { color: currentColor; }
.nav-item.running { animation: epPulse 1.2s infinite; }
@keyframes epPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

.nav-item-top { font-weight: 500; }
.nav-group { overflow: hidden; }
.nav-group-header { justify-content: flex-start; }
.nav-group-header .nav-arrow {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  margin-left: auto;
  color: #b5bdc9;
  transition: transform var(--transition-normal), color var(--transition-fast);
}
.nav-group.open .nav-group-header:not(.active) { color: #09244b; }
.nav-group.open .nav-group-header .nav-arrow { transform: rotate(180deg); color: var(--primary); }
.nav-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), margin-bottom 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-group.open .nav-group-body,
.nav-group.search-open .nav-group-body { max-height: 600px; margin-bottom: 4px; }
.nav-sub-item { padding-left: 40px; }
.nav-sub-item.active { box-shadow: inset -3px 0 0 var(--primary); }
.nav-sub-item .icon { display: none; }
.nav-search-hidden { display: none !important; }
.sidebar-search-empty { padding: 18px 8px; color: #8491a5; font-size: 12px; text-align: center; }

.sidebar-footer {
  min-height: 56px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.sidebar-avatar {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--primary); font-size: 11px; font-weight: 600;
}
.sidebar-user-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sidebar-user-copy strong { overflow: hidden; color: rgba(0,0,0,0.85); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-meta { display: flex; align-items: center; gap: 4px; overflow: hidden; color: #8491a5; font-size: 10px; line-height: 16px; white-space: nowrap; }
.sidebar-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--el-color-success); box-shadow: 0 0 0 2px rgba(103,194,58,0.12); }
.sidebar-meta-sep { color: #c7ced8; }

#appSidebar.collapsed { width: var(--sidebar-collapsed-width); }
#appSidebar.collapsed .sidebar-header { padding: 0 12px; justify-content: center; }
#appSidebar.collapsed .sidebar-brand { flex: 0 0 32px; justify-content: center; }
#appSidebar.collapsed .sidebar-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
#appSidebar.collapsed .sidebar-brand-copy,
#appSidebar.collapsed .sidebar-search-wrap,
#appSidebar.collapsed .nav-label,
#appSidebar.collapsed .nav-arrow,
#appSidebar.collapsed .nav-group-body,
#appSidebar.collapsed .sidebar-user-copy,
#appSidebar.collapsed .sidebar-logout { display: none !important; }
#appSidebar.collapsed .nav-section { padding: 0 0 8px; overflow-x: hidden; }
#appSidebar.collapsed .nav-item { width: 40px; min-width: 40px; margin: 0 8px 4px; padding: 10px 12px; justify-content: center; box-shadow: none; }
#appSidebar.collapsed .nav-item.active { box-shadow: inset -3px 0 0 var(--primary); }
#appSidebar.collapsed .nav-group { overflow: visible; }
#appSidebar.collapsed .sidebar-footer { padding: 12px; justify-content: center; }

/* ═══════════════════════════════════════════════
   更新日志弹窗（changelog-viewer）
   ═══════════════════════════════════════════════ */
#clog-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2147483640;
  display: flex; align-items: center; justify-content: center;
  outline: none;
}
.clog-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.clog-box {
  position: relative;
  width: 820px; max-width: 94vw; height: 560px; max-height: 85vh;
  background: #161b22; border: 1px solid #30363d; border-radius: 12px;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  overflow: hidden;
}
.clog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid #21262d;
  background: #0d1117; flex-shrink: 0;
}
.clog-title { font-size: 15px; font-weight: 600; color: #e6edf3; }
.clog-close {
  width: 28px; height: 28px; border: none; background: transparent;
  color: #8b949e; font-size: 16px; cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.clog-close:hover { background: #21262d; color: #e6edf3; }
.clog-body {
  flex: 1; display: flex; min-height: 0;
}
.clog-list {
  width: 200px; flex-shrink: 0; overflow-y: auto; padding: 8px 0;
  border-right: 1px solid #21262d; background: #0d1117;
}
.clog-list .clog-loading,
.clog-list .clog-empty,
.clog-list .clog-error {
  padding: 20px 16px; font-size: 12px; color: #8b949e; text-align: center;
}
.clog-list .clog-error { color: #f85149; }
.clog-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; cursor: pointer; font-size: 12px; color: #8b949e;
  transition: background 0.15s; border-left: 2px solid transparent;
  user-select: none;
}
.clog-item:hover { background: #1c2128; color: #c9d1d9; }
.clog-item.active {
  background: #1a2332; color: #58a6ff;
  border-left-color: #58a6ff;
}
.clog-item-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #30363d; flex-shrink: 0;
}
.clog-item.active .clog-item-dot { background: #58a6ff; }
.clog-item-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clog-item-size { font-size: 10px; color: #484f58; flex-shrink: 0; }
.clog-content {
  flex: 1; overflow-y: auto; padding: 20px 28px;
}
.clog-content .clog-loading,
.clog-content .clog-empty,
.clog-content .clog-error {
  font-size: 13px; color: #8b949e; text-align: center; padding-top: 60px;
}
.clog-content .clog-error { color: #f85149; }

/* ── Markdown 渲染样式 ── */
.clog-md { color: #c9d1d9; font-size: 13px; line-height: 1.7; }
.clog-md h1 { font-size: 20px; font-weight: 600; color: #e6edf3; border-bottom: 1px solid #21262d; padding-bottom: 10px; margin: 0 0 16px; }
.clog-md h2 { font-size: 16px; font-weight: 600; color: #e6edf3; margin: 24px 0 10px; }
.clog-md h3 { font-size: 14px; font-weight: 600; color: #e6edf3; margin: 18px 0 8px; }
.clog-md p { margin: 0 0 10px; }
.clog-md ul, .clog-md ol { margin: 0 0 10px; padding-left: 20px; }
.clog-md li { margin-bottom: 4px; }
.clog-md code {
  background: #1c2128; padding: 2px 6px; border-radius: 4px;
  font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: #d2a8ff;
}
.clog-md pre {
  background: #0d1117; border: 1px solid #21262d; border-radius: 6px;
  padding: 12px 16px; overflow-x: auto; margin: 0 0 12px;
}
.clog-md pre code { background: none; padding: 0; color: #c9d1d9; }
.clog-md table { border-collapse: collapse; width: 100%; margin: 0 0 12px; }
.clog-md th, .clog-md td { border: 1px solid #30363d; padding: 6px 12px; text-align: left; font-size: 12px; }
.clog-md th { background: #0d1117; font-weight: 600; color: #e6edf3; }
.clog-md strong { color: #e6edf3; }
.clog-md a { color: #58a6ff; }
.clog-md blockquote {
  border-left: 3px solid #30363d; margin: 0 0 10px; padding: 4px 14px;
  color: #8b949e;
}
.clog-md hr { border: none; border-top: 1px solid #21262d; margin: 16px 0; }

.clog-footer {
  padding: 10px 20px; border-top: 1px solid #21262d;
  font-size: 11px; color: #484f58; background: #0d1117; flex-shrink: 0;
  text-align: center;
}

/* ═══ 右侧主区域 ═══ */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }

/* 顶栏 — Ant Design Pro 48px 全局页头 */
.topbar {
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: rgba(0,0,0,0.85);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 15;
}
.topbar-leading,
.topbar-context,
.header-token-group,
.topbar-account,
.topbar-workspace {
  display: flex;
  align-items: center;
}
.topbar-leading { min-width: 0; gap: 8px; flex: 0 0 auto; }
.topbar-section-title { font-size: 14px; font-weight: 500; white-space: nowrap; }
.topbar .date { color: rgba(0,0,0,0.45); font-size: 12px; font-weight: 400; white-space: nowrap; }
.topbar-workspace {
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.topbar-workspace::-webkit-scrollbar { display: none; }
.topbar-context { min-width: max-content; gap: 6px; }
.header-token-group { min-width: max-content; gap: 6px; }
.topbar-account { min-width: max-content; gap: 6px; }
.topbar-divider { width: 1px; height: 20px; flex: 0 0 1px; background: #f0f0f0; }
.company-info {
  max-width: 120px;
  overflow: hidden;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  color: rgba(0,0,0,0.65);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.header-icon-button:hover { color: var(--primary); background: var(--brand-green-lighter); }
.header-icon-button:focus-visible,
.header-command-button:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.header-icon-button .shell-icon,
.header-icon-button .icon { width: 18px; height: 18px; flex-basis: 18px; }
.sidebar-collapse.is-collapsed .icon-collapse { --nav-icon: url('/assets/icons/mingcute/arrow-right-line.svg'); }
.header-add-company { color: var(--primary); font-size: 22px; font-weight: 300; line-height: 1; }
.header-command-button {
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  color: rgba(0,0,0,0.65);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font: 400 12px/20px var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.header-command-button:hover { color: var(--primary); border-color: var(--primary); }
.header-command-button.is-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.header-command-button.is-primary:hover { color: #fff; background: var(--primary-hover); border-color: var(--primary-hover); }
.header-command-button:disabled,
.header-command-button:disabled:hover { color: rgba(0,0,0,0.25); background: #f5f5f5; border-color: #d9d9d9; cursor: not-allowed; }
.model-download-button { min-width: 90px; }
.model-download-button .shell-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.function-context-stack {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 1.35fr);
  gap: 16px;
  margin-bottom: 16px;
}
.function-context-stack-single { grid-template-columns: minmax(190px, 0.5fr); }
.function-context-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.function-context-card-header { margin-bottom: 14px; }
.function-context-card-header h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.function-workspace-field { min-width: 0; }
.function-workspace-field .form-select { width: 100%; }
.function-workspace-model { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 12px; align-items: end; }
.function-workspace-model .model-download-button { min-height: 34px; white-space: nowrap; }
.func-open-button,
.model-open-button { margin-left: 8px; white-space: nowrap; }
.command-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.header-token-icon { width: 16px; height: 16px; flex-basis: 16px; color: rgba(0,0,0,0.45); }
.token-menu-wrap { position: relative; display: inline-flex; }
.topbar select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  background: var(--panel);
  color: rgba(0,0,0,0.85);
  min-width: 142px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.topbar select:hover { border-color: var(--primary-light-3); }
.topbar select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(30,172,166,0.12); }
#monthSelect { min-width: 118px; width: 118px; }
.token-input {
  width: 176px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 12px;
  background: var(--panel);
  color: rgba(0,0,0,0.85);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.token-input:hover { border-color: var(--primary-light-3); }
.token-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(30,172,166,0.12); }
.token-dropdown { display: none; position: fixed; z-index: 50; background: var(--panel); border: 1px solid #f0f0f0; border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,0.15); min-width: 180px; overflow: hidden; }
.token-dropdown.show { display: block; }
.token-dropdown-item { min-height: 36px; padding: 7px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; transition: color var(--transition-fast), background var(--transition-fast); }
.token-dropdown-item:hover { background: var(--brand-green-lighter); color: var(--primary); }
.token-port { color: rgba(0,0,0,0.45); font-size: 11px; }
.token-dropdown-item.loading { opacity: 0.5; pointer-events: none; }
.btn-sm.loading { opacity: 0.6; pointer-events: none; }
.btn-sm {
  padding: 7px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12px; cursor: pointer; font-weight: 500; transition: all var(--transition-fast);
  background: var(--panel); color: var(--text-regular);
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-muted { background: #F5F7FA; border-color: var(--border); color: var(--text-regular); }
.btn-muted:hover { background: var(--brand-green-lighter); border-color: var(--primary-light-7); color: var(--primary); }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-danger:hover { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.btn-sm:active { transform: scale(0.97); }
.token-status { max-width: 80px; overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.token-ok { color: var(--el-color-success); }
.token-err { color: var(--el-color-danger); }

/* ═══ 内容区 ═══ */
.content { flex: 1; display: flex; overflow: hidden; }

/* 全宽页面（企业统计/文件共享/交易员管理等）：纵向排列，子元素自动撑满宽度 */
.main-content { flex-direction: column; }

/* 功能面板 */
.func-panel {
  width: 380px; padding: 14px; overflow-y: auto; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fdfc 0%, #f0faf9 50%, #f8fdfc 100%);
}
.func-card {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
}
.func-card:hover { box-shadow: var(--shadow); border-color: var(--brand-green-light); }
.func-card.open { border-color: var(--primary); border-left: 3px solid var(--primary); }
.func-card-header {
  padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background var(--transition-fast); border-bottom: 1px solid transparent;
}
.func-card.open .func-card-header {
  border-bottom-color: var(--border-lighter);
  background: var(--brand-green-lighter);
}
.func-card-header:hover { background: var(--brand-green-lighter); }
.func-card-header .icon { font-size: 18px; }
.func-card-header .title { font-weight: 600; font-size: 13px; flex: 1; color: var(--text-primary); }
.func-card.open .func-card-header .title { color: var(--primary); }
.func-card-header .arrow {
  color: var(--text-placeholder); transition: transform var(--transition-normal);
  font-size: 10px;
}
.func-card.open .arrow { transform: rotate(90deg); color: var(--primary); }

.func-card-body { display: none; padding: 14px 16px 16px; }
.func-card.open .func-card-body { display: block; animation: epSlideDown 0.25s ease; }
@keyframes epSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 表单元素 */
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 13px; color: var(--text-regular); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; background: var(--panel); color: var(--text-regular);
  transition: border-color var(--transition-fast);
}
.form-input:hover, .form-select:hover { border-color: var(--text-placeholder); }
.form-input:focus, .form-select:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(30,172,166,0.15);
}
.form-input::placeholder { color: var(--text-placeholder); }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
  font-size: 12px; transition: all var(--transition-fast); user-select: none;
  background: var(--panel); color: var(--text-regular);
}
.checkbox-item:hover { border-color: var(--primary); color: var(--primary); background: var(--brand-green-lighter); }
.checkbox-item.selected {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 500;
}
.checkbox-item input { display: none; }

.btn-run {
  width: 100%; padding: 10px 16px; border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition-fast);
  margin-top: 8px; letter-spacing: 0.5px;
}
.btn-run-primary { background: var(--primary); color: #fff; }
.btn-run-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(30,172,166,0.35); }
.btn-run-accent { background: var(--accent); color: #fff; }
.btn-run-accent:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(30,172,166,0.35); }
.btn-run-muted { background: #F5F7FA; color: var(--text-regular); border: 1px solid var(--border); }
.btn-run-muted:hover { background: var(--brand-green-lighter); border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 12px rgba(30,172,166,0.15); }
.btn-run:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-run:active:not(:disabled) { transform: scale(0.98); }

/* ═══ 状态栏 ═══ */
.statusbar {
  min-height: 28px; padding: 0 16px; border-top: 1px solid #f0f0f0; font-size: 11px;
  color: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff;
}

/* ═══ 弹窗 ═══ */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1000; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal-overlay.active { display: flex; animation: epFadeIn 0.2s ease; }
@keyframes epFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--panel); border-radius: var(--radius-lg); padding: 28px; min-width: 400px;
  max-width: 460px; box-shadow: var(--shadow-dark);
  border-top: 3px solid var(--primary);
  animation: epScaleIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes epScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-box h3 { font-size: 17px; margin-bottom: 20px; color: var(--primary); font-weight: 600; }
.modal-box .form-input { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ═══ 空状态 ═══ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: var(--text-secondary);
}
.empty-state .icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 14px; }

/* ═══ 置换申报专用 ═══ */
.dp-panel { padding: 20px 24px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.dp-panel h2 { font-size: 18px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.dp-config {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 18px; padding: 16px 18px;
  background: linear-gradient(135deg, #f8fdfc 0%, #e8f6f5 100%);
  border: 1px solid var(--primary-light-7); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,172,166,0.06);
}
.dp-config .fg { display: flex; flex-direction: column; gap: 4px; }
.dp-config .fg label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.dp-config .fg input, .dp-config .fg select {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; min-width: 130px; background: var(--panel); color: var(--text-regular);
  transition: border-color var(--transition-fast);
}
.dp-config .fg input:hover, .dp-config .fg select:hover { border-color: var(--text-placeholder); }
.dp-config .fg input:focus, .dp-config .fg select:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(30,172,166,0.15);
}
.dp-config .fg select { min-width: 200px; }
.dp-date-options { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; align-items: center; }
.dp-date-option {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--panel);
  color: var(--text-regular); font-size: 11px; cursor: pointer; white-space: nowrap;
}
.dp-date-option:has(input:checked) { border-color: var(--primary); background: var(--brand-green-lighter); color: #147d78; }
.dp-date-option input { width: 14px !important; min-width: 14px !important; height: 14px !important; margin: 0; accent-color: var(--primary); }
.dp-date-add { display: grid; grid-template-columns: minmax(130px, 1fr) auto; gap: 6px; align-items: center; }
.dp-date-add .btn-sm { height: var(--control-height); justify-content: center; }
.dp-actions { display: flex; gap: 8px; align-items: flex-end; }
.dp-table-wrap {
  flex: 1; overflow-y: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-light);
}
.dp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dp-table thead { position: sticky; top: 0; z-index: 2; }
.dp-table th {
  background: linear-gradient(180deg, #e8f6f5 0%, #d4f1ef 100%);
  padding: 10px 12px; text-align: left; font-size: 12px;
  color: #0c6b66; border-bottom: 2px solid var(--primary); font-weight: 600;
  white-space: nowrap;
}
.dp-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-lighter); color: var(--text-regular); }
.dp-table tbody tr { transition: background var(--transition-fast); }
.dp-table tbody tr:hover td { background: #F5F7FA; }
.dp-table tr.hour-header td {
  background: linear-gradient(90deg, #e8f6f5 0%, #bce9e7 50%, #e8f6f5 100%);
  font-weight: 700; font-size: 13px;
  padding: 9px 12px; color: #0c6b66; border-bottom: 2px solid var(--primary);
}
.dp-table .chk { width: 36px; text-align: center; }
.dp-table .chk input[type=checkbox],
.dp-table .chk-all-hour input[type=checkbox] {
  width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary);
}
.dp-table .energy { text-align: right; font-variant-numeric: tabular-nums; color: var(--el-color-success); font-weight: 500; }
.dp-table .price { text-align: right; font-variant-numeric: tabular-nums; }
.dp-table .retId { font-size: 11px; color: var(--text-secondary); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dp-bottom {
  margin-top: 14px; padding: 16px 18px;
  background: linear-gradient(135deg, #f8fdfc 0%, #f0faf9 100%);
  border: 1px solid var(--primary-light-7); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,172,166,0.06);
}
.dp-bottom .summary { display: flex; gap: 28px; margin-bottom: 14px; font-size: 13px; flex-wrap: wrap; }
.dp-bottom .summary .num { font-weight: 700; font-size: 17px; color: var(--primary); }
.dp-price-ctrl { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.dp-price-ctrl .fg { display: flex; flex-direction: column; gap: 4px; }
.dp-price-ctrl .fg label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.dp-price-ctrl .fg input, .dp-price-ctrl .fg select {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px;
}
.dp-toast {
  position: fixed; top: 20px; right: 20px; padding: 12px 22px;
  border-radius: var(--radius); color: #fff; font-size: 13px; font-weight: 500;
  z-index: 9999; animation: epToastIn 2.8s ease forwards;
  box-shadow: var(--shadow-dark);
}
.dp-toast.ok { background: var(--el-color-success); }
.dp-toast.err { background: var(--el-color-danger); }
@keyframes epToastIn {
  0%   { opacity: 0; transform: translateX(40px); }
  12%  { opacity: 1; transform: translateX(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* ─── 置换申报增强 ─── */
.dp-table input.ed-alloc,
.dp-table input.ed-price {
  width: 90px; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 12px; text-align: right;
  font-variant-numeric: tabular-nums; background: var(--panel);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.dp-table input.ed-alloc:hover,
.dp-table input.ed-price:hover { border-color: var(--text-placeholder); }
.dp-table input.ed-alloc:focus,
.dp-table input.ed-price:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(30,172,166,0.15); background: #fff;
}
.dp-table input.ed-changed {
  background: #fef0e6 !important; border-color: var(--el-color-warning) !important;
}
.dp-table select.ed-zh-type {
  width: 62px; padding: 2px 4px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 12px; background: var(--panel);
}
.dp-table input.ed-zh-amt {
  width: 72px; padding: 3px 6px; border: 1px solid var(--border);
  border-radius: 3px; font-size: 12px; text-align: right;
  font-variant-numeric: tabular-nums; background: var(--panel);
}
.dp-table select.ed-zh-type:focus, .dp-table input.ed-zh-amt:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 2px rgba(30,172,166,0.15);
}
.dp-table select.ed-zh-type.ed-changed, .dp-table input.ed-zh-amt.ed-changed {
  background: #fef0e6 !important; border-color: var(--el-color-warning) !important;
}

.dp-hour-alloc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dp-hour-alloc input { width: 72px; padding: 3px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 11px; }
.dp-hour-alloc input:focus { border-color: var(--primary); outline: none; }
.dp-hour-alloc button {
  padding: 3px 10px; font-size: 11px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel); cursor: pointer;
  transition: all var(--transition-fast); color: var(--text-regular);
}
.dp-hour-alloc button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.dp-hour-alloc .dp-hour-real-total { font-size: 12px; font-weight: 600; color: var(--el-color-success); }

.dp-price-mode { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.dp-price-mode .fg { display: flex; flex-direction: column; gap: 4px; }
.dp-price-mode .fg label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.dp-price-mode .fg input,
.dp-price-mode .fg select {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px;
  transition: border-color var(--transition-fast);
}
.dp-price-mode .fg input:focus,
.dp-price-mode .fg select:focus { border-color: var(--primary); outline: none; }

.dp-hour-warn { font-size: 10px; color: var(--el-color-warning); margin-left: 4px; }

/* ═══ 统一日期组件 ═══ */
.date-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.date-preset-btn {
  padding: 4px 14px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 12px; cursor: pointer; background: var(--panel);
  color: var(--text-regular); transition: all var(--transition-fast); white-space: nowrap;
}
.date-preset-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--brand-green-lighter); }
.date-preset-btn.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 600;
}

.date-range-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.date-range-sep { font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }

.date-input {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 12px; background: var(--panel); color: var(--text-regular); min-width: 0;
  transition: border-color var(--transition-fast);
}
.date-input:hover { border-color: var(--text-placeholder); }
.date-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(30,172,166,0.15); }

.date-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 24px; }
.date-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
  background: var(--primary-light); border: 1px solid var(--primary-light-7);
  border-radius: 14px; font-size: 11px; color: var(--primary); cursor: pointer;
  transition: all var(--transition-fast);
}
.date-tag:hover { background: var(--primary-light-7); border-color: var(--primary-light-3); }

.date-error { font-size: 12px; color: var(--el-color-danger); margin-top: 4px; display: none; }
.date-error.show { display: block; }

.date-footer { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.date-footer .btn-clear { padding: 2px 8px; border: none; background: none; font-size: 11px; color: var(--text-secondary); cursor: pointer; text-decoration: underline; }
.date-footer .btn-clear:hover { color: var(--el-color-danger); }

/* 修复实时出清表格最小宽度，防止挤压 */
#clearTableWrap table {
  min-width: 520px;
}

/* ═══ Dashboard 首页 ═══ */
.dashboard-page {
  min-height: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  background: var(--bg);
}
.dashboard-intro {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dashboard-brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6,77,131,0.16);
  border-radius: 6px;
  background: #fff;
}
.dashboard-brand-icon .brand-symbol { width: 34px; height: 25px; }
.dashboard-intro h1 {
  margin: 0;
  color: rgba(0,0,0,0.85);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}
.dashboard-intro p { margin: 2px 0 0; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }
.dashboard-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-card {
  min-width: 0;
  min-height: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--panel); text-decoration: none; color: var(--text-regular);
  transition: all var(--transition-fast); text-align: center;
}
.dashboard-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.dashboard-card-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--primary);
  background: var(--brand-green-lighter);
}
.dashboard-card-icon .shell-icon { width: 18px; height: 18px; }
.dashboard-card .title { font-size: 13px; font-weight: 600; line-height: 20px; color: var(--text-primary); }
.dashboard-card:hover .title { color: var(--primary); }
.dashboard-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-badge {
  min-width: 0;
  padding: 14px 18px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; text-align: center;
}
.stat-badge .num { font-size: 18px; font-weight: 600; line-height: 26px; color: var(--primary); }
.stat-badge .label { font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .dashboard-page { padding: 20px 16px; gap: 16px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-card { min-height: 96px; padding: 14px 10px; }
}

@media (max-width: 520px) {
  .dashboard-page { padding: 16px 12px; }
  .dashboard-intro { gap: 10px; }
  .dashboard-brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .dashboard-intro h1 { font-size: 18px; line-height: 26px; }
  .dashboard-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat-badge { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; text-align: left; }
  .stat-badge .num { order: 2; font-size: 14px; line-height: 22px; text-align: right; }
  .stat-badge .label { order: 1; margin: 0; }
}

/* ═══ 多标签页 — 标签栏 + 标签容器 ═══ */
.tab-bar {
  height: var(--tabbar-height);
  min-height: var(--tabbar-height);
  padding: 0 12px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}
.tab-bar::-webkit-scrollbar { height: 3px; }
.tab-button {
  height: var(--tabbar-height);
  min-width: 0;
  max-width: 220px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(0,0,0,0.65);
  background: transparent;
  border: 0;
  box-shadow: inset 0 -2px 0 transparent;
  position: relative;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  font-size: 13px;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.tab-button:hover { color: var(--primary); background: var(--brand-green-lighter); }
.tab-button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--primary);
  font-weight: 500;
}
.tab-button:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: -2px; }
.tab-button .tab-icon { width: 14px; height: 14px; flex: 0 0 14px; color: rgba(0,0,0,0.45); }
.tab-button:hover .tab-icon,
.tab-button.active .tab-icon { color: currentColor; }
.tab-button .tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tab-button .tab-close {
  width: 20px;
  height: 20px;
  margin-left: 1px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  border: 0;
  border-radius: 4px;
  color: rgba(0,0,0,0.35);
  background: transparent;
  font: 16px/1 var(--font);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.tab-button .tab-close:hover { color: var(--el-color-danger); background: #fef0f0; }
.tab-button .tab-close:focus-visible { outline: 2px solid rgba(245,108,108,0.3); outline-offset: 0; }

.tab-host {
  flex: 1; position: relative; overflow: hidden; min-height: 0;
}
.tab-container {
  position: absolute; inset: 0; display: none;
  flex-direction: column; overflow: hidden;
}
.tab-container.active { display: flex; }

/* ═══ 账号管理 ═══ */
.accounts-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.accounts-header h2 { font-size:18px; color:var(--text-primary); margin:0; }
.account-table { width:100%; border-collapse:collapse; background:var(--panel); border-radius:var(--radius); overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.account-table th { background:var(--bg); padding:10px 14px; text-align:left; font-size:13px; color:var(--text-secondary); font-weight:500; border-bottom:1px solid var(--border); }
.account-table td { padding:10px 14px; border-bottom:1px solid var(--border-lighter); font-size:13px; color:var(--text-regular); }
.account-table tr:last-child td { border-bottom:none; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.status-dot.online { background:var(--el-color-success); }
.status-dot.offline { background:var(--el-color-info); }
.account-row-restricted > td { color: rgba(0,0,0,0.45); background: #fcfcfc; }
.account-manager-list { min-width: 120px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.account-manager-tag {
  min-height: 22px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  color: #147d78;
  background: var(--brand-green-lighter);
  border-radius: 3px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.account-manager-empty,
.account-restricted-note { color: rgba(0,0,0,0.35); font-size: 11px; white-space: nowrap; }
.btn-group { display:flex; gap:6px; flex-wrap:wrap; }
.btn-xs { padding:4px 10px; font-size:12px; border-radius:var(--radius); border:1px solid var(--border); background:var(--panel); color:var(--text-regular); cursor:pointer; transition:all .15s; white-space:nowrap; }
.btn-xs:hover { border-color:var(--primary); color:var(--primary); }
.btn-xs.primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-xs.primary:hover { background:var(--primary-hover); }
.btn-xs.danger { color:var(--error); border-color:var(--error); }
.btn-xs.danger:hover { background:var(--error); color:#fff; }
.token-preview { font-family:monospace; font-size:11px; color:var(--muted); max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:inline-block; }
.time-ago { font-size:11px; color:var(--muted); }
.toast { position:fixed; top:20px; right:20px; padding:10px 18px; border-radius:var(--radius); font-size:13px; z-index:2000; animation:fadeInOut 2.5s; color:#fff; }
.toast.success { background:var(--el-color-success); }
.toast.error { background:var(--el-color-danger); }
@keyframes fadeInOut { 0%{opacity:0;transform:translateY(-10px)} 10%{opacity:1;transform:translateY(0)} 80%{opacity:1} 100%{opacity:0} }
/* 账号弹窗 */
.modal-mask { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.35); z-index:1000; display:none; align-items:center; justify-content:center; }
.modal-mask.show { display:flex; }
.modal-mask .modal-box { background:var(--panel); border-radius:8px; padding:24px; width:400px; max-width:90vw; box-shadow:0 4px 20px rgba(0,0,0,.15); border-top:none; }
.modal-mask .modal-box h3 { margin:0 0 16px; font-size:16px; color:var(--text-primary); }
.form-row { margin-bottom:14px; }
.form-row label { display:block; font-size:12px; color:var(--text-secondary); margin-bottom:4px; }
.form-row input { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:var(--radius); font-size:13px; box-sizing:border-box; }
.form-row input:focus { outline:none; border-color:var(--primary); }
.form-row input:disabled { background:var(--bg); color:var(--text-secondary); cursor:not-allowed; }

/* 代码块 — Token/Cookie 展示 */
.code-block {
  background: #1A1E2B; color: #a3b1cc;
  font-family: 'Cascadia Code', 'Consolas', 'Menlo', monospace;
  font-size: 11px; line-height: 1.5;
  padding: 10px 14px; border-radius: var(--radius);
  max-height: 80px; overflow-y: auto; overflow-x: auto;
  white-space: pre; word-break: break-all;
  margin: 0; border: 1px solid #2d3340;
}

/* ═══ 全局滚动条 — imptc.com 绿色风格 ═══ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #bce9e7; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5ec4bf; }

/* ═══ 企业数据统计 ═══ */
.stats-container {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stats-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.stats-header h2 {
  font-size: 18px;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-header select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--panel);
  color: var(--text-regular);
  min-width: 100px;
}
.stats-table-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-light);
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 1400px;
}
.stats-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.stats-table th {
  background: linear-gradient(180deg, #e8f6f5 0%, #d4f1ef 100%);
  padding: 10px 10px;
  text-align: center;
  font-size: 12px;
  color: #0c6b66;
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-lighter);
  color: var(--text-regular);
  text-align: center;
  white-space: nowrap;
}
.stats-table tbody tr:hover td {
  background: #F5F7FA;
}
.stats-table .name-link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.stats-table .name-link:hover {
  text-decoration: underline;
}
.stats-table .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.stats-table .day-row {
  cursor: pointer;
}
.stats-table .day-row.expanded td {
  background: var(--brand-green-lighter);
  font-weight: 600;
}
.stats-hourly-row td {
  padding: 0;
}
.stats-hourly-inner {
  padding: 12px 16px;
  background: #f8fdfc;
  border-top: 1px dashed var(--border-lighter);
}
.stats-hourly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.stats-hourly-table th {
  background: #e8f6f5;
  padding: 5px 6px;
  font-size: 10px;
  border-bottom: 1px solid var(--border-lighter);
  position: static;
}
.stats-hourly-table td {
  padding: 4px 6px;
  font-size: 11px;
  border-bottom: 1px solid var(--border-extra-light);
}
.stats-back-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-regular);
  cursor: pointer;
  font-size: 12px;
  transition: all var(--transition-fast);
}
.stats-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.stats-import-btn {
  padding: 7px 16px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.stats-import-btn:hover {
  background: var(--primary-hover);
}

/* ═══ 企业卡片布局 ═══ */
.stats-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.stats-card:hover {
  box-shadow: var(--shadow);
}
.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-lighter);
  background: var(--brand-green-lighter);
}
.stats-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stats-card-title .name-link {
  font-size: 16px;
  font-weight: 700;
}
.stats-keepalive-badge {
  font-size: 11px;
  color: var(--el-color-success);
  background: #e6f9e6;
  padding: 2px 8px;
  border-radius: 10px;
}
.stats-card-actions {
  display: flex;
  gap: 8px;
}
.stats-sync-btn {
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition-fast);
}
.stats-sync-btn:hover {
  background: var(--primary-hover);
}
.stats-card-body {
  padding: 0;
  overflow-x: auto;
}
.stats-card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1200px;
}
.stats-card-table th {
  background: #f0f7f6;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-lighter);
  white-space: nowrap;
  text-align: center;
}
.stats-card-table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-extra-light);
  white-space: nowrap;
}
.stats-card-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats-card-footer {
  display: flex;
  gap: 16px;
  padding: 8px 20px;
  border-top: 1px solid var(--border-lighter);
  font-size: 11px;
  color: var(--text-secondary);
  background: #fafbfc;
}
.stats-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ═══ 月份切换器 ═══ */
.stats-month-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-month-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text-regular);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.stats-month-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ═══ 节点选择 ═══ */
.node-option {
  transition: all var(--transition-fast);
}
.node-option:hover {
  background: var(--brand-green-lighter) !important;
}

/* ═══════════════════════════════════════════
   文件共享模块
   ═══════════════════════════════════════════ */
.fileshare-wrap {
  padding: 24px 28px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fileshare-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.fileshare-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 上传拖拽区 */
.fileshare-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  background: var(--panel);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fileshare-dropzone:hover {
  border-color: var(--primary);
  background: var(--brand-green-lighter);
}
.fileshare-dropzone.drag-over {
  border-color: var(--primary);
  background: var(--brand-green-light);
  box-shadow: 0 0 0 4px rgba(30,172,166,0.12);
}
.fs-dz-icon { font-size: 2.4rem; margin-bottom: 8px; }
.fs-dz-text { font-size: 14px; color: var(--text-regular); margin-bottom: 4px; }
.fs-dz-hint  { font-size: 12px; color: var(--text-secondary); }

/* 进度条 */
.fileshare-progress {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
}
.fileshare-progress span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.fs-progress-bar {
  height: 6px;
  background: var(--border-extra-light);
  border-radius: 3px;
  overflow: hidden;
}
.fs-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #38bdf8);
  border-radius: 3px;
  transition: width 0.3s;
}

/* 文件列表标题 */
.fileshare-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 文件表格 */
.fileshare-table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.fileshare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fileshare-table thead {
  background: var(--border-extra-light);
}
.fileshare-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.fileshare-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-lighter);
  color: var(--text-regular);
}
.fileshare-table tbody tr:last-child td {
  border-bottom: none;
}
.fileshare-table tbody tr:hover {
  background: var(--brand-green-lighter);
}
.fs-name {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--text-primary);
}
.fs-time {
  color: var(--text-secondary);
  font-size: 12px;
}
.fs-empty {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--text-placeholder);
  font-size: 13px;
}
.fs-btn-dl, .fs-btn-del {
  margin-right: 6px;
}


/* ═══ 企业统计重构：日/月模板、三状态、图表与考核 ═══ */

/* 状态点与徽标：1结算(绿) 2预测(橙) 3仅合约(灰) 0无数据 */
.state-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.dot-state-1 { background:#67c23a; }
.dot-state-2 { background:#e6a23c; }
.dot-state-3 { background:#909399; }
.dot-state-0 { background:#4a4f5a; }
.state-badge { padding:2px 10px; border-radius:10px; font-size:12px; font-weight:600; }
.state-badge-1 { background:rgba(103,194,58,0.15); color:#67c23a; border:1px solid rgba(103,194,58,0.4); }
.state-badge-2 { background:rgba(230,162,60,0.15); color:#e6a23c; border:1px solid rgba(230,162,60,0.4); }
.state-badge-3 { background:rgba(144,147,153,0.15); color:#909399; border:1px solid rgba(144,147,153,0.4); }
.state-badge-0 { background:rgba(74,79,90,0.2); color:var(--muted,#888); border:1px solid rgba(74,79,90,0.5); }

/* 数据来源着色：预测价琥珀斜体、默认曲线电量蓝灰斜体 */
.price-forecast { color:#e6a23c !important; font-style:italic; }
.vol-default { color:#7d8db3 !important; font-style:italic; }

/* 图例条 */
.stats-legend { display:flex; flex-wrap:wrap; gap:14px; align-items:center; padding:6px 4px 10px; font-size:12px; color:var(--text-secondary,#aaa); }
.legend-item { display:inline-flex; align-items:center; gap:4px; }
.legend-swatch { padding:0 4px; border-radius:3px; background:rgba(128,140,160,0.12); font-size:11px; }

/* 数据可视化套件：Figma Full Charts 组件的 IMZFC 适配 */
.viz-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 1px 3px rgba(9,36,75,0.045);
}
.viz-card-header {
  min-width: 0;
  padding: 15px 16px 5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.viz-card-heading { min-width: 0; flex: 1; }
.viz-card-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}
.viz-card-subtitle {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 18px;
}
.viz-card-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 20px;
  color: var(--brand-green);
  background: currentColor;
  -webkit-mask: url('/assets/icons/mingcute/chart-bar-line.svg') center / contain no-repeat;
  mask: url('/assets/icons/mingcute/chart-bar-line.svg') center / contain no-repeat;
}
.viz-card-icon.is-line {
  -webkit-mask-image: url('/assets/icons/mingcute/trending-up-line.svg');
  mask-image: url('/assets/icons/mingcute/trending-up-line.svg');
}
.viz-card-icon.is-power {
  -webkit-mask-image: url('/assets/icons/mingcute/lightning-line.svg');
  mask-image: url('/assets/icons/mingcute/lightning-line.svg');
}
.viz-card-body { min-width: 0; padding: 0 8px 8px; }
.viz-canvas { width: 100%; height: 260px; }
.viz-card-footer {
  min-width: 0;
  min-height: 54px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(30,172,166,0.1);
  color: #31534f;
  background: #effaf8;
  font-size: 12px;
  line-height: 18px;
}
.viz-card-footer > span { min-width: 0; }
.viz-card-metric {
  flex: 0 0 auto;
  color: var(--brand-green-dark);
  font-size: 20px;
  font-weight: 750;
  line-height: 24px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.viz-card-footer.is-summary { justify-content: flex-start; flex-wrap: wrap; gap: 8px 20px; }
.viz-card-footer.is-summary span { display: inline-flex; align-items: baseline; gap: 5px; }
.viz-card-footer.is-summary b { color: var(--text-primary); font-size: 15px; font-variant-numeric: tabular-nums; }

.tq-forecast-shell { height:100%; padding:24px; overflow-y:auto; }
.tq-forecast-header { margin-bottom:18px; }
.tq-forecast-header h2 { margin:0; color:var(--text-primary); font-size:20px; line-height:28px; }
.tq-forecast-header p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:18px; }
.tq-viz-section { margin-top:20px; }
.tq-viz-section:first-child { margin-top:0; }
.tq-viz-section-title { margin:0 0 10px; color:var(--text-primary); font-size:14px; line-height:22px; }
.tq-viz-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.tq-viz-grid.is-single { grid-template-columns:minmax(0,1fr); }
.tq-viz-card .viz-canvas { height:280px; }
.tq-viz-source { margin:16px 0 0; color:var(--muted); font-size:10px; text-align:center; }

.np-modal-dialog {
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(9,36,75,.28);
}
.np-modal-header {
  padding:14px 20px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-shrink:0;
  border-bottom:1px solid var(--border);
}
.np-modal-copy { min-width:0; flex:1; }
.np-modal-title { color:var(--text-primary); font-size:15px; font-weight:600; }
.np-modal-subtitle { margin-top:3px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12px; }
.np-mode-switch {
  height:28px;
  padding:2px;
  display:inline-grid;
  grid-template-columns:repeat(3, minmax(64px, 1fr));
  align-items:center;
  white-space:nowrap;
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--bg-secondary);
}
.np-mode-button {
  height:22px;
  padding:0 10px;
  border:0;
  border-radius:4px;
  color:var(--text-secondary);
  background:transparent;
  font:inherit;
  font-weight:500;
  cursor:pointer;
}
.np-mode-button:hover { color:var(--primary); }
.np-mode-button.is-active { color:#fff; background:var(--primary); }
.np-mode-button:focus-visible { outline:2px solid rgba(30,172,166,.24); outline-offset:1px; }
.np-chart-card { margin:14px 20px 12px; flex:0 0 auto; }
.np-chart-card .viz-card-header { padding-bottom:0; }
.np-chart-card .viz-canvas { height:290px; }
.np-enterprise-chart-card { margin-top:0; }
.np-enterprise-chart-card .viz-canvas { height:220px; }
.np-modal-table { min-height:0; flex:1; overflow-y:auto; padding:0 20px 20px; }
.np-forecast-import-dialog { width:min(520px, 92vw); }
.np-forecast-import-body { padding:20px; }
.np-forecast-dropzone {
  width:100%;
  min-height:180px;
  padding:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px dashed var(--border-strong, #aab4c3);
  border-radius:8px;
  color:var(--text-primary);
  background:var(--bg-secondary);
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.np-forecast-dropzone:hover,
.np-forecast-dropzone.is-dragging { border-color:var(--primary); background:rgba(30,172,166,.08); }
.np-forecast-dropzone:disabled { cursor:wait; opacity:.7; }
.np-forecast-dropzone-icon { width:28px; height:28px; color:var(--primary); }
.np-forecast-dropzone strong { font-size:14px; }
.np-forecast-dropzone span:last-child { color:var(--muted); font-size:12px; }
.np-forecast-import-status { min-height:20px; margin-top:12px; color:var(--muted); font-size:12px; text-align:center; }
.np-forecast-import-status.is-loading { color:var(--primary); }
.np-forecast-import-status.is-success { color:var(--el-color-success, #16a34a); }
.np-forecast-import-status.is-error { color:var(--el-color-danger, #dc2626); }
.np-forecast-price { color:#b45309; font-weight:600; }
.np-enterprise-modal-dialog { width:min(1180px, 96vw); max-height:92vh; }
.np-enterprise-controls {
  padding:12px 20px;
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:10px 14px;
  flex:0 0 auto;
  border-bottom:1px solid var(--border);
  background:var(--bg-secondary);
}
.np-enterprise-control { min-width:0; display:flex; flex-direction:column; gap:5px; color:var(--text-secondary); font-size:12px; }
.np-enterprise-control select,
.np-enterprise-control input {
  width:100%;
  height:32px;
  padding:4px 9px;
  border:1px solid var(--control-border, var(--border));
  border-radius:var(--control-radius, 4px);
  color:var(--text-primary);
  background:var(--panel);
  font:inherit;
}
.np-enterprise-company-control { flex:0 1 280px; min-width:200px; max-width:300px; }
.np-enterprise-sync-button { height:32px; flex:0 0 auto; }
.np-enterprise-filter-controls { padding-top:10px; padding-bottom:8px; }
.np-enterprise-range { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px; }
.np-enterprise-range .np-enterprise-control { flex:0 0 112px; }
.np-enterprise-range .np-enterprise-volume-control { flex-basis:150px; }
.np-enterprise-range-separator { height:32px; display:inline-flex; align-items:center; color:var(--muted); font-size:12px; }
.np-enterprise-fill-button { height:32px; min-width:66px; }
.np-enterprise-status { margin-left:auto; min-height:32px; display:inline-flex; align-items:center; color:var(--muted); font-size:12px; }
.np-enterprise-status.is-error { color:var(--el-color-danger, #dc2626); }
.np-enterprise-node-dialog { max-width:520px; max-height:72vh; overflow:hidden; display:flex; flex-direction:column; }
.np-enterprise-node-help { margin:0 0 10px; color:var(--text-secondary); font-size:12px; line-height:20px; }
.np-enterprise-node-list { min-height:0; overflow-y:auto; }
.np-enterprise-node-option { width:100%; margin:0 0 6px; padding:9px 12px; display:flex; flex-direction:column; align-items:flex-start; border:1px solid var(--border); border-radius:var(--radius); color:var(--text-primary); background:var(--panel); text-align:left; cursor:pointer; }
.np-enterprise-node-option strong { max-width:100%; overflow-wrap:anywhere; font-size:13px; font-weight:500; }
.np-enterprise-node-option span { margin-top:2px; color:var(--muted); font-size:10px; }
.np-enterprise-node-dialog .modal-actions { margin-top:12px; flex:0 0 auto; }
.np-enterprise-table { padding-top:12px; overflow:auto; }
.np-enterprise-table table { width:100%; min-width:900px; table-layout:fixed; }
.np-enterprise-table thead th { position:sticky; top:0; z-index:1; background:var(--panel); }
.np-enterprise-table th:first-child { width:90px; }
.np-enterprise-table td,
.np-enterprise-table th { white-space:nowrap; }
.np-enterprise-time { font-family:monospace; font-weight:600; }
.np-enterprise-number { text-align:right; font-variant-numeric:tabular-nums; }
.np-enterprise-volume-cell { color:var(--primary); font-weight:600; }
.np-enterprise-energy-cell { font-weight:600; }
.np-enterprise-energy-cell.is-negative { color:var(--el-color-danger, #dc2626); }
.np-enterprise-summary-row td {
  border-top:2px solid rgba(30,172,166,.34);
  background:var(--brand-green-lighter, #f0faf9);
}

/* 头部控件 */
.stats-inline-label { font-size:12px; color:var(--text-secondary,#aaa); display:inline-flex; align-items:center; gap:6px; }
.stats-select { background:var(--panel,#1c2230); color:inherit; border:1px solid var(--border,#333); border-radius:4px; padding:3px 6px; font-size:12px; }
.stats-hint { padding:8px 12px; margin-bottom:10px; border:1px dashed rgba(230,162,60,0.5); border-radius:6px; font-size:12px; color:#e6a23c; }
.stats-hint a { color:#e6a23c; text-decoration:underline; }

/* 日汇总条 */
.day-summary-bar { display:flex; flex-wrap:wrap; gap:16px; padding:12px 16px; margin-bottom:12px; background:var(--panel,#1c2230); border-radius:8px; font-size:13px; }

/* 日表：中午时段行淡高亮、汇总行、负值 */
.noon-row td { background:rgba(84,112,198,0.06); }
.stats-total-row td { background:rgba(103,194,58,0.08); border-top:2px solid rgba(103,194,58,0.35); }
.stats-day-table td.neg, .num.neg { color:#f56c6c; }

/* 月页图表区 */
.month-charts-row { display:grid; grid-template-columns:minmax(260px,1fr) minmax(320px,1.4fr) minmax(320px,1.4fr); gap:12px; margin-bottom:14px; }
.month-viz-card { display:flex; flex-direction:column; }
.month-viz-card .viz-card-body { flex:1; }
.month-chart { width:100%; height:220px; }
@media (max-width: 1200px) {
  .month-charts-row { grid-template-columns:1fr; }
  .month-chart { height:250px; }
}
@media (max-width: 820px) {
  .tq-forecast-shell { padding:14px 12px; }
  .tq-viz-grid { grid-template-columns:minmax(0,1fr); }
  .tq-viz-card .viz-canvas { height:250px; }
  .np-modal-dialog { width:96vw; max-height:94vh; }
  .np-chart-card { margin:10px 12px; }
  .np-chart-card .viz-canvas { height:230px; }
  .np-enterprise-chart-card { margin-top:0; }
  .np-enterprise-chart-card .viz-canvas { height:175px; }
  .np-modal-header, .np-modal-table { padding-left:12px; padding-right:12px; }
  .np-enterprise-modal-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
  .np-enterprise-controls { padding:10px 12px; align-items:stretch; }
  .np-enterprise-company-control { max-width:none; flex:1 1 220px; }
  .np-enterprise-range { width:100%; }
  .np-enterprise-range .np-enterprise-control { flex:1 1 96px; }
  .np-enterprise-range .np-enterprise-volume-control { flex:1 1 130px; }
  .np-enterprise-status { width:100%; margin-left:0; min-height:20px; }
  .viz-card-footer { align-items:flex-start; }
}

/* 考核卡片区 */
.assess-title { margin:18px 0 10px; font-size:15px; }
.assess-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:12px; padding-bottom:24px; }
.assess-card { background:var(--panel,#1c2230); border:1px solid var(--border,#2a3040); border-radius:8px; padding:12px 14px; }
.assess-card-title { font-size:13px; font-weight:600; margin-bottom:8px; }
.assess-row { display:flex; justify-content:space-between; gap:8px; font-size:12px; padding:3px 0; color:var(--text-secondary,#aaa); }
.assess-row b { color:inherit; font-variant-numeric:tabular-nums; }
.assess-warn { border-color:rgba(230,162,60,0.55); }
.assess-warn .assess-card-title { color:#e6a23c; }
.assess-final { border-color:rgba(103,194,58,0.55); }
.assess-final-num { font-size:26px; font-weight:700; color:#67c23a; margin:6px 0 10px; font-variant-numeric:tabular-nums; }
.assess-final-num span { font-size:12px; font-weight:400; color:var(--muted,#888); }
.assess-unset { border-style:dashed; }
.assess-cfg-btn { margin-top:4px; }

/* 默认曲线编辑器 */
.curve-grid { display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; margin-top:10px; }
.curve-cell { display:flex; flex-direction:column; gap:3px; font-size:11px; color:var(--muted,#888); }
.curve-input { background:var(--panel,#1c2230); color:inherit; border:1px solid var(--border,#333); border-radius:4px; padding:4px 6px; font-size:12px; width:100%; box-sizing:border-box; }
@media (max-width: 700px) { .curve-grid { grid-template-columns:repeat(4, 1fr); } }

/* 月度参数弹窗 */
.param-group { margin-top:12px; }
.param-group-title { font-size:12px; font-weight:600; color:var(--text-secondary,#aaa); border-bottom:1px solid var(--border,#2a3040); padding-bottom:4px; margin-bottom:6px; }
.param-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:4px 0; font-size:12px; }
.param-row span { color:var(--text-secondary,#aaa); }
.param-input { width:130px; background:var(--panel,#1c2230); color:inherit; border:1px solid var(--border,#333); border-radius:4px; padding:4px 6px; font-size:12px; }
.param-src { font-style:normal; font-size:10px; padding:1px 5px; border-radius:3px; background:rgba(128,140,160,0.15); color:var(--muted,#888); margin-left:4px; }
.param-src.saved { background:rgba(103,194,58,0.15); color:#67c23a; }
.param-src.preset { background:rgba(84,112,198,0.18); color:#7d8db3; }

.month-days-scroll { overflow-y:auto; max-height:420px; }

/* ═══════════════════════════════════════════════
   基础交互组件统一层 — Ant Design 规格的 IMZFC 适配
   兼容现有 btn/form/modal 类名，业务页面无需同步改写。
   ═══════════════════════════════════════════════ */

/* 按钮 */
.btn-sm,
.stats-back-btn,
.stats-import-btn,
.stats-sync-btn {
  min-width: 0;
  height: var(--control-height);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.025);
  font-size: 12px;
  font-weight: 400;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-xs {
  height: var(--control-height-sm);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.btn-sm:hover,
.btn-xs:hover,
.stats-back-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}
.btn-sm.btn-primary,
.btn-sm.btn-accent,
.btn-xs.primary,
.stats-import-btn,
.stats-sync-btn {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(30,172,166,0.16);
}
.btn-sm.btn-primary:hover,
.btn-sm.btn-accent:hover,
.btn-xs.primary:hover,
.stats-import-btn:hover,
.stats-sync-btn:hover {
  color: #fff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-sm.btn-muted { color: rgba(0,0,0,0.65); background: #fff; border-color: var(--control-border); }
.btn-sm.btn-muted:hover { color: var(--primary); background: var(--brand-green-lighter); border-color: var(--primary-light-5); }
.btn-sm.btn-danger,
.btn-danger { color: #fff; background: var(--el-color-danger); border-color: var(--el-color-danger); }
.btn-xs.danger { color: var(--el-color-danger); background: #fff; border-color: #ffccc7; }
.btn-xs.danger:hover { color: var(--el-color-danger); background: #fff2f0; border-color: var(--el-color-danger); }
.btn-run {
  min-height: var(--control-height-lg);
  padding: 0 16px;
  border-radius: var(--control-radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}
.btn-run-primary,
.btn-run-accent { background: var(--primary); color: #fff; }
.btn-run-primary:hover,
.btn-run-accent:hover { background: var(--primary-hover); box-shadow: 0 2px 6px rgba(30,172,166,0.18); }
.btn-run-muted { color: rgba(0,0,0,0.65); background: #fff; border: 1px solid var(--control-border); }
.btn-run-muted:hover { color: var(--primary); background: var(--brand-green-lighter); border-color: var(--primary); box-shadow: none; }
.btn-sm:active,
.btn-xs:active,
.btn-run:active:not(:disabled),
.stats-back-btn:active,
.stats-import-btn:active,
.stats-sync-btn:active { transform: none; box-shadow: none; }
.btn-sm:focus-visible,
.btn-xs:focus-visible,
.btn-run:focus-visible,
.stats-back-btn:focus-visible,
.stats-import-btn:focus-visible,
.stats-sync-btn:focus-visible,
.stats-month-btn:focus-visible,
.date-preset-btn:focus-visible,
.btn-clear:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.btn-sm:disabled,
.btn-xs:disabled,
.btn-run:disabled,
.stats-back-btn:disabled,
.stats-import-btn:disabled,
.stats-sync-btn:disabled,
button[aria-disabled="true"] {
  color: rgba(0,0,0,0.25) !important;
  background: #f5f5f5 !important;
  border-color: #d9d9d9 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1;
  pointer-events: none;
}
.btn-sm.loading,
.btn-xs.loading,
.btn-run.loading { cursor: wait; opacity: 0.72; pointer-events: none; }

/* 图标按钮、月份步进与日期预设 */
.stats-month-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  box-shadow: none;
}
.stats-month-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--brand-green-lighter); }
.date-preset-btn {
  min-height: 28px;
  padding: 3px 11px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  font-size: 12px;
}
.date-preset-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--brand-green-lighter); }
.date-preset-btn.active { color: var(--primary); border-color: var(--primary); background: var(--brand-green-light); font-weight: 500; }
.date-footer .btn-clear {
  min-height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.45);
  background: transparent;
  text-decoration: none;
}
.date-footer .btn-clear:hover { color: var(--el-color-danger); background: #fff2f0; }

/* 输入框、下拉框和文本域 */
.tab-host input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.tab-host select,
.tab-host textarea,
.modal-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.modal-box select,
.modal-box textarea,
.form-input,
.form-select,
.date-input,
.stats-select,
.curve-input,
.param-input {
  min-height: var(--control-height);
  padding: 4px 11px;
  border: 1px solid var(--control-border) !important;
  border-radius: var(--control-radius) !important;
  color: rgba(0,0,0,0.85) !important;
  background: #fff !important;
  box-shadow: none;
  font-size: 13px;
  line-height: 22px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.tab-host textarea,
.modal-box textarea { min-height: 80px; resize: vertical; }
.curve-input,
.param-input,
.stats-select { min-height: 28px; padding: 2px 7px; font-size: 12px; line-height: 22px; }
.tab-host input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.tab-host select:hover,
.tab-host textarea:hover,
.modal-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.modal-box select:hover,
.modal-box textarea:hover,
.form-input:hover,
.form-select:hover,
.date-input:hover,
.stats-select:hover,
.curve-input:hover,
.param-input:hover { border-color: var(--primary-light-3) !important; }
.tab-host input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.tab-host select:focus,
.tab-host textarea:focus,
.modal-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.modal-box select:focus,
.modal-box textarea:focus,
.form-input:focus,
.form-select:focus,
.date-input:focus,
.stats-select:focus,
.curve-input:focus,
.param-input:focus {
  outline: 0;
  border-color: var(--primary) !important;
  box-shadow: var(--control-focus-ring) !important;
}
.tab-host input::placeholder,
.tab-host textarea::placeholder,
.modal-box input::placeholder,
.modal-box textarea::placeholder { color: rgba(0,0,0,0.25); }
.tab-host input:disabled,
.tab-host select:disabled,
.tab-host textarea:disabled,
.modal-box input:disabled,
.modal-box select:disabled,
.modal-box textarea:disabled {
  color: rgba(0,0,0,0.25) !important;
  background: #f5f5f5 !important;
  cursor: not-allowed;
}
.tab-host input[aria-invalid="true"],
.tab-host select[aria-invalid="true"],
.modal-box input[aria-invalid="true"],
.modal-box select[aria-invalid="true"],
.is-error {
  border-color: var(--el-color-danger) !important;
  box-shadow: 0 0 0 2px rgba(245,108,108,0.1) !important;
}
.form-label,
.form-row label { color: rgba(0,0,0,0.65); font-size: 13px; font-weight: 400; line-height: 22px; }
.form-hint { color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }

/* 选择控件 */
.tab-host input[type="checkbox"],
.tab-host input[type="radio"],
.modal-box input[type="checkbox"],
.modal-box input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-item {
  min-height: 32px;
  padding: 4px 10px;
  border-color: var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  font-size: 12px;
}
.checkbox-item:hover { color: var(--primary); border-color: var(--primary); background: var(--brand-green-lighter); }
.checkbox-item.selected { color: var(--primary); border-color: var(--primary); background: var(--brand-green-light); font-weight: 500; }

/* 弹窗 */
.modal-overlay,
.modal-mask {
  padding: 24px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.modal-overlay.active,
.modal-mask.show { animation: uiMaskIn 0.18s ease-out; }
@keyframes uiMaskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay .modal-box,
.modal-mask .modal-box {
  width: min(480px, calc(100vw - 48px));
  min-width: 0;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 0;
  border-radius: 8px;
  color: rgba(0,0,0,0.85);
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.08), 0 9px 28px rgba(0,0,0,0.05), 0 12px 48px 16px rgba(0,0,0,0.03);
  animation: uiDialogIn 0.2s cubic-bezier(0.08,0.82,0.17,1);
}
#companyModal .modal-box { width: min(440px, calc(100vw - 48px)); }
#traderModal .modal-box { width: min(420px, calc(100vw - 48px)); }
#accountModal .modal-box { width: min(560px, calc(100vw - 48px)); }
@keyframes uiDialogIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.modal-overlay .modal-box h3,
.modal-mask .modal-box h3 {
  margin: 0 0 20px;
  color: rgba(0,0,0,0.85);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}
.modal-actions { margin-top: 24px; gap: 8px; }

/* 消息、状态与空页面 */
.toast {
  top: 24px;
  right: auto;
  left: 50%;
  min-height: 40px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 9px 16px;
  display: flex;
  align-items: center;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  color: rgba(0,0,0,0.85);
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  font-size: 13px;
  line-height: 20px;
  animation: uiToast 2.5s ease both;
}
.toast.success { color: #389e0d; background: #fff; border-left: 3px solid #52c41a; }
.toast.error { color: #cf1322; background: #fff; border-left: 3px solid #ff4d4f; }
@keyframes uiToast {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}
.empty-state { padding: 40px 20px; color: rgba(0,0,0,0.45); text-align: center; }
.empty-state .icon { margin-bottom: 12px; font-size: 40px; opacity: 0.35; }
.empty-state p { font-size: 13px; line-height: 22px; }
.status-dot,
.state-dot { width: 6px; height: 6px; margin-right: 6px; }
.state-badge,
.stats-keepalive-badge {
  min-height: 22px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--control-radius);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}

/* ═══════════════════════════════════════════════
   手机端适配（≤768px）：侧边栏改抽屉式，其余紧凑化。
   仅窄屏生效，桌面端（>768px）完全不受影响，无回归风险。
   ═══════════════════════════════════════════════ */
.nav-toggle { display: none; }                /* 汉堡按钮：桌面隐藏 */
.sidebar-overlay { display: none; }          /* 抽屉遮罩：桌面隐藏 */

@media (max-width: 1240px) {
  .topbar .date,
  .company-info { display: none; }
  .token-input { width: 140px; }
}

@media (max-width: 980px) {
  .topbar { padding-right: 10px; padding-left: 10px; gap: 8px; }
  .topbar-section-title { display: none; }
  .topbar select { min-width: 128px; }
  .token-status { display: none; }
}

@media (max-width: 768px) {
  .layout { height: 100dvh; }

  /* 汉堡按钮（顶栏最左） */
  .nav-toggle {
    display: inline-flex;
    color: rgba(0,0,0,0.65);
  }
  .sidebar-collapse { display: none; }

  /* 侧边栏 → 离屏抽屉 */
  #appSidebar,
  #appSidebar.collapsed {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
    width: min(86vw, 288px); max-width: 288px;
    transform: translateX(-100%); transition: transform .25s ease;
    will-change: transform;
  }
  #appSidebar .sidebar-header { padding: 0 16px; justify-content: flex-start; }
  #appSidebar .sidebar-brand { flex: 1; justify-content: flex-start; }
  #appSidebar .sidebar-brand-copy,
  #appSidebar .sidebar-search-wrap,
  #appSidebar .nav-label,
  #appSidebar .nav-arrow,
  #appSidebar .sidebar-user-copy { display: flex !important; }
  #appSidebar .nav-label,
  #appSidebar .nav-arrow { display: block !important; }
  #appSidebar .sidebar-search-wrap { display: block !important; }
  #appSidebar .nav-group-body { display: block !important; }
  #appSidebar .nav-item { width: calc(100% - 32px); margin: 0 16px 4px; padding: 9px 8px; justify-content: flex-start; }
  #appSidebar .nav-sub-item { padding-left: 40px; }
  #appSidebar .sidebar-footer { padding: 8px 12px; justify-content: flex-start; }
  #appSidebar.open { transform: translateX(0); box-shadow: 4px 0 26px rgba(0,0,0,.3); }

  /* 抽屉遮罩 */
  .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 999;
    background: rgba(15,23,42,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }

  /* 主区域占满（sidebar 已脱离文档流） */
  .main { width: 100%; }

  /* 顶栏首行保留全局操作，工作上下文进入可横向滚动的第二行 */
  .topbar {
    height: auto;
    min-height: var(--header-height);
    padding: 0 8px;
    flex-wrap: wrap;
    gap: 0 8px;
  }
  .topbar-leading { height: var(--header-height); }
  .topbar-section-title { display: inline; }
  .topbar-account { height: var(--header-height); margin-left: auto; }
  .topbar-workspace {
    height: 44px;
    margin: 0 -8px;
    padding: 0 8px;
    flex: 1 0 calc(100% + 16px);
    order: 3;
    justify-content: flex-start;
    gap: 8px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    overflow-x: hidden;
  }
  .topbar-context {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 90px;
    flex: 1 1 auto;
  }
  .header-token-group { flex: 0 0 auto; }
  .topbar-context select { width: 100%; min-width: 0; }
  #monthSelect { width: 100%; min-width: 0; }
  .model-download-button { width: 90px; padding-right: 8px; padding-left: 8px; }
  .token-input { width: 156px; }
  .token-status { display: inline; }
  .user-badge .role-tag { display: none; }
  #logoutBtn { padding-right: 8px; padding-left: 8px; }
  .tab-bar {
    height: 38px;
    min-height: 38px;
    padding: 0 6px;
  }
  .tab-button {
    height: 38px;
    max-width: 180px;
    padding: 0 8px;
  }

  /* 内容区内边距收窄 */
  .fileshare-wrap { padding: 14px 12px; gap: 12px; }
  .fileshare-header h2 { font-size: 16px; }

  /* 表格紧凑 */
  .fileshare-table th, .fileshare-table td { padding: 6px 8px; font-size: 12px; }

  /* 功能面板（个人功能页）改为整宽堆叠 */
  .func-panel { width: 100%; border-right: none; }

  /* 弹窗满屏化（覆盖行内 max-width） */
  .modal-box { width: 92vw !important; max-width: 92vw !important; }
}

/* ═══════════════════════════════════════════
   鉴权 UI — 登录遮罩 / 用户信息 / 权限提示
   ═══════════════════════════════════════════ */

/* ─── 登录遮罩层 ─────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 99999;
  padding: 24px;
  background: rgba(12, 38, 61, 0.58);
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: 0;
}
.login-overlay.hidden { display: none !important; }

.login-shell {
  width: min(1180px, calc(100vw - 48px));
  height: min(720px, calc(100dvh - 48px));
  min-height: min(560px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(400px, .84fr);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #6ab5cc;
  box-shadow: 0 28px 80px rgba(7, 28, 43, .28);
}

.login-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  background: #6ab5cc;
  isolation: isolate;
}
.login-visual::before {
  display: none;
}
.login-visual::after {
  display: none;
}
.login-brand {
  position: absolute; top: 34px; left: 38px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  color: #0a4e5b;
}
.login-brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(10,78,91,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.login-brand-mark .brand-symbol { width: 32px; height: 24px; }
.login-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.login-brand-copy strong { font-size: 19px; font-weight: 750; }
.login-brand-copy small { margin-top: 5px; font-size: 9px; opacity: .82; }
.login-visual-stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.login-visual-stage picture {
  width: 100%; height: 100%;
  display: block;
}
.login-visual-stage img {
  display: block;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
  object-position: center center;
  filter: none;
}
.login-visual-copy {
  position: absolute; left: 38px; right: 38px; bottom: 30px; z-index: 2;
  text-shadow: 0 2px 10px rgba(3,35,31,.72);
}
.login-visual-copy h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; }
.login-visual-copy p { margin: 7px 0 0; color: rgba(255,255,255,.9); font-size: 13px; }

.login-panel {
  min-width: 0;
  display: flex; align-items: stretch;
  background: #fff;
}

@media (min-width: 901px) {
  .login-visual-stage { inset: -1px; }
  .login-panel {
    position: relative;
    z-index: 1;
    box-shadow: -1px 0 0 #fff;
  }
}
.login-panel-inner {
  width: min(390px, calc(100% - 64px));
  min-height: 100%;
  margin: 0 auto;
  padding: 68px 0 30px;
  display: flex; flex-direction: column; justify-content: center;
}
.login-heading { margin-bottom: 36px; }
.login-heading h1 {
  margin: 0;
  color: #132d3a;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 720;
}
.login-heading p { margin: 10px 0 0; color: #71818a; font-size: 14px; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-field { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.login-field-label { color: #2d414b; font-size: 13px; font-weight: 650; }
.login-input-wrap {
  position: relative;
  height: 50px;
  display: flex; align-items: center;
  border: 1px solid #d9e2e5;
  border-radius: 8px;
  background: #f8faf9;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.login-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 172, 166, .13);
}
.login-input-icon {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin-left: 15px;
  color: #7b8c94;
  background: currentColor;
}
.login-icon-user {
  -webkit-mask: url('/assets/icons/mingcute/user-3-line.svg') center / contain no-repeat;
  mask: url('/assets/icons/mingcute/user-3-line.svg') center / contain no-repeat;
}
.login-icon-key {
  -webkit-mask: url('/assets/icons/mingcute/key-2-line.svg') center / contain no-repeat;
  mask: url('/assets/icons/mingcute/key-2-line.svg') center / contain no-repeat;
}
.login-input-wrap:focus-within .login-input-icon { color: var(--primary); }
.login-form input {
  min-width: 0; height: 100%; flex: 1;
  padding: 0 14px 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #18323e;
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.login-form input::placeholder { color: #a1adb3; }
.login-form input[aria-invalid="true"] { color: #b42318; }
.login-password-toggle {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  margin-right: 4px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7b8c94;
  cursor: pointer;
}
.login-password-toggle::before {
  content: '';
  width: 19px; height: 19px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/mingcute/eye-line.svg') center / contain no-repeat;
  mask: url('/assets/icons/mingcute/eye-line.svg') center / contain no-repeat;
}
.login-password-toggle.is-visible::before {
  -webkit-mask-image: url('/assets/icons/mingcute/eye-close-line.svg');
  mask-image: url('/assets/icons/mingcute/eye-close-line.svg');
}
.login-password-toggle:hover { color: var(--primary); background: var(--brand-green-lighter); }
.login-password-toggle:focus-visible,
.login-submit:focus-visible { outline: 3px solid rgba(30, 172, 166, .24); outline-offset: 2px; }
.login-form .error {
  min-height: 19px;
  margin-top: -4px;
  color: #c2413b;
  font-size: 13px;
  line-height: 19px;
  text-align: left;
}
.login-submit {
  position: relative;
  width: 100%; height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.login-submit:hover { background: var(--primary-hover); box-shadow: 0 8px 18px rgba(30,172,166,.24); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .68; cursor: wait; transform: none; box-shadow: none; }
.login-button-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin .7s linear infinite;
}
.login-submit.is-loading .login-button-spinner { display: block; }
.login-footer {
  margin: auto 0 0;
  padding-top: 42px;
  color: #9aa7ad;
  font-size: 11px;
  text-align: center;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .login-overlay {
    padding: 0;
    align-items: stretch;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .login-shell {
    width: 100%; min-height: 100dvh; height: auto;
    display: flex; flex-direction: column;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-visual {
    flex: 0 0 clamp(235px, 35dvh, 320px);
    color: #123b34;
    background: #f4f2e7;
  }
  .login-brand { top: 20px; left: 22px; gap: 10px; }
  .login-brand-mark {
    width: 36px; height: 36px;
    border-color: rgba(12,127,115,.24);
    background: rgba(255,255,255,.48);
    color: #0c7f73;
  }
  .login-brand-mark .brand-symbol { width: 28px; height: 21px; }
  .login-brand-copy strong { font-size: 17px; }
  .login-brand-copy small { color: #44736b; opacity: 1; }
  .login-visual-stage { inset: 0; }
  .login-visual-stage img {
    width: 100%; height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    filter: none;
  }
  .login-visual-copy { display: none; }
  .login-panel {
    position: relative; z-index: 2;
    flex: 1;
    margin-top: -8px;
    border-radius: 8px 8px 0 0;
  }
  .login-panel-inner {
    width: min(420px, calc(100% - 48px));
    min-height: 100%;
    padding: 34px 0 24px;
    justify-content: flex-start;
  }
  .login-heading { margin-bottom: 28px; }
  .login-heading h1 { font-size: 26px; }
  .login-heading p { margin-top: 8px; }
  .login-form { gap: 17px; }
  .login-input-wrap, .login-submit { height: 52px; }
  .login-footer { padding-top: 32px; }
}

@media (max-width: 420px) {
  .login-panel-inner { width: calc(100% - 40px); }
}

@media (max-width: 900px) and (max-height: 680px) {
  .login-visual { flex-basis: 210px; }
  .login-panel-inner { padding-top: 26px; }
  .login-heading { margin-bottom: 20px; }
  .login-form { gap: 13px; }
  .login-input-wrap, .login-submit { height: 48px; }
  .login-footer { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-button-spinner { animation-duration: 1.4s; }
}

/* ─── 顶栏用户信息 ──────────────────── */
.user-badge {
  height: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 0 8px;
  border-radius: 4px;
  background: transparent;
  color: rgba(0,0,0,0.85);
  white-space: nowrap;
}
.user-badge .role-tag {
  font-size: 10px; padding: 0 5px; border-radius: 3px;
  background: var(--brand-green-light);
  font-weight: 600;
}
.user-badge .role-tag.admin { color: #e65100; }
.user-badge .role-tag.vip { color: #2e7d32; }
.user-badge .role-tag.member { color: var(--text-secondary); }
#logoutBtn {
  height: 32px; font-size: 12px; padding: 0 10px; cursor: pointer;
  white-space: nowrap;
}
.login-btn-topbar {
  display: inline-flex; align-items: center;
  white-space: nowrap;
}

/* ─── 无权限占位页 ──────────────────── */
.no-permission {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 20px; text-align: center;
  height: 100%;
}
.no-permission .icon { font-size: 52px; margin-bottom: 8px; }
.no-permission h2 { margin: 0 0 8px; font-size: 20px; color: var(--text-primary); }
.no-permission p { color: var(--muted); font-size: 14px; margin: 2px 0; }
.no-permission .expired-note {
  color: var(--el-color-danger); font-weight: 600; margin-top: 10px;
  padding: 6px 14px; background: #fef0f0; border-radius: 6px;
}

/* ─── 受限（无权限）导航项 ───────────── */
.nav-item.nav-restricted {
  opacity: 0.4;
  cursor: not-allowed !important;
  pointer-events: auto;
  position: relative;
}
.nav-item.nav-restricted:hover { background: transparent !important; }
.nav-restricted-label {
  font-size: 10px; color: var(--muted); margin-left: auto; padding-right: 4px;
}

/* ═══════════════════════════════════════════════
   第三阶段：Ant Design Pro 业务页面模板
   ═══════════════════════════════════════════════ */
.biz-page {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.biz-page-header {
  min-height: 78px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 auto;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.biz-page-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.biz-page-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30,172,166,0.16);
  border-radius: 6px;
  color: var(--primary);
  background: var(--brand-green-lighter);
}
.biz-page-icon .shell-icon { width: 18px; height: 18px; }
.biz-page-title { min-width: 0; }
.biz-page-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.biz-page-title h2,
.stats-header.biz-page-header h2,
.dp-panel .biz-page-header h2 {
  margin: 0;
  color: rgba(0,0,0,0.85);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}
.biz-page-title p {
  margin: 2px 0 0;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
  line-height: 20px;
}
.biz-page-badge {
  min-height: 22px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(30,172,166,0.22);
  border-radius: 4px;
  color: #147d78;
  background: var(--brand-green-lighter);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.biz-page-badge.is-neutral {
  color: rgba(0,0,0,0.45);
  background: #fafafa;
  border-color: #e8e8e8;
}
.biz-page-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.biz-page-body {
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 16px 24px 24px;
}
.biz-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}
.biz-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.biz-panel-header {
  min-height: 60px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.biz-panel-header h3,
.biz-section-heading h3 {
  margin: 0;
  color: rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.biz-panel-header p,
.biz-section-heading p {
  margin: 1px 0 0;
  color: rgba(0,0,0,0.45);
  font-size: 11px;
  line-height: 18px;
}
.biz-panel-body { padding: 16px; }
.biz-control-panel { display: flex; flex-direction: column; }
.biz-control-panel .biz-panel-body { min-height: 0; flex: 1; overflow: auto; }
.biz-panel-footer {
  padding: 12px 16px;
  flex: 0 0 auto;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.biz-filter-stack { display: flex; flex-direction: column; gap: 14px; }
.biz-field { display: flex; flex-direction: column; gap: 5px; }
.biz-field > span,
.biz-fieldset legend {
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}
.biz-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.biz-fieldset legend { margin-bottom: 5px; }
.district-options { display: flex; flex-direction: column; gap: 6px; }
.district-option {
  min-height: 48px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: rgba(0,0,0,0.65);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.district-option:hover { border-color: var(--primary); }
.district-option.is-selected {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--brand-green-lighter);
}
.district-option input { flex: 0 0 auto; accent-color: var(--primary); }
.district-option > span { min-width: 0; display: flex; flex-direction: column; }
.district-option strong { font-size: 12px; font-weight: 500; line-height: 19px; }
.district-option small { color: rgba(0,0,0,0.45); font-size: 10px; line-height: 16px; }
.biz-note {
  margin: 14px 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid #91d5ff;
  color: rgba(0,0,0,0.45);
  background: #f6fbff;
  font-size: 10px;
  line-height: 17px;
}
.biz-note strong { color: rgba(0,0,0,0.65); font-size: 11px; }
.biz-block-button { width: 100%; justify-content: center; }
.biz-data-panel { display: flex; flex-direction: column; }
.biz-panel-status {
  color: rgba(0,0,0,0.45);
  font-size: 11px;
  line-height: 20px;
  text-align: right;
}
.biz-data-body { min-height: 0; flex: 1; overflow: auto; }
.biz-table-placeholder {
  width: 100%;
  min-width: 550px;
  padding: 40px 12px;
  color: rgba(0,0,0,0.45);
  text-align: center;
}
#clearTableWrap table { min-width: 620px; }
#clearTableWrap th {
  color: rgba(0,0,0,0.65) !important;
  background: #fafafa !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
#clearTableWrap th:nth-child(2) {
  color: var(--primary) !important;
  background: var(--brand-green-lighter) !important;
  border-bottom-color: var(--primary) !important;
}
#clearTableWrap td { border-bottom-color: #f0f0f0 !important; }
#clearTableWrap td:nth-child(2) { background: rgba(30,172,166,0.035) !important; }

.dp-panel { padding: 0; }
.dp-page-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.biz-filter-section {
  flex: 0 0 auto;
  padding: 14px 16px 16px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.biz-section-heading { margin-bottom: 12px; }
.biz-filter-section .dp-config {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.biz-filter-section .dp-config .fg { min-width: 0; }
.biz-filter-section .dp-config .dp-date-field { grid-column: span 2; }
.biz-filter-section .dp-config .fg input,
.biz-filter-section .dp-config .fg select {
  width: 100%;
  min-width: 0;
  height: var(--control-height);
  padding: 4px 10px;
  border-color: var(--control-border);
  border-radius: var(--control-radius);
}
.biz-field-hint { min-height: 0; color: rgba(0,0,0,0.45); font-size: 10px; }
.dp-time-range {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) auto minmax(58px, 1fr);
  align-items: center;
  gap: 5px;
}
.dp-time-range > span { color: rgba(0,0,0,0.45); font-size: 11px; text-align: center; }
.biz-filter-section .dp-actions { align-items: center; }
.biz-filter-section .dp-actions .btn-sm { min-width: 76px; justify-content: center; }
.dp-page-body .dp-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border-color: #f0f0f0;
  border-radius: 6px;
  box-shadow: none;
}
.dp-table th {
  color: rgba(0,0,0,0.65);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.dp-table tr.hour-header td {
  color: #147d78;
  background: var(--brand-green-lighter);
  border-bottom: 1px solid rgba(30,172,166,0.22);
}
.dp-page-body .dp-bottom {
  margin-top: 0;
  background: #fff;
  border-color: #f0f0f0;
  border-radius: 6px;
  box-shadow: none;
}

.stats-container.biz-page { padding: 0; }
.stats-header.biz-page-header { margin: 0; flex-wrap: wrap; }
.stats-directory-body { overflow: auto; }
.stats-directory-body .stats-table-wrap {
  min-height: 100%;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.stats-directory-empty { min-height: 320px; }
.empty-state.is-error { color: var(--el-color-danger); }
.stats-directory-page .stats-card {
  margin-bottom: 12px;
  border-color: #f0f0f0;
  border-radius: 6px;
  box-shadow: none;
}
.stats-directory-page .stats-card:hover { border-color: #d9d9d9; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stats-directory-page .stats-card-header { padding: 12px 16px; background: #fff; }
.stats-directory-page .stats-card-title .name-link { font-size: 14px; font-weight: 600; }
.stats-directory-page .stats-card-footer { background: #fafafa; }
.stats-detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.stats-detail-body .stats-legend { padding: 0; }
.stats-detail-body .stats-table-wrap {
  min-height: 320px;
  margin: 0;
  border-color: #f0f0f0;
  border-radius: 6px;
  box-shadow: none;
}
.stats-page-actions { margin-left: auto; }
.stats-page-actions .stats-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
}
.stats-page-actions .stats-inline-label select { margin: 0; }
.stats-sync-btn {
  min-height: var(--control-height);
  padding: 4px 12px;
  border-radius: var(--control-radius);
}
.stats-sync-btn.is-secondary {
  color: rgba(0,0,0,0.65);
  background: #fff;
  border-color: #d9d9d9;
}
.stats-sync-btn.is-secondary:hover {
  color: var(--primary);
  background: #fff;
  border-color: var(--primary);
}
.stats-month-switcher { gap: 4px; }
.stats-month-switcher > span {
  min-width: 48px;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.stats-month-btn { width: 24px; height: 24px; }
.legend-item.is-note { color: rgba(0,0,0,0.45); font-size: 11px; }
.stats-detail-body .month-charts-row { margin-bottom: 2px; }
.stats-detail-body .assess-title { margin-top: 2px; }

@media (max-width: 1380px) {
  .biz-filter-section .dp-config { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .biz-filter-section .dp-actions { justify-content: flex-end; }
}

@media (max-width: 1024px) {
  .biz-page-header { align-items: flex-start; flex-wrap: wrap; }
  .biz-page-actions { width: 100%; justify-content: flex-start; }
  .stats-page-actions { margin-left: 0; }
  .biz-workbench { grid-template-columns: minmax(230px, 250px) minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .biz-page-header { min-height: 72px; padding: 14px 12px; gap: 12px; }
  .biz-page-title h2,
  .stats-header.biz-page-header h2,
  .dp-panel .biz-page-header h2 { font-size: 16px; }
  .biz-page-body { padding: 12px; }
  .biz-workbench { display: flex; flex-direction: column; overflow: auto; }
  .biz-control-panel { flex: 0 0 auto; }
  .biz-data-panel { min-height: 430px; flex: 0 0 auto; }
  .biz-filter-section .dp-config { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-page-body { overflow: auto; }
  .dp-page-body .dp-table-wrap { min-height: 430px; flex: 0 0 auto; }
  .stats-directory-body,
  .stats-detail-body { padding: 12px; }
  .stats-page-actions { gap: 6px; }
  .stats-status { flex: 1 0 100%; }
}

@media (max-width: 520px) {
  .biz-page-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .biz-page-badge.is-neutral { display: none; }
  .biz-panel-header { padding: 10px 12px; }
  .biz-panel-body { padding: 12px; }
  .biz-filter-section { padding: 12px; }
  .biz-filter-section .dp-config { grid-template-columns: 1fr; }
  .biz-filter-section .dp-config .dp-date-field { grid-column: span 1; }
  .biz-filter-section .dp-actions { width: 100%; }
  .biz-filter-section .dp-actions .btn-sm { flex: 1; }
  .stats-page-actions .stats-inline-label { width: 100%; justify-content: space-between; }
  .stats-page-actions .stats-inline-label select { flex: 1; }
  .stats-page-actions .stats-sync-btn { flex: 1; justify-content: center; }
  .stats-month-switcher { flex: 0 0 auto; }
}

/* ═══════════════════════════════════════════════
   第四阶段：Ant Design Pro 列表与管理页面
   ═══════════════════════════════════════════════ */
.button-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.management-page-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.management-table-panel {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.management-toolbar,
.management-panel-heading {
  min-height: 54px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border-bottom: 1px solid #f0f0f0;
}
.management-panel-heading { justify-content: space-between; }
.management-panel-heading h3 {
  margin: 0;
  color: rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.management-panel-heading p {
  margin: 1px 0 0;
  color: rgba(0,0,0,0.45);
  font-size: 11px;
  line-height: 18px;
}
.management-toolbar-spacer { min-width: 0; flex: 1; }
.management-search {
  width: min(360px, 42vw);
  height: var(--control-height);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #b5bdc9;
  background: #f5f5f5;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.management-search:focus-within {
  color: var(--primary);
  background: #fff;
  border-color: var(--primary-light-5);
  box-shadow: var(--control-focus-ring);
}
.management-search .shell-icon { width: 15px; height: 15px; flex-basis: 15px; }
#tabHost .management-search input[type="search"] {
  min-width: 0;
  min-height: 0 !important;
  height: 28px;
  flex: 1;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
#tabHost .management-search input[type="search"]:hover,
#tabHost .management-search input[type="search"]:focus {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.management-filter-select { width: 116px; }
.management-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
}
.management-date-filter input { width: 150px; }
.management-result-count {
  color: rgba(0,0,0,0.45);
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}
.management-table-scroll {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
}
.management-table.account-table,
.management-table.fileshare-table,
.management-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
}
.management-table thead { background: #fafafa; }
.management-table th,
.management-table.account-table th,
.management-table.fileshare-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 44px;
  padding: 9px 16px;
  color: rgba(0,0,0,0.65);
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: left;
  white-space: nowrap;
}
.management-table td,
.management-table.account-table td,
.management-table.fileshare-table td {
  min-height: 48px;
  padding: 10px 16px;
  color: rgba(0,0,0,0.65);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  vertical-align: middle;
}
.management-table tbody tr:hover > td { background: #fafafa; }
.management-table tbody tr:last-child > td { border-bottom: 0; }
.account-management-page .management-table { min-width: 900px; }
.trader-management-page .management-table { min-width: 700px; }
.tq-account-management-page .management-table { min-width: 940px; }
.user-management-table { min-width: 1200px; }
.user-management-page .management-page-body { overflow-y: auto; }
.file-management-page .management-table { min-width: 720px; }
.node-price-management-page .management-table { min-width: 620px; }
.record-primary {
  color: rgba(0,0,0,0.85);
  font-size: 13px;
  font-weight: 600;
}
.record-id {
  color: rgba(0,0,0,0.65);
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 12px;
}
.record-file {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.record-file .shell-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--primary);
}
.management-status,
.management-role-tag,
.management-permission-count {
  min-height: 22px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: rgba(0,0,0,0.65);
  background: #fafafa;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.management-status.is-success { color: #237804; background: #f6ffed; border-color: #b7eb8f; }
.management-status.is-danger { color: #cf1322; background: #fff1f0; border-color: #ffa39e; }
.management-status.is-neutral { color: rgba(0,0,0,0.45); }
.management-status.is-warning { color: #ad6800; background: #fffbe6; border-color: #ffe58f; }

.nav-notice-count {
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 9px;
  color: #fff;
  background: var(--el-color-danger);
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.nav-notice-count[hidden] { display: none; }

.approval-page-body { gap: 12px; overflow: auto; }
.approval-compose,
.approval-admin-panel,
.approval-history-panel {
  border: 1px solid var(--border-lighter);
  background: #fff;
}
.approval-compose { flex: 0 0 auto; }
.approval-tabs {
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-lighter);
  gap: 20px;
}
.approval-tab {
  position: relative;
  border: 0;
  color: rgba(0,0,0,0.55);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.approval-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: '';
}
.approval-tab:hover,
.approval-tab.is-active { color: var(--primary); }
.approval-tab.is-active::after { background: var(--primary); }
.approval-form { padding: 16px; }
.approval-form-heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 10px;
}
.approval-form-heading strong { color: rgba(0,0,0,0.85); font-size: 14px; }
.approval-form-heading span { color: rgba(0,0,0,0.45); font-size: 11px; }
.approval-permission-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.approval-permission-group {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-lighter);
}
.approval-permission-group legend {
  padding: 0 5px;
  color: rgba(0,0,0,0.55);
  font-size: 11px;
}
.approval-permission-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.approval-permission-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: rgba(0,0,0,0.75);
  font-size: 12px;
}
.approval-permission-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.approval-permission-option small { margin-left: auto; color: var(--el-color-success); font-size: 10px; }
.approval-validity-row,
.approval-enterprise-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  gap: 10px;
}
.approval-enterprise-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.approval-enterprise-tools {
  display: flex;
  justify-content: flex-end;
  margin: -38px 0 10px;
  gap: 6px;
}
.approval-enterprise-options {
  display: grid;
  max-height: 300px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: auto;
  border: 1px solid var(--border-lighter);
  background: #fafafa;
}
.approval-enterprise-option {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  padding: 9px 10px;
  border-right: 1px solid var(--border-lighter);
  border-bottom: 1px solid var(--border-lighter);
  gap: 8px;
  background: #fff;
  cursor: pointer;
}
.approval-enterprise-option:has(input:checked) { background: var(--brand-green-lighter); }
.approval-enterprise-option > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.approval-enterprise-option strong {
  overflow: hidden;
  color: rgba(0,0,0,0.8);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.approval-enterprise-option small {
  overflow: hidden;
  color: rgba(0,0,0,0.45);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.approval-enterprise-empty { min-height: 120px; grid-column: 1 / -1; }
.approval-validity-row label,
.approval-enterprise-fields label,
.approval-reason {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.approval-date-field[hidden] { display: none; }
.approval-validity-row label > span,
.approval-enterprise-fields label > span,
.approval-reason > span { color: rgba(0,0,0,0.65); font-size: 12px; }
.approval-validity-row input,
.approval-validity-row select,
.approval-enterprise-fields input,
.approval-enterprise-fields select,
.approval-reason textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  color: rgba(0,0,0,0.85);
  background: #fff;
}
.approval-reason { margin-top: 14px; }
.approval-reason textarea { min-height: 72px; padding: 8px 10px; resize: vertical; }
.approval-current-enterprise {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--primary);
  color: rgba(0,0,0,0.55);
  background: var(--brand-green-lighter);
  font-size: 11px;
}
.approval-form-actions {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  gap: 8px;
}
.approval-form-actions .management-form-error { min-width: 0; flex: 1; }
.approval-form-empty { min-height: 220px; }
.approval-history-panel,
.approval-admin-panel { min-height: 0; }
.approval-table { min-width: 920px; }
.approval-admin-table { min-width: 1120px; }
.approval-summary-detail {
  display: block;
  margin-top: 2px;
  color: rgba(0,0,0,0.45);
  font-size: 10px;
  line-height: 16px;
}
.approval-reason-cell { max-width: 240px; white-space: normal; }
.approval-execution-error { color: var(--el-color-danger); font-size: 11px; cursor: help; }
.approval-review-modal { width: min(520px, 92vw); max-width: 520px; }
.approval-review-summary {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--border-lighter);
  background: #fafafa;
}

@media (max-width: 900px) {
  .approval-permission-groups,
  .approval-validity-row,
  .approval-enterprise-fields { grid-template-columns: 1fr; }
  .approval-enterprise-options { grid-template-columns: 1fr; }
  .approval-enterprise-tools { margin-top: 0; justify-content: flex-start; }
  .approval-permission-options { grid-template-columns: 1fr; }
  .approval-form-actions { align-items: stretch; flex-direction: column; }
  .approval-form-actions .btn-sm { width: 100%; }
}
.management-status .status-dot { margin-right: 5px; }
.management-role-tag.admin { color: #ad4e00; background: #fff7e6; border-color: #ffd591; }
.management-role-tag.vip { color: #147d78; background: var(--brand-green-lighter); border-color: rgba(30,172,166,0.28); }
.management-role-tag.member { color: #0958d9; background: #e6f4ff; border-color: #91caff; }
.management-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.management-row-actions .btn-sm { height: 28px; padding: 0 10px; }
.management-row-actions select { min-height: 28px; height: 28px; padding: 2px 8px; font-size: 12px; }
.management-loading,
.management-empty,
.management-filter-empty,
.management-locked-state {
  min-height: 260px;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: rgba(0,0,0,0.45);
  background: #fff;
  font-size: 12px;
  text-align: center;
}
.management-loading.is-error { color: var(--el-color-danger); }
.management-empty .shell-icon,
.management-locked-state .shell-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  margin-bottom: 5px;
  color: rgba(0,0,0,0.25);
}
.management-empty strong,
.management-locked-state strong { color: rgba(0,0,0,0.65); font-size: 14px; }
.management-filter-empty { min-height: 120px; }

/* 用户与权限管理 */
.management-create-panel {
  padding: 14px 16px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.management-create-heading { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.management-create-heading strong { color: rgba(0,0,0,0.85); font-size: 14px; }
.management-create-heading span { color: rgba(0,0,0,0.45); font-size: 11px; }
.management-create-fields { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.management-create-fields input { width: 190px; }
.management-create-fields select { width: 110px; }
.management-form-error { color: var(--el-color-danger); font-size: 12px; }
.user-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}
.user-editor-page .biz-page-header { flex: 0 0 auto; }
.user-editor-page-body { overflow-y: auto; background: #fff; }
.user-editor-form { width: min(1120px, 100%); margin: 0 auto; }
.user-editor-section { padding: 20px 0; }
.user-editor-section + .user-editor-section { border-top: 1px solid #f0f0f0; }
.user-editor-section-heading { margin-bottom: 14px; }
.user-editor-section-heading h3 { color: rgba(0,0,0,0.85); font-size: 14px; line-height: 22px; }
.user-editor-section-heading p { margin-top: 2px; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }
.user-profile-field > span b { color: var(--el-color-danger); font-weight: 500; }
.user-editor-field-wide { grid-column: span 2; }
.user-profile-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 6px 10px;
  resize: vertical;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.85);
  font: 400 13px/20px var(--font);
}
.user-profile-field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: var(--control-focus-ring); }
.user-editor-field-hint { min-height: var(--control-height); display: flex; align-items: center; color: rgba(0,0,0,0.45); font-size: 12px; }
.user-editor-actions {
  min-height: 52px;
  padding: 14px 0 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
}
.user-editor-actions .management-form-error { min-width: 0; flex: 1; }
.management-form-error.is-success { color: var(--el-color-success); }
.profile-page .biz-page-header { flex: 0 0 auto; }
.profile-page-body { overflow-y: auto; background: #fff; }
.profile-summary-band {
  min-height: 96px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--profile-color) 25%, transparent);
  border-radius: 50%;
  color: var(--profile-color);
  background: var(--profile-tint);
  font-size: 19px;
  font-weight: 600;
}
.profile-summary-copy { min-width: 0; flex: 1; }
.profile-summary-copy h3 { overflow: hidden; color: rgba(0,0,0,0.85); font-size: 18px; line-height: 26px; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary-copy p { overflow: hidden; margin-top: 2px; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.profile-status { padding: 3px 8px; border-radius: 3px; color: #237804; background: #f6ffed; font-size: 12px; white-space: nowrap; }
.profile-completion-band {
  min-height: 56px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.profile-completion-band > div:first-child { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.profile-completion-band strong { color: rgba(0,0,0,0.85); font-size: 13px; line-height: 20px; }
.profile-completion-band span { overflow: hidden; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.profile-completion-band em { color: var(--primary); font-size: 12px; font-style: normal; font-weight: 600; }
.profile-completion-track { height: 6px; overflow: hidden; border-radius: 3px; background: #f0f0f0; }
.profile-completion-track > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width var(--transition-normal); }
.profile-notice { margin-top: 14px; padding: 8px 10px; border: 1px solid #b7eb8f; border-radius: 4px; color: #237804; background: #f6ffed; font-size: 12px; line-height: 20px; }
.profile-information-section,
.profile-edit-section { padding: 20px 0; }
.profile-information-section + .profile-information-section,
.profile-edit-section + .profile-edit-section { border-top: 1px solid #f0f0f0; }
.profile-section-heading { margin-bottom: 14px; }
.profile-section-heading h3 { color: rgba(0,0,0,0.85); font-size: 14px; line-height: 22px; }
.profile-section-heading p { margin-top: 2px; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }
.profile-description-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; }
.profile-description-grid > div { min-width: 0; }
.profile-description-grid dt { color: rgba(0,0,0,0.45); font-size: 12px; line-height: 18px; }
.profile-description-grid dd { overflow: hidden; margin-top: 3px; color: rgba(0,0,0,0.85); font-size: 13px; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.profile-description-grid .profile-description-wide { grid-column: 1 / -1; }
.profile-description-grid .profile-description-multiline { overflow: visible; white-space: pre-wrap; word-break: break-word; }
.profile-empty-value { color: rgba(0,0,0,0.35); }
.profile-edit-form { width: min(1120px, 100%); margin: 0 auto; }
.profile-security-form { width: min(680px, 100%); margin: 0 auto; }
.profile-security-fields { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; }
.profile-edit-wide { grid-column: span 2; }
.profile-edit-actions {
  min-height: 52px;
  padding: 14px 0 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
}
.profile-edit-actions .management-form-error { min-width: 0; flex: 1; }
.user-profile-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-profile-field > span {
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.user-profile-field input,
.user-profile-field select { width: 100%; }
.user-profile-color-control {
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  gap: 10px;
}
#tabHost .user-profile-color-control input[type="color"] {
  width: 38px;
  height: 32px;
  flex: 0 0 38px;
  padding: 2px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: #fff;
  cursor: pointer;
}
.user-profile-color-presets {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.user-profile-color-swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px #d9d9d9;
  cursor: pointer;
}
.user-profile-color-swatch:hover,
.user-profile-color-swatch.is-selected { box-shadow: 0 0 0 2px var(--primary); }
.user-profile-color-swatch:focus-visible { outline: 2px solid rgba(30,172,166,0.35); outline-offset: 2px; }
.user-profile-form-actions {
  min-height: 34px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.user-profile-form-actions .management-form-error { min-width: 0; flex: 1; }
.user-account-assignment {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.user-account-assignment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.user-account-assignment-heading > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.user-account-assignment-heading strong { color: rgba(0,0,0,0.85); font-size: 13px; line-height: 20px; }
.user-account-assignment-heading span { color: rgba(0,0,0,0.45); font-size: 11px; line-height: 17px; }
.user-account-assignment-tools { display: flex; align-items: center; gap: 4px; }
.user-account-assignment-tools button {
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 3px;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.user-account-assignment-tools button:hover { background: var(--brand-green-light); }
.user-account-search { width: min(420px, 100%); margin-top: 10px; }
.user-account-options {
  max-height: 176px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 10px;
  overflow-y: auto;
}
.user-account-option {
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #fafafa;
  cursor: pointer;
}
.user-account-option:hover { background: var(--brand-green-lighter); }
.user-account-option.is-filtered-out { display: none !important; }
.user-account-option input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: var(--primary); }
.user-account-option > span { min-width: 0; display: flex; flex-direction: column; }
.user-account-option strong { overflow: hidden; color: rgba(0,0,0,0.85); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.user-account-option small { overflow: hidden; color: rgba(0,0,0,0.45); font-size: 10px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.user-account-admin-access,
.user-account-options-empty { min-height: 48px; display: flex; align-items: center; color: rgba(0,0,0,0.45); font-size: 12px; }
.user-management-row.is-disabled > td,
.user-permission-row.is-disabled > td { opacity: 0.56; }
.management-user-cell { display: flex; align-items: center; gap: 9px; }
.management-user-cell > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.management-user-cell small { color: rgba(0,0,0,0.45); font-size: 10px; }
.management-user-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #147d78;
  background: var(--brand-green-lighter);
  font-size: 12px;
  font-weight: 600;
}
.management-account-overview {
  min-width: 178px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.management-account-overview:hover .management-account-overview-row strong { color: var(--primary); }
.management-account-overview:focus-visible { outline: 2px solid rgba(30,172,166,0.35); outline-offset: 3px; border-radius: 3px; }
.management-account-overview-row { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.management-account-overview-row strong { overflow: hidden; color: rgba(0,0,0,0.85); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; transition: color var(--transition-fast); }
.management-account-overview-row small { overflow: hidden; color: rgba(0,0,0,0.45); font-size: 10px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.management-profile-completion {
  flex: 0 0 auto;
  min-height: 21px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: rgba(0,0,0,0.45);
  background: #fafafa;
  font-size: 10px;
  line-height: 17px;
  white-space: nowrap;
}
.management-profile-completion.is-partial { color: #096dd9; background: #e6f4ff; border-color: #91caff; }
.management-profile-completion.is-complete { color: #237804; background: #f6ffed; border-color: #b7eb8f; }
.user-security-modal { padding: 20px; display: flex; }
.user-security-modal-box { width: min(460px, 100%); max-width: 460px; padding: 0; overflow: hidden; }
.user-security-modal-heading { padding: 18px 20px 14px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #f0f0f0; }
.user-security-modal-heading .shell-icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: var(--primary); }
.user-security-modal .user-security-modal-heading h3 { margin: 0; color: rgba(0,0,0,0.85); font-size: 16px; line-height: 22px; }
.user-security-modal-heading p { margin-top: 2px; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }
.user-security-modal-heading p strong { color: rgba(0,0,0,0.65); font-family: 'Cascadia Code', 'Consolas', monospace; font-weight: 500; }
.user-security-modal form { padding: 18px 20px 16px; display: grid; gap: 12px; }
.user-security-modal-hint { padding: 8px 10px; color: rgba(0,0,0,0.45); background: #fafafa; font-size: 12px; line-height: 20px; }
.user-security-modal-actions { min-height: 32px; margin-top: 2px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.user-security-modal-actions .management-form-error { min-width: 0; flex: 1; }
.user-security-modal-actions .management-form-error.is-success { color: var(--el-color-success); }
.management-permission-trigger {
  min-width: 174px;
  min-height: 36px;
  padding: 4px 8px 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: rgba(0,0,0,0.65);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.management-permission-trigger:hover,
.management-permission-trigger.is-open {
  color: var(--primary);
  border-color: var(--primary-light-5);
  background: var(--brand-green-lighter);
}
.management-permission-trigger:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.management-permission-trigger-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.management-permission-trigger-copy strong { color: rgba(0,0,0,0.85); font-size: 12px; font-weight: 500; line-height: 17px; }
.management-permission-trigger-copy small { font-size: 10px; line-height: 15px; white-space: nowrap; }
.management-permission-trigger-copy small.is-neutral { color: rgba(0,0,0,0.45); }
.management-permission-trigger-copy small.is-success { color: #237804; }
.management-permission-trigger-copy small.is-warning { color: #ad6800; }
.management-permission-trigger-copy small.is-danger { color: #cf1322; }
.management-permission-chevron { width: 14px; height: 14px; flex: 0 0 14px; transition: transform var(--transition-fast); }
.management-permission-trigger.is-open .management-permission-chevron { transform: rotate(180deg); }
.user-permission-row > td {
  padding: 0 !important;
  background: #fafafa !important;
}
.permission-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  border-bottom: 1px solid #f0f0f0;
}
.permission-editor-main {
  min-width: 0;
  padding: 16px 18px 18px;
  border-right: 1px solid #f0f0f0;
}
.permission-editor-heading,
.permission-validity-heading {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.permission-editor-heading > div:first-child,
.permission-validity-heading { flex-direction: column; }
.permission-editor-heading strong,
.permission-validity-heading strong { color: rgba(0,0,0,0.85); font-size: 13px; font-weight: 600; line-height: 20px; }
.permission-editor-heading span,
.permission-validity-heading span { color: rgba(0,0,0,0.45); font-size: 11px; line-height: 17px; }
.permission-editor-tools { display: flex; align-items: center; gap: 4px; }
.permission-editor-tools button {
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 3px;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.permission-editor-tools button:hover { background: var(--brand-green-light); }
.permission-group { padding-top: 11px; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; border-top: 1px solid #f0f0f0; }
.permission-group + .permission-group { margin-top: 10px; }
.permission-group-title { padding-top: 5px; color: rgba(0,0,0,0.65); font-size: 12px; font-weight: 500; line-height: 20px; }
.permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px 12px;
}
.permission-option {
  min-width: 0;
  min-height: 30px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 4px;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  cursor: pointer;
}
.permission-option:hover { background: #fff; }
.permission-option input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: var(--primary); }
.permission-option-label { min-width: 0; flex: 1; line-height: 20px; }
.permission-option-status { color: rgba(0,0,0,0.45); font-size: 10px; line-height: 16px; white-space: nowrap; }
.permission-option-status.is-warning { color: #ad6800; }
.permission-option-status.is-danger { color: #cf1322; }
.permission-validity-panel {
  min-width: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.permission-validity-segmented {
  margin-top: 11px;
  padding: 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 4px;
  background: #f5f5f5;
}
.permission-validity-segmented label { min-width: 0; cursor: pointer; }
.permission-validity-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.permission-validity-segmented span {
  min-height: 28px;
  padding: 4px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: rgba(0,0,0,0.65);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}
.permission-validity-segmented input:checked + span { color: var(--primary); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 500; }
.permission-validity-segmented input:focus-visible + span { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.permission-date-range { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 10px; opacity: 0.55; }
.permission-date-range.is-active { opacity: 1; }
.permission-date-range label { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 8px; color: rgba(0,0,0,0.65); font-size: 11px; }
.permission-date-range input { width: 100%; min-width: 0; }
.permission-validity-help { min-height: 36px; margin: 10px 0 0; color: rgba(0,0,0,0.45); font-size: 10px; line-height: 18px; }
.permission-editor-error { min-height: 18px; margin-top: 3px; color: var(--el-color-danger); font-size: 11px; line-height: 18px; }
.permission-editor-actions { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid #f0f0f0; }
.permission-save-feedback { min-width: 0; flex: 1; color: #237804; font-size: 11px; }
.management-admin-note { color: rgba(0,0,0,0.45); font-size: 12px; }

/* 文件与节点列表 */
.file-management-body { gap: 12px; }
.management-upload-panel {
  padding: 12px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.management-upload-panel .fileshare-dropzone {
  min-height: 70px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-width: 1px;
  border-radius: 4px;
  background: #fafafa;
}
.management-upload-panel .fileshare-dropzone:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.management-upload-panel .fs-dz-icon { width: 24px; height: 24px; flex-basis: 24px; margin: 0; color: var(--primary); }
.fs-dz-copy { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.management-upload-panel .fs-dz-text { margin: 0; color: rgba(0,0,0,0.65); font-size: 13px; font-weight: 500; }
.management-upload-panel .fs-dz-hint { color: rgba(0,0,0,0.45); font-size: 11px; }
.management-upload-panel .fileshare-progress { margin-top: 10px; padding: 9px 12px; border-radius: 4px; }
.management-service-status {
  min-height: 38px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: rgba(0,0,0,0.65);
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  font-size: 12px;
}
.management-service-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #bfbfbf;
}
.management-service-dot.is-loading { background: var(--primary); animation: managementPulse 1.2s ease-in-out infinite; }
.management-service-dot.is-success { background: var(--el-color-success); }
.management-service-dot.is-error { background: var(--el-color-danger); }
.management-service-dot.is-idle { background: #faad14; }
@keyframes managementPulse { 50% { opacity: 0.35; } }
.management-locked-state { min-height: 320px; flex: 1; }
.management-pagination {
  min-height: 48px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  border-top: 1px solid #f0f0f0;
  color: rgba(0,0,0,0.45);
  background: #fff;
  font-size: 12px;
}
.management-pagination-controls { display: flex; align-items: center; gap: 8px; }
.management-pagination-controls label { display: inline-flex; align-items: center; gap: 5px; }
.management-pagination-controls select { min-height: 28px; height: 28px; padding: 2px 22px 2px 7px; font-size: 12px; }
.management-page-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  color: rgba(0,0,0,0.65);
  background: #fff;
  cursor: pointer;
}
.management-page-button:hover { color: var(--primary); border-color: var(--primary); }
.management-page-button:disabled { color: rgba(0,0,0,0.25); background: #f5f5f5; border-color: #d9d9d9; cursor: not-allowed; }
.np-modal-mask { z-index: 9999; }

@media (max-width: 1024px) {
  .management-toolbar { flex-wrap: wrap; }
  .user-profile-form-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .management-search { width: min(420px, 100%); flex: 1 1 280px; }
  .management-toolbar-spacer { display: none; }
  .management-result-count { margin-left: auto; }
}

@media (max-width: 820px) {
  .management-page-body { overflow: hidden; }
  .management-toolbar,
  .management-panel-heading { padding: 9px 10px; }
  .management-filter-select { flex: 1 1 110px; }
  .management-search { width: 100%; flex-basis: 100%; }
  .management-result-count { flex: 1 0 100%; margin-left: 0; }
  .management-create-panel { padding: 12px; }
  .management-create-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .user-profile-form-grid { grid-template-columns: 1fr; }
  .user-editor-field-wide { grid-column: auto; }
  .profile-edit-wide { grid-column: auto; }
  .profile-security-fields { grid-template-columns: 1fr; }
  .profile-description-grid { grid-template-columns: 1fr; gap: 14px; }
  .profile-completion-band { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .profile-completion-track { grid-column: 1 / -1; grid-row: 2; }
  .profile-description-grid .profile-description-wide { grid-column: auto; }
  .profile-summary-band { align-items: flex-start; }
  .profile-status { display: none; }
  .user-security-modal { padding: 14px; }
  .user-profile-form-actions { align-items: stretch; flex-direction: column; }
  .user-profile-form-actions .btn-sm { width: 100%; }
  .user-account-options { grid-template-columns: 1fr; }
  .management-create-fields input,
  .management-create-fields select { width: 100%; flex: 1 1 100%; }
  .management-create-fields .btn-sm { width: 100%; }
  .permission-editor { grid-template-columns: 1fr; }
  .permission-editor-main { border-right: 0; border-bottom: 1px solid #f0f0f0; }
  .permission-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-upload-panel .fileshare-dropzone { justify-content: flex-start; }
  .management-pagination { align-items: flex-start; flex-direction: column; }
  .management-pagination-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 520px) {
  .management-date-filter { width: 100%; justify-content: space-between; }
  .management-date-filter input { flex: 1; }
  .management-panel-heading { align-items: flex-start; }
  .management-panel-heading .management-result-count { flex: 0 0 auto; }
  .management-upload-panel .fileshare-dropzone { min-height: 92px; }
  .permission-group { grid-template-columns: 1fr; gap: 5px; }
  .permission-options { grid-template-columns: 1fr; }
  .permission-validity-segmented { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   第五阶段：Ant Design Pro 表单与业务操作页面
   ═══════════════════════════════════════════════ */
.operation-page-body.content {
  min-height: 0;
  padding: 16px 24px 24px;
  display: grid;
  grid-template-columns: minmax(360px, 720px);
  gap: 16px;
  justify-content: start;
  overflow-y: auto;
  background: var(--bg);
}
.operation-form-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.operation-panel-header {
  min-height: 60px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  border-bottom: 1px solid #f0f0f0;
}
.operation-panel-header h3 {
  margin: 0;
  color: rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.operation-panel-header p {
  margin: 1px 0 0;
  color: rgba(0,0,0,0.45);
  font-size: 11px;
  line-height: 18px;
}
.func-panel.operation-form-scroll {
  width: 100%;
  min-height: 0;
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  border: 0;
  background: #fff;
}
.operation-form-scroll .func-card {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.operation-form-scroll .func-card:last-child { margin-bottom: 0; }
.operation-form-scroll .func-card:hover { border-color: #d9d9d9; box-shadow: none; }
.operation-form-scroll .func-card.open { border-color: rgba(30,172,166,0.42); border-left-width: 1px; }
.operation-form-scroll .func-card-header {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 0;
  color: rgba(0,0,0,0.65);
  background: #fff;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.operation-form-scroll .func-card-header:hover { background: #fafafa; }
.operation-form-scroll .func-card.open .func-card-header {
  color: var(--primary);
  background: var(--brand-green-lighter);
  border-bottom: 1px solid rgba(30,172,166,0.16);
}
.operation-form-scroll .func-card-header .shell-icon {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
  color: currentColor;
}
.operation-form-scroll .func-card-header .title {
  min-width: 0;
  flex: 1;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
.operation-form-scroll .func-card-header .arrow {
  color: rgba(0,0,0,0.25);
  font-size: 18px;
  line-height: 18px;
  transform: none;
  transition: transform var(--transition-fast);
}
.operation-form-scroll .func-card.open .func-card-header .arrow { color: var(--primary); transform: rotate(90deg); }
.operation-form-scroll .func-card-body { padding: 14px 14px 16px; }
.operation-desc {
  margin: 0 0 13px;
  padding: 8px 10px;
  color: rgba(0,0,0,0.45);
  background: #fafafa;
  border-left: 3px solid #d9d9d9;
  font-size: 11px;
  line-height: 18px;
}
.operation-form-scroll .form-group { margin-bottom: 14px; }
.operation-form-scroll .form-label {
  margin-bottom: 6px;
  color: rgba(0,0,0,0.65);
  font-size: 12px;
  font-weight: 500;
}
.operation-form-scroll .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.operation-form-scroll .checkbox-item {
  min-width: 0;
  min-height: 34px;
  padding: 5px 9px;
  justify-content: flex-start;
  border-radius: 4px;
  line-height: 18px;
}
.operation-form-scroll .checkbox-item.selected::before {
  content: '✓';
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.operation-form-scroll .date-presets { margin-bottom: 8px; gap: 5px; }
.operation-form-scroll .date-range-row { margin-bottom: 7px; gap: 7px; }
.operation-form-scroll .date-range-sep { color: rgba(0,0,0,0.45); font-size: 11px; }
.operation-form-scroll .date-tags { min-height: 0; }
.operation-form-scroll .date-tag { border-radius: 4px; }
.operation-form-scroll .date-footer { min-height: 24px; margin-top: 4px; justify-content: flex-end; }
.operation-form-scroll .btn-run {
  min-height: 36px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
/* 大地量化预测模型 */
.tq-forecast-body {
  min-height: 0;
  overflow-y: auto;
}
.tq-forecast-body > .management-loading,
.tq-forecast-body > .management-empty { min-height: 100%; }
.tq-forecast-page .tq-viz-section { margin: 0 0 18px; }
.tq-forecast-page .tq-viz-section:last-of-type { margin-bottom: 0; }
.tq-forecast-page .tq-viz-section-title {
  margin: 0 0 10px;
  color: rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.tq-forecast-page .tq-viz-card { border-radius: 6px; box-shadow: none; }
.tq-forecast-page .tq-viz-source { margin: 18px 0 0; }

/* 客户端下载 */
.client-download-body {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-release-panel,
.client-info-section {
  padding: 20px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}
.client-release-featured { border-left: 3px solid var(--primary); }
.client-release-combined { padding-bottom: 0; }
.client-release-main {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.client-app-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30,172,166,0.2);
  border-radius: 6px;
  color: var(--primary);
  background: var(--brand-green-lighter);
}
.client-app-mark .shell-icon { width: 25px; height: 25px; flex-basis: 25px; }
.client-release-copy { min-width: 0; flex: 1; }
.client-release-heading { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.client-release-title { color: rgba(0,0,0,0.85); font-size: 19px; font-weight: 600; line-height: 28px; }
.client-release-title span { color: var(--primary); }
.client-release-status {
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: rgba(0,0,0,0.45);
  background: #fff;
  font-size: 10px;
  line-height: 20px;
}
.client-release-status.is-recommended {
  color: #147d78;
  border-color: rgba(30,172,166,0.28);
  background: var(--brand-green-lighter);
}
.client-release-meta { margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.client-release-meta span {
  padding: 1px 7px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: rgba(0,0,0,0.45);
  background: #fafafa;
  font-size: 10px;
  line-height: 18px;
}
.client-release-copy p { margin: 8px 0 0; color: rgba(0,0,0,0.45); font-size: 12px; line-height: 20px; }
.client-requirements { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.client-requirements span {
  color: rgba(0,0,0,0.65);
  font-size: 10px;
  line-height: 18px;
}
.client-requirements span + span::before { content: '·'; margin-right: 6px; color: rgba(0,0,0,0.25); }
.client-release-actions { width: 180px; display: flex; align-items: stretch; flex-direction: column; gap: 7px; }
.client-download-primary { min-width: 140px; height: 36px; text-decoration: none; }
.client-update-button { width: 100%; height: 36px; color: var(--primary); border-color: rgba(30,172,166,0.45); background: #fff; }
.client-update-button:hover:not(:disabled) { color: #147d78; border-color: var(--primary); background: var(--brand-green-lighter); }
.client-update-button:disabled { cursor: default; opacity: 0.72; }
.client-update-progress { width: 100%; padding-top: 2px; }
.client-update-progress[hidden] { display: none; }
.client-update-progress-copy {
  min-width: 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(0,0,0,0.45);
  font-size: 10px;
  line-height: 16px;
}
.client-update-progress-copy span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-update-progress-copy strong { flex: none; color: rgba(0,0,0,0.65); font-weight: 500; }
.client-update-progress-track { height: 5px; overflow: hidden; border-radius: 3px; background: #f0f0f0; }
.client-update-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width 180ms ease; }
.client-update-progress.is-success .client-update-progress-track > span { background: var(--el-color-success); }
.client-update-progress.is-error .client-update-progress-track > span { background: var(--el-color-danger); }
.client-update-progress.is-success .client-update-progress-copy strong { color: #237804; }
.client-update-progress.is-error .client-update-progress-copy strong { color: #cf1322; }
.client-download-mirror { color: rgba(0,0,0,0.45); font-size: 11px; text-decoration: none; }
.client-download-mirror:hover { color: var(--primary); }
.client-section-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.client-section-heading h3 { margin: 0; color: rgba(0,0,0,0.85); font-size: 14px; font-weight: 600; }
.client-section-heading > span { color: rgba(0,0,0,0.45); font-size: 11px; }
.client-install-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}
.client-install-steps li {
  min-width: 0;
  padding: 4px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-right: 1px solid #f0f0f0;
}
.client-install-steps li:first-child { padding-left: 0; }
.client-install-steps li:last-child { padding-right: 0; border-right: 0; }
.client-install-steps li > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #147d78;
  background: var(--brand-green-lighter);
  font-size: 11px;
  font-weight: 600;
}
.client-install-steps strong { color: rgba(0,0,0,0.85); font-size: 12px; font-weight: 600; }
.client-install-steps p { margin: 3px 0 0; color: rgba(0,0,0,0.45); font-size: 11px; line-height: 18px; }
.client-install-steps code { color: rgba(0,0,0,0.65); font-family: 'Cascadia Code', 'Consolas', monospace; }
.client-release-history {
  margin: 20px -20px 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #f0f0f0;
}
.client-history {
  max-height: 340px;
  overflow-y: auto;
  border-top: 1px solid #f0f0f0;
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}
.client-history::-webkit-scrollbar { width: 6px; }
.client-history::-webkit-scrollbar-thumb { border-radius: 3px; background: #d9d9d9; }
.client-history-entry {
  min-height: 92px;
  padding: 15px 4px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.client-history-entry:last-child { border-bottom: 0; }
.client-history-copy { min-width: 0; flex: 1; }
.client-history-entry header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.client-history-entry header strong { color: rgba(0,0,0,0.85); font-size: 13px; line-height: 22px; }
.client-history-entry header time { color: rgba(0,0,0,0.45); font-size: 10px; }
.client-history-type {
  padding: 0 6px;
  border-radius: 4px;
  color: #526581;
  background: #f0f3f7;
  font-size: 10px;
  line-height: 20px;
}
.client-history-entry p { margin: 5px 0 0; color: rgba(0,0,0,0.45); font-size: 11px; line-height: 19px; }
.client-history-entry ul { margin: 5px 0 0; padding-left: 16px; color: rgba(0,0,0,0.65); font-size: 11px; line-height: 19px; }
.client-history-download {
  min-width: 72px;
  height: 30px;
  flex: 0 0 auto;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  background: #fff;
}
.client-history-download:hover { color: var(--primary); border-color: var(--primary); }

@media (max-width: 1080px) {
  .operation-page-body.content { grid-template-columns: minmax(330px, 720px); }
  .client-install-steps { grid-template-columns: 1fr; gap: 12px; }
  .client-install-steps li,
  .client-install-steps li:first-child,
  .client-install-steps li:last-child { padding: 0; border-right: 0; }
}

@media (max-width: 820px) {
  .operation-page-body.content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
  }
  .operation-form-panel { flex: 0 0 auto; overflow: visible; }
  .func-panel.operation-form-scroll { overflow: visible; }
  .tq-forecast-body,
  .client-download-body { padding: 12px; }
  .client-release-main { align-items: flex-start; flex-wrap: wrap; }
  .client-release-actions { width: 100%; align-items: stretch; }
  .client-download-primary,
  .client-update-button { width: 100%; }
}

@media (max-width: 520px) {
  .operation-form-scroll .checkbox-group { grid-template-columns: 1fr; }
  .operation-form-scroll .date-range-row { align-items: stretch; flex-wrap: wrap; }
  .operation-form-scroll .date-range-row .date-input { min-width: calc(50% - 18px); }
  .operation-form-scroll .date-range-row .btn-sm { flex: 1; }
  .function-context-stack,
  .function-workspace-model { grid-template-columns: 1fr; }
  .function-workspace-model .model-download-button { width: 100%; }
  .operation-panel-header { padding: 10px 12px; }
  .client-release-panel,
  .client-info-section { padding: 16px 14px; }
  .client-app-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .client-release-title { font-size: 17px; }
  .client-release-history { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .client-history-entry { gap: 10px; }
.client-history-download { min-width: 64px; }
}

/* Content library and in-app announcements */
.announcement-topbar-button { position: relative; }
.announcement-topbar-button .shell-icon { width: 17px; height: 17px; flex-basis: 17px; }
.announcement-topbar-badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  position: absolute;
  top: 2px;
  right: 2px;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  background: #d4380d;
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
}
.announcement-topbar-badge[hidden] { display: none; }
.announcement-icon-button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border: 0;
  border-radius: 4px;
  color: rgba(0,0,0,0.45);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.announcement-icon-button:hover { color: var(--primary); background: var(--brand-green-lighter); }
.announcement-icon-button:focus-visible { outline: 2px solid rgba(30,172,166,0.3); outline-offset: 1px; }
.announcement-center-mask,
.announcement-popup-mask,
.content-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
.announcement-center-mask { display: none; }
.announcement-center-mask.is-open { display: block; }
.announcement-center-backdrop {
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 25, 33, 0.38);
  cursor: default;
}
.announcement-center-panel {
  width: min(900px, 88vw);
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 30px rgba(9, 25, 33, 0.18);
  animation: announcementSlideIn 0.2s ease-out;
}
@keyframes announcementSlideIn { from { transform: translateX(24px); opacity: 0.7; } to { transform: translateX(0); opacity: 1; } }
.announcement-center-header,
.content-dialog-header {
  min-height: 66px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid #f0f0f0;
}
.announcement-center-header h2,
.content-dialog-header h2 { margin: 0; color: rgba(0,0,0,0.85); font-size: 17px; line-height: 26px; }
.announcement-center-header p,
.content-dialog-header p { margin: 0; color: rgba(0,0,0,0.45); font-size: 11px; line-height: 18px; }
.announcement-center-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.announcement-center-list { min-height: 0; overflow-y: auto; border-right: 1px solid #f0f0f0; background: #fafafa; }
.announcement-list-item {
  width: 100%;
  min-height: 100px;
  padding: 14px 14px 14px 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  color: rgba(0,0,0,0.65);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.announcement-list-item:hover { background: #fff; }
.announcement-list-item.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.announcement-unread-dot { width: 7px; height: 7px; margin-top: 7px; flex: 0 0 7px; border-radius: 50%; background: transparent; }
.announcement-unread-dot.is-unread { background: #1677ff; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }
.announcement-list-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.announcement-list-copy strong { overflow: hidden; color: rgba(0,0,0,0.85); font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-list-copy small { overflow: hidden; color: rgba(0,0,0,0.45); font-size: 11px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-list-meta,
.announcement-detail-meta { display: flex; align-items: center; gap: 7px; color: rgba(0,0,0,0.45); font-size: 10px; }
.announcement-list-meta time { margin-left: auto; white-space: nowrap; }
.announcement-kind {
  min-height: 20px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
}
.announcement-kind.is-feature { color: #0958d9; background: #e6f4ff; border-color: #91caff; }
.announcement-kind.is-guide { color: #ad6800; background: #fffbe6; border-color: #ffe58f; }
.announcement-kind.is-notice { color: #147d78; background: var(--brand-green-lighter); border-color: rgba(30,172,166,0.3); }
.announcement-center-detail { min-width: 0; min-height: 0; overflow-y: auto; padding: 28px clamp(20px, 4vw, 48px); }
.announcement-detail-header { padding-bottom: 18px; border-bottom: 1px solid #f0f0f0; }
.announcement-detail-header h2 { margin: 12px 0 5px; color: rgba(0,0,0,0.88); font-size: 22px; line-height: 32px; }
.announcement-detail-header p { margin: 0; color: rgba(0,0,0,0.45); font-size: 13px; line-height: 22px; }
.announcement-required { padding: 1px 6px; border-radius: 3px; color: #cf1322; background: #fff1f0; }
.announcement-markdown { min-width: 0; padding: 22px 0; color: rgba(0,0,0,0.72); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.announcement-markdown h1 { margin: 0 0 18px; color: rgba(0,0,0,0.88); font-size: 22px; line-height: 32px; }
.announcement-markdown h2 { margin: 25px 0 10px; color: rgba(0,0,0,0.88); font-size: 18px; line-height: 28px; }
.announcement-markdown h3 { margin: 20px 0 8px; color: rgba(0,0,0,0.85); font-size: 15px; line-height: 24px; }
.announcement-markdown p { margin: 0 0 12px; }
.announcement-markdown ul,
.announcement-markdown ol { margin: 0 0 12px; padding-left: 22px; }
.announcement-markdown li { margin-bottom: 5px; }
.announcement-markdown a { color: #1677ff; text-decoration: none; }
.announcement-markdown a:hover { text-decoration: underline; }
.announcement-markdown code { padding: 2px 5px; border-radius: 3px; color: #c41d7f; background: #fff0f6; font: 12px/1.6 'Cascadia Code', Consolas, monospace; }
.announcement-markdown pre { max-width: 100%; margin: 12px 0; padding: 14px; overflow-x: auto; border-radius: 5px; color: #d6e4ff; background: #132a34; }
.announcement-markdown pre code { padding: 0; color: inherit; background: transparent; }
.announcement-markdown blockquote { margin: 12px 0; padding: 9px 14px; border-left: 3px solid #faad14; color: rgba(0,0,0,0.58); background: #fffbe6; }
.announcement-markdown table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 12px; }
.announcement-markdown th,
.announcement-markdown td { padding: 8px 10px; border: 1px solid #e8e8e8; text-align: left; }
.announcement-markdown th { color: rgba(0,0,0,0.78); background: #fafafa; }
.announcement-markdown img { max-width: 100%; height: auto; }
.announcement-detail-actions,
.announcement-popup-actions,
.content-dialog-actions {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
}
.announcement-read-state { color: #389e0d; font-size: 12px; }
.announcement-empty,
.announcement-detail-empty { min-height: 220px; padding: 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: rgba(0,0,0,0.35); font-size: 12px; text-align: center; }
.announcement-empty strong { color: rgba(0,0,0,0.65); font-size: 14px; }
.announcement-popup-mask,
.content-modal-mask { display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(9, 25, 33, 0.42); }
.announcement-popup {
  width: min(760px, 94vw);
  max-height: min(820px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(9,25,33,0.23);
}
.announcement-popup-header { min-height: 52px; padding: 10px 14px 8px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
.announcement-popup-scroll { min-height: 0; padding: 24px 32px 8px; overflow-y: auto; }
.announcement-popup-title { padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.announcement-popup-title h2 { margin: 0 0 6px; color: rgba(0,0,0,0.88); font-size: 22px; line-height: 32px; }
.announcement-popup-title p { margin: 0; color: rgba(0,0,0,0.45); font-size: 13px; line-height: 21px; }
.announcement-popup-actions { padding: 10px 18px; flex: 0 0 auto; }
.announcement-dashboard-banner {
  min-height: 58px;
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #91caff;
  border-radius: 5px;
  color: #0958d9;
  background: #e6f4ff;
}
.announcement-dashboard-banner.priority-high { color: #ad4e00; background: #fff7e6; border-color: #ffd591; }
.announcement-dashboard-banner > .shell-icon { width: 18px; height: 18px; flex-basis: 18px; }
.announcement-dashboard-banner > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.announcement-dashboard-banner strong { overflow: hidden; font-size: 13px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-dashboard-banner div span { overflow: hidden; color: rgba(0,0,0,0.55); font-size: 11px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }

.content-admin-body { overflow: hidden; }
.content-admin-tabs { min-height: 42px; display: flex; align-items: flex-end; gap: 4px; flex: 0 0 auto; border-bottom: 1px solid #e8e8e8; background: #fff; }
.content-admin-tab { min-width: 118px; height: 42px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; color: rgba(0,0,0,0.55); background: transparent; cursor: pointer; font-size: 13px; }
.content-admin-tab:hover,
.content-admin-tab.is-active { color: var(--primary); }
.content-admin-tab.is-active { border-bottom-color: var(--primary); font-weight: 500; }
.content-admin-tab span { min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: rgba(0,0,0,0.45); background: #f0f0f0; font-size: 10px; }
.content-admin-table-panel { border-top: 0; }
.content-document-table { min-width: 920px; }
.content-announcement-table { min-width: 1040px; }
.content-record-summary { max-width: 360px; margin-top: 2px; display: block; overflow: hidden; color: rgba(0,0,0,0.45); font-size: 10px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.content-required-note { margin-top: 2px; display: block; color: #cf1322; font-size: 10px; }
.content-modal-mask { z-index: 1400; }
.content-editor-dialog,
.content-publish-dialog {
  width: min(1180px, 96vw);
  max-height: min(850px, 94vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(9,25,33,0.23);
}
.content-publish-dialog { width: min(780px, 96vw); }
.content-editor-meta { padding: 14px 18px; display: grid; grid-template-columns: minmax(200px, 1fr) 170px minmax(260px, 1.5fr); gap: 12px; border-bottom: 1px solid #f0f0f0; }
.content-editor-meta label,
.content-publish-form > label,
.content-publish-targets > label { min-width: 0; display: flex; flex-direction: column; gap: 5px; color: rgba(0,0,0,0.65); font-size: 12px; }
.content-editor-meta input,
.content-editor-meta select,
.content-publish-form input:not([type="checkbox"]),
.content-publish-form select { width: 100%; min-height: 32px; padding: 4px 9px; border: 1px solid var(--control-border); border-radius: 4px; color: rgba(0,0,0,0.85); background: #fff; font-size: 13px; }
.content-editor-meta input:focus,
.content-editor-meta select:focus,
.content-publish-form input:focus,
.content-publish-form select:focus { outline: 0; border-color: var(--primary); box-shadow: var(--control-focus-ring); }
.content-editor-toolbar { min-height: 48px; padding: 8px 18px; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; border-bottom: 1px solid #f0f0f0; }
.content-editor-toolbar > span { color: rgba(0,0,0,0.38); font-size: 11px; }
.content-editor-workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.content-editor-pane,
.content-preview-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.content-editor-pane { border-right: 1px solid #e8e8e8; }
.content-editor-pane > span,
.content-preview-pane > span { min-height: 36px; padding: 8px 14px; flex: 0 0 auto; border-bottom: 1px solid #f0f0f0; color: rgba(0,0,0,0.55); background: #fafafa; font-size: 11px; font-weight: 500; }
.content-editor-pane textarea { width: 100%; min-height: 400px; padding: 16px; flex: 1; resize: none; border: 0; outline: 0; color: #243746; background: #fbfcfd; font: 13px/1.7 'Cascadia Code', Consolas, monospace; }
.content-preview-pane .announcement-markdown { min-height: 400px; padding: 18px 22px; flex: 1; overflow-y: auto; }
.content-preview-empty { min-height: 240px; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,0.3); font-size: 12px; }
.content-dialog-actions { padding: 10px 18px; flex: 0 0 auto; }
.content-dialog-actions .management-form-error { min-width: 0; flex: 1; }
.content-publish-form { min-height: 0; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; overflow-y: auto; }
.content-publish-form label > span { color: rgba(0,0,0,0.65); font-size: 12px; }
.content-publish-form label > small { color: rgba(0,0,0,0.38); font-size: 10px; }
.content-publish-wide { grid-column: 1 / -1; }
.content-publish-targets { min-height: 40px; }
.content-target-hint { min-height: 38px; padding: 9px 11px; display: flex; align-items: center; border: 1px solid #b7eb8f; border-radius: 4px; color: #237804; background: #f6ffed; font-size: 11px; }
.content-publish-targets fieldset { padding: 10px 12px 12px; border: 1px solid #e8e8e8; border-radius: 4px; }
.content-publish-targets legend { padding: 0 5px; color: rgba(0,0,0,0.45); font-size: 11px; }
.content-target-options { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; }
.content-target-permissions { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.content-target-options label { min-width: 0; display: flex; align-items: center; gap: 7px; color: rgba(0,0,0,0.65); font-size: 12px; }
.content-target-options input,
.content-publish-check input { width: 14px; height: 14px; accent-color: var(--primary); }
.content-publish-targets select[multiple] { min-height: 110px; padding: 4px; }
.content-publish-targets select[multiple] option { padding: 5px 7px; }
.content-publish-check { min-height: 34px; padding: 7px 10px; display: flex !important; align-items: center; flex-direction: row !important; border-radius: 4px; background: #fafafa; }

@media (max-width: 900px) {
  .announcement-center-panel { width: 100%; }
  .announcement-center-body { display: flex; flex-direction: column; }
  .announcement-center-list { max-height: 230px; flex: 0 0 230px; border-right: 0; border-bottom: 1px solid #f0f0f0; }
  .announcement-list-item { min-height: 84px; }
  .announcement-center-detail { flex: 1; padding: 20px 18px; }
  .content-editor-dialog,
  .content-publish-dialog { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .content-modal-mask { padding: 0; }
  .content-editor-meta { grid-template-columns: 1fr 150px; }
  .content-editor-summary-field { grid-column: 1 / -1; }
  .content-editor-workspace { display: flex; flex-direction: column; overflow-y: auto; }
  .content-editor-pane,
  .content-preview-pane { flex: 0 0 auto; border-right: 0; }
  .content-editor-pane { border-bottom: 1px solid #e8e8e8; }
  .content-editor-pane textarea,
  .content-preview-pane .announcement-markdown { min-height: 320px; flex: 0 0 320px; }
  .content-target-options,
  .content-target-permissions { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (max-width: 560px) {
  .announcement-popup-mask { padding: 0; align-items: flex-end; }
  .announcement-popup { width: 100%; max-height: 94vh; border-radius: 7px 7px 0 0; }
  .announcement-popup-scroll { padding: 18px 16px 6px; }
  .announcement-popup-title h2,
  .announcement-detail-header h2 { font-size: 19px; line-height: 28px; }
  .announcement-popup-actions { flex-wrap: wrap; }
  .announcement-popup-actions .btn-sm { flex: 1; }
  .announcement-dashboard-banner { align-items: flex-start; flex-wrap: wrap; }
  .announcement-dashboard-banner > div { flex-basis: calc(100% - 62px); }
  .announcement-dashboard-banner > .btn-sm { margin-left: 29px; }
  .content-editor-meta,
  .content-publish-form { grid-template-columns: 1fr; }
  .content-editor-summary-field,
  .content-publish-wide { grid-column: auto; }
  .content-target-options,
  .content-target-permissions { grid-template-columns: 1fr; }
  .content-dialog-actions { flex-wrap: wrap; }
  .content-dialog-actions .management-form-error { flex-basis: 100%; }
}
/* 用户管理：在线状态 */
.um-online-state { display: inline-flex; align-items: center; gap: 6px; color: rgba(0,0,0,0.45); font-weight: 600; font-size: 13px; }
.um-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #bfbfbf; display: inline-block; }
.um-online-state.is-online { color: #237804; }
.um-online-state.is-online .um-online-dot { background: #52c41a; box-shadow: 0 0 0 3px rgba(82,196,26,0.15); }
.um-last-seen { display: block; color: rgba(0,0,0,0.45); font-size: 12px; margin-top: 3px; }
.um-login-row { color: rgba(0,0,0,0.55); font-size: 12px; }

/* 账号管理：登录态上传成功/自动登录顶部提示条 */
.account-login-notice {
  display: flex; align-items: center; gap: 10px;
  margin: 0 20px 12px; padding: 10px 14px;
  border-radius: 8px; font-size: 13px; line-height: 1.5;
  border: 1px solid #d9f7be; background: #f6ffed; color: #237804;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  animation: accountNoticeIn 0.25s ease;
}
.account-login-notice.is-hidden { display: none; }
.account-login-notice.is-error { border-color: #ffccc7; background: #fff2f0; color: #cf1322; }
.account-login-notice.is-info { border-color: #bae7ff; background: #e6f7ff; color: #0958d9; }
.account-login-notice.is-warning { border-color: #ffe58f; background: #fffbe6; color: #874d00; }
.account-login-notice .account-notice-msg { flex: 1; }
.account-login-notice .account-notice-close {
  cursor: pointer; border: none; background: transparent; color: inherit;
  opacity: 0.65; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 4px;
}
.account-login-notice .account-notice-close:hover { opacity: 1; background: rgba(0,0,0,0.06); }
@keyframes accountNoticeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ─── 企业客户端绑定（账号管理）───────────────────────── */
.client-binding-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
}
.client-binding-line .client-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  flex: 0 0 auto;
}
.client-binding-line.is-online { color: #15803d; }
.client-binding-line.is-online .client-dot { background: #16a34a; }
.client-binding-line.is-offline { color: #b45309; }
.client-binding-line.is-offline .client-dot { background: #f59e0b; }
.client-binding-line.is-unbound { color: #9ca3af; }
.client-badge {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 16px;
  border: 1px solid transparent;
}
.client-badge.is-local { color: #15803d; background: #dcfce7; border-color: #86efac; }
.client-badge.is-remote { color: #b45309; background: #fef3c7; border-color: #fcd34d; }
.client-binding-warn {
  margin-top: 3px;
  font-size: 11px;
  color: #b91c1c;
}
.account-table .col-select { width: 30px; text-align: center; }
.account-table .col-select input { cursor: pointer; }
/* ─── 个人功能：页面级采集方式切换（2026-10-20）────────────── */
.export-mode-card .function-workspace-field { gap: 8px; }
.export-mode-switch { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.export-mode-switch .btn-sm { min-width: 108px; justify-content: center; }
.export-mode-switch .btn-sm.is-active {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #fff;
}
