/* ===========================
   左侧浮动锚点导航
=========================== */

.sidenav {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
  mix-blend-mode: normal;
}

.sidenav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: color 0.4s var(--ease-soft);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  position: relative;
}
.sidenav-item .dash {
  display: block;
  height: 1px;
  width: 18px;
  background: currentColor;
  transition: width 0.5s var(--ease-soft), background 0.4s;
  flex-shrink: 0;
}
.sidenav-item .label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.18em;
}
.sidenav-item .num {
  font-family: var(--latin-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  width: 22px;
  flex-shrink: 0;
  font-style: italic;
  opacity: 0.7;
}

.sidenav-item:hover { color: var(--ink); }
.sidenav-item:hover .label { opacity: 1; transform: translateX(0); }
.sidenav-item:hover .dash { width: 28px; }

.sidenav-item.active { color: var(--accent); }
.sidenav-item.active .dash { width: 38px; background: var(--accent); height: 1.5px; }
.sidenav-item.active .label { opacity: 1; transform: translateX(0); }
.sidenav-item.active .num { color: var(--accent); opacity: 1; }

/* 顶部小品牌印 */
.brand-mark {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 60;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark .seal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--seal);
  border-radius: 1px;
}

/* Tweaks触发按钮（独立于Tweaks面板，悬浮在右上） */
.tweak-launcher {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 60;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tweak-launcher button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  border-radius: 2px;
  transition: all 0.3s var(--ease-soft);
}
.tweak-launcher button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tweak-launcher button.active {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .sidenav { left: 14px; gap: 12px; }
  .sidenav-item .label { display: none; }
  .brand-mark { left: 18px; font-size: 11px; }
  .tweak-launcher { right: 14px; }
}
