<template>
  <div class="success-page">
    <!-- 顶部导航栏 -->
    <s-header :name="$t('maintenance.form.success')" :noback="true" />

    <div class="content-wrapper">
      <!-- 成功图标 -->
      <div class="success-icon-box">
        <van-icon name="checked" class="success-icon" />
      </div>

      <!-- 成功标题 -->
      <h1 class="success-title">{{ $t("maintenance.form.success") }}</h1>
    </div>
  </div>
</template>

<script>
import sHeader from "@/components/SimpleHeader";

export default {
  name: "FormSuccessPage",
  components: {
    sHeader,
  },
};
</script>

<style lang="less" scoped>
.success-page {
  min-height: 100vh;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;

  .content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .success-icon-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 50%;
    margin: 20px 0 30px;
  }

  .success-icon {
    color: white;
    font-size: 50px;
  }

  .success-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    text-align: center;
  }

  .primary-btn {
    margin-bottom: 15px;
    background: linear-gradient(to right, #3c7eff, #5b8cff);
    border: none;
    font-weight: 500;
  }

  .secondary-btn {
    color: #3c7eff;
    font-weight: 500;
    background-color: #f0f5ff;
    border: 1px solid #d0e3ff;
  }

  @media (max-width: 480px) {
    .success-icon-box {
      width: 80px;
      height: 80px;
    }

    .success-icon {
      font-size: 40px;
    }

    .success-title {
      font-size: 21px;
    }

    .success-description {
      font-size: 14px;
    }
  }
}
</style>
