
#app {
  height: 100vh;
  overflow: hidden;
}

/* 列宽拖拽手柄 */
.col-resize-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: #bbb;
  cursor: col-resize;
  border-radius: 2px;
  flex-shrink: 0;
  user-select: none;
  transition: color 0.2s, background 0.2s;
}
.col-resize-handle:hover {
  color: #1677ff;
  background: rgba(22,119,255,0.08);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  /* 🍎 2026 Black-Heiti System Stack — 国内系统黑体，零外链、永不被墙 */
  font-family: 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Source Han Sans CN', 'Microsoft YaHei', 'SimHei', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  color: #1c1c1e;
}
::-webkit-scrollbar {
  width: 8px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.ant-layout {
  min-height: 100vh;
}
.ant-table {
  font-size: 14px;
  color: #1c1c1e;
}
.ant-table .ant-table-thead > tr > th {
  padding: 8px 12px !important;
  font-size: 13.5px;
  font-weight: 600;
  color: #3a3a3c;
  background: #f7f7f9 !important;
  border-bottom: 1px solid #e5e5ea !important;
  white-space: nowrap;
  overflow: visible !important;
  user-select: none;
}
.ant-table .ant-table-tbody > tr > td {
  padding: 6px 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap;
  line-height: 1.4;
  border-bottom: 0.5px solid #f0f0f2 !important;
  transition: background 0.15s ease;
}
.ant-table .ant-table-tbody > tr:hover > td {
  background: #f2f8ff !important;
}
.ant-table .ant-btn-link {
  padding: 0 4px;
  font-size: 13px;
  height: auto;
  line-height: 1.4;
}
.ant-table .ant-tag {
  font-size: 12px;
  line-height: 18px;
  padding: 0 8px;
  margin: 0;
  border-radius: 4px;
}
.ant-table .ant-input-sm,
.ant-table .ant-select-sm {
  font-size: 13.5px;
}
.ant-table .ant-table-pagination.ant-pagination {
  margin: 10px 0 0;
  justify-content: flex-end;
}
.ant-card-head {
  padding: 0 14px;
  min-height: 42px;
}
.ant-card-head .ant-card-head-title {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  color: #1c1c1e;
}
.ant-card-head .ant-card-extra {
  padding: 7px 0;
}
.ant-card-body {
  padding: 14px;
}
.ant-statistic-title {
  font-size: 12px;
}
.ant-statistic-content {
  font-size: 20px;
}
.ant-modal-header {
  padding: 14px 22px;
}
.ant-modal-body {
  padding: 16px 22px;
}
.ant-modal-footer {
  padding: 12px 22px;
}
.ant-form-item {
  margin-bottom: 12px;
}
.ant-table-wrapper .ant-table-pagination {
  margin: 8px 0 0;
}
.ant-select-dropdown {
  min-width: 180px !important;
  width: auto !important;
  max-width: 480px;
}
/* 💡 8/20 表格列宽拖拽手柄 */
.col-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}
.col-resize-handle:hover {
  background: rgba(214, 179, 63, 0.35);
}
th:hover .col-resize-handle {
  background: rgba(214, 179, 63, 0.2);
}
.ant-btn {
  border-radius: 8px;
  transition: all 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ant-btn-primary {
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.28);
}
.ant-btn-primary:active {
  transform: scale(0.97);
}
.ant-btn-default:active,
.ant-btn-dangerous:active {
  transform: scale(0.97);
}
.ant-card {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ant-modal-content {
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.ant-modal-header {
  border-radius: 14px 14px 0 0;
}
.ant-modal-footer {
  border-radius: 0 0 14px 14px;
}
.ant-popover-inner,
.ant-dropdown-menu {
  border-radius: 12px;
}
.ant-input:focus,
.ant-input-focused,
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18) !important;
}
.ant-message-notice-content,
.ant-notification-notice {
  border-radius: 12px;
}
.ant-tag {
  border-radius: 6px;
}
.ant-drawer-content {
  border-radius: 16px 0 0 16px;
}
.ant-switch {
  min-width: 44px;
}
.ant-segmented {
  border-radius: 10px;
}
.ant-empty-image svg,
.ant-empty-img-simple {
  opacity: 0.6;
}
.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.fade-slide-enter-from {
  opacity: 0;
  transform: translateY(6px);
}
.fade-slide-leave-to {
  opacity: 0;
}
.layout-content-inset {
  padding: 16px;
}
@media (max-width: 1440px) {
  .layout-content-inset {
    padding: 14px;
  }
}
@media (max-width: 1200px) {
  .layout-content-inset {
    padding: 14px;
  }
  .ant-card-body {
    padding: 12px;
  }
}
@media (max-width: 992px) {
  .layout-content-inset {
    padding: 12px;
  }
  .ant-card-body {
    padding: 10px;
  }
  .ant-table {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .layout-content-inset {
    padding: 8px;
  }
  .ant-card-body {
    padding: 8px;
  }
  .ant-card-head {
    padding: 0 10px;
  }
}
@media (max-width: 560px) {
  .hide-xs {
    display: none !important;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
}
h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
h5 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
h6 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.sp-1 {
  margin-bottom: 4px;
}
.sp-2 {
  margin-bottom: 8px;
}
.sp-3 {
  margin-bottom: 12px;
}
.sp-4 {
  margin-bottom: 16px;
}
.sp-5 {
  margin-bottom: 24px;
}
.sp-6 {
  margin-bottom: 32px;
}
.menu-group-divider {
  height: 0.5px;
  background: var(--sider-border);
  margin: 8px 16px;
}
.menu-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sider-text-dim);
  padding: 10px 20px 4px;
}
.menu-row.level-2 {
  padding-left: 34px;
}
.menu-row.level-2 .menu-icon {
  font-size: 14px;
}
.menu-row.active {
  background: var(--sider-active);
  color: var(--sider-active-text);
}
.menu-row.active .menu-label {
  color: var(--sider-active-text);
}
.flyout-section + .flyout-section {
  border-left: 0.5px solid var(--sider-border);
}
.flyout-title {
  font-weight: 600;
}
.ant-table .ant-btn-link,
.ant-table .ant-btn-text {
  border: 1px solid #d4d4d9;
  border-radius: 8px;
  padding: 3px 12px;
  height: 28px;
  background: #ffffff;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0.5px rgba(255, 255, 255, 0.6);
  transition: all 0.15s ease;
}
.ant-table .ant-btn-link:hover,
.ant-table .ant-btn-text:hover {
  border-color: #007AFF;
  color: #007AFF;
  background: rgba(0, 122, 255, 0.06);
}
.ant-table .ant-btn-link.ant-btn-dangerous,
.ant-table .ant-btn-text.ant-btn-dangerous {
  border-color: #ffd6d2;
  color: #FF3B30;
}
.ant-table .ant-btn-link.ant-btn-dangerous:hover,
.ant-table .ant-btn-text.ant-btn-dangerous:hover {
  border-color: #FF3B30;
  color: #FF3B30;
  background: rgba(255, 59, 48, 0.06);
}
.ant-table .ant-btn-link.ant-btn-primary,
.ant-table .ant-btn-text.ant-btn-primary {
  border-color: #007AFF;
  color: #007AFF;
}
:root,
[data-theme='default'] {
  --sider-bg: #ffffff;
  --sider-text: #1c1c1e;
  --sider-text-dim: #8e8e93;
  --sider-hover: #f2f2f7;
  --sider-hover-text: #007aff;
  --sider-active: #007aff;
  --sider-active-text: #ffffff;
  --sider-border: #ececf0;
  --flyout-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --content-bg: #f5f5f7;
  --panel-bg: #ffffff;
  --panel-border: #e5e5ea;
  --primary: #007aff;
  --primary-hover: #3395ff;
  --primary-text: #ffffff;
  --primary-soft: #e8f1ff;
  --text: #1c1c1e;
  --text-dim: #6e6e73;
  --text-faint: #aeaeb2;
  --table-head-bg: #fafafa;
  --row-hover: #f2f2f7;
  --row-alt: #ffffff;
  --tag-bg: #e8f1ff;
  --border: #d1d1d6;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme='cream'] {
  --sider-bg: #ffffff;
  --sider-text: #7a6f5c;
  --sider-text-dim: #b3aa9a;
  --sider-hover: #f7f1e3;
  --sider-hover-text: #8a6200;
  --sider-active: linear-gradient(90deg, #f3ead2, transparent);
  --sider-active-text: #8a6200;
  --sider-border: #eee6d8;
  --flyout-bg: #fffdf8;
  --header-bg: #ffffff;
  --content-bg: #f6f3ec;
  --panel-bg: #ffffff;
  --panel-border: #e8e0d0;
  --primary: #b8860b;
  --primary-hover: #d4a11c;
  --primary-text: #fff;
  --primary-soft: #f5edd9;
  --text: #3a332a;
  --text-dim: #8a8072;
  --text-faint: #b3aa9a;
  --table-head-bg: #faf6ec;
  --row-hover: #fdfaf3;
  --row-alt: #fbf8f1;
  --tag-bg: #f5edd9;
  --border: #ddd3bf;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(120, 100, 60, 0.1);
}
[data-theme='graphite'] {
  --sider-bg: #20242b;
  --sider-text: #9aa4b1;
  --sider-text-dim: #6d7683;
  --sider-hover: rgba(255, 255, 255, 0.06);
  --sider-hover-text: #fff;
  --sider-active: linear-gradient(90deg, rgba(14, 165, 233, 0.28), transparent);
  --sider-active-text: #fff;
  --sider-border: rgba(255, 255, 255, 0.05);
  --flyout-bg: #20242b;
  --header-bg: #ffffff;
  --content-bg: #f1f3f6;
  --panel-bg: #ffffff;
  --panel-border: #e2e5ea;
  --primary: #0ea5e9;
  --primary-hover: #38bdf8;
  --primary-text: #fff;
  --primary-soft: #e0f2fe;
  --text: #1f2329;
  --text-dim: #68707a;
  --text-faint: #9aa1ab;
  --table-head-bg: #f6f8fa;
  --row-hover: #f4f6f8;
  --row-alt: #fafbfc;
  --tag-bg: #e0f2fe;
  --border: #d8dce2;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
html[data-theme] .ant-layout {
  background: var(--content-bg);
}
html[data-theme] .ant-layout-sider {
  background: var(--sider-bg) !important;
}
html[data-theme] .ant-layout-header {
  background: var(--header-bg) !important;
}
html[data-theme] .ant-layout-content {
  background: var(--content-bg);
}
html[data-theme] .ant-card {
  background: var(--panel-bg);
  border-color: var(--panel-border);
}
html[data-theme] .ant-card-head {
  border-bottom-color: var(--panel-border);
}
html[data-theme] .ant-table {
  background: var(--panel-bg);
}
html[data-theme] .ant-table-thead > tr > th {
  background: var(--table-head-bg) !important;
  border-bottom-color: var(--panel-border) !important;
}
html[data-theme] .ant-table-tbody > tr > td {
  border-bottom-color: var(--panel-border) !important;
}
html[data-theme] .ant-table-tbody > tr:hover > td {
  background: var(--row-hover) !important;
}
html[data-theme] .ant-table-tbody > tr:nth-child(even) > td {
  background: var(--row-alt);
}
html[data-theme] .ant-table-tbody > tr:nth-child(even):hover > td {
  background: var(--row-hover) !important;
}
html[data-theme] .ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-text) !important;
}
html[data-theme] .ant-btn-primary:hover,
html[data-theme] .ant-btn-primary:focus {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
html[data-theme] .ant-btn-link {
  color: var(--primary) !important;
}
html[data-theme] a {
  color: var(--primary);
}
html[data-theme] .ant-input,
html[data-theme] .ant-input-affix-wrapper,
html[data-theme] .ant-select-selector,
html[data-theme] .ant-picker {
  background: var(--panel-bg) !important;
  border-color: var(--border) !important;
  color: var(--text);
}
html[data-theme] .ant-input::placeholder {
  color: var(--text-faint);
}
html[data-theme] .ant-modal-content {
  background: var(--panel-bg);
}
html[data-theme] .ant-modal-header {
  background: var(--panel-bg);
  border-bottom-color: var(--panel-border);
}
html[data-theme] .ant-modal-footer {
  border-top-color: var(--panel-border);
}
html[data-theme] .ant-pagination-item-active {
  border-color: var(--primary) !important;
}
html[data-theme] .ant-pagination-item-active a {
  color: var(--primary) !important;
}
html[data-theme] .ant-card-head-title {
  color: var(--text);
}
html[data-theme] .ant-statistic-title {
  color: var(--text-dim);
}
html[data-theme] .ant-statistic-content {
  color: var(--text);
}
html[data-theme] .ant-tag {
  border-radius: var(--radius);
}
html[data-theme] .ant-modal-mask {
  background: rgba(0, 0, 0, 0.45);
}
