<template>
  <div class="wrapper">
    <header class="header">
      <div class="header-logo">
        <a :href="url"><img src="https://zws-imgs-pub.ezijing.com/pc/base/logo.svg" height="50" /></a>
      </div>
      <div class="header-title">清控紫荆课堂</div>
    </header>
    <section class="main">
      <router-view></router-view>
    </section>
    <footer class="footer">
      <p class="t1">
        学习平台服务电话：010-62793299
        <br />服务时间：9:00-18:00
      </p>
      <p class="t2">
        Copyright © 2026 Zijing Education. All rights reserved.
        <br />清控紫荆（北京）教育科技股份有限公司 京ICP证150431号 京公网安备 11010802023681号
      </p>
    </footer>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: import.meta.env.VITE_ENTERPRISE_URL,
    }
  },
}
</script>

<style lang="scss" scoped>
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.header {
  height: 100px;
  padding: 30px 0 20px;
  text-align: center;
}
.header-title {
  margin-top: 5px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 5px;
}
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #981838;
  padding: 40px 20px;
}
.footer {
  padding: 20px 10px;
  text-align: center;
  .t1 {
    color: #535353;
  }
  .t2 {
    margin-top: 10px;
    color: #898989;
  }
}
</style>
