/* 基础样式重置 */
a {
  text-decoration: none;
  color: inherit; /* 继承父元素颜色，可根据需要修改 */
  font-size: 12px;
}
#gh-tools{ 
  display: flex;
  align-items: center; /* 垂直居中对齐所有工具组 */
  flex-wrap: nowrap;
  gap: 2px;
}
.tools-warp .icon-gap {
    width: 1px;
    height: 40px;
    background: linear-gradient(to top, transparent 0%, rgba(75, 75, 75, 0.8) 40%, rgba(86, 86, 86, 0.567) 60%, transparent 100%);
    align-self: center;
    margin: 0 6px;
}
/* 下拉菜单样式 */
.tool-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 4px 0;
  /* 移除最大高度和滚动条，让菜单高度等于内容高度 */
  overflow: hidden;
}

/* 单列菜单 */
.tool-dropdown-menu.single-column {
  width: 180px;
}

/* 双列菜单 */
.tool-dropdown-menu.double-column {
  width: 360px;
  display: flex;
  flex-wrap: wrap;
}

.tool-dropdown-menu.double-column .tool-menu-item {
  width: 50%;
  box-sizing: border-box;
}

/* 菜单项样式 */
.tool-menu-item {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-menu-item.text-empty {
  color: transparent;
}
.tool-menu-item:hover {
  background-color: #e0e0e0;
}

/* 菜单项图标样式 */
.menu-item-icon {
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-size: auto;
  margin-right: 8px;
}

/* 分割线样式 */
.menu-divider {
  height: 1px;
  background-color: #ddd;
  margin: 2px 0;
  width: 100%;
  box-sizing: border-box;
}
/* 外部容器样式 */
.tools-warp {
  display: flex;
  align-items: center; /* 垂直居中对齐所有工具组 */
  width: fit-content;
  flex-wrap: nowrap;
  border: 1px solid #4b4b4b;
  border-radius: 4px;
  padding: 4px;
  border-bottom: 16px solid #000000;
}

/* 工具图标容器基础样式 */
.tool-icon {
  display: grid;
  gap: 4px; /* 图标之间无间距，可根据需要调整 */
}

/* 图标链接样式 */
.component-icon {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  /* 图标大小控制 */
  font-size: 10px; /* 如果是字体图标 */
}

/* 图标链接中的图片样式（如果使用img标签） */
.component-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 2行1列布局 */
.col-1 {
  grid-template-columns: 1fr; /* 1列 */
  grid-template-rows: repeat(2, 1fr); /* 2行 */
}

/* 2行2列布局 */
.col-2 {
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  grid-template-rows: repeat(2, 1fr); /* 2行 */
}

/* 2行3列布局 */
.col-3 {
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  grid-template-rows: repeat(2, 1fr); /* 2行 */
}


tools-warp .icon-gap {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to top,
    transparent 0%,
    rgba(75, 75, 75, 0.8) 40%,
    rgba(86, 86, 86, 0.567) 60%,
    transparent 100%
  );

  align-self: center;
  margin: 0 6px;
}
.tool-icon a {
  /* 固定图标尺寸 */
  width: 25px;
  height: 25px;
  display: block;
  background-repeat: no-repeat;
  background-size: auto;
  text-indent: -9999px; /* 隐藏文本 */
}


