:root {
  color-scheme: light;
  --ink: #27312f;
  --muted: #6f7c79;
  --paper: #fffaf1;
  --panel: #ffffff;
  --warm: #f4c96b;
  --leaf: #4f9b6d;
  --leaf-soft: #dff0df;
  --water: #74bec3;
  --coral: #dc735e;
  --line: #e5ded0;
  --shadow: 0 10px 28px rgba(62, 79, 73, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7efe1;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f8edda 0%, #eff7ee 48%, #e8f4f4 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 250, 241, 0.62);
}

.screen {
  min-height: 100vh;
  padding: 16px 14px 88px;
}

.hero,
.detail-hero {
  padding: 22px 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 246, 218, 0.96), rgba(222, 241, 222, 0.94)),
    radial-gradient(circle at 84% 20%, rgba(116, 190, 195, 0.28), transparent 26%);
  box-shadow: var(--shadow);
}

.hero p,
.detail-hero p,
.page-head p {
  margin: 0 0 6px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.detail-hero h1,
.page-head h1 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 36px;
  letter-spacing: 0;
}

.hero span,
.detail-hero span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.page-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.page-head > a,
.back-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--panel);
  color: var(--leaf);
  box-shadow: 0 5px 16px rgba(62, 79, 73, 0.1);
  font-size: 30px;
}

.detail-hero {
  position: relative;
  margin-bottom: 12px;
  padding-left: 62px;
}

