html, body, #root {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  color: #1f1f1f;
}

#root {
  display: flex;
  flex-direction: column;
}

.app-layout {
  height: 100vh;
  overflow: hidden;
  background: #f0f2f5;
}

.app-header {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  height: 56px;
  line-height: 56px;
  z-index: 10;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header__trigger {
  font-size: 18px;
  cursor: pointer;
  padding: 0 12px;
  color: #1f1f1f;
}

.app-header__trigger:hover {
  color: #1677ff;
}

.app-header__title {
  font-weight: 600;
  font-size: 16px;
  color: #1f1f1f;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

/* Light sider — sits between the white header (#ffffff) and the slightly
   darker content area (#f0f2f5). Text is dark (#1f1f1f) so it stays
   readable on the light background. */
.app-sider {
  flex: 0 0 auto;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fafbfc !important;
  border-right: 1px solid #e5e7eb;
}

.app-sider .ant-menu {
  background: transparent !important;
  border-inline-end: none !important;
  padding-top: 8px;
}

.app-sider .ant-menu-item,
.app-sider .ant-menu-submenu-title {
  color: #1f1f1f !important;
  margin: 4px 8px !important;
  width: calc(100% - 16px) !important;
  border-radius: 6px !important;
}

.app-sider .ant-menu-item .ant-menu-title-content,
.app-sider .ant-menu-submenu-title .ant-menu-title-content {
  color: inherit;
  font-weight: 500;
}

.app-sider .ant-menu-item:hover,
.app-sider .ant-menu-submenu-title:hover {
  background-color: #eef2f7 !important;
  color: #1677ff !important;
}

.app-sider .ant-menu-item:hover .anticon,
.app-sider .ant-menu-submenu-title:hover .anticon {
  color: #1677ff !important;
}

.app-sider .ant-menu-item-selected {
  background-color: #e6f4ff !important;
  color: #1677ff !important;
  font-weight: 600;
}

.app-sider .ant-menu-item-selected .anticon {
  color: #1677ff !important;
}

.app-sider .ant-menu-submenu-selected > .ant-menu-submenu-title {
  color: #1677ff !important;
  font-weight: 600;
}

.app-content-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  background: #f0f2f5;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/admin/assets/bg_002-Cc601PDg.jpg') center / cover no-repeat fixed;
  position: relative;
}

/* 半透明深色 overlay 让 login card 白色背景更突出, 同时弱化背景图 */
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 35, 80, 0.45) 0%, rgba(20, 80, 110, 0.35) 100%);
  pointer-events: none;
}

/* login card 浮在 overlay 之上 */
.login-page > * {
  position: relative;
  z-index: 1;
}

.login-card {
  width: 380px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.login-card__title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1f1f1f;
}

.login-card__subtitle {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 24px;
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.draggable-tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.draggable-tree-row__handle {
  cursor: grab;
  color: #bfbfbf;
  font-size: 14px;
}

.draggable-tree-row__handle:hover {
  color: #1677ff;
}