@charset "UTF-8";

/* ---------- 右侧浮动导航样式 ---------- */
.float-nav-container {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 220px;
  max-height: 70vh;
  background: rgba(255, 249, 242, 0.95); /* 米白半透明底 */
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(200, 160, 100, 0.15);
  border: 1px solid rgba(225, 180, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  font-family: "Microsoft YaHei", "SimSun", sans-serif;
}

.float-nav-header {
  padding: 12px 14px 8px;
  font-weight: bold;
  font-size: 15px;
  color: #8b5a2b;
  border-bottom: 1px dashed #e1c8a0;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.float-nav-header i {
  color: #e04f5f;
  font-size: 16px;
}

.float-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 6px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d6b58a #faead7;
}
.float-nav-list::-webkit-scrollbar {
  width: 4px;
}
.float-nav-list::-webkit-scrollbar-track {
  background: #faead7;
  border-radius: 4px;
}
.float-nav-list::-webkit-scrollbar-thumb {
  background: #d6b58a;
  border-radius: 4px;
}

.float-nav-item {
  display: block;
  padding: 7px 10px;
  margin: 3px 0;
  font-size: 13px;
  color: #5e4630;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s ease;
  line-height: 1.4;
  word-break: break-word;
  background: transparent;
  border-left: 3px solid transparent;
}

.float-nav-item:hover {
  background: #fff3e0;
  color: #b45f2a;
  border-left: 3px solid #e04f5f;
  padding-left: 14px;
  text-decoration: none;
  font-weight: 500;
}

.float-nav-item.active {
  background: #ffe4cc;
  color: #a0401c;
  font-weight: 600;
  border-left: 3px solid #b94a48;
  box-shadow: 0 2px 8px rgba(180, 100, 40, 0.15);
}

/* 移动端隐藏浮动导航 (避免遮挡内容) */
@media (max-width: 768px) {
  .float-nav-container {
    display: none;
  }
}

/* 为h2标题添加滚动偏移，避免被固定导航遮挡 (无顶部固定栏，但保留良好体验) */
h2 {
  scroll-margin-top: 20px;
}