// 售后归档阶段样式

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 20px;

  ion-spinner {
    --color: var(--ion-color-primary);
    transform: scale(1.5);
    margin-bottom: 16px;
  }
}

.stage-aftercare-container {
  .required {
    color: var(--ion-color-danger);
  }

  ion-card {
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    ion-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;

      ion-card-title {
        display: flex;
        align-items: center;
        gap: 8px;

        ion-icon {
          font-size: 20px;
          color: var(--ion-color-primary);
        }
      }
    }
  }

  .payment-card {
    .payment-summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 16px;

      .summary-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;

        .label {
          font-size: 12px;
          color: var(--ion-color-medium);
        }

        .value {
          font-size: 18px;
          font-weight: 700;
          color: var(--ion-color-dark);

          &.success {
            color: var(--ion-color-success);
          }

          &.warning {
            color: var(--ion-color-warning);
          }
        }
      }
    }

    ion-progress-bar {
      height: 6px;
      border-radius: 3px;
      margin-bottom: 20px;
    }

    .vouchers-section {
      margin-top: 20px;

      h4 {
        margin: 0 0 12px;
        font-size: 14px;
        font-weight: 600;
      }

      ion-thumbnail {
        width: 60px;
        height: 60px;
      }
    }
  }

  .feedback-card {
    .feedback-form {
      .rating-section {
        margin-bottom: 20px;

        label {
          display: block;
          margin-bottom: 8px;
          font-size: 14px;
          font-weight: 500;
          color: var(--ion-color-dark);
        }

        .stars {
          display: flex;
          gap: 4px;

          ion-icon {
            font-size: 32px;
            color: var(--ion-color-light-shade);
            cursor: pointer;
            transition: all 0.2s;

            &.active {
              color: var(--ion-color-warning);
            }

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

      ion-item {
        --background: var(--ion-color-light);
        border-radius: 8px;
        margin-bottom: 12px;
      }
    }

    .feedback-result {
      text-align: center;

      .rating-display {
        margin-bottom: 20px;

        .stars-large {
          display: flex;
          justify-content: center;
          gap: 8px;
          margin-bottom: 12px;

          ion-icon {
            font-size: 40px;

            &.active {
              color: var(--ion-color-warning);
            }
          }
        }

        .rating-text {
          font-size: 24px;
          font-weight: 700;
          color: var(--ion-color-dark);
          margin: 0;
        }
      }

      .comment-box {
        padding: 16px;
        background-color: var(--ion-color-light);
        border-radius: 8px;
        margin-bottom: 16px;

        p {
          margin: 0;
          line-height: 1.6;
          color: var(--ion-color-medium);
        }
      }
    }
  }

  .retrospective-card {
    .empty-state {
      text-align: center;
      padding: 40px 20px;

      ion-icon {
        font-size: 64px;
        color: var(--ion-color-medium);
        margin-bottom: 16px;
      }

      p {
        color: var(--ion-color-medium);
        margin-bottom: 16px;
      }
    }

    .retrospective-content {
      .summary {
        padding: 16px;
        background-color: var(--ion-color-light);
        border-radius: 8px;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.6;
        color: var(--ion-color-dark);
      }

      .section {
        margin-bottom: 20px;

        h4 {
          display: flex;
          align-items: center;
          gap: 8px;
          margin: 0 0 12px;
          font-size: 15px;
          font-weight: 600;
          color: var(--ion-color-dark);

          ion-icon {
            font-size: 20px;
            color: var(--ion-color-primary);
          }
        }

        ul {
          margin: 0;
          padding-left: 20px;

          li {
            margin-bottom: 8px;
            font-size: 13px;
            line-height: 1.5;
            color: var(--ion-color-medium);
          }
        }
      }
    }
  }

  .archive-card {
    .archive-checklist {
      margin-bottom: 20px;

      h3 {
        margin: 0 0 16px;
        font-size: 16px;
        font-weight: 600;
        color: var(--ion-color-dark);
      }

      ion-list {
        background: var(--ion-color-light);
        border-radius: 8px;
        padding: 8px;

        ion-item {
          --padding-start: 8px;

          ion-icon[slot="start"] {
            font-size: 24px;
            margin-right: 12px;
          }
        }
      }
    }
  }

  .archived-card {
    background: linear-gradient(135deg, var(--ion-color-success-tint), var(--ion-color-success-shade));
    color: white;

    .archived-status {
      text-align: center;
      padding: 20px;

      ion-icon {
        font-size: 64px;
        margin-bottom: 16px;
      }

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

      p {
        margin: 4px 0;
        font-size: 14px;
        opacity: 0.9;
      }
    }
  }
}
