:root {
  --space: #17123f;
  --ink: #2b1d4f;
  --ink-soft: #6b5e8f;
  --sun: #ffd23f;
  --orange: #f28c28;
  --orange-deep: #b85a10;
  --cyan: #7ef0ff;
  --pink: #ff8fab;
  --warn: #ff6b6b;
  --panel: #ffffff;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.22);
  --font: 'Yuanti SC', 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 15% -10%, #5a2fb5 0%, transparent 55%),
    radial-gradient(ellipse at 95% 110%, #0f6c9c 0%, transparent 50%),
    radial-gradient(circle at 80% 15%, rgba(255, 143, 171, 0.25) 0%, transparent 30%),
    var(--space);
  background-attachment: fixed;
  overflow: hidden;
}

/* 星空 */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.500px 1.500px at 20px 30px, #fff, transparent),
    radial-gradient(1.500px 1.500px at 140px 90px, #fff, transparent),
    radial-gradient(2px 2px at 90px 170px, #cfe9ff, transparent),
    radial-gradient(1px 1px at 200px 40px, #fff, transparent),
    radial-gradient(2px 2px at 250px 200px, #ffe9a8, transparent),
    radial-gradient(1px 1px at 60px 240px, #fff, transparent);
  background-size: 280px 280px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

body::after {
  background-size: 190px 190px;
  background-position: 70px 110px;
  opacity: 0.5;
  animation-duration: 6s;
  animation-direction: alternate-reverse;
}

@keyframes twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.95;
  }
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

[hidden] {
  display: none !important;
}

.app {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 16px 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.foot-mode {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foot-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

/* 手机上四个按钮一行放不下，换行，不把页面撑宽 */
@media (max-width: 480px) {
  .foot {
    flex-wrap: wrap;
  }
  .foot-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 2px solid var(--glass-line);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.foot-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.foot-btn .ic {
  width: 18px;
  height: 18px;
}

.foot-btn.off {
  color: rgba(255, 255, 255, 0.5);
}

.foot-btn.off .ic {
  filter: grayscale(1);
  opacity: 0.5;
}

/* ---------- 图标 ---------- */

.ic {
  display: inline-flex;
  flex: none;
  width: 1.250em;
  height: 1.250em;
  vertical-align: -0.250em;
}

.ic svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- 页面内的确认框 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 8, 36, 0.72);
}

.modal-box {
  width: min(440px, 100%);
  text-align: center;
  background: #fff;
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 18px 24px 22px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
  animation: pop-in 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.modal-box .ajian {
  margin: 0 auto;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
}

.modal-text {
  margin: 4px 0 16px;
  color: var(--ink-soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.loading {
  margin: auto;
  font-size: 20px;
}

.error {
  color: #ffb4b4;
  font-size: 15px;
  margin: 8px 0 0;
  text-align: center;
}

.error:empty {
  display: none;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(#ffe066, #ffb238);
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

.btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.btn.ghost {
  background: #fff;
}

.btn.small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--ink);
}

.btn.go {
  min-height: 62px;
  padding: 0 36px;
  font-size: 22px;
}

.btn.big {
  min-height: 74px;
  font-size: 26px;
  padding: 0 44px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 2px solid var(--glass-line);
  font-size: 14px;
  font-weight: 700;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn.dark {
  color: var(--ink);
  border-color: #d9d2f0;
  background: #f3f0ff;
}

.text-btn {
  color: #d9d4ff;
  text-decoration: underline;
  font-size: 15px;
}

/* 四至六年级：聊到第 15 句以后，话筒下面的出口"直接做作品"（不抢话筒的风头） */
.exit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 6px;
}

.exit-btn {
  font-size: 14px;
  color: rgba(233, 228, 255, 0.85);
}

.exit-row.ask {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.exit-ask {
  font-size: 14px;
  color: #e9e4ff;
}

/* 七至九年级的工作室是浅色底 */
.studio .exit-row {
  width: 100%;
  justify-content: flex-start;
}

.studio .exit-btn {
  color: #6b7280;
}

.studio .exit-row.ask {
  background: #f3f4f6;
}

.studio .exit-ask {
  color: #374151;
}

/* ---------- 阿见 ---------- */

.ajian {
  width: clamp(120px, 26vh, 220px);
  flex: none;
}

.ajian.small {
  width: 104px;
}

.ajian svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.aj-shadow {
  fill: rgba(0, 0, 0, 0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: aj-shadow 3s ease-in-out infinite;
}

.aj-float {
  animation: aj-bob 3s ease-in-out infinite;
}

.aj-eye {
  fill: var(--cyan);
  transform-box: fill-box;
  transform-origin: center;
  animation: aj-blink 4.200s infinite;
}

.aj-eyes {
  transition: transform 0.25s;
}

.aj-eyes-happy {
  display: none;
}

.aj-eyes-happy path,
.aj-smile {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 6;
  stroke-linecap: round;
}

.aj-smile {
  stroke-width: 5;
}

.aj-talk {
  fill: var(--cyan);
  display: none;
  transform-box: fill-box;
  transform-origin: center;
}

.aj-waves path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
}

.aj-bulb {
  transform-box: fill-box;
  transform-origin: center;
}

.aj-arm {
  transition: transform 0.2s;
}

.ajian.listening .aj-waves path {
  animation: aj-wave 1s ease-out infinite;
}

.ajian.listening .aj-waves path:nth-child(n + 3) {
  animation-delay: 0.3s;
}

.ajian.listening .aj-bulb {
  animation: aj-bulb 0.6s ease-in-out infinite alternate;
}

.ajian.thinking .aj-eyes {
  transform: translate(-6px, -7px);
}

.ajian.thinking .aj-bulb {
  animation: aj-bulb 0.35s ease-in-out infinite alternate;
}

.ajian.talking .aj-smile {
  display: none;
}

.ajian.talking .aj-talk {
  display: block;
  animation: aj-talk 0.26s ease-in-out infinite alternate;
}

.ajian.happy .aj-eyes {
  display: none;
}

.ajian.happy .aj-eyes-happy {
  display: block;
}

.ajian.happy .aj-float {
  animation: aj-jump 0.5s ease-in-out 3;
}

.ajian.happy .aj-arm {
  transform: translateY(-16px);
}

@keyframes aj-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes aj-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(0.82);
    opacity: 0.7;
  }
}

@keyframes aj-blink {
  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.1);
  }
}

@keyframes aj-jump {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  40% {
    transform: translateY(-26px) rotate(-4deg);
  }
  70% {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes aj-talk {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1.25);
  }
}

@keyframes aj-wave {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes aj-bulb {
  from {
    transform: scale(0.85);
    filter: brightness(0.9);
  }
  to {
    transform: scale(1.3);
    filter: brightness(1.4) drop-shadow(0 0 6px #ffe066);
  }
}

/* ---------- 对话气泡 ---------- */

.speech {
  position: relative;
  background: var(--panel);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 26px;
  padding: 16px 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 78px;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.speech::before {
  content: '';
  position: absolute;
  left: -19px;
  top: 30px;
  border: 10px solid transparent;
  border-right: 16px solid var(--ink);
}

.speech::after {
  content: '';
  position: absolute;
  left: -11px;
  top: 33px;
  border: 7px solid transparent;
  border-right: 12px solid var(--panel);
}

.speech.static {
  cursor: default;
  font-size: 20px;
}

.speech.waiting {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
}

.dots {
  display: inline-flex;
  gap: 7px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  animation: dot 1s ease-in-out infinite;
}

.dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.dots.big i {
  width: 16px;
  height: 16px;
  background: var(--sun);
}

@keyframes dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-9px);
    opacity: 1;
  }
}

/* ---------- 开场 ---------- */

.intro {
  margin: auto;
  width: 100%;
  max-width: 620px;
  padding: 12px 0;
}

.tagline {
  margin: 8px 0 0;
  font-size: 18px;
  color: #e6e0ff;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

input[type='text'],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 16px;
  border: 3px solid #d9d2f0;
  border-radius: 16px;
  background: #fff;
  outline: none;
}

input[type='text']:focus,
textarea:focus {
  border-color: var(--orange);
}

textarea {
  resize: vertical;
  min-height: 76px;
}

/* ---------- 作品卡确认 ---------- */

.review {
  margin: auto 0;
  padding: 8px 0;
}

.pick-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.pick-head .speech {
  flex: 1;
  min-height: 0;
}

/* ---------- 聊天主界面（一至三年级、四至六年级） ---------- */

.game {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto; /* 上面的标题、四颗星、助教和侧栏、底下的话筒 */
  grid-template-columns: minmax(0, 1fr); /* 不许被里面的长内容撑得比屏幕宽（手机上四颗星的名字、侧栏） */
  gap: 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-title {
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

/* 星图 */
.map {
  position: relative;
  padding-top: 20px;
}

.planets {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
}

.planet {
  text-align: center;
}

.orb {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  background: radial-gradient(circle at 30% 30%, #6a64a0, #3a3470);
  border: 3px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.4s, background 0.4s, box-shadow 0.4s;
}

.planet-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.planet.p0 {
  --pc: #ff9f43;
  --pd: #e0561b;
}
.planet.p1 {
  --pc: #54d6ff;
  --pd: #1f7fd6;
}
.planet.p2 {
  --pc: #ffe066;
  --pd: #e09b12;
}
.planet.p3 {
  --pc: #6ee7a8;
  --pd: #1f9d68;
}

.planet.done .orb {
  color: var(--ink);
  background: radial-gradient(circle at 30% 28%, #fff 0%, var(--pc) 28%, var(--pd) 100%);
  border-color: #fff;
}

.planet.done .orb span {
  font-size: 0;
}

.planet.done .orb span::before {
  content: '✓';
  font-size: 22px;
}

.planet.done .planet-name {
  color: #fff;
}

/* 舞台 */
.arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 14px;
  min-height: 0;
}

.stage {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 0;
  min-width: 0;
}

.talk {
  flex: 1;
  min-width: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 这一块本身不滚动（2026-11-27 用户反馈：以前整块在滚，"再听一遍"按钮和气泡的影子被截掉）。
     放不下时只有气泡变矮，气泡里的字上下滑（.speech-text） */
  overflow: visible;
  padding: 4px 6px 8px 22px;
}

.talk > .said,
.talk > .chips {
  flex: none;
}

/* 对话区里的气泡：跟着地方变矮，字在里面滑；"再听一遍"按钮挂在右下角外面，下边留出地方不压到选项 */
.talk > .speech-wrap {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.speech-wrap > .speech {
  flex: 0 1 auto; /* 最矮到 .speech 的 min-height */
  display: flex;
  flex-direction: column;
}

.speech-wrap > .speech.waiting {
  flex-direction: row;
}

.speech-text {
  min-height: 1.5em;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.said {
  align-self: flex-end;
  max-width: 85%;
  padding: 7px 14px;
  border-radius: 18px 18px 4px 18px;
  background: rgba(126, 240, 255, 0.16);
  border: 2px solid rgba(126, 240, 255, 0.5);
  color: #e9fbff;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.said-label {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips:empty {
  display: none;
}

.chip {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 800;
  font-size: 16px;
  animation: pop-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
}

.chip:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

@keyframes pop-in {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}

/* ---------- 两条线（talk.js）：四颗星、作品草图、灵感背包、"直接做作品" ---------- */

.star-planet .orb .ic,
.star-planet.done .orb span {
  display: grid;
  place-items: center;
  font-size: 24px;
}

.star-planet.done .orb span::before {
  content: none;
}

.star-planet .orb svg {
  width: 24px;
  height: 24px;
  opacity: 0.45;
}

.star-planet.done .orb svg {
  opacity: 1;
  color: #fff;
}

.star-planet.pop .orb {
  animation: star-pop 0.9s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes star-pop {
  0% { transform: scale(0.5); }
  55% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* 四颗星没有先后：没有航线、飞船，也不标"下一颗"。没亮的星各自慢慢闪（错开节奏，不会一起闪），
   亮了就跳一下、发光；四颗都亮了，星座连起来一圈光。 */
.talk-mode .map {
  padding-top: 8px;
}

.talk-mode .star-planet:not(.done) .orb {
  animation: star-idle 4.200s ease-in-out infinite;
}

.talk-mode .star-planet.p1:not(.done) .orb {
  animation-delay: -1.300s;
  animation-duration: 5s;
}

.talk-mode .star-planet.p2:not(.done) .orb {
  animation-delay: -2.600s;
  animation-duration: 4.600s;
}

.talk-mode .star-planet.p3:not(.done) .orb {
  animation-delay: -0.700s;
  animation-duration: 5.400s;
}

@keyframes star-idle {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 14px rgba(190, 200, 255, 0.35);
  }
}

.talk-mode .star-planet.done .orb {
  box-shadow: 0 0 18px var(--pc);
}

.talk-mode .star-planet.done .planet-name {
  color: #fff;
}

.talk-mode.all-lit .star-planet.done .orb {
  animation: star-glow 2.400s ease-in-out infinite;
}

@keyframes star-glow {
  0%,
  100% {
    box-shadow: 0 0 14px var(--pc);
  }
  50% {
    box-shadow: 0 0 28px var(--pc), 0 0 6px #fff;
  }
}

/* 背后的星空动效：很慢、很淡，在所有内容下面，不挡点击 */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.talk-mode {
  position: relative;
  z-index: 0;
}

/* 三团星云慢慢飘 */
.sky .nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: nebula-drift 38s ease-in-out infinite alternate;
}

.sky .n1 {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(120, 80, 255, 0.55), transparent 70%);
}

.sky .n2 {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: -8vh;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.4), transparent 70%);
  animation-duration: 46s;
  animation-delay: -12s;
}

.sky .n3 {
  width: 42vw;
  height: 42vw;
  right: 8vw;
  bottom: -20vh;
  background: radial-gradient(circle, rgba(70, 190, 255, 0.4), transparent 70%);
  animation-duration: 52s;
  animation-delay: -24s;
}

@keyframes nebula-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6vw, -4vh) scale(1.12);
  }
}

/* 偶尔划过一颗流星：一分钟里各一两次，很快就过去 */
.sky .shoot {
  position: absolute;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  opacity: 0;
  transform: rotate(-24deg);
  animation: shoot 17s linear infinite;
}

.sky .s1 {
  top: 14vh;
  left: 58vw;
  animation-delay: 4s;
}

.sky .s2 {
  top: 34vh;
  left: 18vw;
  animation-duration: 23s;
  animation-delay: 13s;
}

@keyframes shoot {
  0% {
    opacity: 0;
    transform: rotate(-24deg) translateX(0);
  }
  1% {
    opacity: 0.8;
  }
  5% {
    opacity: 0;
    transform: rotate(-24deg) translateX(-260px);
  }
  100% {
    opacity: 0;
    transform: rotate(-24deg) translateX(-260px);
  }
}

/* 对话框下面空着的地方，一颗带环的小星球，慢慢上下浮 */
.sky .moon {
  position: absolute;
  left: 38vw;
  bottom: 30vh;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9b0, #f2a65a 55%, #b8602a);
  opacity: 0.32;
  animation: moon-float 14s ease-in-out infinite;
}

.sky .moon::after {
  content: '';
  position: absolute;
  left: -22px;
  right: -22px;
  top: 28px;
  height: 14px;
  border: 2px solid rgba(255, 233, 176, 0.7);
  border-radius: 50%;
  transform: rotate(-14deg);
}

@keyframes moon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@media (max-width: 640px) {
  .sky .moon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .talk-mode .star-planet .orb,
  .sky .nebula,
  .sky .moon {
    animation: none !important;
  }
  .sky .shoot {
    display: none;
  }
}

/* 打磨那颗星下面的小点：打磨一次亮一个 */
.planet-count {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 8px;
  margin-top: 4px;
}

.planet-count i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.4s, box-shadow 0.4s;
}

.planet-count i.got {
  background: #ffd84d;
  box-shadow: 0 0 8px rgba(255, 216, 77, 0.8);
}

.planet-count i.new {
  animation: star-pop 0.9s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  .planet-count i.new {
    animation: none;
  }
}

.talk-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sketch,
.backpack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.sk-type svg {
  width: 18px;
  height: 18px;
}

.sk-type.got {
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  animation: card-in 0.8s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.talk-side[data-type='game'] .sk-type.got { background: #6ee7a8; }
.talk-side[data-type='book'] .sk-type.got { background: #ffb3c7; }

.sk-name {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.sk-row {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
}

.sk-row.got {
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.sk-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}

.sk-row.got .sk-label {
  color: var(--orange-deep);
}

.sk-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
}

.sk-row.got .sk-text {
  color: var(--ink);
}

.spark {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 7px 10px;
  border-radius: 12px;
  background: #fff8d6;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.spark svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--orange-deep);
}

.spark.new {
  animation: spark-fly 0.9s cubic-bezier(0.3, 1.4, 0.5, 1);
}

@keyframes spark-fly {
  0% { transform: translateX(-160px) scale(0.4) rotate(-12deg); opacity: 0; }
  60% { transform: translateX(8px) scale(1.06); opacity: 1; }
  100% { transform: none; }
}

.spark-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 6px;
}

@media (max-width: 900px) {
  /* 草图和灵感背包并排，在这一条里左右滑；不能把整个页面撑宽 */
  .arena,
  .talk-side {
    min-width: 0;
  }
  .talk-side {
    flex-direction: row;
    max-height: 132px;
    overflow-x: auto;
    align-items: flex-start;
  }
  .talk-side .sketch,
  .talk-side .backpack {
    flex: none;
    width: 240px;
    max-height: 120px;
    overflow-y: auto;
  }
  .talk-side .cards-title {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star-planet.pop .orb,
  .spark.new,
  .sk-type.got {
    animation: none;
  }
}

/* 侧栏：作品草图和灵感背包 */
.cards {
  background: var(--glass);
  border: 2px solid var(--glass-line);
  border-radius: 22px;
  padding: 10px;
  overflow-y: auto;
  min-height: 0;
}

.cards-title {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  color: var(--sun);
  letter-spacing: 1px;
}

@keyframes card-in {
  0% {
    transform: scale(0.2) rotate(-18deg);
    opacity: 0;
    box-shadow: 0 0 0 0 var(--sun);
  }
  60% {
    transform: scale(1.12) rotate(3deg);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(255, 210, 63, 0.6);
  }
  100% {
    transform: none;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  }
}

/* 控制台 */
.dock {
  background: rgba(16, 12, 52, 0.72);
  border: 2px solid var(--glass-line);
  border-radius: 26px;
  padding: 12px 16px;
  backdrop-filter: blur(6px);
}

.dock-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.dock-side {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dock-side:last-child {
  justify-content: flex-start;
}

.side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 84px;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--glass);
  border: 2px solid var(--glass-line);
  font-size: 14px;
  font-weight: 700;
}

.side-btn .ic {
  width: 34px;
  height: 34px;
}

.side-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.side-btn.help {
  border-color: var(--warn);
  background: rgba(255, 107, 107, 0.25);
  animation: orb-help 1.200s ease-in-out infinite;
}

@keyframes orb-help {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0);
  }
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  }
}

.dock-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dock-main.typing,
.dock-main.confirm {
  width: min(600px, 62vw);
}

.mic {
  --vol: 0;
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffd98a, var(--orange) 60%, #e0561b);
  border: 4px solid #fff;
  box-shadow: 0 6px 0 var(--orange-deep), 0 0 26px rgba(242, 140, 40, 0.7);
  display: grid;
  place-items: center;
  transition: transform 0.08s;
}

.mic .ic {
  width: 50px;
  height: 50px;
}

.mic:hover:not(:disabled) {
  transform: scale(1.06);
}

.mic:active:not(:disabled) {
  transform: translateY(4px);
}

.mic.rec {
  background: radial-gradient(circle at 35% 28%, #ff9d9d, #ff4d5a 60%, #b3203a);
  box-shadow: 0 6px 0 #8f1a30, 0 0 30px rgba(255, 77, 90, 0.8);
}

.mic.rec::before,
.mic.rec::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 4px solid rgba(255, 143, 171, 0.8);
  transform: scale(calc(1.05 + var(--vol) * 0.55));
  opacity: calc(0.35 + var(--vol) * 0.65);
  transition: transform 0.09s, opacity 0.09s;
  pointer-events: none;
}

.mic.rec::after {
  border-color: rgba(126, 240, 255, 0.7);
  transform: scale(calc(1.18 + var(--vol) * 1.05));
  opacity: calc(0.15 + var(--vol) * 0.6);
}

.stop {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
}

.hint {
  font-size: 15px;
  color: #d9d4ff;
  text-align: center;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 8px;
  width: 100%;
}

/* 选风格 */

.label {
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 15px;
}

/* ---------- 过关横幅 ---------- */

.banner {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(23, 18, 63, 0.75) 0%, rgba(23, 18, 63, 0.2) 70%);
  animation: banner-bg 1.700s ease forwards;
}

.banner-box {
  text-align: center;
  animation: banner-pop 1.700s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}

.banner-kicker {
  display: inline-block;
  padding: 4px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
  border: 3px solid var(--ink);
}

.banner-title {
  font-size: 92px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(255, 210, 63, 0.8);
}

.banner-sub {
  font-size: 22px;
  font-weight: 700;
  color: #ffe9a8;
}

@keyframes banner-pop {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  18% {
    transform: scale(1.08);
    opacity: 1;
  }
  26%,
  78% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes banner-bg {
  0%,
  100% {
    opacity: 0;
  }
  15%,
  80% {
    opacity: 1;
  }
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    top: 105%;
    transform: rotate(720deg) translateX(40px);
  }
}

/* ---------- 对话记录 ---------- */

.log {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 8, 36, 0.7);
  display: grid;
  place-items: center;
  padding: 20px;
}

.log-panel {
  width: min(640px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 16px 18px;
}

.log-head b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.log-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-msg {
  max-width: 88%;
  padding: 8px 14px;
  border-radius: 16px;
  background: #fff3df;
  font-size: 16px;
  white-space: pre-wrap;
}

.log-msg span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-deep);
}

