.customer-invite-page {
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;

  .header-bg {
    background: linear-gradient(to bottom, #03605c, #18ae4f);
    width: 100%;
    top: 0;
    position: absolute;
    z-index: 0;
  }

  .tabs-container {
    position: relative;
    z-index: 10;

    .nut-tabs {
      background: transparent;

      .nut-tabs__titles {
        background: transparent;
        border: none;

        .nut-tabs__titles-item {
          color: rgba(255, 255, 255, 0.8);
          padding: 12px 16px;

          &.nut-tabs__titles-item--active {
            color: #ffffff;
            font-weight: bold;
          }
        }
      }

      .nut-tabs__line {
        background: #ffffff;
        height: 3px;
        border-radius: 2px;
      }
    }
  }

  .content-container {
    position: relative;
    z-index: 10;
    padding: 20px 16px;
    margin-top: 20px;
  }

  // 二维码标签页样式
  .qrcode-container {
    .qr-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 24px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;

      .qr-header {
        margin-bottom: 24px;

        .qr-title {
          font-weight: bold;
          color: #333;
          display: block;
          margin-bottom: 8px;
        }

        .qr-subtitle {
          color: #666;
        }
      }

      .qr-code {
        margin-bottom: 24px;

        .qr-placeholder {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          width: 280px;
          height: 280px;
          margin: 0 auto;
          border: 2px dashed #ddd;
          border-radius: 12px;
          background: #fafafa;

          .qr-text {
            margin-top: 8px;
            color: #999;
          }
        }

        .qr-loading {
          width: 160px;
          height: 160px;
          margin: 0 auto;
          display: flex;
          align-items: center;
          justify-content: center;
          background: #f5f5f5;
          border-radius: 12px;
          color: #999;
        }
      }

      .qr-actions {
        display: flex;
        justify-content: center;
        gap: 12px;

        .action-btn {
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 4px;
          padding: 8px 16px;
          border-radius: 20px;
          background: #f0f0f0;
          color: #666;
          border: none;

          &:active {
            background: #e0e0e0;
          }
        }
      }
    }

    .invite-tips {
      background: #ffffff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .tips-header {
        display: flex;
        align-items: center;
        margin-bottom: 12px;

        .tips-title {
          font-weight: bold;
          color: #333;
          margin-left: 8px;
        }
      }

      .tips-content {
        .tip-item {
          display: block;
          color: #666;
          line-height: 1.6;
          margin-bottom: 4px;

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

    .manual-invite {
      .manual-btn {
        width: 100%;
        background: #52c41a;
        color: #ffffff;
        font-weight: bold;
        border: none;
        box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
      }
    }
  }

  // 邀请记录标签页样式
  .records-container {
    .record-item {
      background: #ffffff;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .record-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;

        .user-info {
          display: flex;
          align-items: center;

          .user-name {
            font-weight: bold;
            color: #333;
            margin-left: 8px;
          }
        }
      }

      .record-details {
        .detail-item {
          display: flex;
          align-items: center;
          margin-bottom: 8px;

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

          .detail-text {
            color: #666;
            margin-left: 8px;
          }
        }
      }
    }

    .empty-records {
      text-align: center;
      padding: 60px 20px;
      color: #999;
    }
  }

  // 邀请统计标签页样式
  .stats-container {
    .stats-overview {
      display: flex;
      background: #ffffff;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .stat-item {
        flex: 1;
        text-align: center;

        .stat-number {
          display: block;
          font-weight: bold;
          color: #333;
          margin-bottom: 4px;
        }

        .stat-label {
          color: #999;
        }
      }
    }

    .reward-summary {
      margin-bottom: 16px;

      .reward-card {
        background: linear-gradient(135deg, #52c41a, #73d13d);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        color: #ffffff;

        .reward-title {
          opacity: 0.9;
          margin-bottom: 8px;
        }

        .reward-amount {
          font-weight: bold;
          margin-bottom: 16px;
        }

        .withdraw-btn {
          background: rgba(255, 255, 255, 0.2);
          color: #ffffff;
          border: 1px solid rgba(255, 255, 255, 0.3);
          border-radius: 20px;
          padding: 8px 24px;
        }
      }
    }

    .stats-chart {
      background: #ffffff;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

      .chart-title {
        font-weight: bold;
        color: #333;
        margin-bottom: 16px;
      }

      .chart-placeholder {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 8px;
        color: #999;
      }
    }
  }

  // 邀请表单弹窗样式
  .invite-form {
    padding: 20px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;

    .form-header {
      text-align: center;
      margin-bottom: 20px;

      .form-title {
        font-weight: bold;
        color: #333;
      }
    }

    .nut-form-item {
      margin-bottom: 16px;

      .nut-form-item__label {
        color: #333;
        font-weight: 500;
      }

      .nut-input {

        &::placeholder {
          color: #999;
        }
      }
    }

    .form-actions {
      display: flex;
      gap: 12px;
      margin-top: 24px;

      .cancel-btn,
      .submit-btn {
        flex: 1;
        height: 44px;
        border-radius: 22px;
        font-weight: 500;
      }

      .cancel-btn {
        background: #f5f5f5;
        color: #666;
        border: none;
      }

      .submit-btn {
        background: #52c41a;
        color: #ffffff;
        border: none;
      }
    }
  }
}

// 标签样式优化
.nut-tag {
  &.nut-tag--plain {
    border-width: 1px;
    padding: 2px 6px;

    &.nut-tag--small {
      padding: 1px 4px;
    }
  }
}

// 响应式适配
@media (max-width: 375px) {
  .customer-invite-page {
    .content-container {
      padding: 16px 12px;
    }

    .qrcode-container {
      .qr-card {
        padding: 20px;

        .qr-code {
          .qr-placeholder {
            width: 140px;
            height: 140px;
          }
        }

        .qr-actions {
          .action-btn {
            padding: 6px 12px;
          }
        }
      }
    }

    .stats-container {
      .stats-overview {
        padding: 16px;

        .stat-item {
          .stat-number {
          }
        }
      }

      .reward-summary {
        .reward-card {
          padding: 16px;

          .reward-amount {
          }
        }
      }
    }
  }
}
