.tab-container {
  /* max-width: 76rem; */
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-nav {
  display: flex;
}
/* .recharge-table {
  display: none;
} */

.tab-item {
  flex: 1;
  padding: 16px 24px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.tab-item:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.05);
}

.tab-item.active {
  color: #007bff;
  background: white;
  border-bottom-color: #007bff;
}

.tab-content {
  position: relative;
  min-height: 30rem;
}
.tab-content ::-webkit-scrollbar {
  display: none !important; /* 隐藏滚动条 */
}
.tab-pane {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.tab-pane.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

tr:hover {
  background: rgba(0, 123, 255, 0.05);
}

.text-success {
  color: #28a745;
  font-weight: 600;
}

.text-danger {
  color: #dc3545;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.page-item {
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.page-item:hover:not(.disabled) {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.page-item.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-state.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-text {
  font-size: 16px;
  font-weight: 500;
}

.loading {
  display: none;
  text-align: center;
  padding: 10rem 2rem;
  color: #93a4b3;
}

.loading.show {
  display: block;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .tab-item {
    padding: 12px 16px;
    font-size: 14px;
  }

  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px 12px;
  }
}

.pageTitle {
  padding: 0 0 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.pageTitle h1 {
  font-weight: bold;
  font-size: 1.6rem;
}
.titleLine {
  width: 6px;
  height: 2rem;
  background-color: #71a9e0;
  border-radius: 1rem;
  margin-right: 0.5rem;
}

.dark-content .tab-container {
  background-color: #2e3336;
  box-shadow: none;
}
.dark-content th {
  background-color: #2e3336;
  color: #f0f3f7;
  border-color: #777;
}
.dark-content td {
  border-color: #777;
  background-color: #2e3336;
}
.dark-content .tab-item {
  background-color: #303b46;
  color: #f0f3f7;
}
.dark-content .tab-item:hover {
  background-color: #242c35;
}
.dark-content .tab-item.active {
  color: #fff;
  border-bottom-color: #3c5c8f;
}
.dark-content.disabled {
  background-color: #3d3b3b;
}
.dark-content .page-item {
  border-color: #7a7979;
}
.dark-content table {
  color: #e9ecef;
}
.dark-content .page-item:hover:not(.disabled) {
  border-color: #3c5c8f;
  background-color: #3c5c8f;
}
.dark-content .page-item.active {
  background: #3c5c8f;
  border-color: #3c5c8f;
}

.dark-content tr:hover {
  background-color: #303b46;
}
/* 添加初始隐藏样式 */
#recharge-table,
#consume-table,
#recharge-pagination,
#consume-pagination {
  display: none;
}
