/* -------------------------------------------
 * 全局基础
 * ------------------------------------------- */
html,
body,
#root {
  min-width: 1280px;
  height: 100%;
}
#root {
  overflow-x: auto;
}
body {
  text-rendering: optimizelegibility;
  font-feature-settings: 'tnum';
  background-color: #f5f7fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul,
ol {
  list-style: none;
}
canvas {
  display: block;
}
/* -------------------------------------------
 * 滚动条（现代、纤细、半透明）
 * ------------------------------------------- */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  -webkit-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.32);
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
/* -------------------------------------------
 * 常用工具类
 * ------------------------------------------- */
.flex {
  display: flex;
}
.flex-h {
  display: flex;
  align-items: center;
}
.flex-c {
  display: flex;
  flex-direction: column;
}
.flex-h-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-v-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mt-5 {
  margin-top: 5px;
}
.can-click {
  cursor: pointer;
  transition: opacity 0.2s;
}
.can-click:hover {
  opacity: 0.82;
}
.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.colorWeak {
  filter: invert(80%);
}
/* -------------------------------------------
 * 头部 / 布局
 * ------------------------------------------- */
.global-header {
  padding: 0 24px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.ant-layout {
  min-height: 100vh;
  background: #f5f7fb;
}
.ant-layout .ant-layout-content {
  margin: 0;
  /* 消息中心：取消主容器左右 24px 外边距（灰色底与白色内容区之间的缝），子元素负 margin 无法抵消父级 margin */
}
.ant-layout .ant-layout-content .ant-pro-page-container {
  margin: 0px 24px 16px;
}
.ant-layout .ant-layout-content .ant-pro-page-container:has(.notice-page--bleed) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ant-layout .ant-layout-content .ant-pro-page-container:has(.notice-page--bleed) .app-page-topbar {
  margin-inline: 0 !important;
}
.ant-layout-sider {
  background-color: #fff !important;
  box-shadow: 1px 0 0 0 #eef0f4;
}
/* 侧边栏菜单分组标题 */
.ant-pro-sider-menu .ant-menu-item-group-title {
  padding: 18px 20px 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  color: rgba(15, 23, 42, 0.38) !important;
  text-transform: uppercase;
  position: relative;
}
.ant-pro-sider-menu .ant-menu-item-group:first-child .ant-menu-item-group-title {
  padding-top: 12px !important;
}
/* 折叠状态下的分组标题：显示一个细线取代文字 */
.ant-pro-sider-collapsed .ant-menu-item-group-title,
.ant-layout-sider-collapsed .ant-menu-item-group-title {
  padding: 10px 12px !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.ant-pro-sider-collapsed .ant-menu-item-group-title::after,
.ant-layout-sider-collapsed .ant-menu-item-group-title::after {
  content: '';
  display: block;
  height: 1px;
  background: #eef0f4;
  margin: 0 8px;
}
.ant-pro-sider.ant-layout-sider .ant-pro-sider-logo {
  justify-content: center;
  padding: 0 12px;
  border-bottom: 1px solid #eef0f4;
}
.ant-pro-sider.ant-layout-sider .ant-pro-sider-logo img {
  width: auto;
  height: 48px;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}
/* 顶栏所在的 PageHeader，去掉左右内边距 */
.ant-pro-page-container > .ant-page-header {
  padding-inline: 0 !important;
  padding-block: 0 !important;
  margin-bottom: 20px !important;
}
/* 消息中心：去掉面包屑与「消息通知」标题之间的空隙（原 header margin-bottom + 子容器上 padding） */
.ant-pro-page-container:has(.notice-page--bleed) > .ant-page-header {
  margin-bottom: 0 !important;
}
.ant-pro-page-container:has(.notice-page--bleed) .ant-pro-page-container-children-container {
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}
.ant-pro-page-container:has(.notice-page--bleed) .ant-pro-page-container-children-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.ant-pro-page-container:has(.notice-page--bleed) .app-page-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* 顶栏（面包屑 + RightContent）容器 —— 左连接侧边栏、右连接浏览器右侧 */
.app-page-topbar {
  /* 负 margin 突破外层 .ant-pro-page-container 的 24px 横向 margin */
  margin-inline: -24px !important;
  padding: 14px 24px 12px;
  background: #ffffff;
  border-bottom: 1px solid #eef0f4;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.app-page-body {
  padding: 0;
}
/* Modal 头/底去掉割裂的分隔线 */
.ant-modal-header {
  border-bottom: none !important;
  padding-bottom: 8px;
}
.ant-modal-footer {
  border-top: none !important;
  padding-top: 8px;
}
.ant-modal .ant-modal-content {
  border-radius: 14px;
}
/* -------------------------------------------
 * PageContainer
 * ------------------------------------------- */
.ant-pro-page-container-children-container {
  padding-bottom: 0 !important;
  padding-block-end: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ant-pro-page-container-children-container > div {
  height: auto !important;
  overflow-y: hidden !important;
}
.ant-pro-page-container-children-container .ant-pro-card-body {
  margin-top: -16px !important;
}
.ant-pro-page-container-children-container .ant-table-body {
  max-height: calc(100vh - 314px) !important;
  height: calc(100vh - 314px) !important;
}
.ant-pro-page-container-children-container .ant-pro-query-filter.ant-pro-query-filter {
  padding: 16px 24px;
}
/* -------------------------------------------
 * 菜单（侧边栏）
 * ------------------------------------------- */
.ant-pro-sider .ant-menu-light .ant-menu-item {
  transition: background 0.2s, color 0.2s;
}
.ant-pro-sider .ant-menu-light .ant-menu-item:hover {
  color: #1677ff;
}
.ant-pro-sider .ant-menu-submenu-title {
  transition: background 0.2s, color 0.2s;
}
/* -------------------------------------------
 * 卡片
 * ------------------------------------------- */
.ant-card {
  transition: box-shadow 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}
.ant-card.ant-card-hoverable:hover {
  border-color: #d6e4ff;
  box-shadow: 0 6px 22px -6px rgba(22, 119, 255, 0.18), 0 2px 6px 0 rgba(15, 23, 42, 0.06);
}
/* -------------------------------------------
 * 按钮 / 交互反馈
 * ------------------------------------------- */
.ant-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ant-btn-primary:not(:disabled):hover {
  box-shadow: 0 4px 12px -2px rgba(22, 119, 255, 0.35);
}
.ant-btn-primary:not(:disabled):active {
  transform: translateY(1px);
}
/* -------------------------------------------
 * 表格
 * ------------------------------------------- */
.ant-table-thead > tr > th {
  font-weight: 600 !important;
}
.ant-table-tbody > tr > td {
  transition: background 0.2s ease;
}
.ant-table .ant-empty-normal {
  padding: 18px 0;
}
.ant-table .ant-empty-normal .ant-empty-image {
  height: 48px;
}
.ant-pagination .ant-pagination-item {
  border-radius: 6px;
}
/* -------------------------------------------
 * 表单
 * ------------------------------------------- */
.ant-space-item > .ant-form {
  padding: 0 14px;
}
.ant-space-item > .ant-form .ant-form-item .ant-form-item-label {
  overflow: visible !important;
}
.ant-space-item > .ant-form .ant-form-item .ant-form-item-required {
  margin-left: -18px;
}
.ant-form-item .ant-form-item-label {
  position: relative !important;
}
.ant-form-item .ant-form-item-label > label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 12px !important;
  text-align: left !important;
}
.ant-form-item .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  margin: 0 !important;
  color: #ff4d4f !important;
  transform: translateY(-50%) !important;
  content: '*' !important;
}
.ant-form-item-extra {
  margin: 6px 0 12px;
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
}
.ant-form-vertical .ant-form-item-label {
  padding-bottom: 0;
}
/* 输入、选择、日期统一焦点阴影 */
.ant-input:focus,
.ant-input-focused,
.ant-input-affix-wrapper-focused,
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12) !important;
}
/* -------------------------------------------
 * 富文本
 * ------------------------------------------- */
