.powerPage {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

.overviewSection {
  padding: 16px;
  background-color: #f5f5f5;
}

.overviewCard {
  background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.overviewContent {
  position: relative;
  z-index: 1;
}

.remainingPower {
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.remainingLabel {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.remainingValue {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.totalInfo {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.progressBar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progressFill {
  height: 100%;
  background-color: #ffffff;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.usageRate {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.lightningIcon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: rgba(255, 255, 255, 0.2);
}

.navTabs {
  display: flex;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 16px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.navTab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.navTab:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #f0f0f0;
}

.navTabActive {
  color: #1677ff;
  font-weight: 600;
  background-color: #ffffff;
}

.navTabActive::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1677ff;
}

.statsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.statCard {
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.statCardGreen {
  background: #52c41a;
  color: #ffffff;
}

.statCardGrey {
  background: #262626;
  color: #ffffff;
}

.statCardPurple {
  background: #722ed1;
  color: #ffffff;
}

.statCardOrange {
  background: #fa8c16;
  color: #ffffff;
}

.statIcon {
  font-size: 18px;
  opacity: 0.9;
  margin-right: 6px;
}

.statTitle {
  font-size: 11px;
  opacity: 0.9;
}

.statTitleRow {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.statValue {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.filters {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.filterButton {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background-color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.filterIcon {
  font-size: 12px;
  color: #999;
}

.recordList {
  padding: 0 16px;
}

.recordItem {
  margin-bottom: 12px;
  border-radius: 12px;
  padding: 16px;
  background-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recordItem:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左侧区域 */
.recordLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.recordIconWrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recordIcon {
  font-size: 22px;
}

.recordInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recordTitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recordTime {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}

/* 右侧区域 */
.recordRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.recordPower {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.recordPowerUnit {
  font-size: 12px;
  color: #999;
  line-height: 1.2;
}

.loadingContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.loadingText {
  font-size: 14px;
  color: #999;
}

.emptyRecords {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.emptyText {
  font-size: 14px;
  color: #999;
  margin-top: 12px;
}

// 购买算力页面样式
.buyPowerContent {
  padding: 16px;
}

.packageCard {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 20px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.packageHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.packageNameRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.packageName {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.discountTag {
  background-color: #ff4d4f;
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.packageTokensHeader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tokensIcon {
  font-size: 24px;
  color: #ffd700;
}

.tokensValue {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tokensNumber {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.tokensUnit {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

.packagePriceSection {
  margin-bottom: 20px;
}

.priceRow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.currentPrice {
  font-size: 24px;
  font-weight: 600;
  color: #ff4d4f;
}

.originalPrice {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.savings {
  font-size: 14px;
  color: #52c41a;
  margin-bottom: 8px;
}

.unitPrice {
  font-size: 13px;
  color: #999;
}

.packageFeatures {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.featureItem {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;

  &:last-child {
    margin-bottom: 0;
  }
}

.featureIcon {
  font-size: 16px;
  color: #52c41a;
  flex-shrink: 0;
}

.buyButton {
  margin-top: 8px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buyButtonIcon {
  font-size: 18px;
}

// 自定义算力包样式
.customPackageCard {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 24px 20px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.customPackageHeader {
  text-align: center;
  margin-bottom: 24px;
}

.customPackageIcon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  svg {
    font-size: 32px;
    color: #1677ff;
  }
}

.customPackageTitle {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.customPackageDesc {
  font-size: 14px;
  color: #999;
}

.quickSelectButtons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.quickSelectBtn {
  flex: 1;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;

  &:active {
    transform: scale(0.98);
  }
}

.quickSelectBtnActive {
  border-color: #1677ff;
  background-color: #e6f7ff;
  color: #1677ff;
}

.customInputWrapper {
  margin-bottom: 20px;
}

.customInput {
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
}

.customBuyButton {
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  background: linear-gradient(135deg, #722ed1 0%, #1677ff 100%);
  border: none;
  color: #ffffff;

  &:disabled {
    background: #d9d9d9;
    color: #ffffff;
  }
}

// 安全保障承诺样式
.securityCard {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 20px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.securityHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.securityIcon {
  font-size: 18px;
  color: #52c41a;
}

.securityTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.securityList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.securityItem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.securityItemIcon {
  font-size: 16px;
  color: #52c41a;
  flex-shrink: 0;
  margin-top: 2px;
}

// 购买记录页面样式
.ordersContent {
  padding: 16px;
}

.searchBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.searchIcon {
  font-size: 18px;
  color: #999;
  flex-shrink: 0;
}

.searchInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
}

.orderFilters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.orderList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orderCard {
  border-radius: 12px;
  padding: 16px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.orderHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.orderTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.orderAmount {
  font-size: 18px;
  font-weight: 600;
  color: #1677ff;
}

.orderInfo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.orderLeft {
  flex: 1;
}

.orderNumber {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.orderPayment {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.paymentIcon {
  font-size: 14px;
}

.orderRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.orderStatus {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.orderTime {
  font-size: 13px;
  color: #999;
}

// 算力分配页面样式
.allocationContent {
  padding: 16px;
}

.allocationFormCard {
  margin-bottom: 16px;
  border-radius: 12px;
  padding: 20px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.allocationFormHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.allocationFormIcon {
  font-size: 20px;
  color: #1677ff;
}

.allocationFormTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.allocationFormBody {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formItem {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formLabel {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.formInput {
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  cursor: pointer;
}

.formInputIcon {
  font-size: 12px;
  color: #999;
}

.allocationConfirmButton {
  margin-top: 8px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

.allocationRecordsCard {
  border-radius: 12px;
  padding: 20px;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.allocationRecordsHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.allocationRecordsIcon {
  font-size: 18px;
  color: #ff7a00;
}

.allocationRecordsTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.allocationRecordsFilters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.allocationRecordsList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.allocationRecordItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    border-bottom: none;
  }
}

.allocationRecordLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.allocationRecordIcon {
  font-size: 20px;
  color: #1677ff;
  background-color: #e6f7ff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.allocationRecordInfo {
  flex: 1;
}

.allocationRecordName {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.allocationRecordTime {
  font-size: 13px;
  color: #999;
}

.allocationRecordAmount {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

// 支付弹框样式
.paymentDialog {
  padding: 20px;
  background-color: #ffffff;
}

.paymentHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.paymentTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.paymentClose {
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.paymentProduct {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.paymentProductLeft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.paymentProductIcon {
  font-size: 24px;
  color: #1677ff;
  margin-top: 4px;
}

.paymentProductInfo {
  flex: 1;
}

.paymentProductName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.paymentProductTokens {
  font-size: 14px;
  color: #1677ff;
  margin-bottom: 4px;
}

.paymentProductValid {
  font-size: 13px;
  color: #666;
}

.paymentProductRight {
  text-align: right;
}

.paymentPrice {
  font-size: 20px;
  font-weight: 600;
  color: #ff4d4f;
  margin-bottom: 4px;
}

.paymentDiscount {
  font-size: 12px;
  color: #ff4d4f;
  background-color: #fff1f0;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.paymentMethods {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.paymentMethod {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s;
}

.paymentMethodActive {
  border-color: #1677ff;
  background-color: #e6f7ff;
}

.paymentMethodIcon {
  font-size: 20px;
}

.paymentQrCode {
  text-align: center;
  margin-bottom: 20px;
}

.qrCodeImage {
  width: 250px;
  height: 250px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 8px;
}

.qrCodeHint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.qrCodeHintIcon {
  font-size: 16px;
  color: #52c41a;
}

.paymentInfo {
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.paymentInfoItem {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;

  &:last-child {
    margin-bottom: 0;
  }
}

.paymentInfoIcon {
  font-size: 16px;
  color: #1677ff;
}

.paymentInfoLabel {
  color: #666;
  flex: 1;
}

.paymentInfoValue {
  color: #1677ff;
  font-weight: 500;
}

.paymentOrderNo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.orderNoText {
  color: #333;
  font-family: monospace;
  font-size: 13px;
}

.copyIcon {
  font-size: 16px;
  color: #1677ff;
  cursor: pointer;
}

.completePaymentButton {
  margin-bottom: 20px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.completePaymentIcon {
  font-size: 18px;
}

.paymentInstructions {
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.paymentInstructionsTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.instructionsIcon {
  font-size: 16px;
  color: #faad14;
}

.paymentInstructionsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instructionItem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.instructionIcon {
  font-size: 14px;
  color: #52c41a;
  flex-shrink: 0;
  margin-top: 2px;
}

// 支付成功弹框样式
.paymentSuccessDialog {
  padding: 20px;
  background-color: #ffffff;
}

.paymentSuccessHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.paymentSuccessTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.paymentSuccessClose {
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.paymentSuccessIcon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f6ffed;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;

  svg {
    font-size: 48px;
    color: #52c41a;
  }
}

.paymentSuccessText {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.paymentSuccessDesc {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
}

.paymentSuccessProduct {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.paymentSuccessProductLeft {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.paymentSuccessProductIcon {
  font-size: 24px;
  color: #1677ff;
  margin-top: 4px;
}

.paymentSuccessProductInfo {
  flex: 1;
}

.paymentSuccessProductName {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.paymentSuccessProductTokens {
  font-size: 14px;
  color: #1677ff;
}

.paymentSuccessProductRight {
  text-align: right;
}

.paymentSuccessPrice {
  font-size: 18px;
  font-weight: 600;
  color: #ff4d4f;
  margin-bottom: 8px;
}

.paymentSuccessPayType {
  font-size: 13px;
  color: #666;
}

.paymentSuccessInfo {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.paymentSuccessInfoItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;

  &:last-child {
    margin-bottom: 0;
  }
}

.paymentSuccessInfoLabel {
  color: #666;
}

.paymentSuccessInfoValue {
  color: #333;
  font-weight: 500;
}

.paymentSuccessOrderNo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.successOrderNoText {
  color: #333;
  font-family: monospace;
  font-size: 13px;
}

.successCopyIcon {
  font-size: 16px;
  color: #1677ff;
  cursor: pointer;
}

.paymentSuccessButton {
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}
