/* 学生端：手机优先，390 宽为基准 */
body {
  background: #eef1f8;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: clip;
}
@media (min-width: 520px) {
  #app {
    box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(29, 39, 66, 0.08);
  }
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.loading {
  display: flex;
  justify-content: center;
  padding: 120px 0;
  color: var(--brand);
}
.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 60px 16px;
}
h2,
h3 {
  margin: 0;
}
h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
h3 small {
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

/* 微信里打开时的提示 */
.wx-tip {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  background: #fff4dc;
  border-bottom: 1px solid #ffe2a3;
  color: #8a5300;
  font-size: 14px;
  line-height: 1.5;
}
.wx-tip span {
  flex: 1;
}
.wx-tip b {
  color: #c25e00;
}
.wx-arrow {
  flex: none;
  color: #e07a10;
  animation: nudge 1.2s ease-in-out infinite;
}
@keyframes nudge {
  50% {
    transform: translate(3px, -3px);
  }
}

/* ---------- 进入 ---------- */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 16px 24px;
  background: radial-gradient(120% 60% at 50% 0%, #dfe5ff 0%, rgba(223, 229, 255, 0) 70%), var(--bg);
}
.login-hero {
  text-align: center;
  padding: 56px 0 26px;
}
.logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6d84ff, #4f6bff 50%, #8d5cf6);
  box-shadow: 0 10px 24px rgba(79, 107, 255, 0.35);
}
.login-hero h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 1px;
}
.login-hero p {
  margin: 4px 0 0;
  color: var(--ink-2);
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 13px;
}
.login-card {
  padding: 16px;
}
.login-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 12px;
}
.login-step .lv {
  margin-left: auto;
}
.back-mini {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.classes {
  display: grid;
  gap: 10px;
}
.class-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  min-height: 72px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
}
.class-btn:active {
  background: var(--brand-soft);
}
.lv.big {
  font-size: 15px;
  line-height: 40px;
  width: 54px;
  text-align: center;
  border-radius: 12px;
}
.class-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.class-txt small {
  color: var(--ink-3);
  font-size: 12px;
}
.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.name {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-height: 60px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
  min-width: 0;
}
.name:active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.name > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.name small {
  color: var(--ink-3);
}
.login-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 18px 8px 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lf {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.lf input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.lf input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.lf input[name='pin'] {
  letter-spacing: 6px;
}
.lf input[name='pin']:placeholder-shown {
  letter-spacing: normal;
}
.login-err {
  min-height: 18px;
  margin: -2px 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bad);
}
.login-err:empty {
  min-height: 0;
  margin: 0;
}
/* 正式版不显示演示用的按钮 */
.prod .demo,
.prod .demo-btns {
  display: none !important;
}

/* ---------- 首页 ---------- */
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 18px;
  background: linear-gradient(160deg, #e3e8ff 0%, #eef1fb 60%, var(--bg) 100%);
}
.hello {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hi {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}
.sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 3px;
}
.switch {
  border: 1px solid rgba(29, 39, 66, 0.1);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 34px;
  font-size: 13px;
  color: var(--ink-2);
}
.home {
  padding: 4px 16px 32px;
}
.fresh {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 0;
  text-align: left;
  color: #fff;
  background: linear-gradient(120deg, #4f6bff, #7b5cf6);
  box-shadow: 0 8px 20px rgba(79, 107, 255, 0.3);
  animation: pop 0.35s ease-out;
}
@keyframes pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
}
.fresh-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.fresh-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.fresh-txt small {
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fresh-go {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 14px 12px;
  min-height: 158px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.tile::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -26px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--s);
}
.tile:active {
  transform: scale(0.98);
}
.tile-ic {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--c);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent);
  flex: none;
}
.tile-name {
  font-size: 18px;
  font-weight: 800;
  margin-top: 12px;
}
.tile-hint {
  font-size: 12px;
  color: var(--ink-3);
}
.tile-stats {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  color: var(--ink-3);
  width: 100%;
}
.tile-stats span {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.tile-stats b {
  font-size: 15px;
  color: var(--ink-2);
  font-family: var(--en);
}
.tile-stats .hot b,
.tile-stats .hot {
  color: #d9730d;
}
.block {
  margin-top: 22px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
  min-height: 60px;
}
.row-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s);
  color: var(--c);
  flex: none;
}
.row-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.row-txt b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-txt small {
  color: var(--ink-3);
  font-size: 12px;
}
.foot {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 24px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--c);
}
.bar-back {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--ink);
}
.bar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}
.bar-right {
  width: 44px;
  display: flex;
  justify-content: center;
}
.page {
  padding: 14px 16px 28px;
}
.page.has-bottom {
  padding-bottom: 110px;
}
.page > .card,
.page > section,
.page > article,
.page > details {
  margin-bottom: 12px;
}
.mod-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--s);
  margin-bottom: 14px;
}
.mod-hero b {
  display: block;
  font-size: 19px;
}
.mod-hero small {
  color: var(--ink-2);
}
.task {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 0;
  text-align: left;
}
.task-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.task-top .pill,
.task-top .muted {
  margin-left: auto;
}
.task-week {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.dot-new {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--bad);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
}
.task-title {
  font-size: 17px;
  font-weight: 700;
}
.task-meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- 交作业 ---------- */
.head-card {
  padding: 16px;
}
.head-card h2 {
  font-size: 19px;
  margin: 2px 0 6px;
}
.note {
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 14px;
}
.prompt {
  white-space: pre-wrap;
  background: #f7f8fc;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.req {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #c4600f;
  background: var(--writing-soft);
  padding: 4px 10px;
  border-radius: 8px;
}
.upload-card {
  padding: 16px;
}
.upload-card h3 {
  margin-bottom: 2px;
}
.upload-card > p {
  margin: 0 0 12px;
}
.camera-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 170px;
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent);
  background: var(--brand-soft);
  color: var(--brand-ink);
  cursor: pointer;
}
.camera-btn:active {
  background: #e2e7ff;
}
.camera-btn input,
.shot.add input,
.link-btn input,
label.btn input {
  display: none;
}
.camera-ic {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 107, 255, 0.35);
  margin-bottom: 6px;
}
.camera-btn b {
  font-size: 17px;
}
.camera-btn small {
  color: var(--ink-2);
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.shot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecf4;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-no {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 26, 45, 0.65);
  padding: 1px 7px;
  border-radius: 6px;
}
/* 右上角的 ×：看着 28px，点的范围 36px（外圈透明边） */
.shot-del {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: rgba(20, 26, 45, 0.62);
  background-clip: padding-box;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.shot.add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.loading-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.upload-alt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.upload-alt.center {
  justify-content: center;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
}
.link-btn.demo {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(244, 246, 251, 0), var(--bg) 30%);
  z-index: 30;
}

