
/* 顶部固定导航栏 */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background-color: #0046ad;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.topbar .brand {
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.topbar .brand img { height: 36px; }
.topbar .right {
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}
.topbar .sep { opacity: .6; }

/* 技术支持提示 */
.support-tip { position: relative; cursor: default; }
.support-tip .tip {
  position: absolute; top: 230%; right: 0;
  background: #0b5ed7; color: #fff;
  white-space: nowrap;
  padding: 25px 10px; border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all .18s ease;
  font-size: 12px;
}
.support-tip:hover .tip { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 页面布局 */
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 60px 1fr;
  grid-template-areas:
    "top top"
    "side main";
  height: 100vh;
}
.sidebar {
  grid-area: side;
  position: relative;
  background: #0e2d6d;
  color: #fff;
  padding-top: 8px;
  overflow-y: auto;
  transition: width .2s ease;
}
.sidebar .toggle {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 6px;
  cursor: pointer;
}
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .menu-text { display: none; }
.sidebar.collapsed .ad { display: none; }

.menu {
  list-style: none; padding: 8px; margin-top: 36px;
}
.menu li {
  margin-bottom: 6px;
}
.menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e6eeff; text-decoration: none;
  background: transparent;
}
.menu a:hover {
  background: rgba(255,255,255,.12);
}

/* 右侧主体区域 */
.main {
  grid-area: main;
  background: #f5f7fa;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* 选项卡区域 */
.tabs {
  display: flex; align-items: center; gap: 6px;
  padding: 8px; background: #ffffff;
  border-bottom: 1px solid #e6eaf0;
}
.tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  background: #eef2f8; color: #18304f;
  font-size: 13px;
  cursor: pointer; user-select: none;
}
.tab.active { background: #0047ad;
color:#FFF; }
.tab .close { border: none; background: transparent; font-size: 16px; line-height: 1; cursor: pointer; color:#FFF;}

/* 内容容器 */
.tab-views {
  position: relative;
  flex: 1; overflow: hidden;
}
.view {
  position: absolute; inset: 0;
  border: 0; width: 100%; height: 100%;
  display: none;
}
.view.active { display: block; }

/* 让顶部不遮挡内容 */
.content-offset { height: 60px; }

/* 顶部广告条（小） */
.adbar {
  font-size: 12px; opacity: 0.9;
}

/* 侧边栏广告信息 */
.ad {
  position: sticky; bottom: 0;
  margin: 8px; padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  font-size: 12px; line-height: 1.5;
}


/* 分组折叠菜单 */
.menu-group { margin: 6px 6px 8px 6px; }
.menu-group-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  color: #e6eeff; user-select: none;
}
.menu-group-header:hover { background: rgba(255,255,255,.12); }
.menu-group .submenu { list-style: none; padding-left: 14px; margin-top: 6px; }
.menu-group .submenu li a { display: block; padding: 8px 10px; border-radius: 6px; color: #e6eeff; text-decoration: none; }
.menu-group .submenu li a:hover { background: rgba(255,255,255,.12); }
.caret { width: 1em; display: inline-block; opacity: .8; }