.detail-hero .back-link {
  position: absolute;
  left: 14px;
  top: 18px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.quick-stats article,
.block,
.poem-card,
.list-filter {
  border: 1px solid rgba(229, 222, 208, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 20px rgba(62, 79, 73, 0.09);
}

.quick-stats article {
  padding: 12px 8px;
  text-align: center;
}

.quick-stats strong {
  display: block;
  font-size: 22px;
  color: var(--leaf);
}

.quick-stats span,
.practice-explain,
.story-shots small {
  color: var(--muted);
  font-size: 12px;
}

.section {
  margin-top: 16px;
}

.section-head,
.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2,
.block-title span {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.section-head a {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.mini-list,
.poem-list-stack {
  display: grid;
  gap: 10px;
}

.poem-card {
  display: grid;
  gap: 12px;
  min-height: 164px;
  padding: 15px;
}

.poem-card.is-featured {
  min-height: 176px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 234, 0.95));
}

.list-filter span,
.card-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: #2f7552;
  font-size: 12px;
  font-weight: 900;
}

.poem-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.poem-card h3 {
  margin: 4px 0 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.poem-meta {
  margin: 0;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 700;
}

.poem-semester-label {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(74, 124, 89, 0.12);
  color: var(--leaf);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.poem-scene {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.poem-video-strip {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f7fbf6, #fff8e9);
  border: 1px solid rgba(223, 240, 223, 0.9);
}

.poem-video-strip span,
.learning-video-line i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf);
}

.poem-video-strip span::before,
.learning-video-line i::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.poem-video-strip strong,
.learning-video-line strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.poem-video-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.poem-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.status-badge,
.difficulty {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tag-row span {
  background: var(--leaf-soft);
  color: #2f7552;
}

.status-badge {
  flex: 0 0 auto;
  background: #f4efe5;
  color: #7a6a54;
}

.status-badge.is-done {
  background: #dff0df;
  color: #2f7552;
}

.difficulty {
  flex: 0 0 auto;
  background: #fff2d2;
  color: #7b5b16;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.list-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 10px;
}

.block {
  margin-bottom: 12px;
  padding: 14px;
}

.video-block video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.video-placeholder {
  overflow: hidden;
}

.video-placeholder p,
.goal-block p,
.meaning-block p,
.parent-tip-block p,
.intro-text {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.75;
}

.wind-scene {
  position: relative;
  height: 118px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d9f1f0, #f8edd0);
  overflow: hidden;
}

.leaf,
.bamboo,
.water-line {
  position: absolute;
  display: block;
}

.leaf {
  width: 22px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  background: #d69446;
  transform: rotate(-25deg);
}

.leaf-a {
  left: 18px;
  top: 28px;
  animation: drift 4.2s ease-in-out infinite;
}

.leaf-b {
  left: 44px;
  top: 48px;
  background: #c87545;
  animation: drift 3.8s ease-in-out infinite reverse;
}

.leaf-c {
  left: 72px;
  top: 20px;
  background: #e0b85f;
  animation: drift 4.6s ease-in-out infinite;
}

.bamboo {
  bottom: 20px;
  width: 5px;
  height: 78px;
  border-radius: 999px;
  background: #4f9b6d;
  transform-origin: bottom;
  animation: sway 2.8s ease-in-out infinite;
}

.bamboo-a {
  right: 32px;
}

.bamboo-b {
  right: 47px;
  height: 66px;
  animation-delay: 0.3s;
}

.bamboo-c {
  right: 17px;
  height: 58px;
  animation-delay: 0.6s;
}

.water-line {
  left: 12px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(65, 145, 151, 0.42);
}

.line-a {
  bottom: 18px;
}

.line-b {
  bottom: 11px;
  left: 28px;
}

@keyframes drift {
  0%, 100% { transform: translateX(0) translateY(0) rotate(-25deg); }
  50% { transform: translateX(16px) translateY(8px) rotate(18deg); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(9deg); }
}

.poem-lines {
  display: grid;
  gap: 10px;
}

.poem-line {
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff8e9;
}

.poem-line p {
  margin: 0 0 5px;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 25px;
  font-weight: 800;
}

.poem-line small {
  color: var(--muted);
  font-size: 13px;
}

.story-shots,
.memory-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.story-shots li,
.memory-list li {
  padding: 12px;
  border-radius: 8px;
  background: #f6fbf6;
}

.story-shots strong {
  display: block;
  margin-bottom: 5px;
}

.story-shots p {
  margin: 0 0 5px;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.word-grid {
  display: grid;
  gap: 8px;
}

.word-grid article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
  padding: 11px;
  border-radius: 8px;
  background: #fff8e9;
}

.word-grid strong {
  color: var(--coral);
  font-size: 17px;
}

.word-grid p {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.55;
}

.memory-list {
  counter-reset: memory;
}

.memory-list li {
  counter-increment: memory;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
}

.memory-list li::before {
  content: counter(memory);
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--warm);
  color: #5b4516;
  font-weight: 900;
}

.practice-question {
  margin: 0 0 10px;
  font-weight: 900;
  line-height: 1.65;
}

.practice-options {
  display: grid;
  gap: 8px;
}

.practice-options button,
.bottom-action-bar button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f5f1e8;
  color: var(--ink);
  font-weight: 900;
}

.practice-options .is-answer {
  background: #dcf0df;
  color: #2f7552;
}

.practice-explain {
  margin: 10px 0 0;
  line-height: 1.6;
}

.bottom-action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.bottom-action-bar button.is-active {
  background: var(--leaf);
  color: #fff;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.nav-item {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.nav-item.is-active {
  background: var(--leaf);
  color: #fff;
}

.bottom-spacer {
  height: 72px;
}

.empty-text,
.error-text {
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-screen {
  padding-top: 14px;
}

.home-hero {
  position: relative;
  min-height: 176px;
  padding: 26px 20px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 248, 229, 0.96), rgba(229, 244, 230, 0.94)),
    radial-gradient(circle at 78% 24%, rgba(116, 190, 195, 0.22), transparent 26%);
  box-shadow: var(--shadow);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 92px;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(79, 155, 109, 0.7) 18% 24%, transparent 24% 40%, rgba(79, 155, 109, 0.7) 40% 46%, transparent 46% 63%, rgba(79, 155, 109, 0.7) 63% 69%, transparent 69%),
    linear-gradient(180deg, rgba(116, 190, 195, 0.22), rgba(116, 190, 195, 0.08));
  transform: rotate(-4deg);
}

.home-kicker {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
}

.home-hero h1 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-hero span {
  display: block;
  max-width: 260px;
  margin-top: 12px;
  color: #54645f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.home-search {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 52px;
  margin: 14px 0;
  padding: 0 14px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(62, 79, 73, 0.08);
}

.home-search span {
  color: var(--leaf);
  font-size: 24px;
  font-weight: 900;
}

.home-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.home-search input::placeholder {
  color: #8a9893;
}

.home-recommend,
.home-section {
  margin-top: 18px;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommend-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.recommend-video-panel {
  position: relative;
  display: grid;
  min-height: 238px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(223, 240, 223, 0.96), rgba(255, 243, 214, 0.96)),
    repeating-linear-gradient(135deg, rgba(79, 155, 109, 0.08) 0 2px, transparent 2px 14px);
}