/* 口语 */
.part {
  padding: 16px;
}
.part-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.part-no {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--speaking-soft);
  color: var(--speaking);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--en);
}
.part > p {
  margin: 4px 0 0;
}
.qs {
  margin: 10px 0 0;
  padding: 0 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
}
.qs li {
  margin-bottom: 6px;
}
.pics {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.pics-2 {
  grid-template-columns: 1fr 1fr;
}
.pics img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  cursor: zoom-in;
}
.rec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 4px;
  user-select: none;
  -webkit-user-select: none;
}
.hold {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  color: #fff;
  background: linear-gradient(145deg, #a874ff, #8a4cf3);
  box-shadow: 0 10px 26px rgba(146, 87, 245, 0.4);
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s;
}
.hold-ic {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hold-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(146, 87, 245, 0.25);
  pointer-events: none;
}
.rec.on .hold {
  transform: scale(1.12);
  background: linear-gradient(145deg, #ff6b8b, #e5484d);
  box-shadow: 0 10px 30px rgba(229, 72, 77, 0.45);
}
.rec.on .hold-ring {
  border-color: rgba(229, 72, 77, 0.35);
  animation: ripple 1.2s ease-out infinite;
}
@keyframes ripple {
  from {
    transform: scale(0.9);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.rec-label,
.rec-live {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.4;
}
.rec-label b {
  font-size: 16px;
  color: var(--speaking);
}
.rec-label small,
.rec-live small {
  color: var(--ink-3);
  font-size: 12px;
}
.rec-live {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 260px;
}
.rec-live small {
  width: 100%;
  text-align: center;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bad);
  animation: blink 1s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.rec-time {
  font-family: var(--en);
  font-size: 18px;
  color: var(--bad);
  font-variant-numeric: tabular-nums;
}
.rec-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.rec-bars i {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--bad);
  opacity: 0.7;
  transition: height 0.08s;
}
.rec-fallback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--warn-soft);
}
.rec-fallback p {
  margin: 0 0 10px;
}
.clip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 8px 8px 8px;
  border-radius: 14px;
  background: var(--speaking-soft);
}
.clip-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--speaking);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
}
.clip-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(146, 87, 245, 0.2);
  overflow: hidden;
}
.clip-fill {
  height: 100%;
  width: 0;
  background: var(--speaking);
}
.clip-time {
  font-family: var(--en);
  font-size: 13px;
  color: var(--ink-2);
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  display: flex;
  justify-content: flex-end;
  color: var(--speaking);
}
.clip .btn.sm {
  background: #fff;
}

