.container {
  background: linear-gradient(180deg, #f8f9fa 0%, #f5f5f5 100%);
  min-height: 100vh;
  padding-bottom: 20px;
}

// 头部标题样式
.headerTitle {
  text-align: center;
}

.mainTitle {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.2;
}

.subTitle {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
  margin-top: 2px;
}

// 标签页容器
.tabsContainer {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tabs {
  :global(.adm-tabs-header) {
    border-bottom: none;
  }

  :global(.adm-tabs-tab) {
    padding: 14px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  :global(.adm-tabs-tab-active) {
    color: #1890ff;
    font-weight: 600;
  }
}

.tabTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.tabIcon {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.tabs :global(.adm-tabs-tab-active) .tabIcon {
  transform: scale(1.1);
}

// 统计卡片
.statsCards {
  display: flex;
  gap: 14px;
  padding: 20px 16px;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.statCard {
  flex: 1;
  min-width: 110px;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(20px, -20px);
  }
}

.statHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.statIcon {
  font-size: 28px;
  color: #fff;
  opacity: 0.95;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;

  .statCard:hover & {
    transform: scale(1.1);
  }
}

.blueCard {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  color: #fff;

  &::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  }
}

.greenCard {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  color: #fff;

  &::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  }
}

.purpleCard {
  background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
  color: #fff;

  &::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  }
}

.statLabel {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.statValue {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.2;
  margin: 8px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.statChange {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  margin-top: auto;
  position: relative;
  z-index: 1;
  font-weight: 500;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

// 搜索栏
.searchBar {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 50px;
  z-index: 9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

  :global(.ant-input) {
    border-radius: 12px;
    height: 44px;
    padding-left: 40px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    font-size: 14px;

    &:focus,
    &:hover {
      border-color: #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    }
  }

  :global(.ant-input-prefix) {
    left: 14px;
    color: #999;
    font-size: 16px;
  }
}

// 渠道列表
.channelList {
  padding: 16px;
  background: transparent;
}

.channelCard {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(24, 144, 255, 0.2);
  }

  &:active {
    transform: translateY(0);
  }
}

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

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

.channelName {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.disabledBadge {
  display: inline-block;
  padding: 2px 8px;
  background: #fff2f0;
  color: #ff4d4f;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
  border: 1px solid rgba(255, 77, 79, 0.2);
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.createType {
  padding: 5px 12px;
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
  color: #1890ff;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(24, 144, 255, 0.2);
  border: 1px solid rgba(24, 144, 255, 0.1);
}

.moreButton {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  transition: all 0.2s ease;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  &:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1890ff;
  }

  &:active {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(0.95);
  }
}

// Dropdown菜单样式优化
:global {
  .ant-dropdown {
    // 防止下拉菜单触发父元素点击
    pointer-events: auto;
  }

  .ant-dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px;
    min-width: 140px;
    pointer-events: auto;

    .ant-dropdown-menu-item {
      padding: 10px 16px;
      font-size: 14px;
      border-radius: 8px;
      margin: 2px 0;
      transition: all 0.2s ease;
      cursor: pointer;

      &:hover {
        background: rgba(24, 144, 255, 0.08);
      }

      &.ant-dropdown-menu-item-danger {
        color: #ff4d4f;

        &:hover {
          background: rgba(255, 77, 79, 0.08);
        }
      }

      .anticon {
        margin-right: 8px;
        font-size: 14px;
      }
    }
  }
}

.channelInfo {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.infoItem {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
  position: relative;
  padding: 6px 0;
  transition: all 0.2s ease;

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

  &:hover {
    background: rgba(24, 144, 255, 0.02);
    border-radius: 6px;
    padding-left: 6px;
    padding-right: 6px;
    margin-left: -6px;
    margin-right: -6px;
  }
}

.infoIcon {
  font-size: 15px;
  color: #999;
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.infoLabel {
  color: #666;
  margin-right: 10px;
  min-width: 65px;
  font-weight: 500;
}

.infoValue {
  color: #222;
  flex: 1;
  font-weight: 500;
}


.channelStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.statItem {
  flex: 1;
  text-align: left;
  padding: 10px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 10px;
  transition: all 0.3s ease;

  &:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    transform: translateY(-1px);
  }
}

.statItem .statLabel {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  text-align: left;
  font-weight: 500;
}

.statItem .statValue {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.blueText {
  color: #1890ff;
}

.greenText {
  color: #52c41a;
}

.purpleText {
  color: #722ed1;
}

.orangeText {
  color: #fa8c16;
}

// 渠道登录入口卡片
.loginEntryCard {
  margin: 16px 16px 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e5e6eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loginEntryHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loginEntryTitle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.loginEntryDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1890ff;
}

.loginEntryText {
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
}

.loginEntryTypeTabs {
  display: flex;
  gap: 4px;
  background: #edf2ff;
  padding: 2px;
  border-radius: 999px;
}

.loginEntryTypeTab {
  border: none;
  outline: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;

  &.active {
    background: #ffffff;
    color: #1890ff;
    box-shadow: 0 1px 4px rgba(24, 144, 255, 0.2);
  }
}

.loginEntryContent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.loginEntryDesc {
  font-size: 12px;
  color: #6b7280;
  max-width: 70%;
}

// 登录二维码弹窗
.loginQrDialog {
  padding: 16px 16px 24px;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

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

  h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
  }
}

.loginQrTypeSelector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.loginQrContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loginQrLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
  font-size: 14px;
  color: #6b7280;
}

.loginQrImage {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid #e5e6eb;
  padding: 8px;
  background: #fff;
}

.loginQrLinkSection {
  width: 100%;
  margin-top: 8px;
}

.loginQrLinkLabel {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
}

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

.loginQrLinkInput {
  font-size: 12px;
}

.loginQrError {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  font-size: 14px;
  color: #9ca3af;
}

// 加载和空状态
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  &::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #1890ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  &::before {
    content: "📭";
    font-size: 48px;
    opacity: 0.5;
  }
}

.placeholderContent {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

// 资金统计卡片
.fundStatsCards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 16px;
  background: transparent;
}

.fundStatCard {
  border-radius: 16px;
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(30px, -30px);
  }
}

.fullWidth {
  width: 100%;
}

.halfWidth {
  flex: 1;
  min-width: calc(50% - 7px);
}

.fundStatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.fundStatIcon {
  font-size: 28px;
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.fundStatLabel {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.fundStatValue {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.orangeCard {
  background: linear-gradient(135deg, #fa8c16 0%, #d46b08 100%);
  color: #fff;

  &::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  }
}

// 渠道收益明细
.earningsSection {
  padding: 16px;
  background: transparent;
}

.sectionTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 2px solid #f0f0f0;
}

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

.earningsList {
  margin-top: 8px;
}

.earningsCard {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

.earningsHeader {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
}

.earningsName {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.earningsCode {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 4px;
  display: inline-block;
}

.earningsStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.earningsStatItem {
  padding: 14px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

.earningsStatLabel {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.earningsStatValue {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.lightBlue {
  background: #e6f7ff;
  .earningsStatValue {
    color: #1890ff;
  }
}

.lightGreen {
  background: #f6ffed;
  .earningsStatValue {
    color: #52c41a;
  }
}

.lightGrey {
  background: #f5f5f5;
  .earningsStatValue {
    color: #666;
  }
}

.lightOrange {
  background: #fff7e6;
  .earningsStatValue {
    color: #fa8c16;
  }
}

// 提现审核
.filterPanel {
  background: #fff;
  padding: 18px;
  margin: 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;

  &:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

.filterTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.filterIcon {
  font-size: 18px;
  color: #fa8c16;
}

.filterContent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filterItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filterLabel {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
}

.filterSelect,
.filterInput {
  width: 100%;
}

.filterSelect {
  :global(.ant-select-selector) {
    border-radius: 10px;
    height: 44px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;

    &:hover {
      border-color: #1890ff;
    }
  }

  :global(.ant-select-focused .ant-select-selector) {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }
}

.filterInput {
  :global(.ant-input) {
    border-radius: 10px;
    height: 44px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    font-size: 14px;

    &:focus,
    &:hover {
      border-color: #1890ff;
      box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
    }
  }
}

.withdrawalList {
  padding: 16px;
  background: transparent;
}

.withdrawalCard {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

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

.withdrawalName {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.2px;
}

.statusBadge {
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.statusPending {
  background: #fff7e6;
  color: #fa8c16;
}

.statusApproved {
  background: #e6f7ff;
  color: #1890ff;
}

.statusRejected {
  background: #fff2f0;
  color: #ff4d4f;
}

.statusPaid {
  background: #f6ffed;
  color: #52c41a;
}

.withdrawalAmount {
  font-size: 32px;
  font-weight: 700;
  color: #fa8c16;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(250, 140, 22, 0.1);
}

.withdrawalInfo {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.withdrawalActions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.rejectBtn,
.approveBtn,
.paidBtn {
  flex: 1;
  height: 44px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  &:active {
    transform: translateY(0);
  }
}

.approveBtn {
  background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
  border-color: #52c41a;

  &:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
  }
}

.paidBtn {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-color: #1890ff;

  &:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
  }
}

// 响应式
@media (max-width: 375px) {
  .statsCards {
    gap: 10px;
    padding: 16px 12px;
  }

  .statCard {
    padding: 14px;
    min-height: 110px;
  }

  .statIcon {
    font-size: 24px;
  }

  .statValue {
    font-size: 28px;
  }

  .channelCard {
    padding: 14px;
  }

  .fundStatCard {
    padding: 16px;
  }

  .withdrawalCard {
    padding: 14px;
  }
}
