/* 文件作用：统一会员管理平台的颜色、侧栏、顶部导航和工作页签。 */
:root {
  --bg: #f5f7fa;
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f5f7fa;
  --ink: #303133;
  --muted: #606266;
  --faint: #909399;
  --line: #dcdfe6;
  --line-soft: #ebeef5;
  --nav: #0d1829;
  --nav-soft: #17263e;
  --primary: #06f;
  --primary-2: #3385ff;
  --primary-soft: #e6f0ff;
  --blue: #06f;
  --blue-soft: #e6f0ff;
  --red: #f56c6c;
  --red-soft: #fef0f0;
  --amber: #e6a23c;
  --amber-soft: #fdf6ec;
  --green: #67c23a;
  --green-soft: #f0f9eb;
  --shadow: none;
  --shadow-soft: none;
  --radius-xs: 4px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  color: var(--ink);
  background-image: none;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
}

body::after {
  content: none !important;
  display: none !important;
}

.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 8px;
  padding: 18px 12px;
  color: #c0c4cc;
  background: #0d1829;
  border-right: 0;
  box-shadow: none;
}

.brand {
  gap: 10px;
  min-height: 48px;
  padding: 0 10px;
}

.brand strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.brand em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.operator-card {
  gap: 3px;
  padding: 8px 8px 13px;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0;
  background: transparent;
}

.operator-card span,
.operator-card em {
  color: #aeb8c7;
  font-size: 11px;
  font-style: normal;
}

.operator-card strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.nav {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}

.nav-group {
  margin: 17px 10px 4px;
  color: #8e9aab;
  font-size: 12px;
  font-weight: 600;
}

.nav-item {
  min-height: 38px;
  gap: 0;
  padding: 0 12px;
  border-radius: 4px;
  color: #c0c4cc;
  font-size: 13px;
  font-weight: 500;
}

.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.nav-item.active {
  color: #fff;
  background: rgb(0 102 255 / 18%);
  font-weight: 600;
}

.nav-item.active {
  box-shadow: inset 2px 0 0 #06f;
}

.topbar {
  min-height: 54px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.topbar-context {
  color: #75808b;
  font-size: 12px;
}

.topbar-user {
  padding-right: 8px;
  color: #46515d;
  font-size: 12px;
}

.top-actions {
  gap: 6px;
}

.top-actions form {
  margin: 0;
}

.back-workbench {
  color: var(--primary);
  font-size: 12px;
}

.page-tabs {
  min-height: 38px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 18px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.page-tabs:empty {
  display: none;
}

.page-tab {
  min-width: 0;
  max-width: 190px;
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  color: #596571;
  border-bottom: 2px solid transparent;
}

.page-tab a {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 11px;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-tab a:hover {
  color: var(--primary);
}

.page-tab a > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #f5f8fb;
}

.page-tab.is-active a {
  font-weight: 600;
}

.page-tab-close {
  width: 22px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #89939e;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.page-tab-close:hover {
  color: var(--red);
}

.page-tab-close:disabled {
  visibility: hidden;
  cursor: default;
}

.content {
  width: 100%;
  max-width: 1640px;
  gap: 14px;
  padding: 18px 22px 24px;
  background: transparent;
}