/* 交了以后 */
.wait-card {
  padding: 22px 18px 14px;
}
.wait-hero {
  text-align: center;
}
.big-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #2fd39a, #16a571);
  box-shadow: 0 10px 24px rgba(22, 165, 113, 0.35);
  animation: pop 0.4s ease-out;
}
.wait-hero h2 {
  font-size: 22px;
}
.wait-hero p {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.steps {
  list-style: none;
  margin: 20px 0 4px;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.steps li.ok:not(:last-child)::before {
  background: var(--ok);
}
.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  background: #fff;
  color: #fff;
}
.steps li.ok .step-dot {
  background: var(--ok);
  border-color: var(--ok);
}
.steps li.now .step-dot {
  border-color: var(--brand);
  color: var(--brand);
}
.steps li.now .step-dot .spinner {
  width: 12px;
  height: 12px;
  border-width: 2px;
}
.steps li b {
  display: block;
  font-size: 15px;
}
.steps li.wait b {
  color: var(--ink-3);
  font-weight: 500;
}
.steps li.now b {
  color: var(--brand-ink);
}
.steps small {
  color: var(--ink-3);
  font-size: 12px;
}
.mine {
  padding: 16px;
}
.mine .btn {
  margin-top: 8px;
}
.clip-row {
  margin-bottom: 10px;
}
.clip-row .clip {
  margin-top: 4px;
}

/* ---------- 反馈 ---------- */
.fb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.teacher-note {
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff8e6, #fff);
  border: 1px solid #ffe7ad;
  box-shadow: none;
}
.tn-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #b0700b;
  font-size: 14px;
}
.teacher-note p {
  margin: 6px 0 0;
  font-size: 15px;
}
.page .card:not(.task):not(.head-card):not(.upload-card):not(.part):not(.wait-card):not(.mine):not(.teacher-note) {
  padding: 16px;
}
.score-card {
  display: block;
}
.sc-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.sc-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.sc-max {
  font-size: 16px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 700;
}
.sc-total small {
  color: var(--ink-3);
  font-size: 12px;
}
.sc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}
.sc-label {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.sc-label small {
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-dots {
  display: flex;
  gap: 4px;
}
.sc-dots i {
  width: 16px;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}
.sc-dots i.on {
  background: var(--brand);
}
.sc-v {
  width: 18px;
  text-align: right;
  font-size: 17px;
}
.sc-note {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.overall {
  display: flex;
  gap: 10px;
  background: var(--brand-soft) !important;
  box-shadow: none;
}
.overall p {
  margin: 0;
  font-size: 15px;
}
.ov-ic {
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}
.essay {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.75;
  background: #fbfbfe;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--line-2);
  overflow-wrap: anywhere;
}
.essay.improved {
  background: var(--ok-soft);
  border-color: #c9eedd;
}
.wc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
}
.wc.ok {
  background: var(--ok-soft);
  color: #0d8358;
}
.wc.warn {
  background: var(--warn-soft);
  color: #c4600f;
}
.fixes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fixes li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.fixes li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.fix-no {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.fixes li > div {
  min-width: 0;
}
.fix-old {
  color: var(--bad);
  text-decoration: line-through;
  text-decoration-color: rgba(229, 72, 77, 0.6);
  font-size: 15px;
}
.fix-new {
  color: #0d8358;
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}
.fix-why {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.tips {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tips li {
  position: relative;
  padding: 0 0 8px 26px;
  font-size: 14px;
}
.tips li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--ok);
  box-shadow: inset 0 0 0 3px #c8f0df;
}
.score-note {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin: 8px 12px 0;
}

/* 练习题反馈 */
.pr-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pr-hero b {
  font-size: 17px;
}
.pr-hero p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.ring {
  --p: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(var(--ok) calc(var(--p) * 1%), var(--bad-soft) 0);
}
.ring span {
  font-size: 26px;
  font-weight: 800;
}
.ring small {
  font-size: 14px;
  color: var(--ink-3);
}
.seg {
  display: flex;
  background: #e8ebf3;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.seg button {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 38px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-2);
  font-size: 14px;
}
.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(29, 39, 66, 0.1);
}
.items {
  padding: 4px 16px !important;
}
.item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
}
.item:first-child {
  border-top: 0;
}
.item-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  margin-top: 1px;
}
.item.ok .item-mark,
.quiz.ok .item-mark {
  background: var(--ok);
}
.item.bad .item-mark,
.quiz.bad .item-mark {
  background: var(--bad);
}
.item-body {
  flex: 1;
  min-width: 0;
}
.item-q {
  font-size: 14px;
  color: var(--ink-2);
}
.item-a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 4px;
}
.item-a span {
  font-size: 12px;
  color: var(--ink-3);
}
.item-a b {
  font-size: 16px;
}
.item-a .strike {
  color: var(--bad);
  text-decoration: line-through;
}
.item-a .good {
  color: #0d8358;
}
.item-note {
  margin: 6px 0 0;
  font-size: 13px;
  background: var(--bad-soft);
  color: #a3262a;
  padding: 6px 10px;
  border-radius: 8px;
}

