
/* gh-tab标题区域样式 */
.gh-tab table {display: grid;width: 100%;border: 1px solid #ddd;font-family: Arial, sans-serif;grid-template-columns: 1fr 1fr 1fr 4fr 1fr;}
.gh-tab thead, .gh-tab tbody {display: contents;}
.gh-tab tr {display: contents;}
.gh-tab th {background-color: #ffffff;color: #333;font-weight: bold;font-size: 16px;padding: 16px 8px;text-align: center;border: 1px solid #ddd;height: 48px;vertical-align: middle;}
.gh-tab td {padding: 5px;border: 1px solid #ddd;background-color: #f5f5f5;height: 36px;font-size: 14px;text-align: center;vertical-align: middle;}

.gh-tab ul {list-style: none;padding: 0;margin: 0;}
.gh-tab li {height: 26px;line-height: 24px;margin-bottom: 5px;}
.gh-tab b {font-size:16px;}

.output-port-content li,.input-port-content li{list-style:none;height:24px;}

.gh-toggle.expanded .gh-meta::after {
    transform: translateY(-50%) rotate(90deg); /* 展开时向右 */
}

/* 确保空表格在折叠和展开状态下都能正确隐藏 */
ul.data-Input, ul.data-output {
    /* 允许JavaScript控制显示/隐藏，不设置固定的display属性 */
}

/* gh-meta类下的列表项特殊样式 */
.gh-meta li {
    padding-left: 15px;
    margin-bottom: 5px;
}

.gh-meta li::before {
    background-color: rgba(251, 207, 232, 0.7);
    width: 8px;
    height: 8px;
}

/* 第一个a标签使用粉色系马卡龙色 */
.gh-meta a:first-of-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: #ffccd5;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    margin-right: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
    vertical-align: middle; /* 确保链接垂直居中 */
}

/* 第二个a标签使用蓝色系马卡龙色 */
.gh-meta a:last-of-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: #a3c9ff;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    vertical-align: middle; /* 确保链接垂直居中 */
}

/* 鼠标悬停效果 */
.gh-meta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gh-meta a:first-of-type:hover {
    background-color: #ffb6c1;
}

.gh-meta a:last-of-type:hover {
    background-color: #87cefa;
}

/* 输入输出端口表格样式 */
.data-Input, .data-output {
    margin-bottom: 20px;
}

.data-Input li, .data-output li {
    display: inline-block;
    width: 19%;
    text-align: center;
    padding: 5px 0;
    font-size: 14px;
}

.data-Input li::before, .data-output li::before {
    display: none;
}

/* 标题样式 */
.head-Input, .head-Output, .Remarks {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
    font-size: 16px;
    border-bottom: 2px solid rgba(147, 197, 253, 0.5);
    padding-bottom: 5px;
}

/* 备注部分样式 */
.Remarks + ul li::before {
    background-color: rgba(167, 243, 208, 0.6);
}

/* 折叠状态下确保gh-meta与gh-toggle四边等距 */



/* gh-component容器样式 */
.gh-component {
  
    margin-bottom: 20px;
    padding: 50px; /* 内边距10px */
    display: flex; /* flex布局 */
    justify-content: center; /* 水平居中 */
    align-items: stretch; /* 垂直方向拉伸，使子元素高度一致 */
}

/* gh-component-content样式 */
.gh-component-content {
    min-width: 80px; /* 最小宽度 */
    min-height: 40px; /* 最小高度 */
    padding: 2px 5px;
    width: fit-content; /* 宽度适应内容 */
    border-radius: 5px; /* 3px圆角 */
    background: linear-gradient(to bottom, #e6fffa, #d1fae5, #a7f3d0); /* 从上到下的浅绿色渐变 */
    border: 2px solid #000; /* 2px黑色边框 */
    display: flex; /* flex布局用于居中内容 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    position: relative;
    justify-content: space-between;
}
.gh-icon{
    width: 25px;
    height: 25px;
}

/* 输入和输出端口元信息面板样式 */
.gh-input-meta, .gh-output-meta {
    position: absolute;
    width: 250px;
    border: 1px solid #ccc;
    padding: 8px;
    background-color: white;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    transition: opacity 0.2s ease;
}

 /* 端口详情面板基础样式 */
  .input-port-content, .output-port-content {
    width: 300px; /* 固定宽度200px */
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none; /* 默认隐藏 */
    z-index: 1000; /* 确保在最上层 */
  }

  /* 列表样式 */
  .port-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .port-detail-list li {
    border-bottom: 1px dashed #f0f0f0;
    font-size: 12px;
    color: #333;
  }

  .port-detail-list li:last-child {
    border-bottom: none;
  }

  .port-detail-list .label {
    font-weight: 600;
    color: #2d3748;
    display: inline-block;
    width: 60px;
  }

  .port-detail-list .value {
    color: #4a5568;
  }


/* 元信息面板标题栏样式 */
.gh-input-meta .meta-header, .gh-output-meta .meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* 元信息面板标题样式 */
.gh-input-meta .meta-title, .gh-output-meta .meta-title {
    margin: 0;
    font-size: 12px;
    color: #333;
}

/* 元信息面板关闭按钮样式 */
.gh-input-meta .meta-close, .gh-output-meta .meta-close {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-input-meta .meta-close:hover, .gh-output-meta .meta-close:hover {
    color: #666;
}

/* 元信息面板内容区域样式 */
.gh-input-meta .meta-details, .gh-output-meta .meta-details {
    line-height: 1.3;
}

/* 元信息面板信息项样式 */
.gh-input-meta .info-item, .gh-output-meta .info-item {
    margin: 1px 0;
    font-size: 10px;
}

.gh-input-meta .info-item .label, .gh-output-meta .info-item .label {
    color: #666;
}
.gh-component-warp{
    display: flex;
    direction: ltr;
}

/* 示例：自定义按钮样式（后续可添加） */
.gh-input-port-id button,
.gh-output-port-id button {
  margin: 0;
  padding:0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: black;
}
.gh-input-port-id button:hover,
.gh-output-port-id button:hover {
  background: #f5f5f5;
}

/* 输入/输出端口容器公共样式 */
.gh-input-port-id,.gh-output-port-id {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 5px;
    /* 移除固定高度，让它自适应内容 */
    border: #000;
    border-radius: 50%;
}

/* 输入端口容器 */
.gh-input-port {
    z-index: 1000;
    /* 确保输入端口高度与内容区域一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 输出端口容器 */
.gh-output-port {
    z-index: 1000;
    /* 确保输出端口高度与内容区域一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* gh-port样式 */
.gh-port {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    justify-content: space-evenly;
    /* 宽度保持适当大小 */
    min-width: 3px;
    /* 高度会自动与gh-component-content保持一致，因为父容器设置了align-items: stretch */
}

/* 输入/输出端口公共基础样式 */
.gh-input-port,
.gh-output-port {
    border: 2px solid #000;
    width: 6px;
    height: 10px;
}

/* 输入端口独有样式：左侧半圆 */
.gh-input-port {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

/* 输出端口独有样式：右侧半圆 */
.gh-output-port {
    border-radius: 0 10px 10px 0;
    border-left: none;
}
.gh-tab-header .e-n-tabs-heading{background:white;padding:10px;border-radius:5px}
.gh-tab-header .e-n-tabs-heading{background:white;padding:10px;border-radius:5px}
.gh-tab-header .e-n-tab-title{background:#a0f8ac}
.gh-tab{
    display: grid;
    grid-template-rows: 1fr;
    gap: 10px;  
}
.gh-content-warp, .gh-content{display:none;}
.gh-tab-basic {
  /* 1. 启用 Grid 布局 */
  display: grid;
  /* 2. 定义两列等宽（1fr = 剩余空间均分） */
  grid-template-columns: repeat(2, 1fr);
  /* 3. 列与列、行与行之间的间距（可选，按需调整） */
  gap: 3px;
  /* 清除默认列表样式 */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 4. 最后一个 li 跨两列（占满100%宽度） */
.gh-tab-basic li:last-child {
  grid-column: 1 / -1; /* 从第1列到最后1列（-1 表示最后一列） */
}
