/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #0a1a0a;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* 头部导航栏样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
}

.header .left {
  display: flex;
  align-items: center;
}

.header .center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header .right {
  display: flex;
  align-items: center;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

.title {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

/* 钱包连接按钮 */
.wallet-btn {
  background: linear-gradient(90deg, #9dff5c, #00e676);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-btn:hover {
  opacity: 0.9;
}

/* 钱包下拉菜单 */
.wallet-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a2a1a;
  border-radius: 10px;
  padding: 10px;
  width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-top: 10px;
}

.wallet-dropdown:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #1a2a1a;
}

.wallet-address {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #2a3a2a;
  font-size: 14px;
}

.wallet-disconnect {
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #ff5252;
}

.wallet-disconnect:hover {
  background-color: rgba(255, 82, 82, 0.1);
  border-radius: 5px;
}

/* 语言切换按钮 */
.lang-btn {
  background: linear-gradient(90deg, #9dff5c, #00e676);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

/* 侧边栏样式 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background-color: #0f1f0f;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
}

.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
}

.user-name img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.user-address {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.user-address-text {
  margin: 0 5px;
}

.copy-icon {
  cursor: pointer;
}

.copy-img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.sidebar-menu {
  padding: 20px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
  background-color: rgba(157, 255, 92, 0.1);
}

.menu-icon {
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-text {
  flex: 1;
}

.menu-arrow {
  opacity: 0.5;
}

.link-img {
  width: 16px;
  height: 16px;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* 首页特定样式 */
.announcement {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 10px;
  margin: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(157, 255, 92, 0.2);
}

.announcement-icon {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: normal;
  justify-content: center;
}

.announcement-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.price-card {
  background: linear-gradient(135deg, #00ff00, #32cd32, #00e676);
  border-radius: 10px;
  margin: 15px;
  padding: 20px;

  border: none;
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.price-logo {
  display: flex;
  align-items: center;
}

.price-logo img {
  width: 100px;
  height: auto;
}

.price-info-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
}

.price-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 30px;
  color: #000;
  font-weight: bold;
}

.price-info-icon {
  margin-right: 10px;
}

.stats-container {
  margin: 15px;
  gap: 10px;
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
}

.stats-card {
  position: relative;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 15px;
  overflow: hidden;
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
}
/* .stats-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(to bottom, rgba(0, 255, 0, 0.8), transparent);
    box-shadow: 0 -4px 15px rgba(0, 255, 0, 0.7);
  } */

.stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  background: linear-gradient(to right, green, yellow, green);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  /* 不阻塞内部交互 */
  pointer-events: none;
  z-index: 0;
}

/* 确保卡片内部内容在伪元素上方，可交互 */
.stats-card > * {
  position: relative;
  z-index: 2;
}

/* 强制让购买卡片内的控件可交互，避免被伪元素或发光层覆盖 */
.purchase-card,
.purchase-card * {
  pointer-events: auto;
}

.purchase-card .purchase-input,
.purchase-card .purchase-submit-btn,
.purchase-card .all-btn,
.purchase-card .purchase-max-btn {
  position: relative;
  z-index: 5;
}

/* 新的算力卡片样式（移动端 2x2 网格） */
.power-stats-container {
  margin: 12px 12px 24px;
}

.power-stats-title {
  color: #cfeecf;
  font-size: 16px;
  padding: 6px 4px;
  margin-left: 4px;
  margin-bottom: 8px;
}

.power-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.power-card {
  height: 88px;
  padding: 12px;
  border-radius: 12px;
  /* background: linear-gradient(
    180deg,
    rgba(6, 18, 12, 0.6),
    rgba(10, 30, 18, 0.6)
  ); */
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.power-card::after {
  /* 外围发光 */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(157, 255, 92, 0.25),
    rgba(0, 230, 118, 0.12)
  );
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}

.power-card .card-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.power-card .card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.power-card .card-body {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-label {
  font-size: 12px;
  color: rgba(200, 255, 200, 0.9);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.card-value {
  font-size: 18px;
  font-weight: 700;
  color: #9dff5c;
  /* 尝试渐变文字，如果浏览器不支持则回退为单色 */
  background: linear-gradient(90deg, #9dff5c, #00e676);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 如果不能用背景裁切来做渐变色，保证可读性 */
@supports not (-webkit-background-clip: text) {
  .card-value {
    color: #9dff5c;
    -webkit-text-fill-color: initial;
    background: none;
  }
}

/* 小屏适配：更窄时改为单列 */
@media (max-width: 420px) {
  .power-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .power-card {
    height: 84px;
    padding: 10px;
  }

  .card-value {
    font-size: 16px;
  }
}

.stats-icon {
/*  width: 60px;*/
  /* height: 60px; */
  background: linear-gradient(135deg, #9dff5c, #00e676);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.stats-icon img {
  width: 30px;
  height: 30px;
}

.stats-label {
  color: #fff;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

.stats-value {
  background-color: #fff;
  color: #000;
  border-radius: 30px;
  padding: 5px 15px;
  /* font-weight: bold;
  font-size: 18px;
  min-width: 150px;
  text-align: center; */
}

.order-card {
  position: relative;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  margin: 15px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
}

/* .order-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  background: linear-gradient(to right, green, yellow, green);

  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
} */

.order-info {
  display: flex;
  align-items: center;
}

.order-icon {
  margin-right: 15px;
}

.order-icon img {
  width: 30px;
  height: 30px;
}

.order-text {
  font-size: 18px;
  font-weight: bold;
}

.order-detail {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.order-detail img {
  width: 20px;
  height: 20px;
  margin-left: 5px;
}

/* 购买卡片样式 */
.purchase-container {
  display: flex;
  justify-content: space-between;
  margin: 15px;
  gap: 15px;
}

.purchase-card {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 18px;
  /* 设计图背景 */
  background-image: url("../img/Group_7151@2x.png");
  background-size: cover;
  background-position: center;
  color: #dfffe0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border: 1.5px solid #228931;
    border-radius: 20px;
    padding: 6px;
    width: 100%;
}

.purchase-left,
.purchase-right {
  display: flex;
  align-items: center;
  min-width: 80px;
}

.purchase-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.stack-top {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.stack-hr {
  width: 48px;
  height: 1px;
  background: rgba(157, 255, 92, 0.25);
  margin: 6px 0;
  border-radius: 1px;
}

.stack-bottom {
  font-size: 16px;
  font-weight: 700;
  color: #9dff5c;
}

@media (max-width: 560px) {
  .purchase-container {
    flex-direction: column;
  }
  .purchase-header {
    flex-direction: row;
    gap: 8px;
  }
  .purchase-left,
  .purchase-right {
    min-width: auto;
  }
}

.purchase-title {
  font-size: 18px;
  font-weight: bold;
}

.purchase-amount {
  color: #9dff5c;
  font-weight: bold;
}

.purchase-input-container {
  display: flex;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  /* background-color: #4f5d54; */
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.purchase-input {
  flex: 1;
  background-color: transparent;
  border: none;
  padding: 12px 15px;
  color: #fff;
  font-size: 16px;
}

.purchase-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 购买卡片额外样式 */
.purchase-hint {
  margin: 10px 0 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.purchase-input {
  padding: 12px 16px;
  font-size: 18px;
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
}

.all-btn {
  background-size: cover;
  /* background-position: center; */
  border: none;
  color: #000;
  padding: 8px 12px;
  /* margin-right: 6px; */
  cursor: pointer;
  /* 保留形状但降低对点击的影响 */
  /* clip-path: none; */
  clip-path: polygon(20px 0, 100% 0, 100% 70%, 100% 100%, 0 100%, 0 60px);

  /* border-top-right-radius: 20px;  */
  width: 90px;
}

.egk-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: pointer;
}

.selected-token {
  color: inherit;
  font-weight: inherit;
}

.select-arrow {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

/* EGK 下拉菜单 */
.egk-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(10, 20, 15, 0.95);
  border: 1px solid rgba(157, 255, 92, 0.12);
  border-radius: 8px;
  min-width: 100px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1200;
}

.egk-dropdown .egk-option {
  padding: 8px 12px;
  color: #dfffe0;
  cursor: pointer;
  font-size: 14px;
}

.egk-dropdown .egk-option:hover {
  background: rgba(157, 255, 92, 0.06);
}

.purchase-max-btn {
  background-color: rgba(255, 255, 255, 0.2);
  background: #9aff82;
  border: none;
  /* color: #fff; */
  padding: 0 15px;
  cursor: pointer;
  font-weight: bold;
}

.purchase-submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #9dff5c, #00e676);
  border: none;
  border-radius: 10px;
  padding: 12px;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

/* 算力统计样式 */
.power-stats-container {
  /* margin: 15px; */
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 10px;
  background-image: url("../img/Group_7146@2x.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 新增算力统计卡片样式 */
.new-power-stats-container {
  margin: 12px 12px 24px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 15px;
  background-image: url("../img/Group_7146@2x.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.new-power-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.new-power-card {
  height: 88px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.new-power-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 12px;
  background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.new-power-card > * {
  position: relative;
  z-index: 2;
}

.new-power-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.new-power-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.new-power-label {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
  font-weight: 400;
}

.new-power-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 8px;
  margin-top: 2px;
  color: #9dff5c;
  /* background: linear-gradient(90deg, #9dff5c, #00e676); */
}

.power-stats-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.power-stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.power-stats-card {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.power-stats-label {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  text-align: center;
}

.power-stats-value {
  background-color: #fff;
  color: #000;
  border-radius: 30px;
  padding: 5px 15px;
  font-weight: bold;
  font-size: 16px;
  min-width: 120px;
  text-align: center;
}

/* 收益卡片样式 */
.profit-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
}

.profit-info {
  display: flex;
  align-items: center;
}

.profit-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(157, 255, 92, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.profit-text {
  font-size: 16px;
  font-weight: bold;
}

.profit-amount {
  font-size: 18px;
  color: #9dff5c;
  font-weight: bold;
  margin-top: 5px;
}

.claim-btn {
  background: linear-gradient(90deg, #9dff5c, #00e676);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.claim-btn:hover {
  transform: translateY(-1px);
}

/* 邀请好友卡片样式 */
.invite-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
}

.invite-info {
  display: flex;
  align-items: center;
}

.invite-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(157, 255, 92, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.invite-text {
  font-size: 16px;
  font-weight: bold;
}

.copy-invite-btn {
  background: linear-gradient(90deg, #9dff5c, #00e676);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.copy-invite-btn:hover {
  transform: translateY(-1px);
}

/* 合作伙伴样式 */
.partners-card {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  margin: 15px;
  padding: 15px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.partners-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  /* background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00); */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.partners-card > * {
  position: relative;
  z-index: 2;
}

.partners-title {
  color: #cfeecf;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.partner-item {
  /* background: rgba(0, 0, 0, 0.4); */
  border-radius: 12px;
  margin: 8px;
  padding: 16px 12px 10px 12px;
  width: calc(33.333% - 16px);
  min-width: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(157, 255, 92, 0.2);
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
}

.partner-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.partner-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.partner-name {
  color: #cfeecf;
  font-size: 12px;
  text-align: center;
  margin-top: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .stats-container,
  .purchase-container {
    flex-direction: column;
  }

  .stats-card,
  .purchase-card {
    margin-bottom: 15px;
  }

  .price-card {
    flex-direction: row;
    align-items: center;
  }

  .price-info {
    margin-top: 0;
  }

  .power-stats-cards {
    grid-template-columns: 1fr;
  }

  .new-power-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .new-power-card {
    height: 80px;
    padding: 10px;
  }

  .new-power-label {
    font-size: 11px;
  }

  .new-power-value {
    font-size: 14px;
  }

  .partner-item {
    width: calc(50% - 16px);
  }
}

/* 我的社区页面样式 */
/* 身份选择器样式 */
.identity-selector {
  margin: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identity-item {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(157, 255, 92, 0.2);
  position: relative;
  overflow: hidden;
  min-height: 40px;
}

.identity-item:not(.active) {
  opacity: 0.5;
  background: linear-gradient(to bottom, #0a0a0a, #1a1a1a);
}

/* .identity-item.active {
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
} */

.identity-item.active::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 12px;
  /* background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00); */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.identity-item > * {
  position: relative;
  z-index: 2;
}

.identity-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.identity-item:not(.active) .identity-icon {
  color: #666;
}

.identity-item.active .identity-icon {
  color: #00ff00;
}

.identity-text {
  color: #cfeecf;
  font-size: 13px;
  font-weight: 500;
}

.identity-item:not(.active) .identity-text {
  color: #666;
}

.identity-item.active .identity-text {
  color: #00ff00;
  font-weight: bold;
}

.community-stats-card {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 255, 92, 0.3);
}

.community-stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  /* background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00); */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.community-stats-card > * {
  position: relative;
  z-index: 2;
}

.community-stats-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.community-stats-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-stats-title {
  color: #cfeecf;
  font-size: 18px;
  font-weight: bold;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.community-stat-item {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(157, 255, 92, 0.2);
}

.stat-label {
  color: #cfeecf;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  color: #9dff5c;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(157, 255, 92, 0.4);
}

/* 直推详情卡片 */
.direct-details-card {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.direct-details-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  /* background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00); */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.direct-details-card > * {
  position: relative;
  z-index: 2;
}

.direct-details-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.direct-details-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direct-details-title {
  color: #cfeecf;
  font-size: 18px;
  font-weight: bold;
}

.direct-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.direct-detail-item {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(157, 255, 92, 0.2);
  min-height: 60px;
}

.detail-left {
  display: flex;
  flex-direction: column;
}

.detail-label {
  color: #cfeecf;
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-address {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.detail-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.detail-performance-label {
  color: #cfeecf;
  font-size: 12px;
  margin-bottom: 4px;
}

.detail-performance-value {
  color: #9dff5c;
  font-size: 16px;
  font-weight: bold;
}

/* 响应式设计 - 社区页面 */
@media (max-width: 768px) {
  .community-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .community-stat-item {
    padding: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .direct-detail-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
  }

  .detail-left,
  .detail-right {
    flex: 1;
  }

  .detail-right {
    text-align: right;
  }
}

/* 节点认购页面样式 */
.node-purchase-card {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 255, 92, 0.3);
}

.node-purchase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.node-purchase-card > * {
  position: relative;
  z-index: 2;
}

.node-purchase-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.node-purchase-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-purchase-title {
  color: #cfeecf;
  font-size: 18px;
  font-weight: bold;
}

.node-purchase-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.node-purchase-input-container {
  width: 100%;
}

.node-purchase-input {
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(157, 255, 92, 0.3);
  border-radius: 12px;
  padding: 0 15px;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.node-purchase-input::placeholder {
  color: #888;
}

.node-purchase-input:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.node-purchase-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #00ff00, #32cd32);
  border: none;
  border-radius: 12px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.node-purchase-btn:hover {
  background: linear-gradient(135deg, #32cd32, #00e676);
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.4);
}

.node-purchase-btn:active {
  transform: translateY(1px);
}

/* 分隔线 */
.node-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(157, 255, 92, 0.3),
    transparent
  );
  margin: 20px 15px;
}

/* 节点统计卡片 */
.node-stats-card {
  background: linear-gradient(to bottom, #0b0f0b, #1e2e1e);
  border-radius: 15px;
  margin: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 255, 92, 0.3);
}

.node-stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 15px;
  background: linear-gradient(45deg, #00ff00, #32cd32, #00ff00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.node-stats-card > * {
  position: relative;
  z-index: 2;
}

.node-stats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.node-stat-item {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(157, 255, 92, 0.2);
  min-height: 60px;
}

.node-stat-left {
  display: flex;
  align-items: center;
}

.node-stat-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-stat-label {
  color: #cfeecf;
  font-size: 14px;
  font-weight: 500;
}

.node-stat-value {
  color: #9dff5c;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(157, 255, 92, 0.4);
}

/* 邀请链接弹窗样式 */
.invite-code-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.invite-code-container {
  width: 90%;
  max-width: 480px;
  background: linear-gradient(180deg, #0e1a12, #142316);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(157, 255, 92, 0.06);
}

.invite-code-header {
  padding: 14px 16px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: center;
  align-items: center;
}

.invite-code-title {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.invite-code-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #cfeecf;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

.invite-code-close:hover {
  color: #fff;
}

.invite-code-content {
  padding: 18px;
}

.invite-code-desc {
  color: #ccc;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.invite-code-input-container {
  display: flex;
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.invite-code-input-container {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}

.invite-code-input {
  flex: 1;
  padding: 14px 12px;
  border: none;
  background-color: #16221a;
  color: #fff;
  font-size: 16px;
  outline: none;
  border-radius: 10px;
}

.invite-code-submit {
  padding: 12px 18px;
  background: linear-gradient(90deg, #9dff5c, #00e676);
  color: #000;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.invite-code-submit:hover {
  transform: translateY(-1px);
}

/* 移动端样式：底部弹起样式 */
@media (max-width: 480px) {
  .invite-code-modal {
    align-items: flex-end;
    padding-bottom: 8px;
  }
  .invite-code-container {
    width: 100%;
    max-width: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  }
  .invite-code-header {
    padding: 12px;
  }
  .invite-code-title {
    font-size: 18px;
  }
  .invite-code-content {
    padding: 16px;
  }
  .invite-code-input-container {
    display: block;
  }
  .invite-code-input {
    width: 100%;
    margin-bottom: 12px;
  }
  .invite-code-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
  }
  .invite-code-close {
    right: 12px;
    top: 14px;
    transform: none;
  }
}
.filter-btn,
.invite-link-btn,
.withdraw-btn,
.trade-all-btn,
.trade-submit-btn,
.invite-code-submit,
.invite-code-close {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button:active,
.nav-button:active,
.filter-btn:active,
.invite-link-btn:active,
.withdraw-btn:active,
.trade-all-btn:active,
.trade-submit-btn:active,
.invite-code-submit:active,
.invite-code-close:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

/* 响应式设计 - 节点认购页面 */
@media (max-width: 768px) {
  .node-purchase-input {
    height: 45px;
    font-size: 14px;
  }

  .node-purchase-btn {
    height: 45px;
    font-size: 14px;
  }

  .node-stat-item {
    padding: 12px;
    min-height: 50px;
  }

  .node-stat-label {
    font-size: 13px;
  }

  .node-stat-value {
    font-size: 16px;
  }
}