/* 口语反馈 */
.pron {
  display: grid;
  gap: 10px;
}
.pron-item {
  border-radius: 14px;
  background: var(--speaking-soft);
  padding: 12px 14px;
}
.pron-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pron-word {
  font-size: 22px;
  font-weight: 800;
  color: var(--speaking);
}
.pron-ipa {
  font-size: 15px;
  color: var(--ink-2);
}
.say {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--speaking);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2px 8px rgba(146, 87, 245, 0.18);
  padding: 0;
}
.say:active {
  transform: scale(0.94);
}
.pron-heard {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 2px;
}
.pron-heard b {
  color: var(--bad);
}
.pron-item p {
  margin: 6px 0 0;
  font-size: 14px;
}
.said + .said {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.said-head {
  font-size: 14px;
  color: var(--ink-2);
}
.said .clip {
  margin-top: 6px;
}
.said-text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.75;
}
.model + .model {
  margin-top: 12px;
}
.model-q {
  font-size: 13px;
  color: var(--ink-3);
}
.model-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 4px;
  background: var(--ok-soft);
  border-radius: 12px;
  padding: 10px 10px 10px 12px;
}
.model-a p {
  margin: 0;
  font-size: 15px;
  flex: 1;
  min-width: 0;
}
.model-a .say {
  color: #0d8358;
  box-shadow: 0 2px 8px rgba(22, 165, 113, 0.18);
}
.engine-note {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 4px;
}

/* 阅读 */
.passage h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.passage p,
.passage-again p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 12px;
}
.quiz-q {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.quiz-q .item-mark {
  width: 22px;
  height: 22px;
  margin-top: 2px;
}
.opts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  text-align: left;
  font-size: 15px;
  width: 100%;
}
.opt-l {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
  color: var(--ink-2);
}
.opt.on {
  border-color: var(--reading);
  background: var(--reading-soft);
}
.opt.on .opt-l {
  background: var(--reading);
  border-color: var(--reading);
  color: #fff;
}
.opt.right {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: #0b6f4b;
}
.opt.right .opt-l {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.opt.wrong {
  border-color: var(--bad);
  background: var(--bad-soft);
  color: #a3262a;
}
.opt.wrong .opt-l {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.opt.dim {
  color: var(--ink-3);
}
.opt > span:nth-child(2) {
  flex: 1;
}
.why {
  margin: 12px 0 0;
  font-size: 14px;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 10px 12px;
}
.why b {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--reading);
  border-radius: 6px;
  padding: 0 6px;
  margin-right: 6px;
}
.passage-again summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 28px;
  color: var(--reading);
}
.passage-again h2 {
  font-size: 18px;
  margin: 12px 0 8px;
}

/* ================= 第二轮：小龙、待交提醒、错题本、拍照检查 ================= */