.log-msg.kid {
  align-self: flex-end;
  background: #e3f6ff;
}

.log-msg.kid span {
  color: #1f7fd6;
}

/* ---------- 作品卡（四至六年级） ---------- */

.review {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  flex: 1;
}

.blueprint {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border: 4px solid #9fc2ff;
  border-radius: 24px;
  padding: 16px 18px 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 24px 100%,
    #1a3f96;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
}

.blueprint-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 3px dashed rgba(255, 255, 255, 0.45);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
}

.blueprint-title small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: #cfe0ff;
}

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

.block {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 14px 12px;
  border: 3px solid var(--ink);
}

.block.wide {
  grid-column: 1 / -1;
}

.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.block-label {
  font-size: 13px;
  font-weight: 900;
  color: #2456c7;
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #2456c7;
  font-size: 13px;
  font-weight: 700;
}

.listen-btn:hover:not(:disabled) {
  background: #d6e4ff;
}

.block-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 600;
  font-size: 17px;
}

.block-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.block-text.empty {
  color: var(--ink-soft);
  font-weight: 400;
}

.bottom {
  padding: 14px 0 6px;
  display: flex;
  justify-content: center;
}

/* ---------- 正在写需求文档：孩子按了确认以后（app.js 的 screenWriting） ---------- */

