:root {
  --bg: #fffaf1;
  --ink: #28483d;
  --green: #176b57;
  --muted: #728176;
  --line: #e7e9dd;
  --soft: #edf3e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 'Microsoft YaHei',
    system-ui,
    sans-serif;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e9ab41;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.app {
  max-width: 1600px;
  margin: auto;
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  background: #fffdf7;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff8df;
  width: 48px;
  height: 50px;
  border-radius: 17px 17px 17px 4px;
  font-size: 26px;
}
.brand-small {
  font-size: 12px;
  display: block;
  letter-spacing: 4px;
  line-height: 1.2;
  font-weight: 500;
}
.sidebar-note {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 45px;
  letter-spacing: 2px;
}
nav {
  display: grid;
  gap: 12px;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 15px;
}
nav a.active {
  background: var(--green);
  color: white;
  box-shadow: 0 5px 12px #176b5712;
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  text-align: center;
  border-radius: 70px 70px 20px 20px;
  background: #f4f1df;
  padding: 25px 12px;
  color: #7c8064;
  font-size: 13px;
}
.seedling {
  font-size: 44px;
  color: #779676;
}
.sidebar-bottom p {
  margin: 0 0 15px;
}
.pill {
  font-size: 12px;
  border: 1px solid #dce2cd;
  padding: 4px 10px;
  border-radius: 30px;
  background: #fffdf9;
}
.app main {
  min-width: 0;
  flex: 1;
  padding: 0 46px;
}
header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  color: var(--muted);
}
.breadcrumbs span {
  margin-left: 10px;
}
.parent-entry {
  padding: 8px 15px;
  border: 1px solid #d9e2d7;
  border-radius: 30px;
}
.parent-entry span {
  margin-left: 12px;
}
#content {
  padding: 34px 0 10px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: #7c887a;
  text-transform: uppercase;
}
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 0 0 16px;
}
h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
p {
  margin: 6px 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.date-badge {
  font-size: 12px;
  text-align: center;
  background: #f1eddc;
  padding: 9px 17px;
  border-radius: 12px;
  line-height: 1.6;
  color: #777c68;
}
.date-badge strong {
  display: block;
  font-size: 22px;
  color: #52664d;
}
.hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #e9f0e5;
  border-radius: 28px;
  padding: 36px;
  display: flex;
  align-items: center;
  border: 1px solid #dde8d9;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 55%;
}
.tag {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff8e6;
  color: #786a44;
  margin-bottom: 12px;
}
.hero h2 {
  font-family: 'STSong', 'SimSun', serif;
  font-size: 43px;
  letter-spacing: 7px;
  margin: 6px 0 6px;
}
.hero p {
  color: #667b68;
  margin: 12px 0 23px;
  font-size: 14px;
}
.art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  pointer-events: none;
}
.primary {
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: white;
  padding: 12px 22px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.secondary {
  border: 1px solid #dae3d6;
  border-radius: 14px;
  padding: 11px 18px;
  background: #fffdf7;
  color: var(--ink);
  min-height: 48px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 10px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px;
}
.section-head h2 {
  margin: 0;
}
.section-head a {
  font-size: 13px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 20px;
  overflow: hidden;
}
.card-copy {
  padding: 18px 20px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
}
.card-scene {
  height: 114px;
  position: relative;
  overflow: hidden;
  background: #edf2e8;
}
.card-scene .art {
  width: 100%;
}
.card:nth-child(2) .card-scene {
  background: #f4eadb;
}
.card:nth-child(3) .card-scene {
  background: #e6edf2;
}
.card a {
  display: block;
  height: 100%;
}
.card:hover {
  border-color: #afc5af;
  transform: translateY(-2px);
  transition: 0.15s;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
}
.arrow {
  display: grid;
  place-items: center;
  background: #edf3e9;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green);
}
.note {
  background: #f5efdf;
  border-radius: 16px;
  padding: 17px 22px;
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 25px 0;
  font-size: 13px;
  color: #7b735b;
}
.note .icon {
  width: 28px;
  height: 28px;
}
.note b {
  font-size: 14px;
  color: #5e634d;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 30px;
  color: var(--green);
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.search {
  width: 100%;
  border: 1px solid #e1e7d9;
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  color: var(--ink);
  margin: 0 0 22px;
}
.filters,
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.filters button,
.tabs button {
  border: 1px solid #e0e6d9;
  border-radius: 30px;
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
}
.filters button.selected,
.tabs button.selected {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.poem-paper {
  background: #fffdf6;
  border: 1px solid #e6e5d7;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 28px 18px;
}
.poem-paper h1 {
  font:
    34px 'STSong',
    'SimSun',
    serif;
  letter-spacing: 5px;
}
.poem-paper .art {
  opacity: 0.12;
  width: 100%;
  height: 80%;
}
.poem-lines {
  position: relative;
  margin: 28px 0 15px;
}
.line {
  border: 0;
  background: transparent;
  display: block;
  width: 100%;
  padding: 11px 6px;
  border-radius: 12px;
  color: var(--ink);
}
.line.active {
  background: #e7f0e4;
}
.line small {
  display: block;
  font: 12px/1.8 system-ui;
  word-spacing: 6px;
  color: #819176;
}
.line span {
  display: block;
  font:
    25px/1.7 'STSong',
    'SimSun',
    serif;
  letter-spacing: 6px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
  padding: 25px;
}
.panel + .panel {
  margin-top: 18px;
}
.panel p {
  line-height: 1.9;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.explanation {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.explanation:last-child {
  border-bottom: 0;
}
.explanation b {
  display: block;
  margin-bottom: 6px;
}
.explanation p {
  font-size: 15px;
}
.explanation button {
  margin-top: 8px;
}
.full {
  width: 100%;
}
.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 10px;
  background: #eef2e8;
  font-size: 12px;
  color: #61705b;
}
.choices {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.choice {
  text-align: left;
}
.feedback {
  padding: 16px;
  border-radius: 14px;
  background: #eaf2e4;
  margin: 15px 0;
}
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.price {
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  margin: 12px 0;
}
.price small {
  font-size: 15px;
  font-weight: 400;
}
.pricing ul {
  padding-left: 20px;
  color: #657665;
  font-size: 14px;
  line-height: 2;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  background: #f4f2e8;
  border-radius: 22px;
}
.empty .icon {
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
}
footer {
  color: #96a08f;
  font-size: 11px;
  padding: 25px 0 100px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.player {
  position: fixed;
  left: calc(50% - 300px);
  bottom: 20px;
  width: 720px;
  max-width: calc(100% - 32px);
  background: #244f41;
  color: white;
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  box-shadow: 0 8px 32px #12372933;
  z-index: 10;
}
.player[hidden] {
  display: none;
}
.player button {
  background: #ffffff14;
  border: 1px solid #ffffff33;
  border-radius: 10px;
  padding: 8px 13px;
  color: white;
}
.player-meta {
  min-width: 120px;
  font-size: 13px;
}
.player-meta span {
  display: block;
  color: #b3cfc1;
  font-size: 11px;
}
.player input {
  min-width: 20px;
  flex: 1;
  accent-color: #f0ce85;
}
#playing-time {
  font-size: 12px;
}
#toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #254938;
  color: white;
  border-radius: 14px;
  padding: 12px 22px;
  opacity: 0;
  pointer-events: none;
  max-width: 90%;
  transition: opacity 0.15s;
}
#toast.visible {
  opacity: 1;
}
.admin-list {
  display: grid;
  gap: 14px;
}
.admin-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.admin-row p {
  font-size: 13px;
  word-break: break-all;
}
.admin-row button {
  margin: 8px 8px 0 0;
}
.error {
  background: #f9eae4;
  color: #8c4937;
}
.poem-list {
  display: grid;
  gap: 12px;
}
.poem-list a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  background: white;
}
@media (min-width: 1500px) {
  .app main {
    padding: 0 70px;
  }
  .hero {
    min-height: 350px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 180px;
    padding: 28px 16px;
  }
  .app main {
    padding: 0 25px;
  }
  .hero {
    padding: 26px;
  }
  .hero-copy {
    width: 65%;
  }
  .study-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 12px;
  }
  .card-copy {
    padding: 16px;
  }
  .player {
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 680px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: 70px;
    width: 100%;
    padding: 0 8px;
    border-right: 0;
    border-top: 1px solid var(--line);
    z-index: 15;
    background: #fffdf8;
  }
  .brand,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  .sidebar nav a {
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    padding: 9px 13px;
    border-radius: 0;
  }
  .sidebar nav a.active {
    background: none;
    color: var(--green);
    box-shadow: none;
    font-weight: bold;
  }
  .sidebar nav .icon {
    width: 22px;
    height: 22px;
  }
  .app main {
    padding: 0 18px;
  }
  header {
    height: 66px;
    font-size: 11px;
  }
  .parent-entry {
    padding: 6px 10px;
  }
  #content {
    padding-top: 23px;
  }
  h1 {
    font-size: 24px;
  }
  .date-badge {
    padding: 5px 10px;
  }
  .hero {
    min-height: 280px;
    padding: 24px;
    border-radius: 22px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero-copy {
    width: 74%;
  }
  .hero p {
    max-width: 200px;
  }
  .hero .art {
    width: 70%;
    right: -42px;
    opacity: 0.65;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card a {
    display: flex;
    align-items: center;
  }
  .card-scene {
    width: 120px;
    height: 145px;
    flex-shrink: 0;
  }
  .card-copy {
    flex: 1;
  }
  .card-meta {
    margin-top: 10px;
  }
  .greeting {
    margin-bottom: 20px;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 11px;
  }
  .player {
    bottom: 83px;
    padding: 12px;
    gap: 8px;
  }
  .player-meta {
    min-width: 70px;
  }
  .player-meta b {
    font-size: 11px;
  }
  .player button {
    padding: 8px;
    font-size: 12px;
  }
  .player input {
    width: 50px;
  }
  .note {
    align-items: flex-start;
    padding: 16px;
  }
  .line span {
    font-size: 24px;
    letter-spacing: 4px;
  }
  footer {
    padding-bottom: 95px;
  }
  .panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.poem-paper {
  padding-top: 30px;
}
.poem-paper > .tag {
  margin-left: 48px;
  margin-right: 48px;
  min-height: 28px;
}
.favorite-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  border: 1px solid #e0e7d9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffdf7;
  color: #728176;
  z-index: 2;
  padding: 12px;
}
.favorite-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.favorite-icon.is-saved {
  color: #176b57;
  background: #e5f0e5;
  border-color: #c3d8c4;
}
.favorite-icon.is-saved svg {
  fill: currentColor;
}
.favorite-icon:hover {
  background: #edf3e9;
}
.my-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.my-management .secondary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide {
  text-align: center;
  max-width: 820px;
  margin: 10px auto 40px;
  padding: 35px 20px;
  background: #f0f3e8;
  border-radius: 32px;
}
.guide-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: #dceacf;
  border-radius: 28px;
  margin: 20px auto;
  color: #176b57;
}
.guide-mark .icon {
  width: 42px;
  height: 42px;
}
.guide h1 {
  font: 36px/1.5 serif;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
  margin: 35px 10px;
}
.guide-steps > div {
  padding: 22px;
  border-radius: 22px;
  background: #fffdf5;
}
.guide-steps b {
  font-size: 24px;
  color: #7a9d73;
}
.guide-steps h3 {
  margin: 10px 0;
  font-size: 18px;
}
.guide-steps p,
.guide-note {
  font-size: 13px;
  color: #6a7c69;
}
.guide .text-button {
  display: block;
  margin: 12px auto;
}
.guide-note {
  margin-top: 25px;
}
.parent-gate {
  max-width: 470px;
  margin: 20px auto;
  text-align: center;
}
.parent-gate .search {
  margin: 12px 0;
}
.parent-gate .muted {
  margin: 20px 0;
}
.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.profile-active {
  background: #e5f0e5;
  border-color: #176b57;
}
.profile-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.profile-form .search {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.profile-form select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.answer-selected {
  border-width: 2px;
}
.answer-correct {
  background: #e4f1e3;
  border-color: #176b57;
  color: #176b57;
}
.answer-correct::after {
  content: ' ✓ 已选';
  float: right;
  font-size: 13px;
}
.answer-retry {
  background: #fff1d7;
  border-color: #b58636;
}
.answer-retry::after {
  content: ' · 再想想';
  font-size: 13px;
}
@media (max-width: 680px) {
  .immersive .sidebar {
    display: none;
  }
  .guide {
    padding: 28px 16px;
  }
  .guide h1 {
    font-size: 28px;
  }
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
  }
  .guide-steps > div {
    padding: 14px 18px;
  }
  .guide-steps b {
    float: left;
    margin: 7px 18px 0 0;
  }
  .guide-steps h3 {
    margin: 0;
  }
  .guide-steps p {
    margin: 0;
  }
  .my-management {
    flex-direction: column;
    align-items: stretch;
  }
  .immersive .player {
    bottom: 16px;
  }
}

.my-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #edf3df;
  border-radius: 28px;
  padding: 28px;
  margin: 24px 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fffaf1;
  flex-shrink: 0;
}
.profile-avatar .icon {
  width: 44px;
  height: 44px;
}
.my-profile h2 {
  margin: 0;
}
@media (max-width: 720px) {
  .sidebar nav a {
    flex: 1;
    min-width: 0;
    padding: 8px 2px;
  }
  .sidebar nav a span {
    white-space: nowrap;
    font-size: 11px;
  }
  .my-profile {
    gap: 16px;
    padding: 22px;
  }
}

#parent-dialog {
  border: 1px solid #dde5d7;
  border-radius: 28px;
  background: #fffaf1;
  color: #244a3b;
  width: min(440px, calc(100vw - 32px));
  max-height: 85dvh;
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
}
#parent-dialog::backdrop {
  background: #173a3266;
}
#parent-dialog .search {
  margin: 12px 0;
}
#parent-dialog .text-button {
  margin-top: 16px;
}
#handoff-child {
  margin-bottom: 20px;
}

.welcome-simple{text-align:center;padding:24px 8px 40px;max-width:540px;margin:auto}.welcome-scene{height:240px;max-width:340px;margin:0 auto 32px;position:relative;background:#edf2e5;border-radius:160px 160px 50px 50px;overflow:hidden}.welcome-scene .art{position:static;width:100%;height:100%}.welcome-simple h1{font-family:serif}.welcome-simple .primary{margin:36px auto 0;width:min(100%,320px)}