/* ---------- 小龙（动画） ---------- */
.pet {
  display: block;
  overflow: visible;
}
.pet .pet-bob {
  animation: pet-bob 2.8s ease-in-out infinite;
  transform-origin: 100px 190px;
}
.pet .pet-wobble {
  animation: pet-wobble 3.2s ease-in-out infinite;
  transform-origin: 100px 184px;
}
.pet .pet-eyes {
  animation: pet-blink 4.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.pet .pet-wing-l {
  animation: pet-wing-l 1.6s ease-in-out infinite;
  transform-origin: 62px 130px;
}
.pet .pet-wing-r {
  animation: pet-wing-r 1.6s ease-in-out infinite;
  transform-origin: 138px 130px;
}
.pet .pet-spark path {
  animation: pet-spark 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.pet .pet-spark path:nth-child(2) {
  animation-delay: 1.1s;
}
.pet .pet-shadow {
  animation: pet-shadow 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.pet-locked {
  filter: grayscale(1) opacity(0.45);
}
.pet-locked * {
  animation: none !important;
}
@keyframes pet-bob {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes pet-shadow {
  50% {
    transform: scaleX(0.88);
    opacity: 0.08;
  }
}
@keyframes pet-wobble {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  70% {
    transform: rotate(-5deg);
  }
  80% {
    transform: rotate(4deg);
  }
  90% {
    transform: rotate(-2deg);
  }
}
@keyframes pet-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}
@keyframes pet-wing-l {
  50% {
    transform: rotate(-8deg);
  }
}
@keyframes pet-wing-r {
  50% {
    transform: rotate(8deg);
  }
}
@keyframes pet-spark {
  50% {
    transform: scale(0.5);
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pet * {
    animation: none !important;
  }
}

/* 首页的小龙卡片 */
.pet-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px 8px 6px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 20px;
  text-align: left;
  background: radial-gradient(120% 120% at 0% 0%, #efeaff 0%, #fff 55%);
  box-shadow: var(--shadow);
}
.pet-stage {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 60%, #fff 0%, #f1edff 70%);
}
.pet-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pet-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.pet-lv {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #7b8dff, #8d5cf6);
  padding: 0 7px;
  border-radius: 6px;
  line-height: 18px;
}
.pet-kind {
  font-size: 12px;
  color: #7a5be0;
  font-weight: 600;
}
.pet-pts {
  font-size: 12px;
  color: var(--ink-3);
}
.pet-pts b {
  font-size: 18px;
  color: var(--ink);
}
.pet-bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #ece8fb;
  overflow: hidden;
}
.pet-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8fa0ff, #8d5cf6);
}
.pet-bar.big {
  height: 12px;
  width: 100%;
  max-width: 260px;
  margin: 8px auto 6px;
}
.pet-info small {
  font-size: 11.5px;
  color: var(--ink-3);
}
.pet-info small b {
  color: #7a5be0;
}

/* 待交提醒：红点 + 最早截止 */
.due-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #ffd9b0;
  border-radius: 16px;
  background: #fff8ef;
  text-align: left;
  color: var(--ink);
}
.due-banner.hot {
  border-color: #ffb3b5;
  background: linear-gradient(120deg, #fff1f1, #fff8f0);
  animation: pop 0.35s ease-out;
}
.red-dot {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15);
}
.red-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(229, 72, 77, 0.5);
  animation: ripple 1.6s ease-out infinite;
}
.due-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.due-txt b {
  font-size: 16px;
}
.due-txt small {
  font-size: 12.5px;
  color: #b4560c;
}
.due-banner.hot .due-txt small {
  color: #c4282d;
  font-weight: 600;
}
.due-go {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bad);
  white-space: nowrap;
}
.due-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--ok-soft);
  color: #0d8358;
  font-weight: 600;
}
.tile-dot {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--bad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(229, 72, 77, 0.35);
}
.fresh.retake {
  background: linear-gradient(120deg, #f0525a, #f5844c);
  box-shadow: 0 8px 20px rgba(229, 72, 77, 0.28);
}
.row.soon {
  box-shadow: 0 0 0 1.5px #ffb3b5, var(--shadow);
  background: #fffafa;
}
.row.late {
  box-shadow: 0 0 0 1.5px #ffd9b0, var(--shadow);
}
.pill.hot-pill {
  background: var(--bad);
  color: #fff;
}
.pill.late-pill {
  background: var(--warn-soft);
  color: #c46a10;
}
.task.soon {
  box-shadow: 0 0 0 1.5px #ffb3b5, var(--shadow);
}
.late-txt {
  color: var(--bad) !important;
  font-weight: 600;
}

/* 错题本入口 */
.book-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.book-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ff9a6b, #f0525a);
  box-shadow: 0 6px 14px rgba(240, 82, 90, 0.3);
}
.book-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.book-txt b {
  font-size: 17px;
}
.book-txt small {
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-n {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--bad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 拍照 ---------- */
.snap-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 12px;
}
.snap-tips span,
.cam-tips span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.shot.flagged {
  box-shadow: 0 0 0 3px var(--bad);
}
.shot.warned {
  box-shadow: 0 0 0 3px var(--warn);
}
.shot.flagged img,
.shot.warned img {
  filter: saturate(0.7) brightness(0.85);
}
.shot-flag,
.shot-ok {
  position: absolute;
  left: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  color: #fff;
  background: var(--bad);
}
.shot-flag.soft {
  background: #e98a1e;
}
.shot.warned .shot-redo {
  color: #a85a00;
}
/* 照片下面的黄色小提示：「第 1 页边上可能有字没拍进来，看得清就不用管」 */
.shot-hints {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.shot-hints li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: #8a4d00;
  font-size: 13px;
  line-height: 1.45;
}
.shot-hints li svg {
  flex: none;
  margin-top: 2px;
}
.shot-ok {
  background: rgba(13, 131, 88, 0.88);
}
.shot-redo {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 99px;
  background: #fff;
  color: var(--bad);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
button.camera-btn,
button.shot.add {
  width: 100%;
  font: inherit;
}
button.shot.add {
  border-style: dashed;
}
.demo-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.retake-card,
.check-card {
  border: 1.5px solid #ffc2c4;
  background: #fff6f6 !important;
  box-shadow: none !important;
}
/* 交的时候查出来「可能看不清」：黄色，只是提示，下面有「直接提交」 */
.check-card {
  border-color: #f6d29d;
  background: var(--warn-soft) !important;
}
.check-card .rt-head {
  color: #a85a00;
}
.check-card .btn {
  margin-top: 10px;
}
.rt-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--bad);
}
.retake-card p,
.check-card p {
  margin: 6px 0 0;
  font-size: 14.5px;
}