.writing {
  margin: auto;
  width: 100%;
  max-width: 560px;
  padding: 16px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.writing-mascot {
  width: clamp(120px, 24vh, 180px);
  animation: writing-bob 2.4s ease-in-out infinite;
}

.writing .launch-title,
.writing .launch-sub {
  margin: 0;
}

.writing .dots {
  margin: 10px 0 2px;
}

.writing-name {
  margin: 4px 0 0;
  font-weight: 800;
  opacity: 0.85;
}

@keyframes writing-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .writing-mascot {
    animation: none;
  }
}

/* 七至九年级：没有卡通形象的晃动，和交付页一样像一张确认单 */
body[data-band='7-9'] .writing-mascot {
  width: 72px;
  animation: none;
}

body[data-band='7-9'] .writing .launch-title {
  font-size: 26px;
  color: #111827;
}

body[data-band='7-9'] .writing .launch-sub {
  color: #4b5563;
}

body[data-band='7-9'] .writing .dots i {
  background: #d97706;
}

/* ---------- 发射台 ---------- */

.launch {
  margin: auto;
  width: 100%;
  max-width: 640px;
  text-align: center;
  padding: 8px 0 16px;
}

.pad {
  position: relative;
  height: 140px;
}

.rocket {
  display: inline-block;
  line-height: 0;
  animation: rumble 0.16s linear infinite;
  filter: drop-shadow(0 0 16px rgba(255, 210, 63, 0.7));
}

