/* ==============================================================
   重明护航企业级汇聚中枢 · 系统设置母版样式 (layout.css)
   完全对齐 Tier 3 (ICAT) 左右分栏赛博控制台架构与视觉规范
   ============================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  /* 全局彻底隐藏突兀的系统滚动条，保持平滑原生滚动 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #060b17 !important;
  color: #e0f7fa !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* 顶层主页面容器 */
.settings-page-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #060b17;
}

/* 1. 顶栏 (对齐 Tier 3 Header，高 60px) */
.settings-header {
  height: 60px;
  min-height: 60px;
  padding: 0 24px;
  background: #0a1329;
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  z-index: 40;
}

.header-left-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge-icon {
  font-size: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.4));
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.main-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #00d9ff;
  letter-spacing: 0.5px;
}

.tier-badge {
  font-size: 10.5px;
  font-family: monospace;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: #7dd3fc;
  font-weight: 600;
}

.sub-head-title {
  font-size: 10px;
  color: #546e7a;
  letter-spacing: 0.3px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-back-btn {
  padding: 6px 13px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: #00d9ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sys-back-btn:hover {
  background: rgba(0, 217, 255, 0.22);
  border-color: #00d9ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.sys-back-btn.logout {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}
.sys-back-btn.logout:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #ffffff;
}

/* 2. 主体左右分栏布局 (对齐 Tier 3 .settings-body-layout) */
.settings-body-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 60px);
}

/* 3. 左侧侧边栏 (对齐 Tier 3 .settings-nav-sidebar，宽 260px) */
.settings-nav-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background: #081023;
  border-right: 1px solid rgba(0, 217, 255, 0.15);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-shrink: 0;
  height: 100%;
}

.nav-group-title {
  font-size: 11px;
  color: #546e7a;
  margin-top: 14px;
  margin-bottom: 4px;
  padding-left: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.nav-group-title:first-child {
  margin-top: 2px;
}

/* 菜单卡片按钮 (对齐 Tier 3 .nav-item-btn) */
.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #b0bec5;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.18s ease;
  user-select: none;
}

.nav-item-btn:hover {
  background: rgba(0, 217, 255, 0.08);
  border-color: rgba(0, 217, 255, 0.25);
  color: #e0f7fa;
  transform: translateX(2px);
}

.nav-item-btn.active, .nav-item-btn.nav-tab-active {
  background: rgba(0, 217, 255, 0.12) !important;
  border-color: rgba(0, 217, 255, 0.4) !important;
  border-left: 3px solid #00d9ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.15) !important;
}

.nav-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.nav-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-title {
  display: block;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}

.nav-desc {
  font-size: 10px;
  color: #546e7a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.nav-item-btn:hover .nav-desc, .nav-item-btn.active .nav-desc {
  color: #80deea;
}

/* 4. 右侧主内容区 (对齐 Tier 3 .settings-main-content) */
.settings-main-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #060b17;
  min-width: 0;
  height: 100%;
}

.settings-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 兼容现有旧 class 辅助样式 */
.bg-darkbg { background-color: #060b17 !important; }
.bg-cardbg { background-color: #0f172a !important; }

/* 页面内极简刷新栏 */
#settings-page-toolbar {
  margin-bottom: 14px;
}