.recommend-video-panel::before {
  content: "跟着视频学";
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-height: 26px;
  padding: 5px 10px 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.recommend-video-panel.is-lesson-video::before {
  content: "完整小课";
}

.recommend-video-panel.is-scene-video::before {
  content: "场景动画";
}

.recommend-video-panel.is-empty::before {
  content: "视频制作中";
}

.recommend-video-player {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: #14201d;
}

.video-play-button,
.recommend-play-link,
.video-play-circle {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 10px 26px rgba(62, 79, 73, 0.18);
  cursor: pointer;
}

.video-play-button::before,
.recommend-play-link::before,
.video-play-circle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid var(--leaf);
}

.video-play-button {
  position: absolute;
  z-index: 4;
}

.recommend-video-panel.is-playing .video-play-button {
  display: none;
}

.recommend-video-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  min-height: 30px;
  padding: 7px 10px 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.9);
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.recommend-play-link {
  position: relative;
  z-index: 3;
  margin-bottom: 70px;
}

.recommend-video-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
}

.recommend-video-copy strong {
  color: var(--ink);
  font-size: 16px;
}

.recommend-video-copy span {
  color: #4e5e5a;
  font-size: 13px;
  line-height: 1.5;
}

.recommend-video-copy a {
  justify-self: start;
  min-height: 32px;
  padding: 7px 11px 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.recommend-art {
  position: relative;
  min-height: 144px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #d9f1f0, #fff1cf 72%, #f7dfaa);
}

.wind-leaf,
.wind-bamboo,
.wind-wave {
  position: absolute;
  display: block;
}

.wind-leaf {
  width: 26px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: #d88b43;
  transform: rotate(-22deg);
}

.leaf-one {
  left: 24px;
  top: 28px;
}

.leaf-two {
  left: 54px;
  top: 54px;
  background: #c97350;
}

.wind-bamboo {
  bottom: 28px;
  width: 6px;
  height: 86px;
  border-radius: 999px;
  background: #4f9b6d;
  transform: rotate(8deg);
}

.bamboo-one {
  right: 44px;
}

.bamboo-two {
  right: 26px;
  height: 72px;
  transform: rotate(13deg);
}

.wind-wave {
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(65, 145, 151, 0.44);
}

.wave-one {
  bottom: 24px;
}

.wave-two {
  bottom: 15px;
  left: 34px;
}

.recommend-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.recommend-content p {
  margin: 0 0 5px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.recommend-content h2 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.recommend-content em {
  display: block;
  margin-top: 8px;
  color: var(--coral);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.5;
}

.recommend-content span {
  display: block;
  margin-top: 8px;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.55;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.grade-tile,
.feature-tile {
  display: grid;
  gap: 5px;
  min-height: 78px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 7px 18px rgba(62, 79, 73, 0.08);
}

.list-hero {
  position: relative;
  min-height: 150px;
  margin-bottom: 14px;
  padding: 22px 18px 22px 62px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 229, 0.96), rgba(229, 244, 230, 0.94)),
    radial-gradient(circle at 82% 24%, rgba(244, 201, 107, 0.22), transparent 26%);
  box-shadow: var(--shadow);
}

.list-hero .back-link {
  position: absolute;
  left: 14px;
  top: 20px;
}

.list-hero p {
  margin: 0 0 6px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.list-hero h1 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.list-hero span {
  display: block;
  margin-top: 9px;
  color: #54645f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
}

.poem-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #53635f;
  font-size: 13px;
  font-weight: 900;
}

.filter-pill.is-active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.list-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.list-summary strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--warm);
  color: #5b4516;
}

.grade-tile strong,
.feature-tile strong {
  font-size: 16px;
  line-height: 1.25;
}

.grade-tile small,
.feature-tile small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.grade-tile.is-ready {
  border-color: rgba(79, 155, 109, 0.4);
  background: linear-gradient(135deg, #ffffff, #edf8ed);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.learning-screen {
  padding-top: 14px;
}

.learning-hero {
  min-height: 176px;
  padding: 24px 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 229, 0.96), rgba(229, 244, 230, 0.94)),
    radial-gradient(circle at 82% 24%, rgba(220, 115, 94, 0.16), transparent 28%);
  box-shadow: var(--shadow);
}

.learning-hero p {
  margin: 0 0 8px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
}

