/* 学练 · 章节入口 · MasterGo 158:4829 · 1920×1080 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000a29;
}

body {
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #ffffff;
}

a,
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button {
  border: 0;
  background: none;
  padding: 0;
}

img {
  display: block;
  max-width: none;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #ffffff;
  transform-origin: center center;
}

.learn-bg,
.learn-bg__img,
.learn-bg__dim {
  position: absolute;
  inset: 0;
}

.learn-bg__img {
  width: 1920px;
  height: 1217px;
  object-fit: cover;
}

.learn-bg__dim {
  background:
    radial-gradient(ellipse 68% 50% at 50% 42%, rgba(76, 182, 255, 0.18), transparent 68%),
    radial-gradient(ellipse 80% 45% at 50% 22%, rgba(76, 182, 255, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(0, 20, 62, 0.85) 0%, rgba(19, 32, 58, 0.68) 100%);
}

.learn-side {
  position: absolute;
  top: 88px;
  width: 100px;
  height: 992px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}

.learn-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-side--left {
  left: 0;
}

.learn-side--right {
  right: 0;
  transform: scaleX(-1);
}

.learn-deco {
  position: absolute;
  left: 100px;
  top: 88px;
  width: 1720px;
  height: 992px;
  z-index: 1;
  pointer-events: none;
}

.learn-deco::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 380px;
  width: 1560px;
  height: 440px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 48% 40% at 50% 44%,
    rgba(0, 111, 229, 0.22) 0%,
    rgba(76, 182, 255, 0.08) 42%,
    transparent 72%
  );
  animation: learn-deco-glow 9s ease-in-out infinite;
}

.learn-deco::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 1320px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(76, 182, 255, 0.14) 0%,
    transparent 72%
  );
}

@keyframes learn-deco-glow {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

.top {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 88px;
  z-index: 10;
  overflow: hidden;
}

.top__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 88px;
  object-fit: fill;
  object-position: left top;
  pointer-events: none;
}

.brand {
  position: absolute;
  left: 24px;
  top: 0;
  height: 88px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transform: translateY(-4px);
}

.brand__line {
  order: 2;
  position: relative;
  width: 14px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
  pointer-events: none;
}

.brand__line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 38%, #ffffff 62%, rgba(255, 255, 255, 0) 100%);
  transform: translate(-50%, -50%) rotate(15deg);
  transform-origin: center;
}

.brand__line span,
.brand__line svg {
  display: none;
}

.brand__back {
  order: 1;
  width: 31px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.brand__back:hover {
  filter: brightness(1.28) drop-shadow(0 0 8px rgba(76, 182, 255, 0.7));
  transform: translateX(-2px);
}

.brand__back svg {
  width: 100%;
  height: 100%;
}

.brand__title {
  order: 3;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(50, 197, 255, 0.28);
  white-space: nowrap;
}

.back-home {
  position: absolute;
  left: 1719px;
  top: 49px;
  width: 159px;
  height: 39px;
  text-decoration: none;
}

.back-home__bg {
  position: absolute;
  inset: 0;
}

.back-home__bg svg {
  width: 100%;
  height: 100%;
}

.back-home__inner {
  position: absolute;
  left: 48.79px;
  top: 8px;
  width: 90px;
  height: 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: var(--font-weight-medium);
  color: #ffffff;
  white-space: nowrap;
}

.back-home__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.chapters {
  position: absolute;
  left: 80px;
  top: 348px;
  z-index: 2;
  width: 1760px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 64px;
}

.chapter {
  position: relative;
  width: 392px;
  flex-shrink: 0;
  text-decoration: none;
  animation: learn-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.chapter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 108px;
  z-index: -1;
  width: 300px;
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 111, 229, 0.38) 0%, transparent 72%);
  filter: blur(18px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.chapter:nth-child(odd) {
  margin-top: 0;
}

.chapter:nth-child(even) {
  margin-top: 40px;
}

.chapter:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 24px rgba(0, 111, 229, 0.28));
}

.chapter:hover::after {
  opacity: 0.9;
}

.chapter__clip {
  position: absolute;
  left: 0;
  top: 16px;
  z-index: 0;
  width: 392px;
  height: 215px;
  overflow: hidden;
}

.chapter__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.chapter:hover .chapter__img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1.04);
}

.chapter__frame {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 392px;
  height: auto;
  aspect-ratio: 852 / 800;
  pointer-events: none;
}

.chapter__title {
  margin: 0 0 8px;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.24s ease, text-shadow 0.28s ease, transform 0.28s ease;
}

.chapter__body {
  position: relative;
  z-index: 2;
  margin-top: 234px;
  padding: 12px 16px 16px;
}

.chapter:hover .chapter__title {
  text-shadow: 0 0 14px rgba(76, 182, 255, 0.38);
  transform: translateX(3px);
}

.chapter__lead {
  margin: 0;
  min-height: 44px;
  font-size: 13px;
  line-height: 22px;
  color: rgba(212, 239, 255, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.28s ease, transform 0.28s ease;
}

.chapter:hover .chapter__lead {
  color: rgba(232, 247, 255, 0.94);
  transform: translateY(-1px);
}

@keyframes learn-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 大弹窗（微课 / 资料库 / 后续统一）· 小弹窗勿用 */
.player {
  position: absolute;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.6);
}

