/* 增强参数表格显示样式 */
.parameter-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.parameter-table th {
  background-color: #f0f5ff;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid #1a73e8;
  border-right: 1px solid #dee2e6; /* 添加右边框 */
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 移除最后一列头部的右边框 */
.parameter-table th:last-child {
  border-right: none;
}

.parameter-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6; /* 添加右边框 */
  vertical-align: middle;
}

/* 移除最后一列单元格的右边框 */
.parameter-table td:last-child {
  border-right: none;
}

.parameter-table tr:last-child td {
  border-bottom: none;
}

.parameter-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.parameter-table tr:hover {
  background-color: #f0f7ff;
}

/* 参数类别行 */
.parameter-category {
  background-color: #e9ecef !important;
  font-weight: 600;
  color: #333;
  border-top: 1px solid #dee2e6;
}

.parameter-category td {
  padding: 0.6rem 0.75rem;
}

/* 参数子类别行 */
.parameter-subcategory {
  background-color: #f5f5f5 !important;
  font-weight: 500;
  color: #444;
}

.parameter-subcategory td {
  padding-left: 1.5rem;
}

/* 参数行 */
.parameter-row td:first-child {
  padding-left: 2rem;
  position: relative;
}

.parameter-row td:first-child::before {
  content: "•";
  position: absolute;
  left: 1.2rem;
  color: #1a73e8;
}

/* 最佳值高亮 */
.parameter-best-value {
  font-weight: 600;
  color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
}

/* 参数说明工具提示 */
.parameter-info {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #1a73e8;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  margin-left: 0.5rem;
  cursor: help;
  position: relative;
}

.parameter-info:hover::after {
  content: attr(data-info);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  width: 200px;
  z-index: 100;
  font-weight: normal;
  font-size: 0.8rem;
  text-align: left;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 参数组标题 */
.parameter-group-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a73e8;
  color: #333;
}

/* 参数表格说明文本 */
.parameter-table-description {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* 参数表格图例 */
.parameter-legend {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.parameter-legend-item {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.parameter-legend-color {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  border-radius: 3px;
}

.legend-category {
  background-color: #e9ecef;
}

.legend-subcategory {
  background-color: #f5f5f5;
}

.legend-best {
  background-color: rgba(40, 167, 69, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .parameter-table {
    font-size: 0.8rem;
  }
  
  .parameter-table th,
  .parameter-table td {
    padding: 0.5rem;
  }
  
  .parameter-row td:first-child {
    padding-left: 1.5rem;
  }
  
  .parameter-row td:first-child::before {
    left: 0.7rem;
  }
  
  .parameter-subcategory td {
    padding-left: 1rem;
  }
}