.learning-hero h1 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.learning-hero span {
  display: block;
  max-width: 330px;
  margin-top: 12px;
  color: #54645f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}

.learning-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 14px 0 4px;
}

.learning-stats article {
  min-height: 86px;
  padding: 14px 10px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 20px rgba(62, 79, 73, 0.08);
  text-align: center;
}

.learning-stats strong {
  display: block;
  color: var(--leaf);
  font-size: 30px;
  line-height: 1;
}

.learning-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.learning-section {
  margin-top: 18px;
}

.learning-card-stack {
  display: grid;
  gap: 10px;
}

.learning-poem-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 20px rgba(62, 79, 73, 0.08);
}

.learning-poem-card p {
  margin: 0 0 4px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.learning-poem-card h3 {
  margin: 0;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.learning-poem-card span {
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.learning-video-line {
  display: inline-grid;
  grid-template-columns: 30px auto;
  gap: 8px;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: #f7fbf6;
  border: 1px solid rgba(223, 240, 223, 0.95);
}

.learning-video-line i {
  width: 30px;
  height: 30px;
}

.learning-video-line i::before {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 10px;
}

.learning-video-line strong {
  font-size: 13px;
}

.learning-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-card-tags small {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: #2f7552;
  font-size: 12px;
  font-weight: 900;
}

.learning-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 18px 14px;
  border: 1px dashed rgba(79, 155, 109, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.learning-empty strong {
  color: #4e5e5a;
  font-size: 15px;
  line-height: 1.6;
}

.learning-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.detail-screen {
  padding-top: 14px;
}

.detail-hero {
  min-height: 154px;
  padding: 22px 18px 20px 62px;
}

.detail-hero p {
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
}

.detail-hero h1 {
  font-size: 42px;
  line-height: 1.08;
}

.detail-semester {
  display: inline-block;
  margin: 6px 0 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(74, 124, 89, 0.12);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: #2f7552;
  font-size: 12px;
  font-weight: 900;
}

.video-jump-button,
.text-toggle {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.text-toggle {
  min-height: 32px;
  padding: 0 11px;
  background: #f5f1e8;
  color: #53635f;
  font-size: 13px;
}

.video-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.video-block {
  position: relative;
}

.poem-video-player,
.poem-video-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.poem-video-player {
  object-fit: cover;
  background: #14201d;
}

.video-kind-badge {
  position: absolute;
  top: 56px;
  left: 26px;
  z-index: 3;
  min-height: 28px;
  padding: 6px 10px 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(62, 79, 73, 0.14);
}

.video-block.is-scene-video .video-kind-badge {
  color: var(--coral);
}

.poem-video-cover {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(223, 240, 223, 0.96), rgba(255, 243, 214, 0.96)),
    repeating-linear-gradient(135deg, rgba(79, 155, 109, 0.08) 0 2px, transparent 2px 14px);
  color: var(--ink);
  text-align: center;
}

.poem-video-cover::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(79, 155, 109, 0.18);
  border-radius: 8px;
}

.poem-video-cover span,
.poem-video-cover strong,
.poem-video-cover small,
.poem-video-cover p,
.poem-video-cover button {
  position: relative;
  z-index: 2;
}

.poem-video-cover span {
  min-height: 26px;
  padding: 5px 10px 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.poem-video-cover strong {
  font-family: "KaiTi", "SimKai", serif;
  font-size: 34px;
  line-height: 1.12;
}

.poem-video-cover small {
  color: var(--coral);
  font-size: 15px;
  font-weight: 900;
}

.poem-video-cover p {
  max-width: 270px;
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.video-play-circle {
  margin-bottom: 4px;
}

.video-jump-button {
  min-height: 40px;
  margin-top: 2px;
  padding: 0 15px;
  background: var(--leaf);
  color: #fff;
  font-size: 14px;
}

.video-scene-summary {
  margin-top: 11px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8e9;
}

.video-scene-summary strong {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 15px;
}

.video-scene-summary p {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

/* ===== 动态绘本课播放器 ===== */

.lesson-scene-player {
  display: grid;
  gap: 16px;
}

.lesson-scene-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.lesson-scene-dots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6px, 1fr));
  gap: 4px;
}

.lesson-scene-dots span {
  height: 5px;
  border-radius: 999px;
  background: #e7decf;
  transition: background 0.25s;
}

.lesson-scene-dots span.is-active {
  background: var(--leaf);
}

.lesson-scene-panels {
  scroll-margin-top: 14px;
}

.lesson-scene-panel {
  display: grid;
  gap: 14px;
}

.lesson-scene-panel[hidden] {
  display: none;
}

/* 视频舞台 */
.lesson-scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(223, 240, 223, 0.96), rgba(255, 243, 214, 0.96)),
    repeating-linear-gradient(135deg, rgba(79, 155, 109, 0.08) 0 2px, transparent 2px 14px);
  box-shadow: 0 8px 32px rgba(31, 42, 38, 0.18), 0 2px 8px rgba(31, 42, 38, 0.08);
}

.lesson-scene-media,
.lesson-scene-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.lesson-scene-media {
  object-fit: cover;
  /* 视频首帧加载前显示暖色底而非黑屏，切幕更顺眼 */
  background: linear-gradient(135deg, #faf3e6, #f1e6cf);
}

.lesson-scene-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

.lesson-scene-placeholder span {
  min-height: 26px;
  padding: 5px 10px 0;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.84);
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.lesson-scene-placeholder strong {
  font-size: 24px;
  font-weight: 900;
}

.lesson-scene-placeholder p {
  max-width: 260px;
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

/* 视频叠加层 */
.lesson-scene-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 20px 16px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 诗句淡入上浮（"动态字"） */
.lesson-scene-panel.is-active .lesson-scene-overlay-poem {
  animation: overlayPoemIn 0.55s ease both;
}

@keyframes overlayPoemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.lesson-scene-overlay--title-only {
  bottom: auto;
  top: 14px;
  right: auto;
  left: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lesson-scene-overlay-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 155, 109, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.lesson-scene-overlay-poem {
  display: block;
  font-family: "KaiTi", "STKaiti", "SimKai", "华文楷体", serif;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 6px rgba(0, 0, 0, 0.75),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.lesson-scene-overlay-sub {
  margin: 0;
  color: rgba(255, 250, 241, 0.9);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.lesson-scene-overlay-tip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(220, 155, 88, 0.28);
  color: #f5d9a0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

/* 内容卡片 */
.lesson-scene-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(229, 222, 208, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 12px rgba(31, 42, 38, 0.06);
}

.lesson-scene-progress {
  margin: 0;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

/* 诗句高亮行 */
.lesson-scene-poem-line {
  margin: 0;
  font-family: "KaiTi", "STKaiti", "SimKai", "华文楷体", serif;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
  padding: 10px 0 4px;
  border-bottom: 2px solid rgba(79, 155, 109, 0.18);
}

/* 解说文字 */
.lesson-scene-narration {
  margin: 0;
  color: #4e5e5a;
  font-size: 15px;
  line-height: 1.8;
}

.lesson-scene-mini-card {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e9;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  border-left: 3px solid var(--warm);
}

.lesson-scene-practice {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* 朗读场景 */
.lesson-scene-reading {
  padding: 14px;
  border-radius: 10px;
  background: #f9f6f0;
}

.reading-poem-lines {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.reading-line {
  display: grid;
  gap: 3px;
}

.reading-pinyin {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.reading-text {
  font-family: "KaiTi", "STKaiti", "SimKai", "华文楷体", serif;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.reading-pinyin-toggle {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.original-block.is-pinyin-hidden .reading-pinyin {
  opacity: 0;
  pointer-events: none;
}

/* 按钮区域 */
.lesson-scene-controls {
  display: grid;
  gap: 10px;
}

.lesson-scene-controls > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lesson-scene-controls button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.lesson-scene-controls button:active {
  transform: scale(0.97);
}

.lesson-scene-voice-button,
.lesson-scene-auto-button,
.lesson-scene-controls [data-dynamic-scene-next],
.lesson-scene-complete-button {
  background: var(--leaf);
  color: #fff;
}

.lesson-scene-auto-button.is-playing,
.lesson-scene-voice-button.is-speaking {
  background: #3a7550;
}

.lesson-scene-controls [data-dynamic-scene-prev] {
  background: #f1eadf;
  color: var(--ink);
}

.lesson-scene-complete-button {
  background: var(--coral);
}

.lesson-scene-complete-button.is-done {
  background: var(--leaf);
}

.lesson-scene-controls button:disabled {
  cursor: default;
  opacity: 0.46;
}

.lesson-voice-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* 场景回顾卡片 */
.scene-review-cards {
  margin: 12px 0 4px;
}

.scene-review-hint {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 700;
}

.scene-review-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 124, 89, 0.12);
}

.scene-review-card:last-child {
  border-bottom: none;
}

.scene-review-card-video,
.scene-review-card-placeholder {
  flex-shrink: 0;
  width: 80px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(74, 124, 89, 0.08);
}

.scene-review-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scene-review-card-line {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}

.scene-review-card-title {
  font-size: 12px;
  color: var(--leaf);
  font-weight: 700;
}

.scene-review-card-tip {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* 考点冲刺卡（四年级起 exam_point 幕） */
.exam-point-cards {
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-point-hint {
  margin: 0 0 2px;
  color: #c0632b;
  font-size: 13px;
  font-weight: 700;
}

.exam-point-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(224, 122, 63, 0.08);
  border: 1px solid rgba(224, 122, 63, 0.18);
}

.exam-point-index {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e07a3f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.exam-point-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.exam-point-label {
  font-size: 14px;
  font-weight: 900;
  color: #a84f1e;
  line-height: 1.3;
}

.exam-point-content {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

/* 轮播容器（reuse 策略多视频） */
.reuse-carousel {
  position: relative;
  width: 100%;
}

.reuse-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.reuse-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}

.reuse-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* 静态国风卡片（practice / parent_tip） */
.lesson-scene-static-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f8efd4 0%, #e8d9b0 50%, #d4c490 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.lesson-scene-static-card::before {
  content: "詩";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  font-weight: 900;
  color: rgba(139, 100, 40, 0.12);
  letter-spacing: 0;
  line-height: 1;
}

/* 完成卡片 */
.lesson-scene-completion {
  padding: 24px 20px;
  border: 1px solid rgba(79, 155, 109, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, #f5fbf6, #fffaf1);
  text-align: center;
  scroll-margin-top: 14px;
}

.lesson-scene-completion-main {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.lesson-scene-completion-tip {
  margin: 0 0 20px;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.7;
}

.lesson-scene-completion-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lesson-scene-restart-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #f1eadf;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.lesson-scene-mark-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--leaf);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.interactive-lesson-player {
  display: grid;
  gap: 14px;
}

.interactive-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.interactive-video-wrap {
  display: grid;
  gap: 9px;
}

.interactive-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(223, 240, 223, 0.96), rgba(255, 243, 214, 0.96)),
    repeating-linear-gradient(135deg, rgba(79, 155, 109, 0.08) 0 2px, transparent 2px 14px);
}

.interactive-scene-video,
.interactive-video-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.interactive-scene-video {
  object-fit: cover;
  background: #14201d;
}

.interactive-video-wrap > p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e9;
  color: #4e5e5a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.interactive-video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(223, 240, 223, 0.96), rgba(255, 243, 214, 0.96)),
    repeating-linear-gradient(135deg, rgba(79, 155, 109, 0.08) 0 2px, transparent 2px 14px);
  color: var(--ink);
  text-align: center;
}

.interactive-video-placeholder strong {
  font-size: 20px;
  font-weight: 900;
}

.interactive-video-placeholder p {
  max-width: 270px;
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.video-text-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, transparent 42%, rgba(44, 52, 48, 0.24));
}

.video-text-overlay-panel {
  display: none;
  width: 100%;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 250, 241, 0.68);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: 0 12px 28px rgba(31, 42, 38, 0.16);
  backdrop-filter: blur(7px);
}

.video-text-overlay-panel.is-active {
  display: grid;
}

.overlay-step-title {
  width: fit-content;
  min-height: 24px;
  padding: 5px 9px 0;
  border-radius: 999px;
  background: #e7f5e9;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
}

.overlay-poem-line {
  font-family: "KaiTi", "SimKai", serif;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

.overlay-caption {
  margin: 0;
  color: #4e5e5a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.48;
}

.overlay-memory-point {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.interactive-step-dots {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 5px;
}

.interactive-step-dots span {
  height: 5px;
  border-radius: 999px;
  background: #e7decf;
}

.interactive-step-dots span.is-active {
  background: var(--leaf);
}

.interactive-step-card {
  scroll-margin-top: 14px;
}

.interactive-step-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(229, 222, 208, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.interactive-step-panel[hidden] {
  display: none;
}

.interactive-step-head {
  display: grid;
  gap: 4px;
}

.interactive-step-head span {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.interactive-step-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.interactive-step-content {
  display: grid;
  gap: 12px;
}

.interactive-step-content p,
.interactive-summary {
  margin: 0;
  color: #4e5e5a;
  font-size: 15px;
  line-height: 1.75;
}

.wind-find-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(223, 240, 223, 0.95);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbf6, #fff8e9);
}

.wind-find-note strong {
  color: var(--leaf);
  font-size: 16px;
  font-weight: 900;
}

.wind-find-note p {
  color: var(--ink);
  font-weight: 800;
}

.wind-picture-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #fff8e9;
}

.wind-picture-trail span {
  min-height: 32px;
  padding: 7px 10px 0;
  border-radius: 999px;
  background: #e7f5e9;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
}

.wind-picture-trail i {
  color: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.interactive-scene-list {
  display: grid;
  gap: 10px;
}

.interactive-scene-switcher {
  display: grid;
  gap: 10px;
}

.interactive-scene-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(223, 240, 223, 0.95);
  border-radius: 8px;
  background: #f7fbf6;
}

.interactive-scene-card[hidden] {
  display: none;
}

.interactive-scene-card.is-active {
  border-color: rgba(79, 155, 109, 0.48);
  box-shadow: 0 10px 24px rgba(62, 79, 73, 0.08);
}

.interactive-scene-card p {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.interactive-scene-card blockquote {
  margin: 0;
  padding: 9px 10px;
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  background: #fff8e9;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.interactive-scene-card small {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

.scene-switcher-controls {
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  gap: 8px;
  align-items: center;
}

.scene-switcher-controls button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.scene-switcher-controls button:disabled {
  cursor: default;
  opacity: 0.48;
}

.scene-switcher-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.interactive-original-block {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.interactive-original-block .poem-line p {
  font-size: 32px;
}

.poem-read-button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.poem-read-button.is-speaking {
  background: #3f7f5b;
}

.interactive-word-grid {
  display: grid;
  gap: 10px;
}

.interactive-word-grid article {
  padding: 12px;
  border: 1px solid rgba(223, 240, 223, 0.95);
  border-radius: 8px;
  background: #f7fbf6;
}

.interactive-word-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--leaf);
  font-size: 17px;
  font-weight: 900;
}

.interactive-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: #4e5e5a;
  font-size: 15px;
  line-height: 1.65;
}

.interactive-step-content h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.interactive-caption {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff8e9;
}

.interactive-caption strong {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.interactive-caption p {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.interactive-controls {
  display: grid;
  gap: 10px;
}

.interactive-controls > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lesson-voice-button,
.lesson-nav-button,
.lesson-complete-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.lesson-voice-button {
  background: var(--leaf);
  color: #fff;
}

.lesson-voice-button.is-speaking {
  background: #3f7f5b;
}

.lesson-nav-button {
  background: #f1eadf;
  color: var(--ink);
}

.lesson-nav-button.is-next,
.lesson-complete-button {
  background: var(--coral);
  color: #fff;
}

.lesson-complete-button.is-done {
  background: var(--leaf);
}

.lesson-nav-button:disabled,
.lesson-complete-button:disabled,
.lesson-voice-button:disabled {
  cursor: default;
  opacity: 0.78;
}

.original-block.is-pinyin-hidden .poem-line small {
  display: none;
}

.original-block .poem-line {
  padding: 13px 14px;
}

.original-block .poem-line p {
  font-size: 29px;
  line-height: 1.2;
}

.original-block .poem-line small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.interactive-original-block .poem-line p {
  font-size: 32px;
}

.goal-block,
.child-intro-block,
.meaning-block,
.appreciation-block,
.parent-tip-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 229, 0.86));
}

.goal-block p,
.child-intro-block p,
.meaning-block p,
.appreciation-block p,
.parent-tip-block p {
  margin: 0;
  color: #4e5e5a;
  font-size: 15px;
  line-height: 1.78;
}

.scene-summary {
  margin: 0 0 12px;
  color: #4e5e5a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.scene-grid {
  display: grid;
  gap: 10px;
}

.scene-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(223, 240, 223, 0.95);
  border-radius: 8px;
  background: #f7fbf6;
}

.scene-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-card-head span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--warm);
  color: #5b4516;
  font-size: 13px;
  font-weight: 900;
}

.scene-card-head strong {
  font-size: 16px;
}

.scene-card p {
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.65;
}

.scene-card blockquote {
  margin: 0;
  padding: 9px 10px;
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  background: #fff8e9;
  font-family: "KaiTi", "SimKai", serif;
  font-size: 20px;
  font-weight: 800;
}

.scene-card small {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
}

#scene-memory-prompts {
  scroll-margin-top: 14px;
}

.practice-options button {
  text-align: left;
  padding: 0 12px;
}

.practice-options button.is-correct {
  background: #dcf0df;
  color: #2f7552;
}

.practice-options button.is-wrong {
  background: #ffe4dc;
  color: #a3422e;
}

.practice-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f3fbf5;
  border-left: 3px solid var(--leaf);
}

.practice-result strong {
  display: block;
  margin-bottom: 8px;
  color: var(--leaf);
  font-size: 17px;
  font-weight: 900;
}

.practice-result p,
.practice-result small {
  display: block;
  margin: 0;
  color: #4e5e5a;
  font-size: 14px;
  line-height: 1.7;
}

.practice-options button.is-correct {
  background: #dcf0df;
  color: #2f7552;
  font-weight: 900;
}

.practice-options button.is-wrong {
  background: #ffe4dc;
  color: #a3422e;
}

.bottom-action-bar button {
  padding: 0 6px;
  font-size: 13px;
}

@media (min-width: 700px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    min-height: calc(100vh - 36px);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(62, 79, 73, 0.16);
    overflow: hidden;
  }
}

/* ===== 授权激活 ===== */
.lock-screen { padding: 16px; max-width: 560px; margin: 0 auto; }
.lock-card { border: 1.5px dashed #f5a; border-radius: 16px; padding: 20px; background: #fff8fb; }
.lock-card h2 { font-size: 19px; margin: 0 0 6px; }
.lock-sub { font-size: 13px; color: #666; margin: 0 0 14px; }
.lock-expired { font-size: 13px; color: #c0392b; background: #fdecea; padding: 8px 10px; border-radius: 8px; margin: 0 0 12px; }
.lock-label { display: block; font-size: 13px; color: #555; margin: 12px 0 6px; }
.lock-input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #e0d3da; border-radius: 10px; font-size: 15px; }
#lock-machine { font-family: ui-monospace, "Consolas", monospace; letter-spacing: 2px; background: #faf6f8; }
.lock-machine-row { display: flex; gap: 8px; align-items: stretch; }
.lock-machine-row .lock-input { flex: 1; }
.lock-copy { padding: 0 16px; border: 1px solid #d8c8d0; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; white-space: nowrap; }
.lock-activate { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 10px; background: #1b1b1b; color: #fff; font-size: 16px; cursor: pointer; }
.lock-status { min-height: 18px; font-size: 13px; color: #c0392b; margin: 10px 0 0; }
.lock-help { font-size: 12px; color: #888; line-height: 1.6; margin: 14px 0 0; }
/* 两档价格 + 锚点特惠 */
.lock-promo { display: inline-block; margin: 16px 0 8px; padding: 4px 12px; border-radius: 999px; background: #fdecec; color: #c0392b; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.lock-plans { display: flex; gap: 10px; margin: 0 0 6px; }
.lock-plan { flex: 1; position: relative; border: 1.5px solid #e6d6de; border-radius: 12px; padding: 13px 10px 11px; text-align: center; background: #fff; }
.lock-plan .plan-name { display: block; font-size: 13px; color: #8a7680; margin-bottom: 2px; }
.lock-plan .plan-orig { display: block; font-size: 12px; color: #b6a8ae; text-decoration: line-through; margin-bottom: 3px; }
.lock-plan .plan-price { font-size: 21px; font-weight: 800; color: #1b1b1b; letter-spacing: -0.01em; }
.lock-plan .plan-price small { font-size: 12px; font-weight: 500; color: #8a7680; margin-left: 3px; }
.lock-plan.is-best { border-color: #d1a53a; background: #fffaef; }
.lock-plan.is-best .plan-price { color: #a9781a; }
.lock-plan .plan-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #d1a53a; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
/* 列表锁角标 */
.poem-card { position: relative; }
.poem-lock-badge { position: absolute; top: 10px; right: 10px; font-size: 16px; z-index: 2; }
.poem-card.is-locked { opacity: 0.92; }
.poem-card.is-locked .card-action { background: #eee; color: #999; }
