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

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

  {
    name: '政企客户',
    items: [
      {
        name: '教育部',
        href: '',
      },
      {
        name: '人社部',
        href: '',
      },
      {
        name: '工信部',
        href: '',
      },
      {
        name: '中华全国供销合作总社',
        href: '',
      },
      {
        name: '国家新闻出版署',
        href: '',
      },
      {
        name: '广播电视总局',
        href: '',
      },
    ],
  },
  {
    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/project/marywood/ezijing-code.jpg" /></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: 1300px;
  margin: 0 auto;
  color: #fff;
  padding: 80px 0;
  display: flex;
  a:hover {
    color: #fff;
  }
}
.app-footer-left {
  display: flex;
  flex: 1;
  dl {
    flex: 1;
  }
  dt {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 28px;
  }
  dd {
    font-size: 18px;
    line-height: 32px;
  }
}
.app-footer-right {
  h4 {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 28px;
  }
  .address {
    dl {
      display: flex;
      font-size: 16px;
      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>
