
/* === 隐藏注册和登录按钮移动端=== */
@media (max-width: 767px) {
    #userAuthSection {
        display: none !important;
    }
}
/* 上边是后添加的父容器：必须 relative，且无 overflow:hidden */
.ewave-history-dropdown {
  position: relative;
  display: inline-block; /* 确保包裹内容 */
}

/* 按钮 */
.ewave-history-text {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  border-radius: 4px;
}

.ewave-history-text:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 下拉框 —— 关键：紧贴按钮，无 margin */
.ewave-history-box {
  position: absolute;
  top: 100%;        /* 紧贴按钮底部 */
  right: 0;
  z-index: 1000;
  min-width: 220px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 4px 0;
  display: none;

  /* 防止内部元素触发父级 hover 中断 */
  pointer-events: auto;
}

/* 鼠标悬停在 .ewave-history-dropdown 上时显示下拉 */
.ewave-history-dropdown:hover .ewave-history-box {
  display: block;
}

/* 列表样式（保持不变） */
.ewave-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ewave-history-head a {
  display: block;
  padding: 8px 16px;
  color: #e5e7eb;
  font-weight: bold;
  font-size: 13px;
}
.ewave-history-head i {
  margin-right: 6px;
}

.ewave-history-item:not(.ewave-history-head):not(.ewave-history-foot) a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  color: #f9fafb;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s;
}
.ewave-history-item:not(.ewave-history-head):not(.ewave-history-foot) a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ewave-history-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ewave-history-item small {
  font-size: 11px;
  color: #9ca3af;
  margin-left: 8px;
}

.ewave-history-foot .ewave-history-clear {
  display: block;
  padding: 8px 16px;
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s;
}
.ewave-history-foot .ewave-history-clear:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}