.player[hidden] {
  display: none;
}

.player__box {
  position: absolute;
  left: 320px;
  top: 150px;
  width: 1280px;
  height: 778px;
}

.player__skin {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 778px;
  object-fit: contain;
  pointer-events: none;
}

.player__title {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 22px;
  z-index: 2;
  margin: 0;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #c8e8ff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__body {
  position: absolute;
  left: 68px;
  top: 78px;
  width: 1144px;
  height: 640px;
  overflow: auto;
  background: #021018;
}

.player__body:has(.kcard-view) {
  overflow: hidden;
  background: linear-gradient(165deg, #010d14 0%, #031a28 52%, #010d14 100%);
}

.player__body:has(.kcards-shell) {
  overflow: auto;
}

.player__body > img:only-child {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #021018;
}

.player__body > p {
  margin: 0;
  padding: 28px 36px;
  font-size: 16px;
  line-height: 28px;
  color: #d4efff;
}

.player__close {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  width: 63.5px;
  height: 42.7px;
}

.player__close img {
  width: 63.5px;
  height: 42.7px;
}

.player__close:hover {
  filter: brightness(1.25);
}

.vcard {
  position: relative;
  width: 435px;
  height: 309px;
  flex-shrink: 0;
  overflow: visible;
  background: none;
  cursor: pointer;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.vcard:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.vcard--photo {
  cursor: default;
}

.vcard--click {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}

.vcard--click:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
}

.kcard-view {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 36px;
  padding: 28px 40px 32px;
  animation: kcard-view-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.player__body .kcard-view {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.kcard-view:has(.kcard-back) {
  padding-top: 44px;
}

.kcard-back {
  position: absolute;
  left: 32px;
  top: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: var(--font-weight-medium);
  color: #9ce9ff;
  cursor: pointer;
  transition: color 0.22s ease, transform 0.22s ease;
}

.kcard-back__icon {
  width: 7px;
  height: 7px;
  margin-left: 1px;
  flex-shrink: 0;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.88;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.kcard-back__label {
  white-space: nowrap;
}

.kcard-back:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.kcard-back:hover .kcard-back__icon {
  opacity: 1;
  transform: rotate(45deg) translate(-1px, 1px);
}

.kcard-back:focus-visible {
  outline: 2px solid rgba(76, 182, 255, 0.65);
  outline-offset: 2px;
}

.kcard-view__copy {
  flex: 0 0 456px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 28px 4px 4px;
  border-right: 1px solid rgba(127, 208, 255, 0.16);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 182, 255, 0.35) transparent;
}

.kcard-view__copy::-webkit-scrollbar {
  width: 4px;
}

.kcard-view__copy::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(76, 182, 255, 0.35);
}

.kcard-view__name {
  margin: 0 0 12px;
  font-family: "REEJI-ZhenyanGB2.0", var(--font-display);
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  color: #ffffff;
}

.player__body .kcard-view__name {
  display: none;
}

.kcard-view__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 26px;
  color: rgba(212, 239, 255, 0.92);
  white-space: pre-line;
}

.kcard-view__text::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(76, 182, 255, 0.72), transparent);
}

