<script setup>
const { locale } = useI18n()

const items = [
  {
    name: '院校客户',
    href: '/#school',
    items: [
      {
        name: 'AI教学基础设施',
        href: '/ai',
      },
      {
        name: 'AI专业建设中心',
        href: '/platform',
      },
      {
        name: '解决方案中心',
        href: 'solution/ai',
      },
      // {
      //   name: '职业技能中心',
      //   href: '/certificate',
      // },
      {
        name: '学习服务中心',
        href: 'https://saas-learn.ezijing.com',
      },
    ],
  },
  {
    name: '个人客户',
    href: '/#personal',
    items: [
      {
        name: '国际留学',
        href: '/studyAbroad',
      },
      {
        name: '国际学位',
        href: '/internationalDegree',
      },
      {
        name: '职业技能',
        href: 'https://eec.ezijing.com',
      },
      {
        name: '就业服务',
        href: '/job',
      },
    ],
  },

  {
    name: '政企客户',
    href: '/#enterprise',
    items: [
      {
        name: '教育部',
        href: 'http://www.moe.gov.cn',
      },
      {
        name: '人社部',
        href: 'https://www.mohrss.gov.cn',
      },
      {
        name: '工信部',
        href: 'https://www.miit.gov.cn',
      },
      {
        name: '中华全国供销合作总社',
        href: 'https://www.chinacoop.gov.cn',
      },
      {
        name: '广播电视总局',
        href: 'https://www.nrta.gov.cn',
      },
      {
        name: '国家新闻出版署',
        href: 'https://www.nppa.gov.cn',
      },
    ],
  },
  // {
  //   name: '申请试用',
  // },
]
</script>

<template>
  <div class="app-footer">
    <div class="app-footer-main">
      <div class="app-footer-inner">
        <div class="app-footer-left">
          <dl v-for="item in items" :key="item.name">
            <dt>{{ item.name }}</dt>
            <dd>
              <ul>
                <li v-for="subItem in item.items" :key="subItem.name">
                  <a :href="subItem.href" target="_blank">{{ subItem.name }}</a>
                </li>
              </ul>
            </dd>
          </dl>
        </div>
        <div class="app-footer-right">
          <h4>联系我们</h4>
          <div class="address">
            <dl>
              <dt><span class="label">地址</span><span class="colon">：</span></dt>
              <dd>北京市海淀区北四环西路52号方正国际大厦5层501</dd>
            </dl>
            <dl>
              <dt><span class="label">联系电话</span><span class="colon">：</span></dt>
              <dd><a href="tel:010-62793909">010-62793909</a></dd>
            </dl>
            <dl>
              <dt><span class="label">邮箱</span><span class="colon">：</span></dt>
              <dd><a href="mailto:service@ezijing.com">service@ezijing.com</a></dd>
            </dl>
          </div>
          <div class="qrcode">
            <dl>
              <dt><img src="https://webapp-pub.ezijing.com/www/pc/next/qrcode_app.png" /></dt>
              <dd>APP</dd>
            </dl>
            <dl>
              <dt><img src="https://webapp-pub.ezijing.com/project/marywood/ezijing-code.jpg" /></dt>
              <dd>微信公众号</dd>
            </dl>
            <dl>
              <dt><img src="https://webapp-pub.ezijing.com/project/marywood/ezijing_xet_x.png" /></dt>
              <dd>微信视频号</dd>
            </dl>
          </div>
        </div>
      </div>
    </div>
    <div class="copyright">
      <div class="inner">
        <p>
          {{
            locale.value === 'en-US'
              ? `Copyright © 2026 Zijing Education. All rights reserved.`
              : `Copyright © 2026 Zijing Education. All rights reserved. 清控紫荆（北京）教育科技股份有限公司`
          }}
        </p>
        <a
          target="_blank"
          href="https://tsm.miit.gov.cn/dxxzsp/"
          style="color: rgba(153, 153, 153, 1); text-decoration: none; margin-left: 10px">
          <p>
            {{ locale.value === 'en-US' ? 'Beijing ICP Certificate No.: 150431 ' : '京ICP证150431号' }}
          </p>
        </a>
        <a
          target="_blank"
          class="record"
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802023681"
          style="
            color: rgba(153, 153, 153, 1);
            text-decoration: none;
            align-items: center;
            display: flex;
            margin-right: 5px;
          ">
          <img
            src="https://zws-imgs-pub.ezijing.com/e0a0ec47dfdfc1e0797b1d5254021d00.png"
            style="width: 20px; height: 20px; margin: 0 6px; display: block" />
          <p>
            {{ locale.value === 'en-US' ? `Beijing ICP Filing No.: 15016866-1` : '安备 11010802023681号' }}
          </p>
        </a>
        <a
          target="_blank"
          href="https://beian.miit.gov.cn/#/Integrated/index"
          style="color: rgba(153, 153, 153, 1); text-decoration: none">
          <p>
            {{ locale.value === 'en-US' ? 'Beijing ICP Filing No.: 15016866-1' : '京ICP备15016866号-1' }}
          </p>
        </a>
      </div>
    </div>
  </div>
</template>

<style lang="scss">
.app-footer-main {
  background: var(--main-color);
}
.app-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
  padding: 40px 0;
  display: flex;
  gap: 120px;
  a:hover {
    color: #fff;
  }
}
.app-footer-left {
  display: flex;
  flex: 1;
  dl {
    flex: 1;
  }
  dt {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 28px;
  }
  dd {
    font-size: 14px;
    line-height: 32px;
  }
}
.app-footer-right {
  h4 {
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 28px;
  }
  .address {
    dl {
      display: flex;
      font-size: 14px;
      line-height: 32px;
    }
    dt {
      display: flex;
      .label {
        width: 70px;
        text-align-last: justify;
      }
    }
  }
  .qrcode {
    margin-top: 35px;
    display: flex;
    gap: 30px;
    dt {
      img {
        width: 120px;
        height: 120px;
      }
    }
    dd {
      margin-top: 8px;
      line-height: 1;
      text-align: center;
      color: #fff;
    }
  }
}

.copyright {
  height: 40px;
  color: rgb(47, 33, 33) !important;
  background: #fff;
  display: flex;
  align-items: center;

  .inner {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .record {
    display: flex;
  }

  p {
    font-size: 12px;
  }
}
</style>
