/* 左侧栏导航菜单 - 黑白胶囊按钮样式 */
nav.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  padding: 0.75rem 0;
}

nav.menu a.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #000 !important;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  height: 36px;
}

/* 隐藏原有的图标 */
nav.menu a.nav-item svg,
nav.menu a.nav-item img {
  display: none !important;
}

/* 修改文字样式 - 统一字重避免选中时跳动 */
nav.menu a.nav-item span {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: #000 !important;
  white-space: nowrap;
}

/* 没有span的情况下，用伪元素 */
nav.menu a.nav-item:not(:has(span))::before {
  content: attr(title);
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #000;
}

nav.menu a.nav-item:hover {
  background: #f8f8f8;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* 选中状态：浮起效果 */
nav.menu a.nav-item.active {
  background: #fff !important;
  border-color: #ddd !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav.menu a.nav-item.active span,
nav.menu a.nav-item.active::before {
  color: #000 !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* Logo 手写连笔体样式 */
.sidebar-logo .logo-wrap .title .main {
  font-family: Dancing Script, Caveat, cursive;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sidebar-logo .logo-wrap .title .sub {
  margin-top: 20px;
  padding-top: 12px;
  line-height: 1.5;
  font-family: inherit; /* 使用默认字体 */
}