/* 网页相机 */
.cam {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0d1020;
  color: #fff;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}
.cam.flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: cam-flash 0.3s ease-out forwards;
}
@keyframes cam-flash {
  to {
    opacity: 0;
  }
}
.cam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 8px;
  flex: none;
}
.cam-top b {
  font-size: 16px;
}
.cam-top span {
  width: 44px;
}
.cam-x {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam-view {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.cam-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cam-frame {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 11%;
  bottom: 9%;
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(8, 10, 22, 0.42);
}
.cam-frame i {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
}
.cam-frame i:nth-child(1) {
  left: -2px;
  top: -2px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 14px 0 0 0;
}
.cam-frame i:nth-child(2) {
  right: -2px;
  top: -2px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 14px 0 0;
}
.cam-frame i:nth-child(3) {
  left: -2px;
  bottom: -2px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 14px;
}
.cam-frame i:nth-child(4) {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 14px 0;
}
.cam-tips {
  position: absolute;
  top: 2.5%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.cam-tips span {
  background: rgba(255, 255, 255, 0.92);
}
.cam-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2%;
  margin: 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}
.cam-bottom {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 16px 12px calc(20px + env(safe-area-inset-bottom));
}
.cam-side {
  width: 64px;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  opacity: 0.9;
}
.cam-shutter {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: transparent;
  padding: 4px;
}
.cam-shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.1s;
}
.cam-shutter:active span {
  transform: scale(0.88);
}
.cam-review {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}
.cam-review img {
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cam-result {
  flex: none;
  margin: 0 12px calc(14px + env(safe-area-inset-bottom));
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
}
.cr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}
.cam-result.ok .cr-head {
  color: #0d8358;
}
.cam-result.bad .cr-head {
  color: var(--bad);
}
.cam-result.warn .cr-head {
  color: #a85a00;
}
/* 删照片前问一句 */
.ask-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 20, 35, 0.45);
  animation: ask-fade 0.15s ease-out;
}
.ask-sheet {
  width: min(100%, 480px);
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  color: var(--ink);
  text-align: center;
  animation: ask-up 0.18s ease-out;
}
.ask-sheet img {
  display: block;
  width: 84px;
  height: 112px;
  margin: 0 auto 10px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.ask-sheet b {
  font-size: 17px;
}
.ask-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
@keyframes ask-fade {
  from {
    opacity: 0;
  }
}
@keyframes ask-up {
  from {
    transform: translateY(30px);
  }
}
.cam-result p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.cr-did {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cr-did span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--ok-soft);
  color: #0d8358;
}
.cr-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.cr-actions .btn {
  flex: 1;
}

