/* ===== 表格容器 ===== */
.table-wrapper {
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #ffffff;
}

/* ===== 表格 ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-regular-color);
  table-layout: fixed;
}

.table thead {
  background: #f5f7fa;
}

.table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary-color);
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
  position: relative;
}

.table thead th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: #dfe2e8;
}

.table tbody tr {
  transition: background 0.15s;
}

.table tbody tr:hover {
  background: #f5f7fa !important;
}

.table--striped tbody tr:nth-child(even) {
  background: #fafbfc;
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #ebeef5;
  color: var(--text-regular-color);
  word-break: break-word;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== 空状态 ===== */
.table__empty {
  text-align: center;
  padding: 48px 0;
  color: var(--text-disabled-color);
  font-size: 14px;
}

.table__empty .empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ===== 响应式 ===== */
@media (max-width: 767px) {
  .table thead th,
  .table tbody td {
    padding: 10px 10px;
    font-size: 13px;
  }
}
