/*
 * 桐灼 GEO · 侧边栏最终层
 *
 * The sidebar has historically been restyled in several layers.  Keep the
 * production shell predictable by making the final, intentional values
 * explicit here.  This file is loaded last so module-specific styles cannot
 * accidentally re-introduce the old dark/indented treatment.
 */

html body aside.sidebar {
  width: var(--sidebar-width);
  padding: 0 8px 10px;
  color: var(--ink);
  /* 奶白侧栏：明确的暖奶白，和内容区米白底形成可见层次 */
  background: #fffaf0;
  border-right: 1px solid var(--line);
  box-shadow: none;
  overflow-y: auto;
  scrollbar-width: none;
}

html body aside.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html body aside.sidebar .brand {
  min-height: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: 0 -8px 18px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  background: #fffaf0;
}

html body header.topbar {
  background: #fffaf0;
}

html body aside.sidebar .brand-mark {
  width: 22px;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}

html body aside.sidebar .brand-text {
  color: var(--ink-strong);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.2px;
}

html body aside.sidebar .brand-sub {
  margin-top: 3px;
  color: var(--muted-2);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
}

html body aside.sidebar .nav {
  min-height: 0;
  padding: 0;
  overflow: visible;
}

html body aside.sidebar .nav-section {
  margin-bottom: 2px;
}

html body aside.sidebar .nav-label {
  padding: 10px 10px 4px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .12em;
}

html body aside.sidebar .nav-item,
html body aside.sidebar .nav-effect-item {
  min-height: 34px;
  height: 34px;
  margin: 1px 0;
  padding: 6px 10px;
  border: 0;
  border-left: 0;
  border-radius: 7px;
  color: var(--nav-muted);
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 450;
  transform: none;
}

html body aside.sidebar .nav-item:hover,
html body aside.sidebar .nav-effect-item:hover {
  color: var(--ink);
  background: var(--nav-soft);
}

html body aside.sidebar .nav-item.active,
html body aside.sidebar .nav-effect-item.active {
  color: var(--blue-hover);
  background: var(--blue-soft);
  border: 0;
  border-left: 0;
  box-shadow: none;
  font-weight: 600;
}

html body aside.sidebar .nav-item.active::before,
html body aside.sidebar .nav-effect-item.active::before {
  display: none;
  content: none;
}

html body aside.sidebar .nav-item .ic {
  width: 16px;
  height: 16px;
  margin: 0;
  color: var(--muted-2);
}

html body aside.sidebar .nav-item.active .ic,
html body aside.sidebar .nav-effect-item.active .ic {
  color: var(--blue);
}

html body aside.sidebar .nav-effect-label {
  width: auto;
  margin-top: 8px;
  padding: 10px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.2;
}

html body aside.sidebar .nav .nav-promo {
  position: static;
  margin: auto 8px 10px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

html body aside.sidebar .nav-promo b {
  font-size: 11.5px;
}

html body aside.sidebar .nav-promo p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

html body aside.sidebar .nav-promo-go {
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 820px) {
  html body aside.sidebar {
    width: 260px;
  }
}