.kcard-view__stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(127, 208, 255, 0.18);
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, rgba(0, 111, 229, 0.14) 0%, transparent 72%),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kcard-view__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0, 111, 229, 0.22));
}

@keyframes kcard-view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vcard__skin {
  position: absolute;
  left: 0;
  top: 0;
  width: 435px;
  height: 309px;
  pointer-events: none;
}

.vcard__inner {
  position: absolute;
  left: 31.5px;
  top: 46px;
  width: 372px;
  height: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vcard__cover {
  position: relative;
  width: 372px;
  height: 202px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 2px;
  background: rgba(4, 18, 32, 0.65);
  box-shadow: inset 0 0 0 1px rgba(127, 208, 255, 0.16);
}

.vcard__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(76, 182, 255, 0.1) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

.vcard__img {
  display: block;
  width: 372px;
  height: 202px;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.vcard:hover .vcard__img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.vcard__play {
  position: absolute;
  left: 146px;
  top: 61px;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(153, 253, 255, 0.32);
  box-shadow: 0 4px 18px rgba(0, 111, 229, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.vcard:hover .vcard__play {
  transform: scale(1.06);
  background: rgba(0, 111, 229, 0.52);
  box-shadow: 0 6px 24px rgba(0, 111, 229, 0.45);
}

.vcard__play-icon {
  position: absolute;
  left: 32px;
  top: 24px;
  width: 21.54px;
  height: 32.31px;
  display: flex;
}

.vcard__play-icon img {
  width: 21.54px;
  height: 32.31px;
}

.vcard__title {
  height: 24px;
  margin-top: 2px;
  padding-left: 2px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 6px rgba(0, 111, 229, 0.28);
  transition: color 0.2s ease;
}

.vcard:hover .vcard__title {
  color: #ffffff;
}

@keyframes top-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes top-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes top-line-in {
  from {
    transform: translate(-50%, -50%) rotate(15deg) scaleY(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) rotate(15deg) scaleY(1);
    opacity: 1;
  }
}

@keyframes top-sheen {
  0% {
    transform: translateX(-90px);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  24% {
    transform: translateX(1980px);
    opacity: 0;
  }
  100% {
    transform: translateX(1980px);
    opacity: 0;
  }
}

@keyframes top-edge {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.55;
  }
}

.top {
  animation: top-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(186, 224, 255, 0.12), transparent);
  pointer-events: none;
  z-index: 4;
  animation: top-sheen 10s ease-in-out 1.1s infinite;
}

.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 6%,
    rgba(76, 182, 255, 0.28) 38%,
    rgba(186, 224, 255, 0.5) 50%,
    rgba(76, 182, 255, 0.28) 62%,
    transparent 94%
  );
  pointer-events: none;
  z-index: 5;
  animation: top-edge 7s ease-in-out 0.7s infinite;
}

.brand__back {
  animation: top-fade 0.55s 0.12s ease both;
}

.brand__line::before {
  animation: top-line-in 0.45s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__title {
  animation: top-fade 0.55s 0.18s ease both;
  transition: text-shadow 0.35s ease;
}

.brand:hover .brand__title {
  text-shadow: 0 0 20px rgba(76, 182, 255, 0.42);
}

.back-home {
  animation: top-fade 0.55s 0.32s ease both;
  transition: filter 0.25s ease;
}

.back-home:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .top::before,
  .top::after,
  .brand__back,
  .brand__line::before,
  .brand__title,
  .back-home,
  .learn-deco::before,
  .kcard-view,
  .chapter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .brand__line::before {
    transform: translate(-50%, -50%) rotate(15deg);
  }

  .brand__title {
    text-shadow: 0 0 16px rgba(50, 197, 255, 0.28);
  }

  .chapter:nth-child(even) {
    margin-top: 0;
  }

  .chapter:hover {
    transform: none;
  }

  .chapter:hover .chapter__img {
    transform: none;
  }

  .chapter:hover .chapter__title,
  .chapter:hover .chapter__lead {
    transform: none;
    text-shadow: none;
    color: rgba(212, 239, 255, 0.82);
  }

  .learn-deco::before {
    transform: translate(-50%, -50%);
    opacity: 0.92;
  }
}
