/* 登录/注册栏：放入全局 CSS，避免 dev 模式下 scoped 样式随 JS 延迟注入导致「无样式按钮」。 */
.site-auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 0 8px;
}
.site-auth-btn {
  border: 1px solid #d9dde3;
  background: #fff;
  color: #333;
  border-radius: 4px;
  padding: 5px 16px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}
.site-auth-btn:focus,
.site-auth-btn:active {
  outline: none;
  box-shadow: none;
}
.site-auth-btn-primary {
  background: #1162e8;
  border-color: #1162e8;
  color: #fff;
}
.site-auth-btn:hover {
  opacity: 0.92;
}
.site-auth-console {
  color: #1162e8;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}
.site-auth-name {
  font-size: 14px;
  color: #333;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-auth-link {
  border: none;
  background: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.site-auth-link:hover {
  color: #1162e8;
}

/* 1200 主体宽：顶栏登录/注册更紧凑 */
@media screen and (max-width: 1499px) {
  .site-auth-bar {
    gap: 6px;
    padding: 2px 0 4px;
  }

  .site-auth-btn {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 3px;
    min-width: 52px;
  }

  .site-auth-btn-primary {
    box-shadow: 0 1px 2px rgb(17 98 232 / 18%);
  }

  .site-auth-console,
  .site-auth-name {
    font-size: 13px;
  }

  .site-auth-avatar {
    width: 24px;
    height: 24px;
  }
}
