.pisell-wallet-card-wrapper {
  border: none;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;

  // 卡片容器
  .pisell-wallet-card-container {
    width: 100%;
    display: flex;
    cursor: pointer;
  }

  // 卡片内容区域
  .pisell-wallet-card-content {
    padding: 16px 18px;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;

    // 暗色主题
    &.dark {
      background-color: transparent;

      .pisell-wallet-card-header-left {
        color: #fff;
      }

      .pisell-wallet-card-item {
        .pisell-wallet-card-item-label {
          color: #eaecf0;
        }

        .pisell-wallet-card-item-value {
          color: #fff;
        }
      }
    }

    // 亮色主题
    &.light {
      background-color: transparent;

      .pisell-wallet-card-header-left {
        color: #101828;
      }

      .pisell-wallet-card-item {
        .pisell-wallet-card-item-label {
          color: #667085;
        }

        .pisell-wallet-card-item-value {
          color: #101828;
        }
      }
    }
  }

  .pisell-wallet-card-guest-content {
    padding: 0;
  }

  // 卡片头部
  .pisell-wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    // 头部左侧
    .pisell-wallet-card-header-left {
      font-size: 12px;
      font-weight: 400;
      line-height: 18px;

      // 卡片等级/名称区域
      .pisell-wallet-card-header-level {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;

        // 卡片名称文本
        .pisell-wallet-card-header-level-text {
          font-size: 14px;
          font-weight: 600;
          line-height: 20px;
        }

        // 卡片图标
        .pisell-wallet-card-header-icon {
          width: 20px;
          height: 20px;
          overflow: hidden;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }

      // 头部左侧其他信息
      > div {
        margin-bottom: 4px;

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

      .pisell-wallet-card-header-view-pin {
        position: relative;
        color: #53b1fd;
        cursor: pointer;
        font-size: 12px;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 4px;

        .pisell-wallet-card-header-view-pin-icon {
          width: 16px;
          height: 16px;
          color: #53b1fd;
          font-size: 16px;
        }

        &:after {
          content: '';
          position: absolute;
          top: -5px;
          left: -5px;
          right: -5px;
          bottom: -5px; /* 向外扩展5px */
        }
      }
    }

    // 头部右侧
    .pisell-wallet-card-header-right {
      // 图标包装器
      .pisell-wallet-card-icon-wrapper {
        cursor: pointer;
      }

      // 图标
      .pisell-wallet-card-icon {
        font-size: 40px;
        cursor: pointer;
        transition: opacity 0.3s ease;

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }

  // 卡片内容列表
  .pisell-wallet-card-list {
    margin-top: 30px;
    height: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 16px;

    // 列表项
    .pisell-wallet-card-item {
      text-align: center;
      // flex: 1;
      min-width: 0;

      // 标签
      .pisell-wallet-card-item-label {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      // 值
      .pisell-wallet-card-item-value {
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  // 显示二维码/条形码区域
  .pisell-wallet-card-showCode {
    padding: 20px;
    background-color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #d0d5de;

    // 当二维码/条形码在底部显示时
    &.code-bottom {
      border-top: none;
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
    }

    // 当二维码/条形码在顶部显示时
    &.code-top {
      border-bottom: none;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    .pisell-wallet-card-code {
      display: flex;
      justify-content: center;
    }
    // 条形码样式
    .pisell-wallet-card-code {
      width: 100%;

      // 覆盖react-barcode生成的SVG文本样式
      svg {
        width: 100%;

        text {
          fill: #000;
          font-size: 12px;
          font-style: normal;
          font-weight: 400;
          line-height: normal;
          transform: translateY(12px);
        }
      }
    }

    // 二维码下方文本样式
    .pisell-wallet-card-code-qrcode-value {
      color: #000;
      font-size: 12px;
      text-align: center;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
  }

  // 卡片内容区域
  .pisell-lowcode-card-body {
    padding: 0;
  }
}

// 二维码模态框
.pisell-qrcode-modal {
  .pisell-qrcode-modal-content {
    pointer-events: auto;
    touch-action: none;
    overscroll-behavior: none;
    position: relative;
    z-index: 1001;
    width: 100%;

    .pisell-wallet-card-code {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    // 二维码值
    .pisell-wallet-card-code-qrcode-value {
      color: var(--Gray-500, #667085);
      font-size: 14px;
      font-weight: 400;
      line-height: 20px;
      margin: 0 0 24px;
      text-align: center;
    }
  }
}
