
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
  font-family: "Kanit", sans-serif !important;
  margin: 0;
  padding: 0;
}

hr {
  width: 100%;
  float: left;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 170, 255, 1);
}

.p {
  font-size: 13px;
  color: rgb(166, 166, 166);
  line-height: 30px;
  text-align: center;
}

.p a {
  color: #7089d0;
  /* text-decoration: none; */
}

.text {
  color: #707070;
  line-height: 30px;
  font-size: 14px;
}

.title {
  color: #5e5e5e;
}

/* 导航栏 */
.nav-bar {
  height: 50px;
  width: 100%;
  /* border: solid 1px red; */
  position: fixed;
  top: 0;
  z-index: 2;
  /* background: -webkit-linear-gradient(0deg, #cddfff 30%, #f0e1f7 100%); */
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  /* background: -webkit-linear-gradient(0deg, #06e7ff 0%, #00aaff 100%); */
}

.logo {
  height: 50px;
  background-image: url("../icon.ico");
  background-size: 40px;
  background-position: 5px 5px;
  background-repeat: no-repeat;
  background-size: auto 70%;
  background-position: 0 center;
  position: absolute;
  /* border: 1px solid red; */

  h1 {
    font-weight: 300;
    line-height: 50px;
    font-size: 18px;
    padding-left: 45px;

    a {
      color: #0055ff;
      text-decoration: none;
    }
  }
}

nav {
  height: 50px;
  display: flex;
  /* border: solid 1px #0000ff; */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: absolute;
  right: 10%;

  ul {
    list-style-type: none;
    color: #333;
    font-size: 14px;
    display: flex;

    li {
      padding: 10px 15px;
      cursor: pointer;
      color: #666;
      /* border: 1px solid red; */
    }

    .active {
      color: #0055ff;
      background-color: #e8f0ff;
      border-radius: 50px;
    }
  }
}

.dark {
  .tools {
    color: #dbdbdb;
  }

  background-color: #22202b;

  .nav-bar {
    /* background: -webkit-linear-gradient(0deg, #cddfff 30%, #f0e1f7 100%); */
    box-shadow: 0px 0px 5px rgba(199, 188, 255, 0.2);
    background-color: #22202b;
  }

  .logo {
    height: 50px;
    background-image: url("../icon1.ico");
    background-size: 40px;
    background-position: 5px 5px;
    background-repeat: no-repeat;
    background-size: auto 70%;
    background-position: 0 center;
    position: absolute;
    /* border: 1px solid red; */

    h1 {
      color: #fff;

      a {
        color: #cba0ff;
        text-decoration: none;
      }
    }
  }

  nav {
    ul {
      color: #333;

      li {
        color: #b59dda;
      }

      li.active {
        color: #c98aff;
        background-color: #3a3748;
      }
    }
  }
}

iframe {
  width: 100%;
  height: calc(100% - 50px);
  position: fixed;
  bottom: 0;
  /* height: calc(100vh - 55px); */
}

.resource {
  background-color: #fff;
}

.Welcome {
  width: 250px;
  height: 80px;
  opacity: 0;
  text-align: center;
  background-color: #bcefa9;
  transition: 600ms;
  position: fixed;
  top: 10%;
  left: 40%;
  border-radius: 5px;
  transform: translateY(-120%);
  font-size: 13px;
  user-select: none;
  pointer-events: none;
  z-index: 100;

  h2 {
    position: relative;
    top: 5px;
    line-height: 40px;
  }

  p {
    line-height: 30px;
  }
}

/* 电脑屏幕 */
@media (min-width: 576px) {
  .logo {
    left: 12%;
  }

  nav {
    width: 40%;
    right: 10%;

    ul {
      list-style-type: none;
      color: #333;
      font-size: 14px;

      li {
        cursor: pointer;
      }
    }
  }
}

/* 手机屏幕 */
@media (max-width: 577px) {
  .logo {
    left: 2%;

    span {
      display: none;
    }
  }

  nav {
    width: calc(100% - 150px);
    right: 10%;
    justify-content: right;

    ul {
      list-style-type: none;
      color: #333;
      font-size: 14px;

      li {
        cursor: pointer;
      }

      li.active {
        color: #0055ff;
        /* background-color: transparent; */
      }
    }
  }
}