* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: "DingTalk JinBuTi";
  font-style: normal;
  font-weight: 400;
  src: url("/kaocizhan-assets/fonts/DingTalk-JinBuTi.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat Local";
  font-style: italic;
  font-weight: 900;
  src: url("/kaocizhan-assets/fonts/Montserrat-BlackItalic.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat Local";
  font-style: normal;
  font-weight: 800;
  src: url("/kaocizhan-assets/fonts/Montserrat-ExtraBold.ttf") format("truetype");
}

@font-face {
  font-family: "Douyin Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/kaocizhan-assets/fonts/DouyinSansBold.otf") format("opentype");
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #3159b8;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
[role="button"] {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.viewport {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #3159b8;
}

.screen {
  position: relative;
  width: 1000px;
  height: 600px;
  overflow: hidden;
  transform: scale(var(--screen-scale, 1));
  transform-origin: center;
  background: #fff;
}

.route-transition {
  position: absolute;
  inset: 0;
  animation: pageIn 280ms ease-out both;
}

.page {
  position: absolute;
  inset: 0;
}

.asset,
.fill {
  position: absolute;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.fill {
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.image-button {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.image-button:not(.study-back):not(.preview-back):not(.follow-back):not(.test-back):not(.wrong-preview-back):not(.complete-back):not(.exam-complete-back):not(.exam-confirm-back):not(.assessment-back):not(.library-back):not(.study-plan-back):not(.review-back):not(.result-ok):not(.exam-grade-close):not(.exam-exit-continue):not(.exam-exit-home)::after,
.word-chip::after {
  position: absolute;
  inset: -18% auto -18% -54%;
  width: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 34%,
    rgba(255, 255, 255, 0.82) 50%,
    rgba(255, 255, 255, 0.2) 66%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
}

.image-button:hover:not(:disabled),
.word-chip:hover:not(:disabled):not(.is-exiting):not(.is-entering),
.meaning-option:hover:not(:disabled) {
  transform: scale(0.985);
  filter: brightness(1.035);
}

.image-button:not(.study-back):not(.preview-back):not(.follow-back):not(.test-back):not(.wrong-preview-back):not(.complete-back):not(.exam-complete-back):not(.exam-confirm-back):not(.assessment-back):not(.library-back):not(.study-plan-back):not(.review-back):not(.result-ok):not(.exam-grade-close):not(.exam-exit-continue):not(.exam-exit-home):hover:not(:disabled)::after,
.word-chip:hover:not(:disabled):not(.is-exiting):not(.is-entering)::after {
  animation: shineSweep 620ms ease;
}

.image-button img {
  display: block;
  width: 100%;
  height: 100%;
}

.learning-step-nav {
  position: absolute;
  z-index: 4;
  width: 171px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 步骤间距改由中间的横杠两侧 12px 控制（见 .learning-step-dash） */
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

/* 单个步骤 + 它后面的横杠：作为 flex item 一起参与整条步骤条的居中 */
.learning-step-group {
  display: inline-flex;
  align-items: center;
}

/* 步骤之间的横杠：左右各留 12px */
.learning-step-dash {
  flex: 0 0 auto;
  margin: 0 12px;
  color: #ffffff;
  font-size: 13px;
}

/* 每个步骤：序号 + 文字之间留出间距（原来靠模板换行产生的空格，间距不可控）
   注：原文件这里写的是 .learning-step-nav-item，与模板里的 .learning-step-item 不一致，
   属于无效样式，这里一并修正 */
.learning-step-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.learning-step-nav button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.learning-step-nav button:hover:not(:disabled) {
  color: #dcff92;
  transform: scale(0.985);
}

.learning-step-nav button.is-active {
  color: #dcff92;
  font-weight: 800;
}

/* 未到达的步骤：不可点击 + 弱化显示 */
.learning-step-nav button.is-locked {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
  font-weight: 400;
}

.learning-step-nav button:disabled {
  cursor: default;
}

.preview-bottom-steps {
  left: 415px;
  top: 560px;
}

.follow-bottom-steps {
  left: 415px;
  top: 560px;
}

.test-bottom-steps {
  left: 415px;
  top: 560px;
}

.stage-complete-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.stage-complete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  will-change: backdrop-filter;
}

.stage-complete-panel {
  position: absolute;
  left: 50%;
  top: 172px;
  width: 400px;
  height: 228px;
  -o-object-fit: cover;
     object-fit: cover;
  transform: translateX(-50%);
  animation: stageCompletePanelIn 240ms cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
}

.stage-complete-copy {
  position: absolute;
  left: 50%;
  top: 259px;
  z-index: 2;
  width: 240px;
  transform: translateX(-50%);
  color: #222;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.stage-complete-copy h2 {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  font-family: "Douyin Sans", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 18px;
  font-weight: 700;
}

.stage-complete-copy h2 span,
.stage-complete-copy h2 strong {
  font: inherit;
}

.stage-complete-copy h2 strong {
  color: #5d5efb;
}

.stage-complete-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
}

.stage-complete-home,
.stage-complete-continue {
  position: absolute;
  z-index: 3;
  top: 338px;
  width: 102px;
  height: 38px;
  border-radius: 19px;
}

.stage-complete-home {
  left: calc(50% - 110px);
}

.stage-complete-continue {
  left: calc(50% + 8px);
}

@keyframes stageCompletePanelIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.assessment-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.assessment-back {
  left: 0;
  top: 0;
  z-index: 3;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  will-change: transform, opacity;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.assessment-panel {
  left: 48px;
  top: 62px;
  z-index: 1;
  width: 904px;
  height: 476px;
  -o-object-fit: fill;
     object-fit: fill;
}

.assessment-report-panel {
  left: 48px;
  top: 14px;
  z-index: 1;
  width: 904px;
  height: 524px;
  -o-object-fit: fill;
     object-fit: fill;
}

.assessment-start-panel {
  left: 48px;
  top: 76px;
  z-index: 1;
  width: 904px;
  height: 460px;
  -o-object-fit: fill;
     object-fit: fill;
}

.assessment-report-meta {
  position: absolute;
  left: 120px;
  top: 234px;
  z-index: 2;
  display: flex;
  gap: 28px;
  color: #222;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-report-rate {
  position: absolute;
  left: 520px;
  top: 176px;
  z-index: 2;
  width: 70px;
  height: 70px;
  color: #222;
}

.assessment-report-rate-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #5077fc 0 var(--assessment-rate-angle, 168deg),
    #e4eaf7 var(--assessment-rate-angle, 168deg) 360deg
  );
}

.assessment-report-rate-ring::after {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.assessment-report-rate strong,
.assessment-report-rate span {
  position: absolute;
  left: 50%;
  z-index: 1;
  display: block;
  text-align: center;
  transform: translateX(-50%);
}

.assessment-report-rate strong {
  top: 20px;
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-report-rate span {
  top: 38px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-report-stats {
  position: absolute;
  left: 616px;
  top: 190px;
  z-index: 2;
  width: 247px;
  height: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 13px;
}

.assessment-report-stat {
  position: relative;
  min-width: 0;
  padding-left: 20px;
  border-right: 1px solid #d8deec;
  color: #222;
}

.assessment-report-stat:last-child {
  border-right: 0;
}

.assessment-report-stat-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  -o-object-fit: contain;
     object-fit: contain;
}

.assessment-report-stat span {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-report-stat strong {
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 18px;
}

.assessment-report-stat em {
  margin-left: 4px;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
}

.assessment-report-stat.is-correct strong,
.assessment-report-stat.is-correct em {
  color: #5077fc;
}

.assessment-report-stat.is-wrong strong,
.assessment-report-stat.is-wrong em {
  color: #f9586b;
}

.assessment-report-stat.is-total strong,
.assessment-report-stat.is-total em {
  color: #8868fb;
}

.assessment-report-analysis {
  position: absolute;
  left: 512px;
  top: 324px;
  z-index: 2;
  width: 368px;
  margin: 0;
  color: #222;
  font-size: 11px;
  line-height: 20px;
  text-align: justify;
  text-indent: 22px;
}

.assessment-level-scale {
  position: absolute;
  left: 120px;
  z-index: 2;
  width: 334px;
  height: 63px;
}

.assessment-current-scale {
  top: 322px;
}

.assessment-average-scale {
  top: 425px;
}

.assessment-level-track {
  position: absolute;
  left: 0;
  top: 13px;
  width: 334px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
}

.assessment-level-track span {
  position: relative;
  display: grid;
  place-items: center;
  background: #e4eaf7;
}

.assessment-level-track span:first-child {
  border-radius: 4px 0 0 4px;
}

.assessment-level-track span:last-child {
  border-radius: 0 4px 4px 0;
}

.assessment-current-scale .assessment-level-track span.is-active {
  background: #f9ca30;
  box-shadow: inset 0 0 0 1px #fff;
}

.assessment-average-scale .assessment-level-track span.is-active {
  background: #6892fa;
  box-shadow: inset 0 0 0 1px #fff;
}

.assessment-level-track img {
  width: 16px;
  height: 16px;
  -o-object-fit: contain;
     object-fit: contain;
}

.assessment-level-marker {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
}

.assessment-level-labels {
  position: absolute;
  left: 0;
  top: 45px;
  width: 334px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #222;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.assessment-start-count {
  position: absolute;
  left: 586px;
  top: 262px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 700;
}

.assessment-start-count span {
  padding-bottom: 3px;
  font-size: 20px;
  line-height: 18px;
}

.assessment-start-count strong {
  color: #5d5efb;
  font-size: 34px;
  line-height: 34px;
}

.assessment-start-term {
  position: absolute;
  left: 602px;
  top: 341px;
  z-index: 2;
  margin: 0;
  color: #222;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-start-button {
  position: absolute;
  left: 544px;
  top: 408px;
  z-index: 2;
  width: 241px;
  height: 38px;
}

.assessment-start-button img {
  width: 100%;
  height: 100%;
  -o-object-fit: fill;
     object-fit: fill;
}

.assessment-list {
  position: absolute;
  left: 80px;
  top: 148px;
  z-index: 2;
  /* 卡片宽 840 + 10px 滚动条预留，避免滚动条挤压卡片 */
  width: 850px;
  padding-right: 10px;
  box-sizing: border-box;
  /* 列表可滚动：底部到面板底(top 62 + 476 = 538)之前留出间距 */
  max-height: 376px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  /* 细滚动条，与本页蓝色主题一致 */
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 143, 249, 0.45) transparent;
}

.assessment-list::-webkit-scrollbar {
  width: 6px;
}

.assessment-list::-webkit-scrollbar-track {
  background: transparent;
}

.assessment-list::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(91, 143, 249, 0.45);
}

.assessment-list::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 143, 249, 0.7);
}

/* 列表底部的加载 / 没有更多提示 */
.assessment-list-tip {
  margin: 0;
  padding: 6px 0;
  color: #999;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

/* 评测列表加载中 / 空 / 错误提示 */
.assessment-empty {
  position: absolute;
  left: 80px;
  top: 148px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 840px;
  min-height: 88px;
  margin: 0;
  color: #999;
  font-size: 14px;
  line-height: 20px;
}

/* 评测列表空状态：与抗遗忘 review-empty-state 同一套图文，
 * 评测面板 top 62 / 抗遗忘面板 top 68，按相同相对偏移换算为 top 228 */
.assessment-empty-state {
  position: absolute;
  left: 314px;
  top: 228px;
  z-index: 2;
  width: 372px;
  height: 204px;
  text-align: center;
}

.assessment-empty-state img {
  display: block;
  width: 372px;
  height: 184px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.assessment-empty-state p {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.assessment-card {
  position: relative;
  width: 840px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 12px 16px;
  border: 1px solid rgba(91, 138, 249, 0.2);
  border-radius: 4px;
  background: #f4f6fb;
  color: #222;
}

.assessment-card.is-completed {
  border-color: rgba(160, 215, 41, 0.2);
  background: #f5faeb;
}

.assessment-card-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.assessment-status-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.assessment-meta {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-meta span,
.assessment-rate span {
  color: #aaa;
  font-size: 12px;
  font-weight: 400;
}

.assessment-card.is-completed .assessment-rate span {
  color: #83b31c;
}

.assessment-card.is-unstarted .assessment-rate span {
  color: #5b8af9;
}

.assessment-meta strong {
  color: #222;
  font-size: 14px;
  font-weight: 400;
}

.assessment-meta.is-muted strong {
  color: #aaa;
}

.assessment-rate {
  width: 209px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.assessment-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assessment-rate-track {
  position: relative;
  width: 160px;
  height: 16px;
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
}

.assessment-rate-track i {
  position: absolute;
  left: 2px;
  top: 2px;
  display: block;
  max-width: 156px;
  height: 12px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.24) 0 9px,
      rgba(255, 255, 255, 0) 9px 19px
    ),
    #a0d729;
}

.assessment-card.is-unstarted .assessment-rate-track i {
  background: #5b8af9;
}

.assessment-rate strong {
  color: #5b8af9;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.assessment-card.is-completed .assessment-rate strong {
  color: #8bba25;
}

.assessment-action {
  position: relative;
  width: 86px;
  height: 32px;
  flex: 0 0 86px;
  border-radius: 16px;
}

.assessment-action::after {
  width: 28%;
}

.study-panel {
  left: 48px;
  top: 76px;
  width: 904px;
  height: 464px;
}

.study-tip {
  position: absolute;
  left: 50%;
  top: 558px;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.study-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  will-change: transform, opacity;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.study-page.is-leaving {
  pointer-events: none;
  animation: studyPageFadeOut 360ms ease both;
}

.study-page.is-leaving .study-back {
  animation: backFlyOut 360ms cubic-bezier(0.62, 0, 0.36, 1) both;
}

.study-status {
  position: absolute;
  left: 50%;
  top: 296px;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

.study-status-group {
  position: absolute;
  left: 50%;
  top: 280px;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

/* 空状态：与抗遗忘 review-empty-state 同一套图文，
 * 位置按各自面板偏移换算（study-panel top 76 / review-panel top 68，相差 8px） */
.study-empty-state {
  position: absolute;
  left: 314px;
  top: 242px;
  z-index: 2;
  width: 372px;
  height: 204px;
  text-align: center;
}

.study-empty-state img {
  display: block;
  width: 372px;
  height: 184px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.study-empty-state p {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.study-retry {
  height: 34px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 17px;
  background: rgba(104, 156, 240, 0.35);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
}

.study-toast {
  position: absolute;
  left: 405px;
  top: 500px;
  z-index: 8;
  min-width: 190px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid rgba(220, 255, 146, 0.5);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.8), rgba(68, 68, 68, 0.8));
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: toastIn 1600ms ease both;
}

.meaning-loading {
  height: 216px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8ba6;
  font-size: 14px;
  line-height: 18px;
}

.study-start {
  left: 380px;
  top: 508px;
  width: 241px;
  height: 38px;
  border-radius: 19px;
}

.image-button.study-start:not(.result-ok)::after {
  inset: -18% auto -18% -34%;
  width: 24%;
}

.study-ip {
  left: 811px;
  top: 4px;
  width: 141px;
  height: 120px;
}

.word-grid {
  position: absolute;
  left: 103px;
  top: 156px;
  /* 794px 是 5 列(146×5) + 4 个间距(16×4) 的内容宽，
     额外 16px 留给滚动条，避免滚动条挤压最后一列 */
  width: 810px;
  padding-right: 10px;
  box-sizing: border-box;
  /* 单词多时纵向滚动：底部到「开始学习」按钮(top 508)之前留出间距 */
  max-height: 332px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(5, 146px);
  gap: 12px 16px;
  /* 细滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 156, 240, 0.55) transparent;
}

.word-grid::-webkit-scrollbar {
  width: 6px;
}

.word-grid::-webkit-scrollbar-track {
  background: transparent;
}

.word-grid::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(104, 156, 240, 0.55);
}

.word-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(104, 156, 240, 0.8);
}

.word-chip {
  position: relative;
  overflow: hidden;
  width: 146px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(104, 156, 240, 0.3);
  border-radius: 18px;
  background: rgba(104, 156, 240, 0.1);
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.word-chip.is-compact {
  font-size: 13px;
  white-space: nowrap;
}

.word-chip.is-tiny {
  font-size: 11px;
  white-space: nowrap;
}

.word-chip.is-cut {
  border-color: rgba(179, 179, 179, 0.1);
  background: rgba(222, 222, 222, 0.1);
  color: #ccc;
}

.word-chip.is-exiting {
  pointer-events: none;
  animation: masteredWordExit 680ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.word-chip.is-entering {
  animation: newWordEnter 560ms cubic-bezier(0.18, 1.18, 0.24, 1) both;
}

.word-chip.is-failed {
  border-color: rgba(252, 190, 120, 0.7);
  background: rgba(252, 190, 120, 0.2);
  color: #222;
}

.word-chip:disabled {
  cursor: default;
}

.unmastered-toast {
  position: absolute;
  left: 405px;
  top: 285px;
  z-index: 8;
  width: 190px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px 6px 20px;
  border: 1px solid rgba(220, 255, 146, 0.5);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.8), rgba(68, 68, 68, 0.8));
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: toastIn 1600ms ease both;
}

.word-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.word-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  will-change: backdrop-filter;
}

.word-modal-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 388px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  animation: modalPopIn 240ms cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
}

.word-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 374px;
  height: 372px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #f0f5fd;
  animation: modalPopIn 240ms cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
}

.word-modal-content {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 294px;
  transform: translateX(-50%);
}

.word-modal-heading {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 12px;
  line-height: 18px;
  text-align: center;
}

.word-modal-heading h2 {
  margin: 0;
  color: #222;
  font-size: 22px;
  line-height: 18px;
  font-weight: 800;
}

.word-modal-heading p {
  margin: 0;
  color: #aaa;
  font-size: 12px;
  line-height: 18px;
}

.meaning-options {
  display: grid;
  gap: 12px;
}

.meaning-option {
  position: relative;
  overflow: hidden;
  width: 294px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(104, 156, 240, 0.3);
  border-radius: 25px;
  background: rgba(104, 156, 240, 0.1);
  color: #222;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.meaning-option.is-selected {
  border-color: #fff;
  background: #5b8af9;
  color: #fff;
  box-shadow: 0 2px 0 rgba(80, 126, 236, 0.1);
}

.word-modal-feedback {
  position: absolute;
  left: 50%;
  top: 302px;
  width: 294px;
  margin: 0;
  transform: translateX(-50%);
  color: #e85a2a;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.word-modal-badge-img {
  position: absolute;
  left: 337px;
  top: 78px;
  width: 166px;
  height: 36px;
  -o-object-fit: cover;
     object-fit: cover;
}

.modal-close {
  position: absolute;
  left: 719px;
  top: 106px;
  width: 34px;
  height: 34px;
}

.word-result-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.word-result-card {
  position: absolute;
  z-index: 1;
  left: 391px;
  top: 156px;
  width: 219px;
  height: 228px;
  -o-object-fit: cover;
     object-fit: cover;
  animation: resultCardIn 260ms cubic-bezier(0.2, 0.9, 0.25, 1.08) both;
}

.word-result-text {
  position: absolute;
  z-index: 3;
  left: 421px;
  top: 248px;
  width: 159px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #222;
  line-height: 18px;
  text-align: center;
}

.word-result-text h2 {
  max-width: 100%;
  margin: 0;
  font-size: 22px;
  line-height: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-result-text h2.is-compact {
  font-size: 17px;
}

.word-result-text h2.is-tiny {
  font-size: 14px;
}

.word-result-text p {
  max-width: 100%;
  margin: 0 0 6px;
  color: #aaa;
  font-size: 12px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-result-text span {
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-ok {
  position: absolute;
  z-index: 4;
  left: 455px;
  top: 358px;
  width: 90px;
  height: 38px;
}

.slash-effect {
  position: absolute;
  z-index: 2;
  left: 348px;
  top: 199px;
  width: 305px;
  height: 182px;
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
  transform-origin: 82% 18%;
  animation: slashCut 560ms cubic-bezier(0.13, 0.86, 0.28, 1) both;
}

.learning-start-page {
  color: #202124;
}

.learning-start-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
}

.learning-start-panel {
  left: 292px;
  top: 92px;
  width: 416px;
  height: 416px;
  animation: learningStartPanelIn 420ms cubic-bezier(0.18, 0.88, 0.28, 1.08) both;
}

.learning-start-copy {
  position: absolute;
  left: 402px;
  top: 348px;
  z-index: 2;
  width: 197px;
  text-align: center;
  animation: learningStartCopyIn 420ms ease-out 120ms both;
}

.learning-start-copy p {
  margin: 0 0 8px;
  color: #222;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.learning-start-count {
  position: absolute;
  left: 0;
  top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 197px;
  height: 30px;
  color: #222;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.learning-start-count strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 51px;
  height: 30px;
  margin: 0 3px;
  padding: 0 10px;
  border: 1px solid #dcff92;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.9), rgba(68, 68, 68, 0.9));
  color: #dcff92;
  font-size: 14px;
  font-weight: 500;
}

.learning-start-audio {
  position: absolute;
  left: 600px;
  top: 100px;
  z-index: 3;
  width: 100px;
  height: 36px;
}

.learning-start-audio.is-playing {
  filter: brightness(1.08);
  transform: scale(0.985);
}

.learning-start-action {
  position: absolute;
  left: 455px;
  top: 438px;
  z-index: 3;
  width: 90px;
  height: 38px;
}

.learning-start-back::after,
.learning-start-audio::after,
.learning-start-action::after {
  display: none;
}

@keyframes learningStartPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes learningStartCopyIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learning-journey-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
}

.learning-journey-panel {
  left: 48px;
  top: 50px;
  width: 904px;
  height: 494px;
}

.journey-current-count,
.journey-target-count {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: 152px;
  white-space: nowrap;
}

.journey-current-count {
  left: 181px;
  top: 243px;
  color: #5d7be3;
}

.journey-target-count {
  left: 181px;
  top: 370px;
  color: #fff;
}

.journey-current-count strong,
.journey-target-count strong {
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 43px;
  line-height: 52px;
  font-weight: 700;
}

.journey-current-count span,
.journey-target-count span {
  color: currentColor;
  font-size: 13px;
  line-height: 18px;
}

.journey-current-count span {
  color: #222;
}

.journey-study-button {
  position: absolute;
  left: 156px;
  top: 448px;
  z-index: 3;
  width: 90px;
  height: 38px;
  border-radius: 19px;
}

.journey-ip {
  z-index: 3;
  width: 125px;
  height: 171px;
  -o-object-fit: contain;
     object-fit: contain;
  transition:
    left 360ms ease,
    top 360ms ease;
}

.learning-journey-back::after {
  display: none;
}

.study-plan-back {
  left: 0;
  top: 0;
  z-index: 4;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.study-plan-panel {
  left: 48px;
  top: 68px;
  width: 904px;
  height: 476px;
}

.study-plan-list {
  position: absolute;
  left: 80px;
  top: 148px;
  z-index: 2;
  width: 840px;
  height: 378px;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* 隐藏滚动条，保留滚动能力 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.study-plan-list::-webkit-scrollbar {
  display: none;
}

.study-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* 单条学案：浅灰蓝底圆角行（图标 + 文字 + 右侧操作） */
.study-plan-row {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 16px 20px 16px 52px!important;
  box-sizing: border-box;
  overflow: hidden;
  background: #f5f7fc;
  border-radius: 8px;
}

/* 加载/出错/空态/到底提示 */
.study-plan-tip {
  margin: 16px 0 0;
  color: #6b7a99;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* 空状态：与抗遗忘 review-empty-state 同一套图文，整数居中于列表容器。
 * 容器 left 80 / top 148 / 840×378 → 换算后的绝对位置为 left 314、top 235，与抗遗忘对齐 */
.study-plan-empty-state {
  position: absolute;
  left: 234px;
  top: 87px;
  width: 372px;
  height: 204px;
  text-align: center;
}

.study-plan-empty-state img {
  display: block;
  width: 372px;
  height: 184px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.study-plan-empty-state p {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.study-plan-retry {
  margin-left: 8px;
  padding: 2px 12px;
  color: #3d6ce0;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 1px solid #3d6ce0;
  border-radius: 12px;
}

.study-plan-retry:hover {
  background: rgba(61, 108, 224, 0.08);
}

.study-plan-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
}

.study-plan-meta {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* 第一行：生成时间 +（词书名） */
.study-plan-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.study-plan-time {
  flex: 0 0 auto;
  color: #222;
  font-size: 14px;
  line-height: 18px;
}

.study-plan-book {
  overflow: hidden;
  color: #aaaaaa;
  font-size: 14px;
  line-height: 18px;
  text-overflow: ellipsis;
}

/* 第二行：学会 / 未学会词数 */
.study-plan-summary {
  margin: 0;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧操作区 */
.study-plan-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}

/* 按钮统一用切图（306×96 的 3 倍图 → 显示 102×32） */
.study-plan-report,
.study-plan-download {
  flex: 0 0 auto;
  width: 102px;
  height: 32px;
}

.study-plan-report img,
.study-plan-download img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 禁用态（learnPlanFile 为空）：切图本身就是灰的，别再叠加透明度 */
.study-plan-download:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.study-plan-back::after {
  display: none;
}

/* ---------- 学习报告（从考词学案列表的「查看报告」进入） ---------- */

.learn-report-back {
  left: 0;
  top: 0;
  z-index: 4;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

/* 面板：标题条 + 白色内容区（1080×576 素材 → 显示 904×476，与考词学案同一套设计） */
.learn-report-panel {
  left: 48px;
  top: 68px;
  width: 904px;
  height: 476px;
}

/* 内容区：1000×600 画布内的绝对坐标（白色区域内部），一屏放不下时内部滚动 */
.learn-report-body {
  position: absolute;
  left: 88px;
  top: 142px;
  z-index: 2;
  width: 816px;
  height: 344px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.learn-report-body::-webkit-scrollbar {
  display: none;
}

.learn-report-tip {
  margin: 40px 0 0;
  color: #6b7a99;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* 两个区块之间留白 */
.learn-report-block+.learn-report-block {
  margin-top: 36px;
}

/* 区块标题：图标 + 本课学会 + 数字 + 个单词（+ 提示文案） */
.learn-report-head {
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}

.learn-report-head-icon {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 12px;
}

.learn-report-head-text {
  color: #222;
  font-size: 13px;
  line-height: 20px;
}

.learn-report-head-num {
  margin: 0 6px;
  color: #3d6ce0;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

/* 未学会的词数用橙红，和「本课学会」的蓝区分开 */
.learn-report-head-num.is-wrong {
  color: #ea6033;
}

.learn-report-head-tip {
  margin-left: 10px;
  font-size: 13px;
  color: #AAAAAA;
  line-height: 18px;
}

/* 单词胶囊：换行排列，左缩进与标题文字对齐 */
.learn-report-words {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 5px;
  margin-left: 42px;
}

.learn-report-word {
  flex: 0 0 auto;
  height: 26px;
  background: rgba(104, 156, 240, 0.1);
  border-radius: 999px 999px 999px 999px;
  border: 1px solid rgba(104, 156, 240, 0.3);
  padding: 0 18px;
  font-weight: bold;
  font-size: 13px;
  color: #222222;
  line-height: 24px;
  cursor: pointer;
  transition: filter 160ms ease;
}

/* 未学会：浅橙底 + 橙字 */
.learn-report-word.is-wrong {
  background: rgba(252, 190, 120, 0.2);
  border: 1px solid rgba(252, 190, 120, 0.7);
}

.learn-report-word:hover {
  filter: brightness(0.96);
}

/* 底部按钮：居中悬浮在面板下边缘 */
.learn-report-actions {
  position: absolute;
  left: 50%;
  top: 525px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.learn-report-home,
.learn-report-download {
  flex: 0 0 auto;
  width: 102px;
  height: 32px;
}

.learn-report-home img,
.learn-report-download img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 切图本身就是灰的禁用态，别再叠透明度 */
.learn-report-download:disabled {
  opacity: 1;
  cursor: not-allowed;
}

/* ---------- 单词详情弹窗 ---------- */
.learn-report-word-layer {
  position: absolute;
  z-index: 40;
  inset: 0;
}

/* 弹窗背景：设计稿是高斯模糊的白雾感（不是常见的黑色遮罩），
   白色遮罩让整体变浅，模糊把背后的深蓝底色晕进白面板，形成灰白过渡 */
.learn-report-word-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  will-change: backdrop-filter;
}

.learn-report-word-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 216px;
  height: 194px;
  transform: translate(-50%, -50%);
}

.learn-report-word-bg {
  display: block;
  width: 100%;
  height: 100%;
}

.learn-report-word-copy {
  position: absolute;
  left: 0;
  top: 34px;
  width: 100%;
  padding: 0 18px;
  box-sizing: border-box;
  text-align: center;
}

.learn-report-word-name {
  margin: 0;
  overflow: hidden;
  color: #222;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learn-report-word-phonetic {
  margin: 4px 0 0;
  color: #9aa3b5;
  font-size: 12px;
  line-height: 18px;
}

/* 释义：同一单词多个词性时会有多行，行间留小间距 */
.learn-report-word-mean {
  margin: 4px 0 0;
  color: #222;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.learn-report-word-mean:first-of-type {
  margin-top: 12px;
}

/* OK 按钮：跨在卡片下边缘居中（与设计稿一致） */
.learn-report-word-ok {
  position: absolute;
  left: 50%;
  bottom: -19px;
  width: 90px;
  height: 38px;
  margin-left: -45px;
}

.learn-report-word-ok img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 报告页的按钮都是切图，关掉 image-button 的扫光 */
.learn-report-home::after,
.learn-report-download::after,
.learn-report-word-ok::after {
  display: none;
}
.review-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.review-back {
  left: 0;
  top: 0;
  z-index: 4;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.review-panel {
  left: 48px;
  top: 68px;
  z-index: 1;
  width: 904px;
  height: 476px;
  -o-object-fit: fill;
     object-fit: fill;
}


.review-word-grid {
  position: absolute;
  left: 103px;
  top: 156px;
  z-index: 2;
  /* 794px = 5 列(146×5) + 4 个间距(16×4)；
     多出的 16px 留给滚动条，否则滚动条(占位)会挤压内容导致最后一列换行 */
  width: 810px;
  padding-right: 10px;
  box-sizing: border-box;
  /* 单词多时纵向滚动：底部到「开始复习」按钮(top 516)之前留出间距（行高 34+18=52） */
  max-height: 340px;
  display: grid;
  grid-template-columns: repeat(5, 146px);
  align-content: start;
  gap: 18px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  /* 细滚动条，配色与本页橙色主题一致 */
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 156, 240, 0.55) transparent;
}

.review-word-grid::-webkit-scrollbar {
  width: 6px;
}

.review-word-grid::-webkit-scrollbar-track {
  background: transparent;
}

.review-word-grid::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(104, 156, 240, 0.55);
}

.review-word-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(104, 156, 240, 0.8);
}

.review-word-chip {
  display: grid;
  width: 146px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  padding: 0 20px;
  border: 1px solid rgba(252, 190, 120, 0.7);
  border-radius: 18px;
  background: rgba(252, 190, 120, 0.2);
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-word-chip.is-normal {
  border-color: rgba(104, 156, 240, 0.3);
  background: rgba(104, 156, 240, 0.1);
}

.review-empty-state {
  position: absolute;
  left: 314px;
  top: 234px;
  z-index: 2;
  width: 372px;
  height: 204px;
  text-align: center;
}

.review-empty-state img {
  display: block;
  width: 372px;
  height: 184px;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.review-empty-state p {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.review-start {
  position: absolute;
  left: 449px;
  top: 516px;
  z-index: 3;
  width: 102px;
  height: 38px;
  border-radius: 19px;
}

.review-back::after {
  display: none;
}

.step-page {
  overflow: hidden;
  background: #255ee4;
  animation: stepStageIn 720ms cubic-bezier(0.17, 0.84, 0.24, 1) both;
}

.step-page.is-leaving {
  pointer-events: none;
  animation: stepStageOut 360ms cubic-bezier(0.62, 0, 0.36, 1) both;
}

.step-page::before {
  position: absolute;
  inset: 37px 24px 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 32px 32px 0 0;
  box-shadow:
    inset 0 0 48px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(220, 255, 146, 0.08);
  animation: stepGateTrace 920ms ease-out both;
}

.step-page::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 4%, rgba(220, 255, 146, 0.32), transparent 2px),
    radial-gradient(circle at 88% 46%, rgba(220, 255, 146, 0.28), transparent 2px),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.12) 44%, transparent 52%);
  opacity: 0;
  animation: stepAtmosphere 2400ms ease-in-out 260ms infinite;
}

.step-scanline {
  position: absolute;
  z-index: 1;
  left: -220px;
  top: 0;
  width: 190px;
  height: 600px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 255, 146, 0.08),
    rgba(255, 255, 255, 0.26),
    transparent
  );
  transform: skewX(-18deg);
  animation: stepScan 1450ms cubic-bezier(0.18, 0.78, 0.25, 1) 120ms both;
}

.step-loading-ring {
  position: absolute;
  z-index: 1;
  left: 90px;
  top: 181px;
  width: 176px;
  height: 316px;
  pointer-events: none;
  border-radius: 18px;
  background: linear-gradient(90deg, transparent, rgba(220, 255, 146, 0.35), transparent);
  opacity: 0;
  filter: blur(10px);
  animation: stepLockOn 920ms cubic-bezier(0.2, 0.85, 0.2, 1) 240ms both;
}

.step-heading {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 64px;
  width: 520px;
  transform: translateX(-50%);
  text-align: center;
  animation: stepTitleIn 520ms ease-out 120ms both;
}

.step-watermark,
.step-heading h1,
.step-heading p {
  margin: 0;
  white-space: nowrap;
}

.step-watermark {
  height: 72px;
  color: rgba(255, 255, 255, 0.2);
  font-family: "Montserrat Local", Montserrat, Arial, sans-serif;
  font-size: 37px;
  font-style: italic;
  font-weight: 900;
  line-height: 72px;
  letter-spacing: 4.07px;
  opacity: 0.2;
  text-transform: uppercase;
}

.step-heading h1 {
  margin-top: -30px;
  color: #dcff92;
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.36px;
}

.step-heading > p:not(.step-watermark) {
  margin-top: 10px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}

.step-track {
  position: absolute;
  z-index: 2;
  left: 109px;
  top: 181px;
  width: 782px;
  height: 280px;
  display: flex;
  align-items: center;
  /* 每一步占等宽（.step-track-item 的 flex: 1），卡片在各自格子里居中，
     箭头落在相邻格子交界处——这样 4 步 / 5 步的总宽都等于轨道宽 782px */
}

.step-track-item {
  --step-index: 0;
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  /* 卡片在格子里居中：带动画和卡片的宽度差异也不会让间距偏向一侧 */
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: stepCardLoad 520ms cubic-bezier(0.18, 0.82, 0.24, 1) both;
  animation-delay: calc(260ms + var(--step-index) * 110ms);
}

.step-card {
  position: relative;
  width: 128px;
  height: 260px;
  overflow: hidden;
  margin: 0;
  padding-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.step-track-item:not(.is-active):not(.is-completed) .step-number,
.step-track-item:not(.is-active):not(.is-completed) .step-title,
.step-track-item:not(.is-active):not(.is-completed) .step-label {
  opacity: 0.2;
}

.step-track-item.is-active .step-card {
  width: 138px;
  height: 280px;
  padding-top: 20px;
  border-color: #dcff92;
  background: linear-gradient(180deg, rgba(43, 82, 186, 0.64), rgba(43, 82, 186, 0.2));
  color: #dcff92;
  box-shadow:
    0 0 30px rgba(220, 255, 146, 0.25),
    inset 0 -32px 60px rgba(27, 67, 190, 0.42);
  animation: activeStepPulse 1800ms ease-in-out 860ms infinite;
}

.step-track-item.is-completed .step-card {
  color: #fff;
}

.step-track-item.is-completed::before {
  position: absolute;
  z-index: 3;
  /* 卡片在格子里居中，所以勾选标记要跟着卡片左边一起偏移
   * （显示勾选时卡片宽度固定 128px） */
  left: calc((100% - 128px) / 2 + 54px);
  top: -8px;
  width: 20px;
  height: 10px;
  content: "";
  border-left: 4px solid #dcff92;
  border-bottom: 4px solid #dcff92;
  filter:
    drop-shadow(1px 0 0 #0d132a)
    drop-shadow(-1px 0 0 #0d132a)
    drop-shadow(0 1px 0 #0d132a)
    drop-shadow(0 -1px 0 #0d132a);
  transform: rotate(-45deg);
}

.step-track-item.is-completed .step-card img {
  opacity: 1;
}

.step-track-item.is-active .step-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.16) 42%, transparent 62%);
  opacity: 0;
  transform: translateX(-80%);
  animation: activeStepSweep 1600ms ease-in-out 860ms infinite;
}

.step-number,
.step-title,
.step-label {
  position: relative;
  z-index: 1;
  display: block;
}

.step-number {
  height: 52px;
  font-family: "Montserrat Local", Montserrat, Arial, sans-serif;
  font-size: 37px;
  font-style: normal;
  font-weight: 800;
  line-height: 52px;
}

.step-title {
  margin-top: 16px;
  color: #dcff92;
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.36px;
}

.step-label {
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}

.step-card img {
  position: absolute;
  left: 31.5px;
  top: 152px;
  z-index: 1;
  width: 65px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 0.2;
}

.step-track-item.is-active .step-card img {
  left: 37px;
  opacity: 1;
  animation: activeIconLift 1200ms cubic-bezier(0.18, 0.84, 0.24, 1) 620ms both;
}

.step-track-item.is-completed .step-title,
.step-track-item.is-active .step-title,
.step-track-item.is-active .step-number {
  color: #dcff92;
}

.step-track-item.is-completed .step-number {
  color: #fff;
}

.step-arrow {
  /* 脱离格子内的流，钉在格子右边界上：相邻两张卡片的中间点正好就是这条边界，
   * 所以间距变大（4 步）时箭头依然居中。
   * 垂直居中用 margin-top 而不是 transform——脉冲动画自己会改 transform */
  position: absolute;
  right: -12.5px;
  top: 50%;
  margin-top: -12px;
  width: 25px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 0;
  animation: stepArrowPulse 1200ms ease-in-out both infinite;
  animation-delay: calc(620ms + var(--step-index) * 130ms);
}

.word-preview-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.word-preview-page::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 10%, rgba(220, 255, 146, 0.2), transparent 2px),
    linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.18) 49%, transparent 55%);
  opacity: 0;
  animation: previewLightSweep 1800ms ease-out 260ms both;
}

.preview-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.preview-toast {
  position: absolute;
  z-index: 4;
  left: 630px;
  top: 47px;
  width: 190px;
  height: 30px;
  background: linear-gradient(90deg, #222222 0%, #444444 100%);
  border-radius: 15px 15px 0px 15px;
  border: 1px solid #DCFF92;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: previewToastIn 560ms ease-out 260ms both;
}

.preview-panel {
  left: 48px;
  top: 83px;
  width: 904px;
  height: 457px;
}

.preview-illustration {
  left: 827px;
  top: 42px;
  z-index: 3;
  width: 130px;
  height: 84px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: previewMascotIn 760ms cubic-bezier(0.18, 0.84, 0.24, 1) 180ms both;
}

.preview-word-grid {
  position: absolute;
  z-index: 3;
  left: 103px;
  top: 161px;
  width: 794px;
  height: 332px;
  display: grid;
  grid-template-columns: repeat(5, 148px);
  gap: 14px;
}

.preview-word-card {
  --preview-index: 0;
  position: relative;
  width: 148px;
  height: 158px;
  padding: 44px 10px 0;
  background: rgba(187, 187, 187, 0.1);
  border-radius: 4px 4px 4px 4px;
  border: 1px solid rgba(187, 187, 187, 0.2);
  color: #222;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: previewCardIn 420ms ease-out both;
  animation-delay: calc(180ms + var(--preview-index) * 45ms);
}

.preview-word-card.is-current {
  border-color: rgba(104, 156, 240, 0.28);
  background: linear-gradient(180deg, rgba(104, 156, 240, 0.16), rgba(104, 156, 240, 0.05));
  box-shadow:
    0 10px 28px rgba(41, 101, 230, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  animation:
    previewCardIn 420ms ease-out both,
    previewCurrentPulse 1500ms ease-in-out 580ms infinite;
  animation-delay: calc(180ms + var(--preview-index) * 45ms), 580ms;
}

.preview-word-card.is-completed {
  color: #888;
}

.preview-word-card h2,
.preview-word-card p {
  margin: 0;
  white-space: nowrap;
}

.preview-word-card h2 {
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
  /* 单词/词组较长时换行显示（无空格的长串也强制断行），最多两行，
   * 避免把下面的音标/释义挤出卡片 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-phonetic {
  margin-top: 8px !important;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
}

/* 释义可能较长，超出卡片宽度时换行显示（卡片留白足够容纳 2~3 行）。
 * 选择器带 .preview-word-card 以提升优先级，覆盖上面 p 的 white-space: nowrap */
.preview-word-card .preview-meaning {
  margin-top: 8px !important;
  color: #222;
  font-size: 13px;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.preview-word-card.is-completed .preview-meaning,
.preview-word-card.is-completed .preview-phonetic {
  color: #aaa;
}

.preview-playing {
  position: absolute;
  left: 118px;
  top: 12px;
  width: 16px;
  height: 16px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: previewPlayingPulse 760ms ease-in-out infinite;
}

.preview-focus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  white-space: nowrap;
}

.preview-focus span {
  color: rgba(34, 34, 34, 0.68);
  font-weight: 800;
}

.preview-focus strong {
  color: #5b8af9;
  font-size: 11px;
  letter-spacing: 0.6px;
}

/* ---------- 首次进入的跟读引导 ---------- */
.preview-guide-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  animation: previewGuideOverlayIn 260ms ease-out both;
}

/* 高亮框：下面这些是首帧默认值（第一个卡片的位置）；实际由组件实测后以内联样式覆盖。
 * 用超大的 box-shadow 充当遮罩，把卡片区域"挖"出来，卡片本身原样可见 */
.preview-guide-focus {
  position: absolute;
  left: 103px;
  top: 161px;
  width: 146px;
  height: 158px;
  border: 1px solid #dcff92;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(4, 18, 54, 0.48),
    0 0 22px rgba(220, 255, 146, 0.22);
  pointer-events: none;
  animation: previewGuideFocusIn 320ms ease-out both;
  /* 不加 transition：任何位置微调都直接落位，避免看起来是"滑动"了一下 */
}

.preview-guide-card {
  position: absolute;
  left: 267px;
  top: 84px;
  z-index: 2;
  width: 273px;
  height: 184px;
  animation: previewGuideCardIn 360ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.preview-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none;
}

/* 透明按钮铺满整张引导图：点图上任意位置都算确认（按钮文案藏在图里） */
.preview-guide-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

@keyframes previewGuideOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes previewGuideFocusIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes previewGuideCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.word-test-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.test-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.test-panel-bg {
  left: 48px;
  top: 83px;
  z-index: 1;
  width: 904px;
  height: 457px;
}

.test-side-panel {
  left: 68px;
  top: 189px;
  z-index: 2;
  width: 251px;
  height: 293px;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 240ms ease, filter 240ms ease;
}

.test-question-count {
  position: absolute;
  z-index: 3;
  left: 868px;
  top: 136px;
  min-width: 60px;
  height: 34px;
  padding: 8px 16px;
  border: 1px solid #dfe9f9;
  border-radius: 24px;
  background: #f6f9fe;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.exam-test-stats {
  position: absolute;
  z-index: 3;
  left: 724px;
  top: 137px;
  min-width: 204px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid #dfe9f9;
  border-radius: 24px;
  background: #f6f9fe;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.exam-test-countdown {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border: 1px solid #b0e343;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}

.test-content {
  position: absolute;
  z-index: 3;
  left: 417px;
  top: 159px;
  width: 400px;
  height: 69px;
  text-align: left;
}

.test-content.is-audio {
  left: 420px;
  top: 157px;
  width: 220px;
  height: 66px;
  text-align: left;
}

.test-content.is-chinese {
  left: 417px;
  width: 400px;
  text-align: left;
}

.test-instruction {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

/* 单词与两侧装饰图同行排布，长单词自动缩小字号，避免被装饰图覆盖 */
.test-word-row {
  position: absolute;
  left: -47px;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 587px;
}

.test-word-row h1 {
  position: static;
  min-width: 0;
  max-width: 497px;
  margin: 0;
  overflow: hidden;
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 47px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: none;
}

.test-word-row h1.is-small {
  font-size: 34px;
  line-height: 42px;
}

.test-word-row h1.is-compact {
  font-size: 28px;
  line-height: 36px;
}

.test-word-row h1.is-tiny {
  font-size: 24px;
  line-height: 32px;
}

.test-content.is-chinese h1 {
  max-width: 340px;
  font-size: 34px;
  line-height: 42px;
  white-space: nowrap;
}

.test-content.is-chinese h1.is-small {
  font-size: 28px;
}

.test-content.is-chinese h1.is-compact {
  font-size: 24px;
}

.test-content.is-chinese h1.is-tiny {
  font-size: 20px;
}

.test-audio-status {
  position: absolute;
  left: 0;
  top: 26px;
  width: 140px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 11px 20px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #5b8af9;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.test-audio-status:hover:not(:disabled) {
  background: #4d7ef0;
  transform: scale(0.99);
}

.test-audio-status:disabled {
  cursor: default;
}

.test-audio-status.is-playing {
  background: #5b8af9;
}

.test-audio-icon {
  font-size: 16px;
  line-height: 16px;
}

.test-word-ornament {
  position: static;
  flex: 0 0 auto;
  width: 29px;
  height: 42px;
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none;
}

.test-options {
  position: absolute;
  z-index: 3;
  left: 417px;
  top: 240px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-options.is-audio {
  left: 420px;
  top: 241px;
}

/* 选项由接口提供，加载期间保持选项区高度，避免页面抖动 */
.test-options.is-loading {
  min-height: 244px;
}

.test-options-loading {
  margin: 0;
  padding: 24px 0;
  color: #7a8ba6;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}

/* 选项加载失败时的「重新加载」按钮 */
.test-options-retry {
  margin-left: 10px;
  padding: 3px 14px;
  color: #3d6ce0;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
  background: none;
  border: 1px solid #3d6ce0;
  border-radius: 12px;
}

.test-options-retry:hover {
  background: rgba(61, 108, 224, 0.08);
}

.test-option {
  position: relative;
  width: 400px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #F3F3F4;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #E5E5E8;
  color: #222;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.test-option:hover:not(:disabled) {
  border-color: #689cf0;
  background: rgba(104, 156, 240, 0.1);
  box-shadow: none;
  transform: none;
}

.test-option:disabled {
  cursor: default;
}

.test-option img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* 选项里的词性：比释义更轻（小一号 + 灰色），避免和释义一样重 */
.test-option-pos {
  margin-right: 4px;
  color: #999999;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.test-option .test-option-feedback {
  position: absolute;
  left: 416px;
  top: 10px;
  width: 24px;
  height: 24px;
  animation: testFeedbackPop 220ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.test-option.is-correct {
  border-color: #a6e84d;
  background: #f7ffe9;
}

.test-option.is-wrong {
  border-color: #ff8d8d;
  background: #fff1f1;
}

.exam-exit-layer {
  position: absolute;
  z-index: 40;
  inset: 0;
}

.exam-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  will-change: backdrop-filter;
}

.exam-exit-dialog {
  position: absolute;
  left: 266px;
  top: 172px;
  width: 434px;
  height: 228px;
  animation: examExitPopIn 260ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.exam-exit-panel {
  position: absolute;
  inset: 0;
  width: 434px;
  height: 228px;
  -o-object-fit: fill;
     object-fit: fill;
  pointer-events: none;
}

.exam-exit-copy {
  position: absolute;
  z-index: 2;
  left: 53%;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #222;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.exam-exit-progress,
.exam-exit-hint {
  margin: 0;
  line-height: 18px;
}

.exam-exit-progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.exam-exit-progress strong {
  color: #5d5efb;
  font-size: 22px;
  font-weight: 800;
}

.exam-exit-hint {
  font-size: 13px;
  font-weight: 400;
}

.exam-exit-continue,
.exam-exit-home {
  position: absolute;
  z-index: 2;
  top: 166px;
  width: 102px;
  height: 38px;
}

.exam-exit-continue {
  left: 124px;
}

.exam-exit-home {
  left: 242px;
}

.exam-exit-continue:hover,
.exam-exit-home:hover {
  transform: scale(0.985);
}

@keyframes testFeedbackPop {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.72);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes examExitFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes examExitPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.word-follow-page {
  overflow: hidden;
  background: #255ee4;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.word-follow-page::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(220, 255, 146, 0.16), transparent 2px),
    linear-gradient(105deg, transparent 0 35%, rgba(255, 255, 255, 0.1) 48%, transparent 60%);
  opacity: 0;
  animation: previewLightSweep 1800ms ease-out 220ms both;
}

.follow-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.follow-playing-panel {
  left: 796px;
  top: 0;
  z-index: 3;
  width: 159px;
  height: 58px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: followPlayingIn 460ms ease-out 180ms both;
}

.follow-mascot {
  left: 834px;
  top: 385px;
  z-index: 4;
  width: 112px;
  height: 80px;
  -o-object-fit: contain;
     object-fit: contain;
}

.follow-progress {
  position: absolute;
  z-index: 4;
  left: 316px;
  top: 97px;
  width: 368px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(223, 233, 249, 0.4);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 4px rgba(53, 77, 207, 0.3);
  animation: followPlayingIn 480ms ease-out 120ms both;
}

.follow-progress-group,
.follow-progress-current {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

/* 三段进度（对应三轮跟读）：等宽平分中间区域，段与段之间留 12px 间隔 */
.follow-progress-segments {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.follow-progress-seg {
  position: relative;
  flex: 1 1 0;
  height: 8px;
  border-radius: 999px;
  background: #1e53c9;
}

.follow-progress-seg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #ffff92;
  transition: width 520ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.follow-site-marker {
  position: absolute;
  top: -15px;
  z-index: 2;
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
  transform: translateX(-50%) rotate(15deg);
  transform-origin: center;
  transition: left 520ms cubic-bezier(0.18, 0.84, 0.24, 1);
}

.follow-main-card {
  position: absolute;
  z-index: 2;
  left: 172px;
  top: 159px;
  width: 656px;
  height: 248px;
  color: #222;
  text-align: center;
  animation: followCardIn 620ms cubic-bezier(0.18, 0.84, 0.24, 1) 120ms both;
}

.follow-main-card::before,
.follow-main-card::after {
  position: absolute;
  left: 0;
  width: 656px;
  height: 240px;
  content: "";
  border-radius: 8px;
}

.follow-main-card::before {
  top: 8px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.follow-main-card::after {
  left: 8px;
  top: 0;
  width: 640px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.33);
  box-shadow: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.follow-prompt {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 152px;
  width: 180px;
  height: 24px;
  font-family: "DingTalk JinBuTi", "PingFang SC", sans-serif;
  font-weight: 400;
  text-align: center;
  transform: translateX(-50%);
}

.follow-prompt::before {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 7px;
  width: 88px;
  height: 10px;
  content: "";
  background: #fff;
  transform: translateX(-50%);
}

.follow-prompt svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 180px;
  height: 24px;
  overflow: visible;
}

.follow-prompt text {
  fill: #1973fc;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-family: "DingTalk JinBuTi", "PingFang SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.follow-prompt span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.follow-word-shell {
  position: absolute;
  z-index: 3;
  inset: 0;
}

/* 单词行：左图 + 单词 + 右图，整行居中，宽度随单词长度自适应 */
.follow-word-row {
  position: absolute;
  left: 50%;
  top: 47px;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
}

.follow-word-shell h1 {
  margin: 0;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 67px;
  text-align: center;
  white-space: nowrap;
}

/* 长单词/词组逐级降字号：卡片可用宽度约 526px（656 - 两侧装饰图与间距），
 * 56px 时约能放下 15 个字符，再长就靠下面三档收缩 */
.follow-word-shell h1.is-small {
  font-size: 44px;
  line-height: 53px;
}

.follow-word-shell h1.is-compact {
  font-size: 38px;
  line-height: 46px;
}

.follow-word-shell h1.is-tiny {
  font-size: 32px;
  line-height: 40px;
}

.follow-phonetic {
  position: absolute;
  left: 50%;
  top: 118px;
  width: -moz-max-content;
  width: max-content;
  margin: 0;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.follow-phonetic span,
.follow-phonetic em {
  vertical-align: middle;
}

.follow-phonetic em {
  display: inline-grid;
  min-width: 30px;
  height: 20px;
  place-items: center;
  padding: 0 10px 4px 10px;
  border: 1px solid rgba(104, 156, 240, 0.28);
  border-radius: 10px;
  background: rgba(104, 156, 240, 0.08);
  color: #689cf0;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
}

.follow-phonetic span + em {
  margin-left: 8px;
}

.follow-meaning {
  position: absolute;
  left: 50%;
  top: 166px;
  width: -moz-max-content;
  width: max-content;
  margin: 0;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* 词性：n. / adj. 这类标记，颜色比释义浅，和正文区分开 */
.follow-pos {
  margin-right: 6px;
  color: #aaabb3;
  font-size: 16px;
}

/* 朗读图标：由 .follow-word-row 排布在单词左右两侧，不再单独绝对定位 */
.follow-reading-left,
.follow-reading-right {
  flex: 0 0 auto;
  width: 29px;
  height: 42px;
  -o-object-fit: contain;
     object-fit: contain;
  animation: followReadingBounce 1280ms ease-in-out infinite;
}

.follow-reading-right {
  animation-delay: 140ms;
}

.follow-word-strip {
  position: absolute;
  z-index: 3;
  left: 50px;
  top: 458px;
  width: 900px;
  height: 70px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  /* 词多时横向可滚动（原来 overflow: hidden 会直接把后面的词裁掉） */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  background: rgba(32, 94, 216, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* 隐藏滚动条，保持原来的视觉，同时仍可横向滑动 / 程序滚动 */
.follow-word-strip::-webkit-scrollbar {
  display: none;
}

.follow-word-pill {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(187, 187, 187, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.follow-word-pill.is-current {
  border-color: rgba(220, 255, 146, 0.68);
  background: rgba(255, 255, 255, 0.1);
  color: #dcff92;
  box-shadow: none;
}

.follow-word-pill.is-completed {
  opacity: 0.5;
  color: #fff;
}

.follow-guide-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  animation: followGuideOverlayIn 260ms ease-out both;
}

.follow-guide-overlay::before {
  display: none;
}

/* 高亮框：默认值是「单词行 + 音标 + 释义」的整体区域（首帧用，实测后由内联样式覆盖）。
 * 用超大的 box-shadow 当作遮罩，把这块"挖"出来，真实内容原样可见 */
.follow-guide-focus {
  position: absolute;
  left: 330px;
  top: 190px;
  z-index: 1;
  width: 340px;
  height: 153px;
  border: 1px solid #dcff92;
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(4, 18, 54, 0.48),
    0 0 22px rgba(220, 255, 146, 0.22);
  pointer-events: none;
  animation: followGuideFocusIn 320ms ease-out both;
}

.follow-guide-card {
  position: absolute;
  /* left 由组件按高亮区右侧实测覆盖；这里只是首帧默认值 */
  left: 688px;
  top: 218px;
  z-index: 2;
  width: 170px;
  height: 195px;
  /* 高亮区变化时平滑跟过去，避免瞬间跳动 */
  transition: left 240ms ease;
  animation: followGuideCardIn 360ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.follow-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none;
}

.follow-guide-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 56px;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.follow-guide-action:hover {
  transform: scale(0.98);
  filter: brightness(1.04);
}

/* 返回二次确认弹窗的样式在公共组件 ExitConfirmDialog.vue 里（5 个步骤页共用） */

@keyframes followGuideOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes followGuideCardIn {
  from {
    opacity: 0;
    transform: translate(12px, 8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes followGuideFocusIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wrong-preview-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.wrong-preview-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.wrong-preview-panel {
  left: 48px;
  top: 83px;
  z-index: 1;
  width: 904px;
  height: 457px;
  -o-object-fit: fill;
     object-fit: fill;
  animation: followCardIn 560ms cubic-bezier(0.18, 0.84, 0.24, 1) 80ms both;
}

.wrong-preview-title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 107px;
  margin: 0;
  color: #dcff92;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0.36px;
  text-shadow:
    1px 0 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000,
    0 -1px 0 #000,
    1px 1px 0 #000,
    -1px 1px 0 #000,
    1px -1px 0 #000,
    -1px -1px 0 #000;
  text-align: center;
}

.wrong-preview-reading-tip {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 0;
  padding: 6px 16px 6px 20px;
  border: 1px solid #dcff92;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 12px;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.9), rgba(68, 68, 68, 0.9));
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.wrong-preview-grid {
  position: absolute;
  z-index: 2;
  left: 103px;
  top: 148px;
  width: 794px;
  display: grid;
  grid-template-columns: repeat(2, 391px);
  gap: 12px 12px;
}

.wrong-preview-card {
  position: relative;
  /* 释义可能换行，高度随内容自适应；一行时仍为 64px */
  min-height: 64px;
  /* 左 72px 让位给序号与竖线，右 52px 让位给朗读中的播放图标 */
  padding: 12px 52px 12px 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(187, 187, 187, 0);
  animation: wrongPreviewItemIn 420ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
  transition:
    background 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.wrong-preview-card:nth-child(n) {
  animation-delay: calc(120ms + (var(--item-index, 0) * 42ms));
}

.wrong-preview-index {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(52, 108, 219, 0.06);
  color: #4b7cdf;
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  display: grid;
  place-items: center;
}

.wrong-preview-divider {
  position: absolute;
  left: 60px;
  top: 16px;
  width: 1px;
  height: 32px;
  background: rgba(34, 34, 34, 0.08);
}

/* 回到文档流：释义换行时卡片能随之增高（绝对定位不会撑开父级高度） */
.wrong-preview-word,
.wrong-preview-meaning {
  display: block;
  margin: 0;
  color: #222;
  line-height: 18px;
}

.wrong-preview-word {
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: break-word;
}

.wrong-preview-meaning {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  /* 释义较长时换行，避免被卡片裁掉 */
  white-space: normal;
  overflow-wrap: anywhere;
}

.wrong-preview-card.is-reading {
  background: linear-gradient(180deg, #4779de, rgba(71, 121, 222, 0.9));
  color: #fff;
  transform: translateY(-1px);
}

.wrong-preview-card.is-reading .wrong-preview-index {
  background: #346cdb;
  color: #fff;
}

.wrong-preview-card.is-reading .wrong-preview-divider {
  background: rgba(255, 255, 255, 0.36);
}

.wrong-preview-card.is-reading .wrong-preview-word,
.wrong-preview-card.is-reading .wrong-preview-meaning {
  color: #fff;
}

.wrong-preview-playing {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
}

.wrong-preview-empty {
  position: absolute;
  z-index: 2;
  left: 103px;
  top: 250px;
  width: 794px;
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.wrong-preview-bottom-steps {
  left: 415px;
  top: 560px;
}

@keyframes wrongPreviewItemIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- 首次进入的跟读引导 ---------- */
.wrong-preview-guide-overlay {
  position: absolute;
  z-index: 30;
  inset: 0;
  animation: wrongPreviewGuideOverlayIn 260ms ease-out both;
}

/* 高亮框：默认值 = 第一个卡片的位置/尺寸（释义换行导致高度变化时由组件实测覆盖）。
 * 用超大的 box-shadow 充当遮罩，把卡片区域"挖"出来，卡片本身原样可见 */
.wrong-preview-guide-focus {
  position: absolute;
  left: 103px;
  top: 148px;
  width: 391px;
  height: 64px;
  border: 1px solid #dcff92;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(4, 18, 54, 0.48),
    0 0 22px rgba(220, 255, 146, 0.22);
  pointer-events: none;
  animation: wrongPreviewGuideFocusIn 320ms ease-out both;
}

.wrong-preview-guide-card {
  position: absolute;
  left: 523px;
  top: 70px;
  z-index: 2;
  width: 273px;
  height: 180px;
  animation: wrongPreviewGuideCardIn 360ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.wrong-preview-guide-card img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  pointer-events: none;
}

/* 透明按钮铺满整张引导图：点图上任意位置都算确认（按钮文案藏在图里） */
.wrong-preview-guide-action {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

@keyframes wrongPreviewGuideOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes wrongPreviewGuideFocusIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes wrongPreviewGuideCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.learning-complete-page {
  animation: pageIn 280ms ease-out both;
}

.complete-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
}

.learning-complete-panel {
  left: 48px;
  top: 82px;
  width: 904px;
  height: 458px;
}

.learning-complete-copy {
  position: absolute;
  left: 50%;
  top: 416px;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

/* 查看学习报告：134×34 切图，水平居中（433 = (1000 - 134) / 2），
   纵向中心维持原来按钮的位置（460 + 17 = 477） */
.learning-complete-report {
  left: 433px;
  top: 460px;
  width: 134px;
  height: 34px;
  border-radius: 17px;
}

.complete-bottom-steps {
  left: 415px;
  top: 560px;
}

.exam-complete-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.exam-complete-back {
  left: 0;
  top: 0;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.exam-complete-panel {
  left: 48px;
  top: 64px;
  z-index: 1;
  width: 904px;
  height: 476px;
  -o-object-fit: cover;
     object-fit: cover;
}

.exam-complete-summary {
  position: absolute;
  left: 104px;
  top: 144px;
  z-index: 2;
  width: 241px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 27px;
  background: #f5f7fc;
  color: #222;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.exam-complete-summary button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.exam-complete-summary button:hover {
  transform: scale(0.985);
}

.exam-complete-summary button.is-active {
  border: 1.5px solid #222;
  background: #c3f25f;
}

.exam-complete-score {
  position: absolute;
  left: 629px;
  top: 139px;
  z-index: 2;
  width: 267px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.exam-complete-score img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.exam-complete-score p {
  display: flex;
  gap: 4px;
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.exam-complete-score p strong {
  font-weight: 700;
}

.exam-complete-score p span {
  font-weight: 400;
}

.exam-complete-score-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.exam-complete-score-track {
  position: relative;
  width: 160px;
  height: 16px;
  overflow: hidden;
  border-radius: 17px;
  background: #f5f7fc;
}

.exam-complete-score-track span {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 12px;
  max-width: 156px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 9px,
      rgba(255, 255, 255, 0) 9px 19px
    ),
    #5077fc;
}

.exam-complete-percent {
  color: #5077fc;
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 18px;
  line-height: 18px;
  font-weight: 800;
}

.exam-complete-percent-mark {
  color: #5077fc;
  font-size: 12px;
  line-height: 18px;
}

.exam-complete-word-grid {
  position: absolute;
  left: 103px;
  top: 206px;
  z-index: 2;
  width: 794px;
  display: grid;
  grid-template-columns: repeat(5, 146px);
  gap: 20px 16px;
}

.exam-complete-word {
  width: 146px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(252, 190, 120, 0.7);
  border-radius: 18px;
  background: rgba(252, 190, 120, 0.2);
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.exam-complete-word-grid.is-mastered .exam-complete-word {
  border-color: rgba(104, 156, 240, 0.3);
  background: rgba(104, 156, 240, 0.1);
}

.exam-complete-word-grid.is-wrong .exam-complete-word {
  border-color: rgba(252, 190, 120, 0.7);
  background: rgba(252, 190, 120, 0.2);
}

.exam-complete-word.is-compact {
  font-size: 13px;
}

.exam-complete-word.is-tiny {
  font-size: 11px;
}

.exam-complete-actions {
  position: absolute;
  left: 390px;
  top: 478px;
  z-index: 2;
  width: 220px;
  height: 38px;
  display: flex;
  gap: 16px;
}

.exam-complete-action {
  width: 102px;
  height: 38px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 19px;
  background: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.exam-complete-action img {
  display: block;
  width: 100%;
  height: 100%;
}

.exam-complete-action:hover:not(:disabled) {
  transform: scale(0.985);
  filter: brightness(1.035);
}

.exam-complete-action:disabled {
  cursor: default;
  filter: grayscale(0.3);
  opacity: 0.65;
}

.library-detail-page {
  overflow: hidden;
  background: #3159b8;
  animation: previewPageIn 520ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.library-back {
  left: 0;
  top: 0;
  z-index: 4;
  width: 420px;
  height: 100px;
  transform-origin: 34px 24px;
  animation: backFlyIn 520ms cubic-bezier(0.22, 0.72, 0.2, 1) backwards;
}

.library-panel {
  left: 48px;
  top: 18px;
  z-index: 1;
  width: 904px;
  height: 520px;
  -o-object-fit: fill;
     object-fit: fill;
}

.library-title {
  position: absolute;
  left: 463px;
  top: 90px;
  z-index: 2;
  width: 75px;
  height: 24px;
  overflow: visible;
}

.library-title text {
  fill: #fff;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* 4 个 tab（全部 / 已掌握 / 抗遗忘 / 未学习）：
   容器加宽到 470px，右侧到 .library-mastery(left 629px) 仍留约 56px 间距 */
.library-tabs {
  position: absolute;
  left: 103px;
  top: 144px;
  z-index: 2;
  width: 445px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 27px;
  background: #f5f7fc;
}

.library-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 2px 4px 0;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: #222;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  /* 数量特别大时省略，避免撑破容器 */
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.library-tab:hover {
  transform: scale(0.985);
}

.library-tab.is-active {
  border-color: #222;
  background: #c3f25f;
  font-weight: 500;
}

.library-mastery {
  position: absolute;
  left: 629px;
  top: 139px;
  z-index: 2;
  width: 267px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.library-mastery > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  -o-object-fit: contain;
     object-fit: contain;
  transform: translateY(-4px);
}

.library-mastery p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.library-mastery-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-mastery-track {
  position: relative;
  width: 160px;
  height: 16px;
  overflow: hidden;
  border-radius: 17px;
  background: #f5f7fc;
}

.library-mastery-track i {
  position: absolute;
  left: 2px;
  top: 2px;
  height: 12px;
  max-width: 156px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 9px,
      rgba(255, 255, 255, 0) 9px 19px
    ),
    #5077fc;
}

.library-mastery-progress > strong {
  color: #5077fc;
  font-family: "Douyin Sans", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 18px;
  font-weight: 800;
}

.library-mastery-progress > span {
  color: #5077fc;
  font-family: "Douyin Sans", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: 800;
}

.library-word-grid {
  position: absolute;
  left: 103px;
  top: 200px;
  z-index: 2;
  width: 794px;
  height: 294px;
  display: grid;
  grid-template-columns: repeat(5, 146px);
  align-content: start;
  gap: 12px 16px;
  overflow: hidden auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 119, 252, 0.45) rgba(255, 255, 255, 0.08);
}

.library-word-grid::-webkit-scrollbar {
  width: 6px;
}

.library-word-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.library-word-grid::-webkit-scrollbar-thumb {
  background: rgba(80, 119, 252, 0.45);
  border-radius: 3px;
}

.library-word-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(80, 119, 252, 0.65);
}

/* 网格内的加载/错误/空态/到底提示，横向占满整行 */
.library-grid-tip {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #6b7a99;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.library-grid-retry {
  margin-left: 8px;
  padding: 2px 12px;
  color: #5077fc;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 1px solid #5077fc;
  border-radius: 12px;
}

.library-grid-retry:hover {
  background: rgba(80, 119, 252, 0.08);
}

.library-scroll-hint {
  position: absolute;
  left: 50%;
  top: 475px;
  z-index: 4;
  width: 100px;
  height: 32px;
  pointer-events: none;
  animation: libraryScrollHintFloat 1.4s ease-in-out infinite;
}
.library-btn-start {
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 522px;
  z-index: 4;
  width: 140px;
  height: 38px;
  margin-left: -70px;
}

.library-word-chip {
  position: relative;
  width: 146px;
  height: 34px;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid rgba(172, 181, 199, 0.3);
  border-radius: 18px;
  background: rgba(222, 222, 222, 0.2);
  color: #222;
  cursor: pointer;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.library-word-chip:hover {
  transform: scale(0.985);
  filter: brightness(1.03);
}

.library-word-chip.is-compact {
  font-size: 13px;
}

.library-word-chip.is-tiny {
  font-size: 11px;
}

.library-word-chip.is-mastered {
  border-color: rgba(104, 156, 240, 0.3);
  background: rgba(104, 156, 240, 0.1);
  color: #222;
}

@keyframes libraryScrollHintFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

.library-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.library-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  will-change: backdrop-filter;
}

.library-modal {
  position: absolute;
  left: 391px;
  top: 156px;
  width: 219px;
  height: 228px;
  animation: modalPop 220ms ease-out both;
}

.library-modal-panel {
  position: absolute;
  left: 0;
  top: 5.5px;
  width: 100%;
  height: 217px;
  -o-object-fit: fill;
     object-fit: fill;
}

.library-modal-word,
.library-modal-phonetic,
.library-modal-meaning,
.library-modal-status {
  position: absolute;
  left: 50%;
  width: 160px;
  transform: translateX(-50%);
  text-align: center;
}

.library-modal-word {
  top: 91px;
  overflow: hidden;
  color: #222;
  font-family: "Douyin Sans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 22px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-modal-word.is-compact {
  font-size: 18px;
}

.library-modal-word.is-tiny {
  font-size: 15px;
}

.library-modal-phonetic {
  top: 122px;
  color: #aaa;
  font-size: 12px;
  line-height: 18px;
}

.library-modal-meaning {
  top: 146px;
  color: #222;
  font-size: 14px;
  line-height: 18px;
}

.library-modal-ok {
  position: absolute;
  left: 455px;
  top: 358px;
  width: 90px;
  height: 38px;
}

.dev-docs-page {
  overflow: hidden;
  background: #f4f7ff;
  color: #1f2937;
}

.dev-docs-header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px 16px;
  border-bottom: 1px solid rgba(104, 156, 240, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(49, 89, 184, 0.12);
}

.dev-docs-header p,
.dev-docs-header h1 {
  margin: 0;
}

.dev-docs-header p {
  color: #5077fc;
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dev-docs-header h1 {
  color: #172033;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.dev-docs-header-actions {
  display: flex;
  gap: 10px;
}

.dev-docs-header-actions button {
  height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(104, 156, 240, 0.4);
  border-radius: 17px;
  background: #fff;
  color: #3159b8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.dev-docs-header-actions button:hover {
  transform: scale(0.985);
  background: rgba(104, 156, 240, 0.1);
}

.dev-docs-content {
  position: absolute;
  left: 0;
  top: 96px;
  bottom: 0;
  width: 100%;
  overflow-y: auto;
  padding: 24px 34px 38px;
}

.dev-docs-tabs {
  width: 260px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid rgba(104, 156, 240, 0.2);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
}

.dev-docs-tabs button {
  height: 34px;
  flex: 1 1 0;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #3159b8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.dev-docs-tabs button:hover {
  transform: scale(0.985);
}

.dev-docs-tabs button.is-active {
  background: #c3f25f;
  color: #172033;
  box-shadow: inset 0 0 0 1.5px rgba(23, 32, 51, 0.86);
}

.dev-docs-band {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid rgba(104, 156, 240, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(49, 89, 184, 0.08);
}

.dev-docs-band h2 {
  margin: 0 0 14px;
  color: #172033;
  font-size: 18px;
  line-height: 26px;
}

.dev-docs-band h3 {
  margin: 0 0 8px;
  color: #3159b8;
  font-size: 15px;
  line-height: 22px;
}

.dev-docs-band p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 22px;
}

.dev-docs-storage {
  display: grid;
  gap: 10px;
}

.dev-docs-storage-key {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef4ff;
}

.dev-docs-storage-key span {
  color: #3159b8;
  font-size: 13px;
  font-weight: 700;
}

.dev-docs-storage-key code,
.dev-docs-table code,
.dev-docs-api-list code,
.dev-docs-rule-grid code {
  color: #0f172a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 18px;
}

.dev-docs-table {
  display: grid;
  grid-template-columns: 170px 150px 1fr;
  overflow: hidden;
  border: 1px solid rgba(104, 156, 240, 0.24);
  border-radius: 8px;
}

.dev-docs-table-head {
  padding: 10px 12px;
  background: #dce9ff;
  color: #3159b8;
  font-size: 13px;
  font-weight: 800;
}

.dev-docs-table-row {
  display: contents;
}

.dev-docs-table-row code,
.dev-docs-table-row span,
.dev-docs-table-row p {
  min-height: 38px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(104, 156, 240, 0.16);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 18px;
}

.dev-docs-table-row p {
  color: #475569;
}

.dev-docs-api-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dev-docs-api-list article,
.dev-docs-rule-grid article {
  padding: 14px;
  border: 1px solid rgba(104, 156, 240, 0.2);
  border-radius: 8px;
  background: #fff;
}

.dev-docs-api-list p,
.dev-docs-rule-grid p {
  margin: 8px 0 0;
}

.dev-docs-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@keyframes pageIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backFlyIn {
  0% {
    opacity: 0;
    transform: translate3d(-180px, -96px, 0) rotate(-8deg) scale(0.86);
    filter: blur(1.5px);
  }

  42% {
    opacity: 1;
    filter: blur(0.4px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
    filter: blur(0);
  }
}

@keyframes backFlyOut {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translate(-190px, -104px) rotate(-12deg) scale(0.82);
    filter: blur(2px);
  }
}

@keyframes studyPageFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes shineSweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }

  18% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateX(380%) skewX(-18deg);
  }
}

@keyframes stepStageIn {
  0% {
    opacity: 0;
    transform: scale(1.018);
    filter: saturate(1.18) brightness(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes stepStageOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(6px);
  }
}

@keyframes stepGateTrace {
  0% {
    opacity: 0;
    -webkit-clip-path: inset(0 50% 100% 50% round 32px);
            clip-path: inset(0 50% 100% 50% round 32px);
  }

  52% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    -webkit-clip-path: inset(0 0 0 0 round 32px);
            clip-path: inset(0 0 0 0 round 32px);
  }
}

@keyframes stepAtmosphere {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  50% {
    opacity: 0.55;
    transform: translateY(-5px);
  }
}

@keyframes stepScan {
  0% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(1390px) skewX(-18deg);
  }
}

@keyframes stepLockOn {
  0% {
    opacity: 0;
    transform: scaleY(0.72) translateX(-28px);
  }

  45% {
    opacity: 0.56;
  }

  100% {
    opacity: 0;
    transform: scaleY(1) translateX(0);
  }
}

@keyframes stepTitleIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes stepCardLoad {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes activeStepPulse {
  0%,
  100% {
    box-shadow:
      0 0 30px rgba(220, 255, 146, 0.25),
      inset 0 -32px 60px rgba(27, 67, 190, 0.42);
  }

  50% {
    box-shadow:
      0 0 42px rgba(220, 255, 146, 0.38),
      inset 0 -32px 70px rgba(27, 67, 190, 0.5);
  }
}

@keyframes activeStepSweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-84%);
  }

  72% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translateX(92%);
  }
}

@keyframes activeIconLift {
  0% {
    transform: translateY(12px) scale(0.86);
    filter: drop-shadow(0 0 0 rgba(220, 255, 146, 0));
  }

  62% {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 10px 18px rgba(35, 69, 186, 0.4));
  }

  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 14px rgba(35, 69, 186, 0.34));
  }
}

@keyframes stepArrowPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: translateX(0);
  }

  50% {
    opacity: 0.82;
    transform: translateX(4px);
  }
}

@keyframes stepProgressFill {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes previewPageIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(1.01);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes previewLightSweep {
  0% {
    opacity: 0;
    transform: translateX(-38%);
  }

  22% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateX(38%);
  }
}

@keyframes previewToastIn {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes previewMascotIn {
  0% {
    opacity: 0;
    transform: translate(26px, -18px) rotate(4deg) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes previewCardIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes previewCurrentPulse {
  0%,
  100% {
    box-shadow:
      0 10px 28px rgba(41, 101, 230, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  }

  50% {
    box-shadow:
      0 14px 36px rgba(41, 101, 230, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.95);
  }
}

@keyframes previewPlayingPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes previewFocusIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes followPlayingIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes followMascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

@keyframes followCardIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes followReadingBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 rgba(40, 76, 174, 0));
  }

  50% {
    transform: translateY(-4px) scale(1.015);
    filter: drop-shadow(0 8px 10px rgba(40, 76, 174, 0.16));
  }
}

@keyframes modalLayerIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  0% {
    transform: translate(-50%, -48%) scale(0.965);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes resultCardIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.965);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slashCut {
  0% {
    opacity: 0;
    -webkit-clip-path: inset(0 0 82% 82%);
            clip-path: inset(0 0 82% 82%);
    transform: translate(72px, -54px) scale(0.68);
  }

  26% {
    opacity: 1;
  }

  74% {
    -webkit-clip-path: inset(0 0 0 0);
            clip-path: inset(0 0 0 0);
    transform: translate(-12px, 10px) scale(1.04);
  }

  100% {
    opacity: 1;
    -webkit-clip-path: inset(0 0 0 0);
            clip-path: inset(0 0 0 0);
    transform: translate(0, 0) scale(1);
  }
}

@keyframes masteredWordExit {
  0% {
    border-color: rgba(104, 156, 240, 0.3);
    background: rgba(104, 156, 240, 0.1);
    color: #222;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  32% {
    border-color: rgba(179, 179, 179, 0.1);
    background: rgba(222, 222, 222, 0.1);
    color: #ccc;
    transform: translateY(0) scale(1);
  }

  62% {
    opacity: 1;
    transform: translateY(-3px) scale(0.96);
    filter: blur(0);
  }

  100% {
    border-color: rgba(179, 179, 179, 0.1);
    background: rgba(222, 222, 222, 0.1);
    color: #ccc;
    opacity: 0;
    transform: translateY(14px) scale(0.74) rotate(-4deg);
    filter: blur(2px);
  }
}

@keyframes newWordEnter {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.5) rotate(7deg);
    filter: blur(3px);
  }

  42% {
    opacity: 1;
    transform: translateY(4px) scale(1.08) rotate(-2deg);
    filter: blur(0);
  }

  72% {
    transform: translateY(-2px) scale(0.98) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  12%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
  }

  .slash-effect {
    animation: none;
  }
}