.react-quill .ql-editor {
  min-height: 130px;
  max-height: 400px;
}
/* -------------------------------------------
 * 响应式
 * ------------------------------------------- */
@media (max-width: 480px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
  }
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > th,
  .ant-table-thead > tr > td,
  .ant-table-tbody > tr > td {
    white-space: pre;
  }
  .ant-table-thead > tr > th > span,
  .ant-table-tbody > tr > th > span,
  .ant-table-thead > tr > td > span,
  .ant-table-tbody > tr > td > span {
    display: block;
  }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}
/* -------------------------------------------
 * 页面切换动画
 * ------------------------------------------- */
.ant-pro-page-container-children-content {
  animation: pageFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}

.export-task-drawer .ant-drawer-header {
  padding: 12px 16px;
}
.export-task-drawer .ant-drawer-body {
  padding: 0;
}
.export-task-drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.export-task-drawer-title-icon {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.65);
}
.export-task-drawer-list {
  max-height: calc(100vh - 56px);
  overflow: auto;
}
.export-task-drawer-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(5, 5, 5, 0.06);
}
.export-task-drawer-item-name {
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
  word-break: break-all;
}
.export-task-drawer-item-meta {
  margin-top: 6px;
}
.export-task-drawer-item-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.export-task-drawer-empty {
  padding: 24px 16px;
  text-align: center;
}
.export-task-drawer-bottom {
  padding: 10px 16px 16px;
  text-align: center;
}

