:root {
  --g: #17684a;
  --ink: #17231e;
  --muted: #748079;
  --line: #e3e9e5;
  --soft: #edf5f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  color: var(--ink);
}
button,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
header {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fffc;
  backdrop-filter: blur(12px);
  z-index: 10;
}
.brand {
  border: 0;
  background: none;
  font-size: 19px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand i,
.tutor-head i,
.ai i {
  background: var(--g);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
}
header nav {
  display: flex;
  gap: 28px;
  margin-left: 65px;
}
header nav button {
  border: 0;
  background: none;
  font-size: 13px;
}
.coins {
  margin-left: auto;
  border: 1px solid #d8e5dd;
  background: #f2f8f4;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 11px;
  color: var(--g);
}
.avatar {
  margin-left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #d6ad94;
  color: #fff;
  display: grid;
  place-items: center;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.hero {
  min-height: 600px;
  background: radial-gradient(circle at 80% 35%, #dcece2, transparent 28%), #f7f9f5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8%;
  padding: 65px 7%;
}
.hero em,
.title em,
.dash-title em,
.how > em,
.lesson-copy em,
.modal em {
  font-style: normal;
  color: var(--g);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: -2px;
}
.hero h1 b {
  color: var(--g);
}
.hero > div > p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 570px;
}
.primary {
  border: 0;
  background: var(--g);
  color: #fff;
  padding: 12px 19px;
  border-radius: 9px;
  font-size: 12px;
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
  padding: 11px 18px;
  border-radius: 9px;
  margin: 25px 10px;
}
.hero small {
  display: block;
  color: var(--muted);
}
.demo {
  position: relative;
}
.screen {
  background: #fff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 25px 55px #264c3730;
}
.screen > span {
  font-size: 11px;
  font-weight: bold;
}
.screen > div {
  height: 280px;
  background: #153c2e;
  color: #fff;
  border-radius: 10px;
  margin-top: 12px;
  position: relative;
  padding: 40px;
}
.screen div b {
  font-family: serif;
  font-size: 25px;
}
.screen strong {
  display: block;
  text-align: center;
  font-size: 110px;
  color: #dea65e;
  font-weight: normal;
}
.screen button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--g);
}
.demo aside {
  position: absolute;
  right: -20px;
  bottom: -55px;
  background: #fff;
  width: 280px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 15px 40px #264c3730;
  display: flex;
  gap: 10px;
}
.demo aside i {
  background: var(--g);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
}
.demo aside p {
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.wrap {
  max-width: 1350px;
  margin: auto;
  padding: 65px 6%;
}
.title,
.dash-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.title h2,
.dash-title h1 {
  margin: 7px 0;
  font-size: 28px;
}
.filters button {
  border: 0;
  background: none;
  padding: 7px 12px;
  border-radius: 16px;
  font-size: 11px;
}
.filters .on {
  background: var(--soft);
  color: var(--g);
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.course-grid article {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: 0.2s;
}
.course-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px #1b462d18;
}
.card-cover {
  height: 165px;
  color: #fff;
  position: relative;
  display: grid;
  place-items: center;
}
.card-cover.math {
  background: #a95f37;
}
.card-cover.physics {
  background: #3c657e;
}
.card-cover.english {
  background: #665984;
}
.card-cover.code {
  background: #39715b;
}
.card-cover span {
  position: absolute;
  top: 13px;
  left: 13px;
  font-size: 9px;
}
.card-cover b {
  font-size: 34px;
}
.card-cover button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.card-copy {
  padding: 15px;
}
.card-copy small {
  font-size: 9px;
  color: var(--g);
}
.card-copy h3 {
  font-size: 14px;
  height: 40px;
}
.card-copy p {
  font-size: 9px;
  color: var(--muted);
}
.card-copy > b {
  color: #bd5d32;
  font-size: 18px;
}
.card-copy em {
  float: right;
  font-size: 8px;
  color: var(--g);
  font-style: normal;
}
.how {
  text-align: center;
  background: #f5f7f4;
  padding: 65px 8%;
}
.how > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 30px auto;
}
.how article {
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}
.how article i {
  float: right;
  color: #dfe5e1;
  font-size: 25px;
}
.how article b {
  display: block;
}
.how article p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.dash-title p {
  color: var(--muted);
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 32px 0;
}
.stats article {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stats b {
  font-size: 23px;
  color: var(--ink);
}
.stats small {
  font-size: 9px;
}
.stats em {
  color: #318966;
  font-style: normal;
}
.stats button {
  border: 0;
  background: none;
  color: var(--g);
  text-align: left;
  padding: 0;
}
.continue {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px;
  display: grid;
  grid-template-columns: 250px 1fr 220px;
  gap: 25px;
}
.continue .cover {
  background: #9d5735;
  height: 180px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.cover button {
  border: 0;
  border-radius: 50%;
  width: 45px;
  height: 45px;
}
.continue p,
.continue small {
  color: var(--muted);
  font-size: 9px;
}
.progress {
  height: 5px;
  background: #e8ece9;
  margin: 24px 0 7px;
}
.progress i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--g);
}
.continue aside {
  background: #f2f7f4;
  padding: 17px;
  border-radius: 9px;
  font-size: 10px;
}
.classroom.active {
  height: calc(100vh - 68px);
  overflow: hidden;
}
.classbar {
  height: 54px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  gap: 35px;
  border-bottom: 1px solid var(--line);
}
.classbar button {
  border: 0;
  background: none;
  color: var(--muted);
}
.classbar span {
  font-size: 10px;
  color: var(--muted);
}
.classgrid {
  display: grid;
  grid-template-columns: 1fr 370px;
  height: calc(100% - 54px);
}
.lesson {
  background: #f7f8f6;
  overflow: auto;
}
.video {
  margin: 18px 5% 0;
  background: #173b2e;
  color: #fff;
  height: 50vh;
  min-height: 330px;
  padding: 45px;
  position: relative;
}
.video small {
  color: #dda15b;
}
.video strong {
  font-size: 110px;
  color: #dda15b;
  position: absolute;
  right: 15%;
  bottom: 10%;
}
.video button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
}
.controls {
  height: 42px;
  background: #0e1915;
  color: #fff;
  margin: 0 5%;
  padding: 13px;
  font-size: 9px;
  display: flex;
}
.controls i {
  height: 3px;
  background: #52615a;
  flex: 1;
  margin: 5px 20px;
}
.controls i b {
  display: block;
  width: 34%;
  height: 100%;
  background: #dfa05a;
}
.tabs,
.lesson-copy {
  background: #fff;
  padding: 18px 6%;
  font-size: 10px;
}
.lesson-copy {
  margin-top: 1px;
}
.lesson-copy p {
  color: var(--muted);
  font-size: 11px;
}
.tutor {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tutor-head {
  height: 60px;
  padding: 12px 15px;
  display: flex;
  gap: 9px;
}
.tutor-head i,
.ai i {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.tutor-head p {
  margin: 0;
  font-size: 11px;
}
.tutor-head small {
  display: block;
  color: var(--g);
  font-size: 8px;
}
.context {
  margin: 8px 14px;
  background: #f3f6f3;
  padding: 10px;
  border-radius: 7px;
  font-size: 8px;
}
.chat {
  padding: 14px;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ai {
  display: flex;
  gap: 8px;
  max-width: 92%;
}
.ai p {
  background: #f1f4f1;
  padding: 10px;
  border-radius: 3px 9px 9px;
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
}
.me {
  align-self: flex-end;
  background: var(--g);
  color: #fff;
  padding: 10px;
  border-radius: 9px 3px 9px 9px;
  font-size: 10px;
  max-width: 80%;
  line-height: 1.5;
}
.diagnose {
  background: #fff8ee;
  border: 1px solid #ead9c1;
  color: #a96a32;
  padding: 9px;
  font-size: 8px;
  border-radius: 7px;
}
.tutor form {
  border-top: 1px solid var(--line);
  padding: 10px;
}
.tutor form > div button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--g);
  border-radius: 12px;
  font-size: 8px;
  padding: 4px 7px;
}
.tutor textarea {
  width: 100%;
  height: 50px;
  border: 0;
  resize: none;
  outline: 0;
  padding-top: 10px;
}
.tutor form small {
  font-size: 7px;
  color: var(--muted);
}
.send {
  float: right;
  border: 0;
  background: var(--g);
  color: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
}
.tutor footer {
  text-align: center;
  background: #f6f8f6;
  font-size: 8px;
  padding: 7px;
}
.tutor footer button {
  border: 0;
  background: none;
  color: var(--g);
}
.wallet > button {
  border: 0;
  background: none;
}
.balance {
  background: linear-gradient(120deg, #173a2d, #317059);
  color: #fff;
  margin: 25px 0;
  padding: 28px;
  border-radius: 16px;
  display: flex;
  gap: 20px;
}
.balance > b {
  font-size: 28px;
  color: #e4b36b;
}
.balance h1 {
  font-size: 38px;
  margin: 5px 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.plans button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.plans button b {
  font-size: 22px;
}
.plans button small {
  color: #b46b36;
}
.plans .selected {
  border: 2px solid var(--g);
}
.plans i {
  position: absolute;
  top: -10px;
  left: 25%;
  background: var(--g);
  color: #fff;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 8px;
  font-style: normal;
}
.pay {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 25px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 25px;
  align-items: center;
}
.pay > p {
  grid-column: 1/-1;
  font-size: 8px;
  color: var(--muted);
}
.pay > b {
  font-size: 22px;
  color: #bd5d32;
}
.teacher {
  display: grid !important;
  grid-template-columns: 210px 1fr;
  min-height: calc(100vh - 68px);
}
.teacher:not(.active) {
  display: none !important;
}
.teacher > aside {
  background: #f2f5f2;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.teacher-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--g);
  color: #fff;
  display: grid;
  place-items: center;
}
.teacher > aside > b {
  margin: 9px 0 3px;
}
.teacher > aside small {
  color: var(--g);
  font-size: 8px;
}
.teacher > aside nav {
  line-height: 4;
  width: 100%;
  margin-top: 30px;
  font-size: 10px;
}
.teacher > aside button {
  margin-top: auto;
  border: 0;
  background: none;
}
.teacher-main {
  padding: 40px 4%;
}
.teacher-panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
}
.teacher-panels > section {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
}
.row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.row > i {
  width: 45px;
  height: 38px;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-style: normal;
}
.row p {
  display: flex;
  flex-direction: column;
  font-size: 9px;
}
.row small {
  color: var(--muted);
  margin-top: 4px;
}
.row > em {
  font-size: 7px;
  background: var(--soft);
  color: var(--g);
  font-style: normal;
}
.row strong {
  font-size: 9px;
}
.live {
  background: #39715b !important;
}
.donut {
  margin: auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--g) 70%, #e1a05e 0);
  display: grid;
  place-items: center;
}
.donut:before {
  content: '';
  background: #fff;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  position: absolute;
}
.donut span {
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.split > p {
  font-size: 8px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #10251dbb;
  z-index: 20;
  place-items: center;
}
.modal.show {
  display: grid;
}
.modal > div {
  background: #fff;
  width: min(460px, 90%);
  padding: 30px;
  border-radius: 15px;
  position: relative;
}
.modal > div > button:first-child {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 20px;
}
.modal p,
.modal li {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.modal li {
  display: inline-block;
  width: 48%;
  color: var(--g);
}
#modalPrice {
  color: #bd5d32;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #173b2e;
  color: #fff;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 10px;
  opacity: 0;
  z-index: 30;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .classgrid {
    grid-template-columns: 1fr 340px;
  }
  .teacher-panels {
    grid-template-columns: 1fr;
  }
  .continue {
    grid-template-columns: 180px 1fr;
  }
  .continue aside {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    padding: 0 15px;
  }
  header nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #fff;
    margin: 0;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--line);
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 45px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .demo {
    display: none;
  }
  .course-grid,
  .how > div {
    grid-template-columns: 1fr;
  }
  .title {
    display: block;
  }
  .filters {
    overflow: auto;
    white-space: nowrap;
  }
  .continue {
    grid-template-columns: 1fr;
  }
  .classroom.active {
    height: auto;
    overflow: auto;
  }
  .classgrid {
    display: block;
  }
  .lesson {
    overflow: visible;
  }
  .tutor {
    height: 650px;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .pay {
    grid-template-columns: 1fr auto;
  }
  .pay .primary {
    grid-column: 1/-1;
  }
  .teacher {
    display: block !important;
  }
  .teacher:not(.active) {
    display: none !important;
  }
  .teacher > aside {
    display: none;
  }
  .teacher-main {
    padding: 30px 16px 80px;
  }
  .row {
    grid-template-columns: 45px 1fr auto;
  }
  .row strong {
    display: none;
  }
  .hero small {
    line-height: 2;
  }
  .classbar span {
    display: none;
  }
}