/* ---------- 交完：小龙加分 ---------- */
.pet-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  text-align: left;
  padding: 8px 14px 8px 8px !important;
  background: radial-gradient(120% 120% at 0% 0%, #efeaff 0%, #fff 60%) !important;
}
.pet-mini span {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pet-mini b {
  color: #7a5be0;
  font-size: 16px;
}
.pet-mini small {
  color: var(--ink-3);
}
.pts-pop {
  position: fixed;
  left: 50%;
  bottom: 110px;
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 6px 8px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(29, 39, 66, 0.2);
  animation: pts-pop 1.9s ease-out forwards;
}
.pts-pop b {
  font-size: 20px;
  color: #7a5be0;
}
.pts-pop span {
  font-size: 13px;
  color: var(--ink-2);
}
@keyframes pts-pop {
  0% {
    transform: translate(-50%, 20px) scale(0.8);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, 0) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -6px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -30px);
    opacity: 0;
  }
}
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 24, 45, 0.45);
  animation: fade-in 0.25s ease-out;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.cel-card {
  position: relative;
  width: 100%;
  max-width: 330px;
  padding: 26px 22px 20px;
  border-radius: 26px;
  background: radial-gradient(90% 60% at 50% 18%, #f3efff 0%, #fff 70%);
  text-align: center;
  box-shadow: 0 30px 60px rgba(20, 24, 45, 0.3);
  animation: pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.cel-burst {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 0;
  height: 0;
}
.cel-burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #ffc94d;
  animation: burst 1.1s ease-out forwards;
}
.cel-burst i:nth-child(3n) {
  background: #8d5cf6;
}
.cel-burst i:nth-child(3n + 1) {
  background: #ff8a5b;
}
.cel-burst i:nth-child(4n) {
  border-radius: 50%;
}
@keyframes burst {
  from {
    transform: rotate(var(--a)) translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translateY(-110px) scale(0.4);
    opacity: 0;
  }
}
.cel-burst i:nth-child(1) { --a: 0deg; }
.cel-burst i:nth-child(2) { --a: 30deg; }
.cel-burst i:nth-child(3) { --a: 60deg; }
.cel-burst i:nth-child(4) { --a: 90deg; }
.cel-burst i:nth-child(5) { --a: 120deg; }
.cel-burst i:nth-child(6) { --a: 150deg; }
.cel-burst i:nth-child(7) { --a: 180deg; }
.cel-burst i:nth-child(8) { --a: 210deg; }
.cel-burst i:nth-child(9) { --a: 240deg; }
.cel-burst i:nth-child(10) { --a: 270deg; }
.cel-burst i:nth-child(11) { --a: 300deg; }
.cel-burst i:nth-child(12) { --a: 330deg; }
.cel-pet .pet,
.cel-new .pet {
  margin: 0 auto;
  animation: jump 0.9s ease-out 2;
}
@keyframes jump {
  0%,
  100% {
    transform: translateY(0) scale(1, 1);
  }
  20% {
    transform: translateY(0) scale(1.08, 0.9);
  }
  45% {
    transform: translateY(-26px) scale(0.95, 1.06);
  }
  70% {
    transform: translateY(0) scale(1.04, 0.96);
  }
}
.cel-pets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-3);
}
.cel-old {
  opacity: 0.55;
}
.cel-plus {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 14px;
  border-radius: 99px;
  background: linear-gradient(120deg, #7b8dff, #8d5cf6);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.cel-card h2 {
  margin: 10px 0 4px;
  font-size: 22px;
}
.cel-card p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.cel-card p b {
  color: #7a5be0;
}
.cel-card .btn {
  min-width: 140px;
}

.to-book {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  text-align: left;
  font-size: 14px;
  color: #b4280f;
  background: #fff6f2 !important;
  box-shadow: none !important;
  border: 1px dashed #ffc5b3 !important;
}
.to-book span {
  flex: 1;
}
.unclear {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: #fff1c9;
  color: #9a6400;
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
}

/* ---------- 错题本 ---------- */
.book-sum {
  background: radial-gradient(120% 100% at 0% 0%, #fff1ec 0%, #fff 60%) !important;
}
.bs-nums {
  display: flex;
  gap: 8px;
}
.bs-nums > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.bs-nums b {
  font-size: 24px;
  line-height: 1.2;
  color: var(--bad);
}
.bs-nums > div:nth-child(2) b {
  color: #c46a10;
}
.bs-nums .ok b {
  color: var(--ok);
}
.bs-nums span {
  font-size: 12px;
  color: var(--ink-3);
}
.bs-weak {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.bs-weak b {
  font-size: 12.5px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--bad-soft);
  color: #c4282d;
}
.bs-weak small {
  font-weight: 500;
  opacity: 0.8;
}
.bs-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #7a5be0;
}
.mg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mg-head > b {
  font-size: 16px;
}
.kind {
  font-size: 11px;
  font-weight: 700;
  padding: 0 7px;
  line-height: 18px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.kind.pron {
  background: var(--speaking-soft);
  color: var(--speaking);
}
.mg-n {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}
.mg-n b {
  color: var(--bad);
  font-size: 15px;
}
.mg-tip {
  display: flex;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #f7f8fc;
  padding: 7px 10px;
  border-radius: 10px;
}
.mg-tip .ic {
  margin-top: 2px;
  color: #e9a531;
}
.mg-items {
  margin-top: 6px;
}
.mi {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.mi:last-child {
  border-bottom: 0;
}
.mi.done {
  opacity: 0.7;
}
.mi-src {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.mi-q {
  font-size: 15px;
  margin-bottom: 4px;
}
.mi-wrong,
.mi-right {
  font-size: 14px;
  color: var(--ink-2);
}
.mi-wrong b.strike {
  color: var(--bad);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-left: 4px;
}
.mi-wrong b {
  margin-left: 4px;
}
.mi-right {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0d8358;
  margin-top: 2px;
}
.mi-why {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}
.mi-pron {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mi-pron > b {
  font-size: 20px;
}
.mi-act {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mi-act .link-btn {
  font-size: 13px;
  min-height: 34px;
  color: var(--ink-3);
}
.fix-box {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: center;
}
.fix-box input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 16px;
  background: #fff;
}
.fix-box input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.fix-box .btn.sm {
  min-height: 42px;
  padding: 0 16px;
}
.fix-box > p {
  margin: 0 0 8px;
}
.mi-act .fix-box:has(.rec) {
  flex-direction: column;
  align-items: stretch;
}
.shake {
  animation: shake 0.4s;
  border-color: var(--bad) !important;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.fix-rec {
  justify-content: flex-start;
  gap: 12px;
  padding: 4px 0;
}
.hold.sm {
  width: 60px;
  height: 60px;
}
.drill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
}
.drill {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f6f7ff;
  box-shadow: inset 0 0 0 1px #e1e6ff;
}
.drill-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-ink);
  margin-bottom: 6px;
}
.drill-head small {
  font-weight: 500;
  color: var(--ink-3);
}
.drill-q {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.drill .opts {
  margin-top: 8px;
}
.drill-res {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.drill-res.ok {
  background: var(--ok-soft);
  color: #0d6a48;
}
.drill-res.bad {
  background: var(--bad-soft);
  color: #a3262b;
}
.drill-res p {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.drill .link-btn {
  margin-top: 4px;
  padding: 0;
}

/* ---------- 小龙页 ---------- */
.pet-hero {
  position: relative;
  text-align: center;
  padding: 10px 0 18px;
}
.ph-glow {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 240px;
  height: 240px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ece6ff 0%, rgba(236, 230, 255, 0) 70%);
}
.pet-hero .pet {
  position: relative;
  margin: 0 auto;
}
.pet-hero h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.pet-hero h2 span {
  font-size: 15px;
  color: #7a5be0;
}
.ph-pts {
  color: var(--ink-3);
  font-size: 13px;
}
.ph-pts b {
  font-size: 26px;
  color: var(--ink);
}
.pet-hero small {
  color: var(--ink-3);
}
.pet-hero small b {
  color: #7a5be0;
}
.growth {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px;
  border-radius: 14px;
  text-align: center;
}
.gr.now {
  background: #f1edff;
  box-shadow: inset 0 0 0 1.5px #c9b8ff;
}
.gr-pet {
  position: relative;
}
.gr-lock {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.gr b {
  font-size: 12.5px;
  margin-top: 2px;
}
.gr small {
  font-size: 11px;
  color: var(--ink-3);
}
.gr.next b {
  color: var(--ink-3);
}
.rules {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.rules li b {
  color: #7a5be0;
  font-size: 16px;
}
.rules-note {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff5f8;
  padding: 8px 10px;
  border-radius: 10px;
}
.rules-note .ic {
  color: #ff6b9a;
  margin-top: 2px;
}
.pts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.pts-list li:last-child {
  border-bottom: 0;
}
.pts-list b {
  width: 40px;
  color: #7a5be0;
  font-size: 16px;
}
.pts-list span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.pts-list span small {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pts-list time {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- 挑宠物 ---------- */
.pick-page.first {
  padding-top: 26px;
  background: radial-gradient(120% 50% at 50% 0%, #efeaff 0%, rgba(239, 234, 255, 0) 70%);
  min-height: 100vh;
}
.pick-hero {
  text-align: center;
  margin-bottom: 14px;
}
.pick-hero h1 {
  margin: 0;
  font-size: 22px;
}
.pick-hero p {
  margin: 6px 8px 0;
  color: var(--ink-2);
  font-size: 13.5px;
}
.pick-tip {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff5f8;
  padding: 8px 10px;
  border-radius: 10px;
}
.pick-tip .ic {
  color: #ff6b9a;
  margin-top: 2px;
}
.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 12px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.pick-card .pet {
  margin-bottom: 2px;
}
.pick-card b {
  font-size: 16px;
}
.pick-card small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}
.pick-card.on {
  border-color: #8d5cf6;
  background: #faf7ff;
}
.pick-card .pill {
  position: absolute;
  top: 8px;
  right: 8px;
}
.pick-detail .growth {
  margin-bottom: 14px;
}
.swap-pet {
  display: flex;
  margin: 6px auto 0;
  font-size: 13px;
}
.read-text {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--speaking-soft);
}
.read-text b {
  font-size: 12.5px;
  color: var(--speaking);
}
.read-text p {
  margin: 4px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
}

/* 老师传的附件 */
.atts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.att-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.att-imgs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.att-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.att-ic {
  flex: none;
  min-width: 34px;
  height: 26px;
  padding: 0 5px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
  background: #d93f3a;
}
.att-ic.word {
  background: #2b5797;
}
.att-name {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}
.att-name b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.att-name small {
  color: var(--ink-3);
  font-size: 12px;
}
.att-dl {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.att-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #3a3f4b;
}
.att-viewer header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #fff;
}
.att-viewer header b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--line-2);
}
.att-pages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.att-pages img {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
body.viewing {
  overflow: hidden;
}

/* 练习题的题目（老师从题库挑的、或者布置时打的） */
.task-qs {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.task-qs h3 {
  margin: 0;
  font-size: 15px;
}
.task-qs h3 small {
  font-weight: 400;
  font-size: 12px;
}
.task-qs .qs {
  font-size: 15px;
}
/* 附件图片上面一行说明 */
.att-cap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}
/* 拍的页数比老师要求的多 */
.shot-more {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.shot-more svg {
  flex: none;
  margin-top: 2px;
}
