<template>
  <div class="page-container">
    <support-tabs />
    <div class="page-content">
      <div class="page-header">
        <h1 class="page-title">{{ $t('navigation.support') }}</h1>
        <el-breadcrumb class="breadcrumb" separator="/">
          <el-breadcrumb-item class="text-md opacity-50">
            <NuxtLink :to="$localePath('/')">{{
              $t('navigation.home')
            }}</NuxtLink>
          </el-breadcrumb-item>
          <el-breadcrumb-item class="text-md opacity-50">
            <NuxtLink :to="$localePath('/support')">{{
              $t('navigation.support')
            }}</NuxtLink>
          </el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <section style="margin-bottom: 2rem">
        <p>
          金申机械制造有限公司致力于为客户提供优质的产品与服务。针对纸管机、分纸机、纸吸管等产品，我们提供全方位的售后服务，确保客户能够安心地使用我们的产品。
        </p>
      </section>
      <div class="card-group">
        <el-card class="card">
          <el-row>
            <el-col :span="6">
              <el-icon class="card-icon" size="80">
                <ElIconQuestionFilled />
              </el-icon>
            </el-col>
            <el-col :span="18">
              <div class="card-title">
                <span>{{ $t('navigation.faq') }}</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <div class="card-content">
              <p>我们为用户整理了常见问题的答案，帮助您快速解决疑惑。</p>
            </div>
          </el-row>
          <el-row>
            <NuxtLink class="card-link" :to="$localePath('/support/faq')">
              <el-button class="card-button" round>
                <span>了解更多 > </span>
              </el-button>
            </NuxtLink>
          </el-row>
        </el-card>
        <el-card class="card">
          <el-row>
            <el-col :span="6">
              <el-icon class="card-icon" size="80">
                <ElIconDocumentChecked />
              </el-icon>
            </el-col>
            <el-col :span="18">
              <div class="card-title">
                <span>{{ $t('navigation.documents') }}</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <div class="card-content">
              <p>我们为用户整理了常见问题的答案，为您快速解决疑惑。</p>
            </div>
          </el-row>
          <el-row>
            <NuxtLink class="card-link" :to="$localePath('/support/documents')">
              <el-button class="card-button" round>
                <span>了解更多 > </span>
              </el-button>
            </NuxtLink>
          </el-row>
        </el-card>
        <el-card class="card">
          <el-row>
            <el-col :span="6">
              <el-icon class="card-icon" size="80">
                <ElIconService />
              </el-icon>
            </el-col>
            <el-col :span="18">
              <div class="card-title">
                <span>{{ $t('navigation.contact-info') }}</span>
              </div>
            </el-col>
          </el-row>
          <el-row>
            <div class="card-content">
              <p>通过电话、邮箱联系我们，我们将现场为您服务。</p>
            </div>
          </el-row>
          <el-row>
            <NuxtLink
              class="card-link"
              :to="$localePath('/support/contact-us')"
            >
              <el-button class="card-button" round>
                <span>了解更多 > </span>
              </el-button>
            </NuxtLink>
          </el-row>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
  .page-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .page-header {
    display: flex;
  }

  .page-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--el-color-primary);
    margin-bottom: 1rem;
  }

  .breadcrumb {
    margin-left: auto;
  }

  .page-content {
    padding: 1rem 2rem 2rem;
  }

  section {
    line-height: 1.6;
    width: 60%;
  }

  .card-group {
    display: flex;
    gap: 50px;
    justify-content: space-around;
    margin-bottom: 2rem;
  }

  .el-card {
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border-radius: 8px;
  }

  .card-icon {
    color: var(--el-color-primary);
  }

  .card-title {
    display: flex;
    height: 100%;
    align-items: center;
    margin-left: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--el-color-primary);
  }

  .card-link {
    margin-left: auto;
  }

  .card-button {
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    color: var(--el-color-primary);
    transition: all 0.3s ease;
  }

  .button-group {
    display: flex;
    justify-content: left;
    margin-top: 2rem;
    margin-left: 2rem;
    gap: 20px;
  }

  .el-row {
    margin-bottom: 20px;
  }

  .el-row:last-child {
    margin-bottom: 0;
  }

  .el-col {
    border-radius: 4px;
  }

  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
</style>