/* ---- 头部右侧总容器 ---- */
.right-content-bar {
  align-items: center;
  padding-right: 4px;
}
.menu :global(.anticon) {
  margin-right: 8px;
}
.menu :global(.ant-dropdown-menu-item) {
  min-width: 160px;
}
/* ---- 品牌切换器（触发按钮 + 面板） ---- */
.brand-switcher-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 4px 8px 4px 4px;
  border: 1px solid #eef0f4;
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  border-radius: 999px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.85);
  transition: all 0.2s ease;
  outline: none;
  max-width: 280px;
}
.brand-switcher-trigger:hover {
  border-color: rgba(22, 119, 255, 0.35);
  background: #f6f9ff;
  box-shadow: 0 4px 12px -6px rgba(22, 119, 255, 0.35);
}
.brand-switcher-trigger:hover .brand-switcher-trigger-swap {
  color: #1677ff;
  transform: rotate(180deg);
}
.brand-switcher-trigger:active {
  transform: scale(0.985);
}
.brand-switcher-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}
.brand-switcher-trigger-logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff 0%, #3d8bff 100%);
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-switcher-trigger-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.brand-switcher-trigger-logo-fallback {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.brand-switcher-trigger-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
  padding-right: 2px;
}
.brand-switcher-trigger-label {
  font-size: 11px;
  color: rgba(15, 23, 42, 0.45);
  letter-spacing: 0.5px;
}
.brand-switcher-trigger-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.88);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-switcher-trigger-swap {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.45);
  transition: transform 0.3s ease, color 0.2s ease;
  margin-left: 2px;
}
.brand-switcher-trigger-arrow {
  font-size: 10px;
  color: rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease;
}
/* ---- 切换面板 ---- */
.brand-switcher-overlay {
  width: 340px;
}
.brand-switcher-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow: 0 14px 36px -12px rgba(15, 23, 42, 0.22), 0 4px 12px 0 rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.brand-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.brand-switcher-search-wrap {
  padding: 10px 14px 6px;
}
.brand-switcher-list {
  max-height: 340px;
  overflow: auto;
  padding: 6px;
}
.brand-switcher-empty {
  padding: 22px 0;
}
.brand-switcher-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 8px 10px;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.brand-switcher-row:hover {
  background: #f2f5fa;
}
.brand-switcher-row.is-selected {
  background: #e6f0ff;
}
.brand-switcher-row.is-selected .brand-switcher-row-name {
  color: #1677ff;
  font-weight: 600;
}
.brand-switcher-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f5ff 0%, #fafbff 100%);
  border: 1px solid #eef0f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-switcher-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-switcher-logo-fallback {
  font-size: 15px;
  font-weight: 600;
  color: #1677ff;
}
.brand-switcher-row-name {
  flex: 1 1;
  min-width: 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-switcher-check {
  color: #1677ff;
  font-size: 14px;
  flex-shrink: 0;
}
.brand-switcher-footer {
  padding: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: #fafbfd;
}
.brand-switcher-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  margin: 0;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
  transition: all 0.2s ease;
}
.brand-switcher-footer-btn:hover {
  border-color: rgba(22, 119, 255, 0.45);
  color: #1677ff;
  background: rgba(22, 119, 255, 0.04);
}
.brand-switcher-footer-btn .anticon {
  font-size: 13px;
}
/* ---- 头部通用图标按钮（消息/任务/主页） ---- */
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.7);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  outline: none;
  /* badge 在 icon 右上角 */
}
.header-icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #1890ff;
}
.header-icon-btn:active {
  transform: scale(0.94);
}
.header-icon-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.25);
}
.header-icon-btn .header-icon {
  font-size: 20px;
  line-height: 1;
}
.header-icon-btn :global(.ant-badge) {
  line-height: 0;
}
/* ---- 头像 + 姓名（胶囊按钮） ---- */
.header-user {
  height: 36px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.header-user:hover {
  background: rgba(15, 23, 42, 0.06);
}
.header-user .header-user-avatar {
  background: #e6f0ff;
  color: #1890ff;
  flex-shrink: 0;
}
.header-user .header-user-name {
  display: inline-block;
  max-width: 140px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ---- 旧遗留（兼容） ---- */
.notice-bell {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
}
.right {
  display: flex;
  float: right;
  height: 48px;
  margin-left: auto;
  overflow: hidden;
}
.right .action {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.right .action > span {
  vertical-align: middle;
}
.right .action:hover {
  background: rgba(15, 23, 42, 0.06);
}
.right .action:global(.opened) {
  background: rgba(15, 23, 42, 0.06);
}
.right .search {
  padding: 0 12px;
}
.right .search:hover {
  background: transparent;
}
.right .account .avatar {
  margin-right: 8px;
  color: #1890ff;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.85);
}
.dark .action:hover {
  background: #252a3d;
}
.dark .action:global(.opened) {
  background: #252a3d;
}
.dropdownContent {
  background: #fff;
  border: 1px solid #e3e3e3 !important;
}
.dropdownContent :global(.ant-dropdown-menu) {
  box-shadow: none;
}
/* ---- 消息下拉 ---- */
.notice-dropdown-overlay {
  width: 400px;
}
.notice-dropdown {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18), 0 4px 12px 0 rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.notice-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.notice-dropdown-loading,
.notice-dropdown-empty {
  padding: 28px 16px;
  text-align: center;
}
.notice-dropdown-body {
  max-height: 380px;
  overflow: auto;
}
.notice-dropdown-body .notice-dropdown-notice-item {
  padding-left: 18px;
  padding-right: 18px;
}
.notice-dropdown-body .notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  cursor: default;
  transition: background 0.2s ease;
}
.notice-dropdown-body .notice-item:hover {
  background: #f6f9ff;
}
.notice-dropdown-body .notice-item:last-child {
  border-bottom: none;
}
.notice-dropdown-body .notice-item-main {
  flex: 1 1;
  min-width: 0;
}
.notice-dropdown-body .notice-item-title {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  line-height: 22px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-dropdown-body .notice-item-time {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  line-height: 20px;
}
.notice-dropdown-body .notice-item-action {
  flex-shrink: 0;
  margin-left: 16px;
}
/* ---- 维度 Popover ---- */
:global(.notice-dimension-popover-overlay.ant-popover) {
  z-index: 4100 !important;
}
:global(.notice-dimension-popover-overlay.ant-popover) .ant-popover-inner {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18), 0 4px 12px 0 rgba(15, 23, 42, 0.06);
}
.notice-dimension-popover {
  min-width: 260px;
}
.notice-dimension-popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.notice-dimension-popover-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1677ff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.18);
}
.notice-dimension-popover-body {
  padding: 6px 6px 8px;
}
.notice-dimension-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 10px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  transition: background 0.2s ease;
}
.notice-dimension-row:hover {
  background: rgba(22, 119, 255, 0.08);
}
.notice-dimension-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fafbfd;
}
.notice-dimension-label {
  flex: 1 1;
  min-width: 0;
}
.notice-dimension-badge {
  flex-shrink: 0;
  min-width: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.notice-dropdown-footer {
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background: #fafbfd;
}
@media only screen and (max-width: 768px) {
  :global(.ant-divider-vertical) {
    vertical-align: unset;
  }
  .name {
    display: none;
  }
  .right {
    position: absolute;
    top: 0;
    right: 12px;
  }
  .right .account .avatar {
    margin-right: 0;
  }
  .right .search {
    display: none;
  }
}

