<template>
  <section class="backend-unavailable">
    <div class="backend-card">
      <div class="backend-badge">
        <i class="mdi mdi-server-network-off"></i>
      </div>
      <h1>后端服务不可用</h1>
      <p>{{ statusMessage }}</p>

      <div class="backend-actions">
        <button
          type="button"
          class="retry-btn"
          :disabled="retrying || backendChecking"
          @click="retry"
        >
          <i class="mdi" :class="retrying || backendChecking ? 'mdi-loading mdi-spin' : 'mdi-refresh'"></i>
          <span>{{ retrying || backendChecking ? '重新检测中...' : '重新检测后端' }}</span>
        </button>
      </div>
    </div>
  </section>
</template>

<script src="./scripts/BackendUnavailableRouteView.js"></script>

<style scoped src="../assets/styles/views/backend-unavailable-view.css"></style>
