// 购买算力包页面样式
.buyPowerPage {
  padding: 16px;
  background: #f5f5f5;
  min-height: 100vh;
  padding-bottom: 80px; // 为底部按钮留空间
}

.sectionTitle {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-left: 4px;
}

// 套餐列表
.packageList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.packageCard {
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #e5e5e5;
  transition: all 0.3s;
  cursor: pointer;

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

.packageCardActive {
  border-color: #1890ff;
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f5ff 100%);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

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

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

.packageName {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.packageTag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.tag-orange {
  background: #fff7e6;
  color: #fa8c16;
}

.tag-blue {
  background: #e6f7ff;
  color: #1890ff;
}

.tag-green {
  background: #f6ffed;
  color: #52c41a;
}

.tag-purple {
  background: #f9f0ff;
  color: #722ed1;
}

.packagePrice {
  text-align: right;
}

.currentPrice {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
  margin-right: 6px;
}

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

.packageTokens {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.packageMeta {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.unitPrice,
.discount {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.unitPriceValue,
.discountValue {
  font-size: 16px;
  font-weight: 600;
  color: #52c41a;
}

.packageDescription {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.descriptionTag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: #1890ff;
  background: #e6f7ff;
  border-radius: 4px;
  border: 1px solid #91d5ff;
}

.packageFeatures {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

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

.featureIcon {
  color: #52c41a;
  font-size: 14px;
}

// 自定义购买卡片
.customCard {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.customIcon {
  font-size: 20px;
  color: #1890ff;
}

.customTitle {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.customContent {
  padding-top: 8px;
}

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

// 安全保障卡片
.securityCard {
  padding: 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  box-shadow: none;
}

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

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

.securityTitle {
  font-size: 15px;
  font-weight: 600;
  color: #166534;
}

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

.securityItem {
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
}

// 底部按钮
.footer {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.buyButton {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;

  &:active {
    opacity: 0.8;
  }

  &:disabled {
    background: #d9d9d9;
    opacity: 0.6;
  }
}
