/* Isolated styles: no existing project selector is changed by this file. */

.learning-system {
  --lm-ink: #172b25;
  --lm-muted: #68756f;
  --lm-line: rgba(23, 43, 37, 0.13);
  --lm-soft: #f3f7f5;
  --lm-accent: #218768;
  --lm-accent-soft: #e5f4ee;
  color: var(--lm-ink);
}

body[data-skin="studio"] .learning-system {
  --lm-ink: #f4f7f5;
  --lm-muted: #aab7b1;
  --lm-line: rgba(255, 255, 255, 0.14);
  --lm-soft: #1c2522;
  --lm-accent: #cfff35;
  --lm-accent-soft: rgba(207, 255, 53, 0.13);
}

.study-learning-method {
  margin: 0 0 16px;
}

.profile-learning-center,
.profile-learning-path,
.profile-due-review {
  width: min(100% - 32px, 1040px);
  margin: 18px auto;
  padding: 22px;
  border: 1px solid var(--lm-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(20, 45, 37, 0.06);
}

.profile-learning-center-head span,
.profile-learning-path span,
.profile-due-review span {
  color: var(--lm-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-learning-center-head h2,
.profile-learning-path h2,
.profile-due-review h2 {
  margin: 5px 0 4px;
}

.profile-learning-center-head p,
.profile-learning-path p,
.profile-due-review p {
  margin: 0 0 16px;
  color: var(--lm-muted);
}

.profile-learning-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-learning-path p,
.profile-due-review p {
  margin-bottom: 0;
}

body[data-skin="studio"] .learning-system .lm-method,
body[data-skin="studio"] .learning-system .lm-review-nav__item,
body[data-skin="studio"] .profile-learning-center,
body[data-skin="studio"] .profile-learning-path,
body[data-skin="studio"] .profile-due-review {
  background: #131a18;
}

.learning-system .lm-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.learning-system .lm-tag {
  display: inline-flex;
  min-width: 0;
  max-width: 12em;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid var(--lm-line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-system .lm-tag--main {
  border-color: transparent;
  background: var(--lm-accent);
  color: #fff;
  font-weight: 750;
}

.learning-system .lm-tag--auxiliary {
  background: var(--lm-soft);
  color: var(--lm-muted);
}

.learning-system .lm-method {
  padding: 16px;
  border: 1px solid var(--lm-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(20, 45, 37, 0.06);
}

.learning-system .lm-method__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.learning-system .lm-method__heading span {
  color: var(--lm-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.learning-system .lm-method__heading h2 {
  margin: 3px 0 0;
  font-size: 18px;
}

.learning-system .lm-method__heading > b {
  color: var(--lm-muted);
  font-size: 13px;
}

.learning-system .lm-method__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.learning-system .lm-method__step button {
  display: grid;
  width: 100%;
  min-height: 112px;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto 1fr;
  gap: 5px 7px;
  padding: 11px;
  border: 1px solid var(--lm-line);
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.learning-system .lm-method__step button > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--lm-soft);
  color: var(--lm-muted);
  font-size: 12px;
  font-weight: 800;
}

.learning-system .lm-method__step button > b {
  align-self: center;
  font-size: 13px;
}

.learning-system .lm-method__step button > small {
  grid-column: 1 / -1;
  color: var(--lm-muted);
  font-size: 11px;
  line-height: 1.45;
}

.learning-system .lm-method__step.is-active button {
  border-color: var(--lm-accent);
  background: var(--lm-accent-soft);
  box-shadow: inset 0 0 0 1px var(--lm-accent);
}

.learning-system .lm-method__step.is-active button > span,
.learning-system .lm-method__step.is-completed button > span {
  background: var(--lm-accent);
  color: #fff;
}

.learning-system .lm-review-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.learning-system .lm-review-nav__item {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lm-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.learning-system .lm-review-nav__item b {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  background: var(--lm-accent-soft);
  color: var(--lm-accent);
  font-size: 12px;
}

.learning-system .lm-review-nav__item.is-empty {
  color: var(--lm-muted);
}

@media (max-width: 760px) {
  .profile-learning-center,
  .profile-learning-path,
  .profile-due-review {
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 18px;
  }

  .profile-learning-path {
    align-items: flex-start;
    flex-direction: column;
  }
  .learning-system .lm-method {
    position: relative;
    padding: 13px;
    border-radius: 15px;
  }

  .learning-system .lm-method__steps {
    grid-template-columns: repeat(6, 132px);
    margin-right: -13px;
    padding-right: 13px;
  }

  .learning-system .lm-method::after {
    content: "左右滑动查看 6 个学习步骤  →";
    display: block;
    margin-top: 9px;
    color: var(--lm-muted);
    font-size: 11px;
    text-align: right;
  }

  .learning-system .lm-review-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-system .lm-method__steps {
    scroll-behavior: auto;
  }
}
