.refund-page {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 80px;

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

    .loading-text {
      margin-top: 16px;
      color: #666;
    }
  }

  .order-info {
    background: white;
    padding: 16px 20px;
    margin-bottom: 12px;

    .order-no {
      display: block;
      color: #666;
      margin-bottom: 4px;
    }

    .order-amount {
      display: block;
      font-weight: 600;
      color: #ff6b35;
    }
  }

  .goods-section {
    background: white;
    margin-bottom: 12px;

    .section-title {
      padding: 16px 20px 0;
      font-weight: 500;
      color: #333;
    }

    .goods-item {
      padding: 16px 20px;
      border-bottom: 1px solid #f0f0f0;

      &:last-child {
        border-bottom: none;
      }

      .goods-info {
        display: flex;
        margin-bottom: 12px;

        .goods-image {
          width: 60px;
          height: 60px;
          border-radius: 6px;
          margin-right: 12px;
          flex-shrink: 0;
        }

        .goods-detail {
          flex: 1;

          .goods-name {
            display: block;
            font-weight: 500;
            color: #333;
            line-height: 1.4;
            margin-bottom: 4px;
          }

          .goods-sku {
            display: block;
            color: #999;
            margin-bottom: 4px;
          }

          .goods-price {
            display: block;
            font-weight: 600;
            color: #ff6b35;
          }
        }
      }

      .refund-control {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .control-label {
          color: #333;
        }

        .max-num {
          color: #999;
        }
      }
    }
  }

  .description-section,
  .evidence-section {
    background: white;
    margin-bottom: 8px;
    padding: 12px 20px;

    .section-title {
      font-weight: 500;
      color: #333;
      margin-bottom: 10px;
    }
  }

  .refund-amount {
    font-weight: 600;
    color: #ff6b35;
  }

  .submit-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
  }
}

/* NutUI 组件样式覆盖 */
.refund-page {
  .nut-cell-group {
    margin-bottom: 8px;

    .nut-cell-group__title {
      padding: 12px 20px 6px;
      font-weight: 500;
      color: #333;
    }

    .nut-cell {
      padding: 6px 20px;
      min-height: 40px;
    }

    // 退款原因选项特殊样式
    .reason-cell {
      padding: 4px 20px !important;
      min-height: 36px !important;
    }

    // 其他选项样式
    .option-cell {
      padding: 8px 20px !important;
      min-height: 44px !important;
    }
  }

  .nut-radio {
    .nut-radio__label {
      color: #333;
    }
  }

  .nut-checkbox {
    .nut-checkbox__label {
      color: #333;
    }
  }

  .nut-textarea {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    min-height: 80px;

    &:focus {
      border-color: #1890ff;
      background: white;
    }
  }

  .nut-uploader {
    .nut-uploader-slot {
      border: 2px dashed #e8e8e8;
      border-radius: 8px;
      background: #fafafa;

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

    .nut-uploader-preview {
      border-radius: 8px;
      overflow: hidden;
    }
  }

  .nut-inputnumber {
    .nut-inputnumber-input {
      width: 60px;
      text-align: center;
    }
  }
}

/* 适配不同屏幕尺寸 */
@media (max-width: 375px) {
  .refund-page {
    .goods-section {
      .goods-item {
        padding: 12px 16px;

        .goods-info {
          .goods-image {
            width: 50px;
            height: 50px;
          }
        }

        .refund-control {
          flex-direction: column;
          align-items: flex-start;
          gap: 8px;
        }
      }
    }

    .description-section,
    .evidence-section {
      padding: 12px 16px;
    }
  }
}
