/* 用户名下拉菜单样式 */
.user-menu-container {
  position: relative;
  display: inline-block;
}

.username-text {
  cursor: pointer;
  font-weight: bold;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--dark-card, #1a1a1a);
  min-width: 160px;
  box-shadow: 4px 4px 0 rgba(255, 215, 0, 0.3);
  z-index: 1000;
  border: 2px solid var(--yellow, #FFD700);
  border-radius: 8px;
  overflow: hidden;
  padding: 8px 0;
  margin-top: 10px;
}

.user-dropdown-menu a {
  color: var(--text-light, #f5f5f5);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: all 0.2s ease;
  font-weight: bold;
}

.user-dropdown-menu a:hover {
  background-color: var(--yellow, #FFD700);
  color: var(--dark-bg, #0a0a0a);
}

/* 强制覆盖可能的 hover 显示，只允许通过 .show 类显示 */
/* .user-menu-container:hover .user-dropdown-menu {
  display: none !important;
} */

/* 提高权重以覆盖上面的 hover 规则 (0,0,3,0 vs 0,0,3,0, 后者生效) */
.user-menu-container .user-dropdown-menu.show {
  display: block !important;
}

/* Wish List Card Layout */
.wish-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.wish-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.wish-card:hover {
  transform: translateY(-5px);
}

.wish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.wish-card-username {
  font-weight: bold;
  color: #ffc107;
  /* A bright color for the username */
}

.wish-card-time {
  font-size: 0.8em;
  color: #ccc;
  /* A lighter color for the timestamp */
}

.wish-card-content {
  color: #eee;
  /* A light color for the main content */
  line-height: 1.5;
}

.wish-card-content-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  word-break: break-word;
}

.wish-card-expand-link {
  color: var(--yellow, #FFD700);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wish-card-expand-link:hover {
  text-decoration: underline;
}

.wish-full-modal-text {
  white-space: pre-wrap;
  text-align: left;
  max-height: 65vh;
  overflow: auto;
  line-height: 1.7;
  color: var(--text-light, #f5f5f5);
  word-break: break-word;
}

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper .auth-input {
  width: 100%;
  padding-right: 56px;
}

.auth-password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color);
  background: var(--bg-app);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
  border-radius: 8px;
}

.auth-password-toggle-btn:hover {
  opacity: 1;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* 账户类型标签样式 */
.user-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.user-role-badge.role-badge-admin {
  background-color: #f56c6c;
  color: #ffffff;
  border: 1px solid #f56c6c;
}

.user-role-badge.role-badge-pro {
  background-color: #e6a23c;
  color: #ffffff;
  border: 1px solid #e6a23c;
  position: relative;
  padding-right: 24px;
}

/* Pro 会员小皇冠图标 - 右上角，旋转 35 度 */
.user-role-badge.role-badge-pro::after {
  content: '👑';
  position: absolute;
  top: -7px;
  right: -7px;
  font-size: 18px;
  transform: rotate(35deg);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.user-role-badge.role-badge-normal {
  background-color: #409eff;
  color: #ffffff;
  border: 1px solid #409eff;
}

.user-role-badge.role-badge-guest {
  background-color: #909399;
  color: #ffffff;
  border: 1px solid #909399;
}

.user-role-badge.role-badge-superadmin {
  background-color: #7c3aed;
  color: #ffffff;
  border: 1px solid #7c3aed;
}