.adaptive-nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 9000;
}

/* 按钮外层容器 */
.nav-btn {
  position: relative;
  background: #4e3adf;
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: background 0.3s;
  text-decoration: none;
}
.nav-btn:hover {
  color: #fff;               /* 防止变蓝 */
}
/* 图标固定在中间 */
.nav-btn i {
  font-size: 18px;
  z-index: 2;
}

/* 文字部分，初始隐藏在左侧 */
.nav-btn span {
  position: absolute;
  right: 100%;
  white-space: nowrap;
  background: #4e3adf;
  padding: 6px 10px;
  margin-right: -5px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border-radius: 25px 0px 0px 25px;
  pointer-events: none;
}

/* 悬停时文字展开 */
.nav-btn:hover span {
  color: #fff;
  opacity: 1;
  transform: translateX(0);
}

/* 移动端保持底部导航风格 */
@media (max-width: 768px) {
  body {
    padding-bottom: 30px; /* 留出底部导航高度 */
  }
  .adaptive-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    border-radius: 0;
    background: #fff;
    padding: 5px 0;
  }

  .nav-btn {
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 5px;
    background: none !important;  /* 去掉背景色 */
    box-shadow: none;
  }

  .nav-btn i {
    color: #000 !important;  /* 图标变黑色 */
    margin: 0;
  }

  .nav-btn span {
    position: static;
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 0;
    background: none;
    font-size: 12px;
    pointer-events: auto;
    color: #000;
  }
}


.floating-dynamic-btn {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 9000;
  background: #4e3adf;
  color: #fff;
  border-radius: 25px;
  width: 88px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}

/* 图标左右移动动画 */
.floating-dynamic-btn i {
  font-size: 23px;
  margin-right: 8px;
  animation: slide-left-right 1.5s infinite ease-in-out;
}

/* 循环动画定义 */
@keyframes slide-left-right {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.floating-dynamic-btn:hover {
  color: #fff;               /* 防止变蓝 */
}
/* 初始提示语 */
.floating-dynamic-btn::after {
  content: "获取凭证";
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #4e3adf;
  color: white;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: fadeOutHint 6s forwards;
  z-index: 10000;
}

/* 提示动画：显示后慢慢消失 */
@keyframes fadeOutHint {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* ================================
   Floating Buttons - 错误列表面板样式
   ================================ */

/* 容器固定在底部，水平居中显示 */
.tb-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    margin: 0 auto;
    z-index: 9999;
}

/* 错误汇总按钮 */
.tb-toggle-btn {
    width: 100%;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 25px 25px 0 0;
    border: 2px dashed #fff;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮图标 */
.tb-toggle-btn i {
    margin-right: 8px;
    transition: transform 0.3s;
}

/* 错误列表区域，默认隐藏 */
.tb-list {
    display: none;
    background: #fff;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* 激活状态：显示错误列表 */
.tb-container.active .tb-list {
    display: block;
}

/* 激活状态：按钮吸附顶部 */
.tb-container.active .tb-toggle-btn {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 错误列表分组 */
.tb-error-group {
    margin-bottom: 20px;
}

.tb-error-group h3 {
    font-size: 16px;
    color: #e74c3c;
    margin: 10px 0 8px;
}

.tb-error-group ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .tb-toggle-btn {
        font-size: 15px;
        padding: 10px 14px;
    }

    .tb-list {
        padding: 16px;
    }
}

/* =============================
   fb_list 短代码 - 左下角面板
   ============================= */

/* 默认在左下角（桌面） */
.fb-list-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 360px;
  z-index: 9999;
}

/* 按钮 */
.fb-list-toggle-btn {
  width: 50vw;
  background: #e74c3c;
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px 25px 0 0;
  border: 2px dashed #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fb-list-toggle-btn i {
  margin-right: 8px;
}

/* 面板内容 */
.fb-list-content {
  display: none;
  background: #fff;
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
  border-top: 1px solid #ccc;
  box-shadow: 2px -2px 10px rgba(0,0,0,0.1);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.fb-list-container.active .fb-list-content {
  display: block;
}

.fb-list-container.active .fb-list-toggle-btn {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* 🟦 关键：移动端调整位置，避免遮挡底部按钮 */
@media (max-width: 768px) {
  /* 移动端：按钮浮在悬浮按钮上方 */
  .fb-list-container {
    left: 8px;
    right: auto;
    width: calc(100% - 16px);
    max-width: none;
    bottom: 56px; /* ⬅️ 只让按钮浮在上方 */
  }

  .fb-list-toggle-btn {
    font-size: 15px;
    padding: 10px;
  }

  /* ✅ 列表展开时，改为贴屏幕最底部 */
  .fb-list-container.active {
    bottom: 0 !important; /* ⬅️ 关键！展开时底部对齐 */
  }

  .fb-list-content {
    padding: 16px;
  }
}

.tb-list a,
.fb-list-content a {
    text-decoration: none !important;
}