.recharge-panel {
  max-width: 100%;
  /* max-width: 500px; */
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(140, 171, 223, 0.2);
  overflow: hidden;
  margin-top: 1rem;
}

/* .panel-header {
  background: linear-gradient(135deg, #8cabdf, #6c9bd8);
  color: white;
  padding: 20px;
  text-align: center;
} */

/* .panel-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
} */

/* .panel-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  opacity: 0.9;
} */

.amount-section {
  padding: 25px;
  border-bottom: 1px solid #d0d8e7;
}

.section-title {
  color: #777;
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 15px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.amount-btn {
  border: 1px solid #d0d8e7;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  color: #555;
  font-size: 16px;
}

.amount-btn:hover {
  border-color: #8cabdf;
  background: rgba(140, 171, 223, 0.1);
}

.amount-btn.selected {
  border-color: #8cabdf;
  background: rgba(140, 171, 223, 0.15);
  color: #4a7bc9;
  /* box-shadow: 0 0 0 2px rgba(140, 171, 223, 0.3); */
}

.custom-section {
  padding: 0 25px 25px;
}

.custom-input-group {
  display: flex;
  align-items: center;
  margin-top: 10px;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.custom-input-group.visible {
  height: 60px;
}

.currency-symbol {
  background: #f8f9fa;
  border: 2px solid #d0d8e7;
  border-right: none;
  padding: 0 15px;
  height: 48px;
  display: flex;
  align-items: center;
  border-radius: 8px 0 0 8px;
  font-weight: bold;
  color: #555;
}

#custom-amount {
  flex: 1;
  height: 48px;
  border: 2px solid #d0d8e7;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
}

#custom-amount:focus {
  /* border-color: #8cabdf; */
}