.launch.gone .rocket {
  animation: liftoff 1.400s cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}

.pad-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 180px;
  height: 22px;
  margin-left: -90px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 210, 63, 0.75), transparent 70%);
}

.rocket .ic {
  width: 124px;
  height: 124px;
}

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

@keyframes liftoff {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-130vh);
  }
}

.launch-title {
  font-size: 32px;
  font-weight: 900;
  margin: 6px 0 2px;
}

.launch-sub {
  margin: 0 0 18px;
  color: #e6e0ff;
}

.steps {
  display: inline-block;
  text-align: left;
  margin: 20px 0 4px;
  padding: 12px 22px 12px 44px;
  border-radius: 20px;
  background: var(--glass);
  border: 2px solid var(--glass-line);
  font-weight: 600;
}

.upgrade-box {
  margin-top: 16px;
}

.upgrades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.upgrades > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sun);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 15px;
  font-weight: 700;
}

details {
  text-align: left;
  margin-top: 18px;
}

summary {
  cursor: pointer;
  color: #d9d4ff;
  font-size: 15px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  max-height: 300px;
  overflow: auto;
}

/* ---------- 窄屏和矮屏 ---------- */

@media (max-width: 900px) {
  .arena {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
  }
  .stage {
    flex: 1;
  }
  .cards {
    flex: none;
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    overflow-x: auto;
    border-radius: 16px;
  }
  .cards-title {
    display: none;
  }
  
  
  .speech {
    font-size: 19px;
    padding: 12px 18px;
    min-height: 62px;
  }
  .ajian {
    width: clamp(100px, 20vh, 160px);
  }
  .banner-title {
    font-size: 64px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .blocks {
    grid-template-columns: 1fr;
  }
  
  
  .planet-name {
    font-size: 12px;
  }
  .orb {
    width: 38px;
    height: 38px;
  }
  
  /* 手机上：助教缩小放到气泡上面，气泡用满整个宽度（并排时气泡只剩一条窄竖条，放不下几个字） */
  .stage {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .stage .ajian {
    width: 64px;
  }
  .stage .talk {
    width: 100%;
    padding-left: 4px;
    padding-right: 14px; /* "再听一遍"按钮挂在气泡右下角外面，别伸出屏幕 */
    flex: 1 1 0; /* 只占助教下面剩下的地方，放不下时气泡里的字上下滑 */
    min-height: 0;
    max-height: none;
  }
  .speech::before,
  .speech::after {
    display: none; /* 助教在上面，指向左边的小尾巴不画 */
  }
  .side-btn {
    min-width: 64px;
    padding: 6px 8px;
  }
  .dock-row {
    gap: 8px;
  }
}

/* 屏幕不够高时 */
@media (max-height: 640px) {
  .mic {
    width: 74px;
    height: 74px;
    font-size: 32px;
  }
  .map {
    padding-top: 16px;
  }
  
  .orb {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 阿见的话：再听一遍 ---------- */
.speech-wrap {
  position: relative;
}
.replay {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  place-items: center;
}
.replay .ic {
  width: 24px;
  height: 24px;
}
.replay:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

/* ---------- 边说边出字 ---------- */
.live {
  min-height: 22px;
  max-width: 520px;
  font-size: 16px;
  color: #fff;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.live:empty {
  display: none;
}

/* 作品卡每一块的"听"按钮，排在这一栏的右上角 */
.block-head .listen-btn {
  margin-left: auto;
}
.block-head .listen-btn .ic {
  width: 16px;
  height: 16px;
}

/* =====================================================================
   三个年龄段
   四至六年级用上面的默认样子（夜空）。下面是共用的小部件，
   然后是一至三年级（白天的礼物工坊）和七至九年级（产品工作室）的改动。
   ===================================================================== */

/* ---------- 一至三年级：豆豆的作品工坊 ---------- */

body[data-band='1-3'] {
  color: var(--ink);
  font-size: 20px;
  background:
    radial-gradient(ellipse at 50% 120%, #b8f0c6 0%, #b8f0c6 22%, transparent 23%),
    radial-gradient(ellipse at 10% 125%, #9fe6b2 0%, #9fe6b2 26%, transparent 27%),
    radial-gradient(ellipse at 92% 128%, #9fe6b2 0%, #9fe6b2 26%, transparent 27%),
    linear-gradient(#9fdcff 0%, #d8f1ff 52%, #fff4d6 100%);
  background-attachment: fixed;
}

/* 天上飘的云，代替星星 */
body[data-band='1-3']::before,
body[data-band='1-3']::after {
  background-image:
    radial-gradient(ellipse 60px 22px at 70px 60px, #fff 98%, transparent),
    radial-gradient(ellipse 40px 26px at 100px 46px, #fff 98%, transparent),
    radial-gradient(ellipse 34px 18px at 46px 66px, #fff 98%, transparent);
  background-size: 520px 300px;
  opacity: 0.85;
  animation: cloud-drift 60s linear infinite;
}

body[data-band='1-3']::after {
  background-size: 380px 240px;
  background-position: 180px 90px;
  opacity: 0.6;
  animation-duration: 90s;
}

@keyframes cloud-drift {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 520px;
  }
}

body[data-band='1-3'] .tagline,
body[data-band='1-3'] .hint,
body[data-band='1-3'] .launch-sub,
body[data-band='1-3'] summary {
  color: var(--ink-soft);
}

body[data-band='1-3'] .error {
  color: #d63a4a;
}

body[data-band='1-3'] .foot {
  color: rgba(43, 29, 79, 0.45);
}

body[data-band='1-3'] .foot-btn,
body[data-band='1-3'] .icon-btn {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

body[data-band='1-3'] .foot-btn.off {
  color: rgba(43, 29, 79, 0.45);
}

/* 豆豆的脸不在黑屏上：眼睛和嘴用深色 */
body[data-band='1-3'] .aj-eye,
body[data-band='1-3'] .aj-talk {
  fill: var(--ink);
}

body[data-band='1-3'] .aj-eyes-happy path,
body[data-band='1-3'] .aj-smile {
  stroke: var(--ink);
}

body[data-band='1-3'] .aj-waves path {
  stroke: #38bdf8;
}

body[data-band='1-3'] .aj-shadow {
  fill: rgba(43, 29, 79, 0.18);
}

/* 上面的四颗星 */

body[data-band='1-3'] .orb {
  width: 52px;
  height: 52px;
  font-size: 22px;
  color: var(--ink-soft);
  background: #fff;
  border: 3px solid #cfe0f5;
  border-radius: 16px;
}

body[data-band='1-3'] .planet.done .orb {
  border-color: var(--ink);
  border-radius: 16px;
}

body[data-band='1-3'] .planet-name {
  color: var(--ink-soft);
  font-size: 16px;
}

body[data-band='1-3'] .planet.done .planet-name {
  color: var(--ink);
}

body[data-band='1-3'] .speech {
  font-size: 28px;
  line-height: 1.45;
  border-radius: 30px;
}

body[data-band='1-3'] .said {
  background: #fff;
  border-color: #7cc6ff;
  color: var(--ink);
  font-size: 18px;
}

body[data-band='1-3'] .cards {
  background: rgba(255, 255, 255, 0.6);
  border-color: #fff;
}

body[data-band='1-3'] .cards-title {
  color: #e0561b;
  font-size: 16px;
}

/* 一至三年级的两条线：浅色天空底上，作品草图和点子口袋没填的地方用深色 */
body[data-band='1-3'] .sk-type,
body[data-band='1-3'] .sk-row {
  color: var(--ink-soft);
  border-color: rgba(43, 29, 79, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

body[data-band='1-3'] .sk-type.got {
  color: var(--ink);
  border: 2px solid var(--ink);
}

body[data-band='1-3'] .sk-row.got {
  background: #fff;
  border: 2px solid var(--ink);
}

body[data-band='1-3'] .sk-label,
body[data-band='1-3'] .sk-text,
body[data-band='1-3'] .spark-empty {
  color: var(--ink-soft);
}

body[data-band='1-3'] .sk-row.got .sk-text,
body[data-band='1-3'] .sk-name {
  color: var(--ink);
}

body[data-band='1-3'] .exit-btn {
  color: var(--ink-soft);
}

body[data-band='1-3'] .exit-row.ask {
  background: rgba(255, 255, 255, 0.7);
}

body[data-band='1-3'] .exit-ask {
  color: var(--ink);
}

/* 白天的天空：不要四至六年级那层星云、流星和小星球 */
body[data-band='1-3'] .sky {
  display: none;
}

body[data-band='1-3'] .dock {
  background: rgba(255, 255, 255, 0.78);
  border-color: #fff;
}

body[data-band='1-3'] .side-btn {
  background: #fff;
  border: 3px solid #cfe0f5;
  color: var(--ink);
  font-size: 16px;
  min-width: 100px;
}

body[data-band='1-3'] .side-btn .ic {
  width: 40px;
  height: 40px;
}

body[data-band='1-3'] .mic {
  width: 112px;
  height: 112px;
  border-color: var(--ink);
}

body[data-band='1-3'] .mic .ic {
  width: 60px;
  height: 60px;
}

body[data-band='1-3'] .text-btn {
  color: #5b4bb7;
}

body[data-band='1-3'] .live {
  color: var(--ink);
  font-size: 19px;
}

body[data-band='1-3'] .banner {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.2) 70%);
}

body[data-band='1-3'] .banner-title {
  color: #ff6b3d;
  text-shadow: 0 6px 0 var(--ink);
}

body[data-band='1-3'] .banner-sub {
  color: var(--ink);
}

/* 一至三年级的提示气泡：大，前面一个彩色的圆字 */
.chip.big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 22px 0 8px;
  font-size: 22px;
  background: #fff;
}

.chip-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border: 3px solid var(--ink);
  text-shadow: 0 2px 0 rgba(43, 29, 79, 0.35);
}

/* 一至三年级确认作品卡：豆豆一块一块念，孩子点"对"或"不对" */
.gift-review {
  overflow-y: auto;
  padding-bottom: 12px;
}

.gift-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gift-dots i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(43, 29, 79, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.gift-dots i.ok {
  background: #5fd39a;
}

.gift-dots i.now {
  background: #ffb238;
  transform: scale(1.35);
}

.gift-check {
  width: 100%;
  max-width: 720px;
  margin: 14px auto;
  padding: 18px 24px 22px;
  text-align: center;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 6px 0 rgba(43, 29, 79, 0.2);
  animation: pop-in 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.gift-check-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  color: #e0561b;
}

.gift-check-label .replay {
  position: static;
}

.gift-check-text {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.gift-answer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.gift-answer button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 0 34px;
  border-radius: 999px;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
}

.gift-answer button:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

.gift-answer .ic {
  width: 38px;
  height: 38px;
}

.gift-answer .yes {
  background: linear-gradient(#c9f7d4, #5fd39a);
}

.giftcard {
  width: 100%;
  max-width: 720px;
  margin: 18px auto 0;
  padding: 12px 18px 14px;
  background: #fffdf5;
  border: 4px dashed #ffb238;
  border-radius: 24px;
  color: var(--ink);
}

.giftcard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.giftcard-title .ic {
  width: 34px;
  height: 34px;
}

.giftcard-title small {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.gift-row {
  display: flex;
  gap: 12px;
  padding: 6px 8px;
  border-top: 2px dashed #f3d9a6;
  font-size: 16px;
}

.gift-row.now {
  background: #fff1bd;
  border-radius: 10px;
}

.gift-label {
  flex: none;
  width: 7.500em;
  font-weight: 800;
  color: var(--orange-deep);
}

.gift-row.ok .gift-label::after {
  content: ' ✓';
  color: #2f9a5f;
}

.gift-text {
  white-space: pre-wrap;
  word-break: break-word;
}

body[data-band='1-3'] .steps,
body[data-band='1-3'] .launch .steps {
  background: rgba(255, 255, 255, 0.75);
  border-color: #fff;
  font-size: 20px;
}

body[data-band='1-3'] .launch-title {
  color: #ff6b3d;
  text-shadow: 0 3px 0 #fff;
}

body[data-band='1-3'] .pad-base {
  background: radial-gradient(ellipse, rgba(255, 143, 171, 0.6), transparent 70%);
}

/* ---------- 七至九年级：产品工作室 ---------- */

body[data-band='7-9'] {
  --ink: #111827;
  --ink-soft: #6b7280;
  --accent: #d97706;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  background: #f3f2ee;
}

body[data-band='7-9']::before,
body[data-band='7-9']::after {
  display: none;
}

body[data-band='7-9'] .tagline {
  color: #4b5563;
  font-size: 16px;
}

body[data-band='7-9'] .ajian.small {
  width: 48px;
}

body[data-band='7-9'] .modal-box {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
}

body[data-band='7-9'] .field > span {
  font-weight: 600;
}

body[data-band='7-9'] input[type='text'],
body[data-band='7-9'] textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-weight: 400;
}

body[data-band='7-9'] input[type='text']:focus,
body[data-band='7-9'] textarea:focus {
  border-color: #111827;
}

body[data-band='7-9'] .btn {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #111827;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

body[data-band='7-9'] .btn:hover:not(:disabled) {
  transform: none;
  background: #374151;
  box-shadow: none;
}

body[data-band='7-9'] .btn:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

body[data-band='7-9'] .btn.ghost {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

body[data-band='7-9'] .btn.go,
body[data-band='7-9'] .btn.big {
  min-height: 50px;
  font-size: 17px;
}

body[data-band='7-9'] .error {
  color: #b91c1c;
}

body[data-band='7-9'] .foot {
  color: #9ca3af;
}

body[data-band='7-9'] .foot-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 500;
}

body[data-band='7-9'] .foot-btn.off {
  color: #9ca3af;
}

body[data-band='7-9'] .ic {
  filter: grayscale(1) contrast(1.1);
}

body[data-band='7-9'] .dots i {
  background: #9ca3af;
}

/* 见山的头像：在听的时候亮一圈，在想的时候慢慢闪 */
.js-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  transition: box-shadow 0.2s;
}

.js-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.js-avatar.listening {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}

.js-avatar.thinking {
  animation: js-think 1.200s ease-in-out infinite;
}

.js-avatar.talking {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9ca3af;
}

@keyframes js-think {
  50% {
    opacity: 0.45;
  }
}

.studio {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 6px;
}

.st-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.st-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.st-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.st-title b {
  font-size: 17px;
  flex: none;
}

.st-title span {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.st-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding-top: 8px;
  border-top: 3px solid #d1d5db;
  color: #9ca3af;
  font-size: 14px;
}

.st-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 0;
}

.st-num .ic {
  width: 16px;
  height: 16px;
}

.st-step.done {
  border-color: #111827;
  color: #374151;
}

/* 七至九年级两条线：四个标准，没有先后 */
.st-steps.st-stars {
  grid-template-columns: repeat(4, 1fr);
}

.st-stars .st-step.done .st-num {
  color: var(--accent);
}

.spec-sparks {
  margin-top: 16px;
}

.spec-spark-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: #111827;
}

.spec-spark-list li {
  margin: 4px 0;
}

.st-sub {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.st-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  min-height: 0;
}

.st-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.st-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
}

.st-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  max-width: 80%;
}

.msg-who {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.msg-text {
  padding: 10px 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.mentor {
  align-self: flex-start;
}

.msg.mentor .msg-text {
  background: #f9fafb;
  border-left: 3px solid #111827;
  border-radius: 0 10px 10px 0;
  color: #111827;
}

.msg.mentor.waiting .msg-text {
  border-left-color: #d1d5db;
  color: #9ca3af;
}

.msg.me {
  align-self: flex-end;
}

.msg.me .msg-who {
  text-align: right;
}

.msg.me .msg-text {
  background: #111827;
  color: #f9fafb;
  border-radius: 10px 10px 2px 10px;
}

.st-chips {
  margin-top: 14px;
}

body[data-band='7-9'] .chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.st-dock {
  border-top: 1px solid #e5e7eb;
  padding: 12px 14px;
  background: #fafaf9;
}

.st-note {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #6b7280;
}

.st-note:empty {
  display: none;
}

.st-input textarea {
  min-height: 64px;
  resize: none;
  background: #fff;
}

.st-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.st-controls .error {
  width: 100%;
  margin: 0;
  text-align: left;
}

.st-gap {
  flex: 1;
}

.st-btn,
.st-controls .side-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  animation: none;
}

.st-btn .ic,
.st-controls .side-btn .ic {
  width: 18px;
  height: 18px;
}

.st-btn:hover:not(:disabled),
.st-controls .side-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

.st-btn.primary {
  background: #111827;
  border-color: #111827;
  color: #fff;
  padding: 0 22px;
}

.st-btn.primary:hover:not(:disabled) {
  background: #374151;
}

.st-controls .side-btn.help {
  border-color: #dc2626;
  color: #b91c1c;
}

.st-rec {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #b91c1c;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}

.rec-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #dc2626;
  animation: js-think 1s ease-in-out infinite;
}

.st-rec .live {
  color: #374151;
  font-weight: 400;
  text-align: left;
  -webkit-line-clamp: 1;
}

body[data-band='7-9'] .label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.st-spec {
  overflow-y: auto;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.spec-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.spec-item {
  padding: 10px 0;
  border-top: 1px solid #f3f4f6;
}

.spec-name {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.spec-name span {
  margin-right: 6px;
  color: #d1d5db;
  font-variant-numeric: tabular-nums;
}

.spec-item.got .spec-name span {
  color: var(--accent);
}

.spec-text {
  margin-top: 2px;
  font-size: 14px;
  color: #d1d5db;
}

.spec-item.got .spec-text {
  color: #111827;
}

.spec-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .st-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-spec {
    display: none;
  }

  .st-steps .st-sub {
    display: none;
  }
}

@media (max-width: 640px) {
  .st-steps .st-name {
    display: none;
  }

  .st-scroll {
    padding: 14px;
  }

  .msg {
    max-width: 92%;
  }
}

/* 初中的需求文档 */
.doc-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 40px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #1f2937;
}

.doc-head {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e5e7eb;
}

.doc-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}

.doc-head h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 4px;
  font-size: 30px;
}

.doc-meta {
  font-size: 14px;
  color: #6b7280;
}

.doc-sec {
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.doc-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-sec-head h3 {
  margin: 0;
  font-size: 15px;
}

.doc-text {
  margin-top: 6px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.doc-text.empty {
  color: #9ca3af;
}

@media (max-width: 640px) {
  .doc {
    padding: 20px 18px;
  }
}

/* 初中的交付页：没有火箭，像一页确认单 */
.launch.deliver {
  max-width: 680px;
}

.launch.deliver .launch-title {
  font-size: 28px;
  color: #111827;
}

.launch.deliver .launch-sub {
  color: #4b5563;
}

.launch.deliver .steps {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #374151;
}

.launch.deliver .upgrades > span {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-weight: 500;
}

body[data-band='7-9'] summary {
  color: #2563eb;
}

body[data-band='7-9'] pre {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

body[data-band='1-3'] .launch .steps,
.launch.deliver .steps {
  display: table;
  margin: 18px auto 4px;
}

/* ---------- 开场页：中性的样子，不属于任何一个年龄段 ----------
   比孩子的游戏界面安静、规整：系统字体、一个主色、细边框，像一门正式课程的报名页。 */

body[data-band='start'] {
  --e-ink: #17302d;
  --e-soft: #5d6b69;
  --e-line: #e2ded4;
  --e-accent: #0f766e;
  --e-accent-dark: #0b5c55;
  --e-tint: #e8f3f1;
  color: var(--e-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(233, 179, 74, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(15, 118, 110, 0.1), transparent 40%),
    #f6f5f1;
}

body[data-band='start']::before,
body[data-band='start']::after {
  display: none;
}

.entry {
  width: 100%;
  max-width: 1040px;
  margin: auto;
  padding: 28px 12px 24px;
}

.entry-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--e-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.entry-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}

.entry-intro h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.entry-intro h1 span {
  display: block;
}

.entry-intro h1 span + span {
  color: var(--e-accent);
}

.entry-lead {
  max-width: 30em;
  margin: 18px 0 30px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--e-soft);
}

.entry-facts {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fact-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--e-line);
  color: var(--e-accent);
}

.fact-ic svg {
  width: 22px;
  height: 22px;
}

.entry-facts b {
  display: block;
  font-size: 15px;
}

.entry-facts li span:not(.fact-ic) {
  font-size: 14px;
  color: var(--e-soft);
}

.entry-card {
  background: #fff;
  border: 1px solid var(--e-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 1px 2px rgba(23, 48, 45, 0.04),
    0 16px 40px rgba(23, 48, 45, 0.08);
}

.entry-field {
  display: block;
  margin-bottom: 22px;
}

.entry-q {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.entry-q i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--e-tint);
  color: var(--e-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

body[data-band='start'] .entry-field input {
  font-size: 16px;
  font-weight: 500;
  color: var(--e-ink);
  padding: 12px 14px;
  border: 1.5px solid var(--e-line);
  border-radius: 12px;
  background: #fbfaf8;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body[data-band='start'] .entry-field input:focus {
  border-color: var(--e-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.entry-grades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.entry-grade {
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--e-line);
  background: #fbfaf8;
  color: var(--e-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.entry-grade:hover {
  border-color: var(--e-accent);
}

.entry-grade.on {
  background: var(--e-accent);
  border-color: var(--e-accent);
  color: #fff;
}

.entry-go {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  background: var(--e-accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.entry-go:hover:not(:disabled) {
  background: var(--e-accent-dark);
}

.entry-go:disabled {
  opacity: 0.6;
  cursor: default;
}

body[data-band='start'] .error {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
  color: #b42318;
  text-align: center;
}

/* 开场页不显示模型和语音识别的技术信息 */
body[data-band='start'] .foot-mode {
  visibility: hidden;
}

body[data-band='start'] .foot-btn {
  background: #fff;
  border: 1px solid var(--e-line);
  color: var(--e-soft);
}

@media (max-width: 760px) {
  .entry {
    padding-top: 16px;
  }

  .entry-main {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
  }

  .entry-intro h1 {
    font-size: 28px;
  }

  .entry-lead {
    margin: 12px 0 20px;
    font-size: 15px;
  }

  .entry-facts {
    gap: 12px;
  }

  .entry-card {
    padding: 22px 18px;
  }
}

/* ---------- 引导页：选完年级以后、开始聊之前 ----------
   默认是四至六年级的夜空样子，下面再按年龄段改。 */

.brief {
  width: 100%;
  max-width: 920px;
  margin: auto;
  padding: 20px 0 24px;
  animation: brief-in 0.5s ease both;
}

@keyframes brief-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.brief-head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brief-mascot {
  flex: none;
  width: 130px;
}

.brief-kicker {
  font-size: 15px;
  font-weight: 700;
  color: #ffe9a8;
}

.brief-head h1 {
  margin: 4px 0 6px;
  font-size: 34px;
  line-height: 1.3;
}

.brief-what {
  margin: 0;
  font-size: 19px;
  color: #e6e0ff;
}

.brief-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 800;
}

.brief-label span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.75;
}

.brief-path,
.brief-how,
.brief-end {
  background: var(--panel);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.brief-path {
  margin-top: 22px;
}

.brief-path ol {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.brief-path li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

/* 节点之间的连线 */
.brief-path li + li::before {
  content: '';
  position: absolute;
  top: 26px;
  right: calc(50% + 30px);
  width: calc(100% - 50px);
  border-top: 3px dashed #d9d2f0;
}

.brief-node {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff6d8;
  margin-bottom: 4px;
}

.brief-node .ic {
  width: 30px;
  height: 30px;
}

.brief-path li b {
  font-size: 16px;
}

.brief-path li span:not(.brief-node) {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft, #6b6290);
}

.brief-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.brief-how ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-how li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.brief-how li .ic {
  flex: none;
  width: 26px;
  height: 26px;
}

.brief-end p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.brief-go {
  display: block;
  margin: 24px auto 0;
  min-width: 260px;
}

/* 一至三年级：字更大，步骤少，卡片更圆 */
body[data-band='1-3'] .brief-kicker {
  color: #ff6b3d;
}

body[data-band='1-3'] .brief-head h1 {
  color: var(--ink);
  font-size: 38px;
}

body[data-band='1-3'] .brief-what {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

body[data-band='1-3'] .brief-path li b {
  font-size: 18px;
}

body[data-band='1-3'] .brief-how li {
  font-size: 18px;
}

/* 七至九年级：像一份项目简介，没有卡通、粗边框和阴影 */
body[data-band='7-9'] .brief {
  max-width: 860px;
}

body[data-band='7-9'] .brief-mascot {
  width: 64px;
}

body[data-band='7-9'] .brief-kicker {
  color: #b45309;
  font-weight: 600;
  letter-spacing: 0.5px;
}

body[data-band='7-9'] .brief-head h1 {
  font-size: 28px;
  color: #111827;
}

body[data-band='7-9'] .brief-what {
  font-size: 17px;
  line-height: 1.7;
  color: #4b5563;
}

body[data-band='7-9'] .brief-path,
body[data-band='7-9'] .brief-how,
body[data-band='7-9'] .brief-end {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: none;
  background: #fff;
}

body[data-band='7-9'] .brief-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b7280;
}

body[data-band='7-9'] .brief-path ol {
  grid-template-columns: 1fr;
  gap: 0;
}

body[data-band='7-9'] .brief-path li {
  display: grid;
  grid-template-columns: 44px 9em 1fr;
  align-items: baseline;
  text-align: left;
  padding: 11px 0;
  border-top: 1px solid #f0f0f0;
}

body[data-band='7-9'] .brief-path li:first-child {
  border-top: none;
}

body[data-band='7-9'] .brief-path li + li::before {
  display: none;
}

body[data-band='7-9'] .brief-node {
  width: auto;
  height: auto;
  border: none;
  background: none;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  font-variant-numeric: tabular-nums;
  place-items: start;
}

body[data-band='7-9'] .brief-path li b {
  font-size: 15px;
  color: #111827;
}

body[data-band='7-9'] .brief-path li span:not(.brief-node) {
  font-size: 14px;
  color: #4b5563;
}

body[data-band='7-9'] .brief-how li {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

body[data-band='7-9'] .brief-how li .ic {
  width: 20px;
  height: 20px;
}

body[data-band='7-9'] .brief-end p {
  font-size: 15px;
  color: #374151;
}

body[data-band='7-9'] .brief-go {
  min-width: 220px;
}

@media (max-width: 760px) {
  .brief-head {
    gap: 14px;
  }

  .brief-mascot {
    width: 84px;
  }

  .brief-head h1,
  body[data-band='1-3'] .brief-head h1 {
    font-size: 24px;
  }

  .brief-what,
  body[data-band='1-3'] .brief-what {
    font-size: 16px;
  }

  .brief-path ol {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brief-path li {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    text-align: left;
    align-items: center;
  }

  .brief-path li + li::before {
    display: none;
  }

  .brief-node {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .brief-node .ic {
    width: 24px;
    height: 24px;
  }

  body[data-band='7-9'] .brief-path li {
    grid-template-columns: 36px 1fr;
  }

  body[data-band='7-9'] .brief-node {
    grid-row: span 2;
  }

  .brief-row {
    grid-template-columns: 1fr;
  }

  .brief-go {
    width: 100%;
    min-width: 0;
  }
}

.story-box,
.work-box {
  margin-top: 18px;
}

/* 交付页：把 WorkBuddy 给的作品链接贴回来 */
.work-input {
  flex: 1 1 260px;
  max-width: 420px;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #2b1d4f;
  font: inherit;
  font-size: 15px;
}

.row.center {
  justify-content: center;
}

a.btn {
  text-decoration: none;
}
