:root{
  --brand: #2f7cf6;
  --bg: #f3f5f7;

  --sidebar-w: 220px;
  --sidebar-bg: #2f3340;
  --sidebar-bg2: #252a36;
  --sidebar-text: rgba(255,255,255,.85);
  --sidebar-muted: rgba(255,255,255,.55);
  --sidebar-active: rgba(47,124,246,.25);

  --topbar-h: 56px;
  --tabs-h: 42px;
  --border: #e7ebf2;
}

html, body{
  height: 100%;
  background: var(--bg);
}

body{
  overflow: hidden;
}

/* 顶部白条 */
.ob-topbar{
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.ob-topbar-left{
  display:flex;
  align-items:center;
  gap: 12px;
}

.ob-iconbtn{
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.ob-breadcrumb{
  font-size: 13px;
}
.ob-breadcrumb .muted{ color:#8a94a6; }

.ob-topbar-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.ob-user{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.ob-user .name{ font-weight: 700; color:#2b3445; }

.ob-logout{
  text-decoration:none;
  color:#2b3445;
  font-weight:700;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:#fff;
}
.ob-logout:hover{ background:#f6f8fb; }

/* 主体两列 */
.ob-layout{
  height: calc(100vh - var(--topbar-h));
  display:flex;
}

/* 左侧 */
.ob-sidebar{
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,.06);
  overflow:auto;
}

.ob-brand{
  padding: 14px 14px 10px;
  background: var(--sidebar-bg2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ob-brand .logo{
  color: #fff;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 18px;
}
.ob-brand .sub{
  color: var(--sidebar-muted);
  font-size: 12px;
  margin-top: 2px;
}

.ob-menu{
  padding: 0 10px 10px;
}

.ob-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--sidebar-text);
  text-decoration:none;
  font-weight: 700;
}
.ob-link i{
  width: 18px;
  text-align:center;
  opacity:.95;
}

.ob-link:hover{
  background: rgba(255,255,255,.06);
  color:#fff;
}

.ob-link.active{
  background: var(--sidebar-active);
  color:#fff;
  border: 1px solid rgba(47,124,246,.35);
}

/* 彻底禁止 visited 变蓝 */
.ob-sidebar .ob-link,
.ob-sidebar .ob-link:link,
.ob-sidebar .ob-link:visited,
.ob-sidebar .ob-link:hover,
.ob-sidebar .ob-link:active,
.ob-sidebar .ob-link:focus{
  color: var(--sidebar-text) !important;
  text-decoration: none !important;
  outline: none !important;
}
.ob-sidebar .ob-link i{ color: inherit !important; }

/* 子菜单缩进 */
.ob-submenu{ padding-left: 14px; margin-top: 6px; }
.ob-submenu .ob-sub-link{ padding-left: 8px; opacity: .95; }
.ob-submenu .ob-sub-link:hover{ background: rgba(255,255,255,.08); }
.ob-submenu .ob-sub-link.active{ background: rgba(255,255,255,.14); }

/* 折叠侧栏 */
body.ob-sidebar-collapsed .ob-sidebar{ width: 64px; }
body.ob-sidebar-collapsed .ob-link span{ display:none; }
body.ob-sidebar-collapsed .ob-brand .sub{ display:none; }
body.ob-sidebar-collapsed .ob-brand .logo{ font-size: 14px; }

/* 右侧 */
.ob-main{
  flex: 1;
  min-width: 0;
  display:flex;
  flex-direction: column;
}

/* 标签条：不换行 + 横向滚动 */
.ob-tabs{
  height: var(--tabs-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0 10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space: nowrap;
  flex-wrap: nowrap !important;
}
.ob-tabs::-webkit-scrollbar{ height: 6px; }
.ob-tabs::-webkit-scrollbar-thumb{ background:#d9e1ee; border-radius:99px; }

.ob-tab{
  height: 30px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid var(--border);
  background:#fafbfe;
  border-radius: 10px;
  padding: 0 10px;
  cursor:pointer;
  flex: 0 0 auto;
}
.ob-tab.active{
  background:#fff;
  border-color:#b9cff6;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.ob-tab .t{
  max-width: 160px;
  overflow:hidden;
  text-overflow: ellipsis;
}
.ob-tab .x{
  border:0;
  background:transparent;
  width: 18px; height:18px;
  border-radius: 8px;
  line-height: 18px;
  color:#7b879a;
  cursor:pointer;
}
.ob-tab .x:hover{ background:#e9eef8; color:#2b3445; }

/* 内容区（这里滚动） */
.ob-content{
  flex: 1;
  overflow:auto;
  padding: 16px;
  background: var(--bg);
}

/* 底部 */
.ob-footer{
  height: 44px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7b879a;
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,.04);
}