.submit-section {
  padding: 20px 25px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#recharge-btn {
  width: 30rem;
  padding: 16px;
  background: linear-gradient(135deg, #8cabdf, #6c9bd8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#recharge-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(140, 171, 223, 0.4);
}

#recharge-btn:disabled {
  background: #d0d8e7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* .payment-methods {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}

.payment-method {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  border: 1px solid #d0d8e7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
} */

/* 支付渠道容器 */
.payment-section {
  padding: 20px;
  background: #f8f9fa;
  /* border-radius: 10px; */
  margin-top: 15px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* 支付选项卡片 */
.channel-option {
  border: 2px solid #d0d8e7;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}
.channel-option:hover {
  border-color: #8cabdf;
  /* box-shadow: 0 3px 10px rgba(140, 171, 223, 0.2); */
}

/* 选中状态 */
.channel-option.active {
  border-color: #8cabdf;
  background: linear-gradient(135deg, #8cabdf20, #d0d8e710);
  box-shadow: 0 3px 10px rgba(140, 171, 223, 0.2);
}

/* 支付图标 */
.channel-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alipay-bg {
  background: #1677ff10;
} /* 支付宝蓝 */
.wechat-bg {
  background: #07c16010;
} /* 微信绿 */
.viewBtn {
  color: #8cabdf;
  margin-top: 1rem;
  text-decoration: underline;
  cursor: pointer;
}
.price-btn {
  background-color: #8cabdf;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 30px auto;
  display: block;
  float: right;
}

.price-btn:hover {
  background-color: #7a9bcf;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000000000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 3rem 2rem;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 20px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th {
  background-color: var(--secondary-color);
  color: #333;
  font-weight: 600;
  padding: 1rem 10px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 2px solid var(--primary-color);
}

.price-table td {
  padding: 12px 10px;
  font-size: 1rem;
  border-bottom: 1px solid var(--secondary-color);
  text-align: center;
  line-height: 3rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover td {
  background-color: rgba(140, 171, 223, 0.1);
}

.api-name {
  font-weight: 500;
  color: var(--primary-color);
  text-align: left;
}

.code {
  font-family: monospace;
  color: #555;
}

.highlight {
  background-color: rgba(140, 171, 223, 0.15);
}

.discount {
  color: #28a745 !important;
  font-weight: 600;
}

.modal-footer {
  padding: 15px 20px;
  background-color: var(--light-color);
  border-radius: 0 0 10px 10px;
  text-align: right;
}

@media (max-width: 768px) {
  .price-table {
    display: block;
    overflow-x: auto;
  }
}
.dark-content .recharge-panel {
  background-color: #242c33;
  box-shadow: none;
}
.dark-content .amount-btn {
  background-color: #303c47;
  color: #f8f9fa;
  border-color: #61696e;
}
.dark-content .amount-btn:hover {
  border-color: #4872b6;
  background-color: #384552;
  /* box-shadow: 0 3px 10px rgba(140, 171, 223, 0.2); */
}
.dark-content .section-title {
  color: #f8f9fa;
}
.dark-content .amount-section {
  border-color: #61696e;
}
.dark-content .payment-section {
  background-color: rgba(0, 0, 0, 0);
}
.dark-content #recharge-btn {
  background: #3c5c8f;
}
.dark-content .channel-option.active {
  border-color: #3c5c8f;
  background-color: #405366;
}
.dark-content .currency-symbol {
  background-color: #2a333d;
  color: #f8f9fa;
  border-color: #61696e;
}
.dark-content #custom-amount {
  background-color: #2a333d;
  color: #f8f9fa;
  border-color: #61696e;
}
.dark-content .amount-btn.selected {
  background-color: #405366;
  border-color: #456392;

  box-shadow: 0 3px 10px rgba(140, 171, 223, 0.2);
}
.dark-content .price-table th {
  color: #fff;
  background-color: #283038;
}
.dark-content .price-table td {
  color: #fff;
  background-color: #363b3d;
}
.dark-content .code {
  color: #d0d8e7;
}
.dark-content .close-btn {
  color: #fff;
}
.dark-content .price-btn {
  background-color: #3c5c8f;
}
.dark-conten .viewBtn {
  color: #3c5c8f;
}
.price-table tr:hover {
  background-color: #fafbfc;
}
.guideCard {
  width: 100%;
  padding: 1rem 2rem 0.5rem;
  border-radius: 0.6rem;
  /* margin-left: 1rem; */
}

.dark-content .guideCard {
  background-color: #303c47 !important;
  color: #dfe0e2;
}

.tab-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.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: 400px;
}

.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;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  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;
  background: white;
  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 {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.empty-state.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #adb5bd;
  font-weight: bold;
}

.empty-text {
  font-size: 16px;
  font-weight: 500;
} */

.loading {
  display: none;
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.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;
  }
}
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* background-color: #fff; */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000000000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.payment-modal-content {
  background-color: white;
  border-radius: 10px;
  width: 30rem;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.payment-modal-overlay.active .payment-modal-content {
  transform: translateY(0);
}

.payment-modal-header {
  background-color: var(--primary-color);
  /* color: white; */
  padding: 2rem;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.payment-close-icon {
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.payment-modal-body {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-modal-footer {
  padding: 15px 20px;
  /* background-color: var(--light-color); */
  border-radius: 0 0 10px 10px;
  text-align: right;
}
.payment-callcloseBtn {
  background-color: #8cabdf;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 30px auto;
  /* display: block; */
  /* float: right; */
}

.payment-callcloseBtn:hover {
  background-color: #7a9bcf;
}
.dark-content .payment-callcloseBtn {
  background-color: #3c5c8f;
}
.dark-content .payment-modal-title,
.dark-content .payment-close-icon {
  color: #fff;
}
.dark-content .payment-modal-content {
  background-color: #2e3336;
}
.qrCodeImage {
  width: 16em;
  height: auto;
}

.dark-content .price-table tr:hover td {
  background-color: #2e3336;
}
.dark-content .price-table tr:hover {
  background-color: #2e3336;
}
.vxIcon {
  font-size: 28px;
  color: #28a745;
}
.channel-option {
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  /* color: #333; */
}
.balanceCard {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  /* flex-direction: column; */
  color: #666;
  justify-content: flex-end;
  align-items: flex-end;
}
.balanceNum {
  font-weight: 600;
  color: #28a745;
}
