.invoice-page {
  min-height: 100vh;
  background: #f5f5f5;
}

// 可开票金额卡片
.invoiceable-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1890ff, #52c41a);
  color: #fff;

  .card-info {
    .label {
      display: block;
      font-size: 26px;
      opacity: 0.9;
      margin-bottom: 8px;
    }

    .amount {
      font-size: 48px;
      font-weight: 600;
    }
  }
}

// 统计栏
.stats-bar {
  display: flex;
  background: #fff;
  padding: 24px;
  gap: 32px;

  .stat-item {
    text-align: center;

    .stat-num {
      display: block;
      font-size: 36px;
      font-weight: 600;
      color: #333;

      &.success {
        color: #4CAF50;
      }
    }

    .stat-label {
      font-size: 24px;
      color: #999;
    }
  }
}

// 发票列表
.invoice-list {
  height: calc(100vh - 380px);
  padding: 24px;
}

.invoice-item {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

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

    .invoice-no {
      font-size: 30px;
      font-weight: 600;
      color: #333;
    }
  }

  .invoice-info {
    .info-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;

      .label {
        font-size: 26px;
        color: #999;
      }

      .value {
        font-size: 26px;
        color: #666;

        &.amount {
          color: #F44336;
          font-weight: 500;
        }
      }
    }
  }

  .invoice-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
  }

  .express-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 26px;
    color: #2196F3;

    .iconfont {
      font-size: 28px;
    }
  }
}

.loading-wrap,
.empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;

  .iconfont {
    font-size: 96px;
    color: #ccc;
    margin-bottom: 24px;
  }

  .loading-text,
  .empty-text {
    font-size: 28px;
    color: #999;
  }
}

.loading-more {
  display: flex;
  justify-content: center;
  padding: 24px;
}

.no-more {
  text-align: center;
  padding: 24px;
  font-size: 24px;
  color: #999;
}

// 申请发票弹窗
.apply-modal-content {
  .modal-section {
    margin-bottom: 24px;

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

    .section-label {
      display: block;
      font-size: 28px;
      font-weight: 500;
      color: #333;
      margin-bottom: 16px;
    }
  }

  .title-list {
    .title-item {
      padding: 16px;
      background: #f5f5f5;
      border-radius: 8px;
      margin-bottom: 12px;
      border: 2px solid transparent;

      &.active {
        background: rgba(24, 144, 255, 0.1);
        border-color: #1890ff;
      }

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

        .title-name {
          font-size: 28px;
          color: #333;
        }
      }

      .title-tax {
        font-size: 22px;
        color: #999;
      }
    }
  }

  .empty-titles {
    text-align: center;
    padding: 24px;
    color: #999;

    text {
      display: block;
      margin-bottom: 16px;
    }
  }

  .amount-input {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;

    .currency {
      font-size: 36px;
      font-weight: 600;
      color: #333;
      margin-right: 8px;
    }

    .input {
      flex: 1;
      font-size: 36px;
      font-weight: 600;
    }
  }

  .amount-hint {
    font-size: 22px;
    color: #999;
    margin-top: 8px;
  }
}
