:root {
  --ink: #2f3a45;
  --ink-soft: #62707d;
  --cream: #fbf5ec;
  --paper: #fffdf9;
  --coral: #ef7b68;
  --coral-deep: #e0604c;
  --teal: #45a89a;
  --sun: #f3c168;
  --line: rgba(47, 58, 69, 0.1);
  --shadow-soft: 0 18px 40px rgba(94, 74, 58, 0.1);
  --shadow-card: 0 8px 24px rgba(94, 74, 58, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 8% -10%, #ffe9d5 0%, rgba(255, 233, 213, 0) 62%),
    radial-gradient(900px 560px at 96% 4%, #dff1ec 0%, rgba(223, 241, 236, 0) 60%),
    radial-gradient(700px 520px at 50% 108%, #fdeed3 0%, rgba(253, 238, 211, 0) 66%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 30px) clamp(16px, 2.6vw, 36px) 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--coral), var(--sun));
  display: grid;
  place-content: center;
  gap: 4px;
  box-shadow: 0 10px 20px rgba(239, 123, 104, 0.28);
}

.brand-mark span {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark span:nth-child(2) { width: 12px; }
.brand-mark span:nth-child(3) { width: 15px; }

.eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.brand h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(243, 193, 104, 0.2);
}

.status-pill.online i {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(69, 168, 154, 0.18);
}

.status-pill.offline i {
  background: #d7615c;
  box-shadow: 0 0 0 4px rgba(215, 97, 92, 0.16);
}

/* ---------- 教师端：首屏引导 ---------- */
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--coral-deep);
  font-weight: 600;
}

.hero-row h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.hero-row h2 em,
.student-card h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--coral) 10%, #f0a05f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
}

.join-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.join-qr {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
  object-fit: contain;
}

.join-body {
  min-width: 0;
  flex: 1;
}

.join-body .small-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

#studentUrl {
  display: block;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  color: var(--coral-deep);
  word-break: break-all;
  line-height: 1.4;
}

.join-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.icon-button {
  border: 1px solid rgba(239, 123, 104, 0.35);
  background: rgba(255, 245, 241, 0.9);
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.icon-button:active { transform: scale(0.96); }

/* ---------- 数据条 ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

.stat-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.stat-card strong {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-card small {
  font-size: 12px;
  color: var(--ink-soft);
}

.stat-card.accent {
  background: linear-gradient(140deg, #fff3e6, #ffe6de);
  border-color: rgba(239, 123, 104, 0.25);
}

.stat-card.accent strong { color: var(--coral-deep); }

.stat-card .stat-note {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--teal);
}

/* ---------- 词云主面板 ---------- */
.cloud-panel {
  position: relative;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255, 236, 219, 0.9), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  margin-bottom: clamp(14px, 1.6vw, 20px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head.compact { align-items: center; margin-bottom: 8px; }

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.section-head h3 {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
}

.text-button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.text-button:hover { background: rgba(239, 123, 104, 0.1); color: var(--coral-deep); }

.word-cloud {
  position: relative;
  height: clamp(330px, 44vh, 520px);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(closest-side at 50% 45%, rgba(255, 246, 235, 0.95), rgba(255, 250, 244, 0.5));
}

.cloud-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease, left 420ms ease, top 420ms ease;
  animation: wordIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.cloud-word.newest { animation: wordPop 900ms ease-out; }

@keyframes wordIn {
  from { opacity: 0; transform: scale(0.72) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes wordPop {
  0% { filter: drop-shadow(0 0 0 rgba(239, 123, 104, 0)); }
  35% { filter: drop-shadow(0 0 14px rgba(239, 123, 104, 0.55)); }
  100% { filter: drop-shadow(0 0 0 rgba(239, 123, 104, 0)); }
}

.empty-cloud {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-cloud span { font-size: 44px; color: rgba(239, 123, 104, 0.45); }
.empty-cloud p { margin: 0; font-size: 15px; line-height: 1.8; }

.cloud-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.cloud-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.warm { background: var(--coral); }
.dot.cool { background: var(--teal); }

/* ---------- 底部：最新提交 ---------- */
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}

.panel-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.live-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  border: 1px solid rgba(69, 168, 154, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.latest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-content: flex-start;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  animation: wordIn 420ms ease;
}

.chip time { font-size: 11px; color: var(--ink-soft); }
.muted { margin: 0; font-size: 13px; color: var(--ink-soft); }

.teacher-tip h3 { margin: 0 0 8px; font-size: 16px; }

.teacher-tip blockquote {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  background: rgba(255, 244, 239, 0.8);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5c4740;
}

.teacher-tip p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.teacher-tip b { color: var(--coral-deep); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(98, 112, 125, 0.85);
}

/* ---------- 学生端 ---------- */
.student-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 8px 0 24px;
}

.student-card {
  width: min(680px, 100%);
  text-align: center;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 3.4vw, 42px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(112, 84, 64, 0.12);
}

.student-orbit {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--coral-deep);
  background: linear-gradient(150deg, #fff1e4, #ffe4da);
  box-shadow: inset 0 0 0 1px rgba(239, 123, 104, 0.16);
  animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.student-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5.4vw, 38px);
  line-height: 1.3;
}

.student-copy {
  margin: 0 0 26px;
  font-size: clamp(14px, 3.4vw, 16px);
  line-height: 1.8;
  color: var(--ink-soft);
}

[hidden] { display: none !important; }

.emotion-form {
  text-align: left;
}

.emotion-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-align: center;
}

.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

#emotionInput {
  width: 100%;
  padding: 18px 70px 18px 20px;
  font-size: clamp(18px, 4vw, 22px);
  font-family: inherit;
  color: var(--ink);
  border-radius: 18px;
  border: 2px solid rgba(239, 123, 104, 0.28);
  background: #fffdfa;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#emotionInput::placeholder { color: #b9aca2; }

#emotionInput:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(239, 123, 104, 0.14);
}

#charCount {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #b3a69c;
  font-variant-numeric: tabular-nums;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.quick-picks button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.quick-picks button:active {
  transform: scale(0.95);
  border-color: var(--coral);
  color: var(--coral-deep);
}

.submit-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-size: clamp(17px, 3.8vw, 20px);
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--coral) 0%, #f09a5f 100%);
  box-shadow: 0 14px 28px rgba(239, 123, 104, 0.3);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.submit-button:active {
  transform: translateY(2px) scale(0.995);
  box-shadow: 0 8px 18px rgba(239, 123, 104, 0.26);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: default;
}

.submit-button b { font-size: 20px; }

.submit-message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--teal);
}

.submit-message.error { color: #d7615c; }

.student-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.tiny-heart { color: var(--coral); }

.sent-state .student-card { background: linear-gradient(180deg, #fffaf3, #ffffff); }

@media (max-width: 780px) {
  .hero-row { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 12px 14px; }
  .join-card { padding: 12px 14px; }
  .join-qr { width: 74px; height: 74px; flex-basis: 74px; }
  .word-cloud { height: 42vh; min-height: 260px; }
  footer { justify-content: center; text-align: center; }
}

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

/* ---------- 顶部操作区 / 细节补丁 ---------- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.ghost-button:hover { color: var(--coral-deep); border-color: rgba(239, 123, 104, 0.35); }

.hero-row { grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); }

.join-qr {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
  padding: 5px;
}

#studentUrl {
  font-size: clamp(16px, 1.5vw, 21px);
  letter-spacing: 0.01em;
  word-break: keep-all;
  white-space: nowrap;
}

.join-body .small-label { letter-spacing: 0.06em; color: var(--ink-soft); }
.join-hint { color: #8b8177; }

.word-cloud::before {
  content: "";
  position: absolute;
  inset: 8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(255, 241, 226, 0.85), rgba(255, 241, 226, 0) 70%);
  pointer-events: none;
}

.cloud-word { z-index: 1; }

.word-cloud .empty-cloud { z-index: 1; }

@media (max-width: 780px) {
  .hero-row { grid-template-columns: 1fr; }
  .join-qr { width: 84px; height: 84px; flex-basis: 84px; }
  #studentUrl { font-size: 16px; white-space: normal; word-break: break-all; }
}

/* ---------- 学生端入口卡片：最终布局 ---------- */
.join-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.join-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-qr {
  width: 104px;
  height: 104px;
  flex: none;
}

#studentUrl {
  display: block;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 800;
  color: var(--coral-deep);
  word-break: break-all;
  white-space: normal;
  line-height: 1.35;
}

.join-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.join-hint {
  margin: 0;
  font-size: 12px;
  color: #8b8177;
}

.icon-button {
  padding: 6px 12px;
  font-size: 12px;
  flex: none;
}

@media (max-width: 780px) {
  .join-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .join-qr { width: 84px; height: 84px; }
  #studentUrl { font-size: 16px; }
}

/* ---------- 学生端页面收尾 ---------- */
body.student-mode footer { display: none; }

body.student-mode .page-shell {
  max-width: 1100px;
  padding-bottom: 8px;
}

body.student-mode .student-view {
  min-height: calc(100vh - 130px);
}

/* ---------- 二维码放大层 ---------- */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(47, 58, 69, 0.55);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.qr-sheet {
  background: #fff;
  border-radius: 26px;
  padding: 26px 26px 18px;
  box-shadow: 0 30px 70px rgba(20, 26, 32, 0.3);
  text-align: center;
}

.qr-sheet img {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  display: block;
}

.qr-sheet p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.join-qr { cursor: zoom-in; }

.cloud-word { cursor: pointer; }
.cloud-word:hover { opacity: 0.72; }

/* ---------- 手动录入（学生端断网时的后路） ---------- */
.head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.manual-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(47, 58, 69, 0.55);
  backdrop-filter: blur(6px);
}

.manual-sheet {
  width: min(600px, 94vw);
  background: #fff;
  border-radius: 24px;
  padding: 26px 26px 20px;
  box-shadow: 0 30px 70px rgba(20, 26, 32, 0.3);
}

.manual-sheet h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.manual-tip {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

#manualText {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
  border: 2px solid rgba(239, 123, 104, 0.28);
  border-radius: 16px;
  background: #fffdfa;
  outline: none;
  resize: vertical;
}

#manualText:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(239, 123, 104, 0.12);
}

.manual-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.manual-count {
  margin-right: auto;
  font-size: 13px;
  color: var(--ink-soft);
}

.primary-button {
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, #f09a5f 100%);
  box-shadow: 0 10px 22px rgba(239, 123, 104, 0.28);
  cursor: pointer;
}

.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: 0.65; cursor: default; }

@media (max-width: 780px) {
  .manual-actions { flex-wrap: wrap; }
  .manual-count { width: 100%; margin-bottom: 6px; }
}

/* ---------- 收获云（第二环节） ---------- */
.stage-button {
  color: var(--coral-deep);
  border-color: rgba(239, 123, 104, 0.4);
  background: rgba(255, 245, 241, 0.9);
  font-weight: 600;
}

.harvest-hero { align-items: center; }

.harvest-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.harvest-mini {
  display: flex;
  gap: 6px;
}

.harvest-url { color: var(--ink-soft); }

.harvest-panel .harvest-cloud {
  position: relative;
  height: clamp(360px, 46vh, 560px);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(closest-side at 50% 45%, rgba(255, 248, 238, 0.95), rgba(255, 251, 246, 0.45));
}

.harvest-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(47, 58, 69, 0.08);
  border-left: 4px solid var(--coral);
  box-shadow: 0 8px 18px rgba(94, 74, 58, 0.09);
  line-height: 1.6;
  color: var(--ink);
  transition: left 420ms cubic-bezier(0.22, 1, 0.36, 1), top 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
  animation: wordIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.harvest-card:nth-child(3n) { border-left-color: var(--teal); }
.harvest-card:nth-child(3n + 1) { border-left-color: var(--sun); }

.read-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(38, 46, 54, 0.62);
  backdrop-filter: blur(8px);
}

.read-card {
  width: min(1000px, 92vw);
  background: linear-gradient(160deg, #fffdf8, #fff6ec);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 34px 80px rgba(20, 26, 32, 0.35);
  text-align: center;
}

.read-label {
  margin: 0 0 18px;
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.read-text {
  margin: 0 auto 30px;
  max-width: 22em;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  border: none;
}

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

#harvestInput {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  border-radius: 18px;
  border: 2px solid rgba(239, 123, 104, 0.28);
  background: #fffdfa;
  outline: none;
  resize: none;
}

#harvestInput:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(239, 123, 104, 0.14);
}

.harvest-counter {
  text-align: right;
  font-size: 12px;
  color: #b3a69c;
  margin: 6px 0 12px;
}

/* ---------- 环节切换器 ---------- */
.stage-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.stage-pill {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}

.stage-pill.is-active {
  background: #fff;
  color: var(--coral-deep);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(94, 74, 58, 0.1);
}

/* ---------- 班级情绪功能图谱 ---------- */
.manual-panel {
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.manual-graph {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
  min-height: 320px;
}

.manual-graph .empty-cloud {
  grid-column: 1 / -1;
  position: static;
  min-height: 300px;
}

.me-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-card);
  animation: wordIn 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.me-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.me-head h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--accent);
}

.me-head span {
  font-size: 13px;
  color: var(--ink-soft);
}

.me-block { margin-bottom: 12px; }

.me-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #9aa3ab;
  margin-bottom: 6px;
}

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

.me-tag {
  font-size: 13px;
  background: #f8f5f0;
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--ink);
}

.me-empty { font-size: 13px; color: #b3a69c; }

.fn-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fn-bar {
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

.fn-bar i {
  display: block;
  height: 8px;
  background: #f0ece6;
  border-radius: 999px;
  overflow: hidden;
}

.fn-bar i b {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fn-bar em {
  font-style: normal;
  text-align: right;
  color: var(--ink);
}

.me-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 0;
}

.me-split span {
  display: block;
  font-size: 11px;
  color: #9aa3ab;
  margin-bottom: 4px;
}

.me-split p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.me-words {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: #fbf8f4;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.mini-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.mini-stats b {
  font-size: 24px;
  color: var(--coral-deep);
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 学生端：情绪说明书五步 ---------- */
.manual-card { text-align: center; }

.manual-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.manual-progress i {
  width: 30px;
  height: 4px;
  border-radius: 99px;
  background: #ebe0d5;
  transition: background 240ms ease;
}

.manual-progress i.is-on { background: var(--coral); }

.manual-step h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.3;
}

.manual-hint {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 0;
}

.emotion-grid button {
  padding: 20px 6px;
  font-family: inherit;
  font-size: clamp(18px, 4vw, 22px);
  border-radius: 16px;
  border: 2px solid rgba(239, 123, 104, 0.2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.emotion-grid button:active { transform: scale(0.96); }

.emotion-grid button.is-picked {
  border-color: var(--coral);
  background: #fff3ee;
  color: var(--coral-deep);
  font-weight: 700;
}

.fn-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.fn-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 15px 20px;
  border-radius: 16px;
  border: 2px solid rgba(239, 123, 104, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: clamp(17px, 3.6vw, 20px);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.fn-grid button small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

.fn-grid button.is-picked {
  border-color: var(--coral);
  background: #fff3ee;
}

.manual-step textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  border-radius: 16px;
  border: 2px solid rgba(239, 123, 104, 0.26);
  background: #fffdfa;
  outline: none;
  resize: none;
}

.manual-step textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(239, 123, 104, 0.12);
}

.manual-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}

.step-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.step-actions .submit-button { flex: 1; }

.manual-warn,
.manual-done {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #d7615c;
  text-align: center;
}

.manual-done { color: var(--teal); }
.manual-done.error { color: #d7615c; }

/* ---------- 网络自检：当前网卡 / 切换 ---------- */
.net-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 5px 10px 5px 9px;
  border: 1px dashed rgba(47, 58, 69, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink-soft);
  cursor: pointer;
  max-width: 100%;
  text-align: left;
  line-height: 1.35;
}

.net-line:hover { border-color: rgba(239, 123, 104, 0.45); color: var(--coral-deep); }

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.net-line.is-warn .net-dot { background: var(--sun); }
.net-line.is-manual .net-dot { background: var(--coral); }
.net-line.is-public .net-dot { background: #5b8fb9; }

.net-line em {
  font-style: normal;
  color: var(--coral-deep);
  font-weight: 600;
  flex: none;
}

.net-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(47, 58, 69, 0.55);
  backdrop-filter: blur(6px);
}

.net-sheet {
  width: min(620px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  padding: 24px 24px 18px;
  box-shadow: 0 30px 70px rgba(20, 26, 32, 0.3);
}

.net-sheet h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.net-tip {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.net-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.net-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1.5px solid rgba(47, 58, 69, 0.1);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.net-item:hover { border-color: rgba(239, 123, 104, 0.45); background: #fffaf7; }

.net-item.is-active {
  border-color: var(--coral);
  background: #fff4ef;
}

.net-item-main {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.net-item-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1ece5;
  color: var(--ink-soft);
}

.net-item.is-active .net-item-tag { background: #ffe3d8; color: var(--coral-deep); }

.net-item-name {
  font-size: 11.5px;
  color: #9aa3ab;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.net-item-check {
  font-size: 11px;
  color: var(--coral-deep);
  font-weight: 600;
}

.net-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 780px) {
  .net-line { font-size: 11px; }
  .net-item { grid-template-columns: auto 1fr; row-gap: 4px; }
  .net-item-name { grid-column: 1 / -1; }
  .net-item-check { grid-column: 2; justify-self: end; }
}

/* ---------- 学生端：连不上时的自助提示 ---------- */
.student-offline {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff6ef;
  border: 1px dashed rgba(239, 123, 104, 0.45);
  font-size: 13px;
  line-height: 1.7;
  color: #8a4a3a;
  text-align: left;
}

/* ---------- 情绪涂色：学生端工作台 ---------- */
.color-student { display: block; padding: 0; }

.color-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
  padding: clamp(10px, 1.6vw, 22px);
}

.wheel-area { min-width: 0; }

.color-title {
  margin: 0 0 2px;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 800;
  color: var(--ink);
}

.color-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--coral) 10%, #f0a05f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.color-sub {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(11.5px, 1.6vw, 13.5px);
  color: var(--ink-soft);
  line-height: 1.6;
}

.wheel-stage {
  position: relative;
  width: 100%;
  max-width: min(62vh, 620px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.paint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  /* 底色放在画布自己身上，未涂的地方就是纸的白色 */
  background: #fffdf9;
}

.wheel-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-guide svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-guide polygon {
  /* 必须是 none：这层在画布上面，填了白色就会把学生的涂色整个盖住 */
  fill: none;
  stroke: #4a4038;
  stroke-width: 7;
  stroke-linejoin: round;
}

.wheel-guide line {
  stroke: #8a7f74;
  stroke-width: 3;
}

.wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.wheel-label span {
  font-size: clamp(15px, 2.6vw, 24px);
  font-weight: 700;
  color: #2f3a45;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.85);
}

.wheel-label.is-empty span {
  display: block;
  color: #d3c9bd;
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 34px);
  text-shadow: none;
}

.wheel-label.is-target span {
  color: var(--coral-deep);
  text-shadow: 0 0 12px rgba(239, 123, 104, 0.6);
}

.label-clear {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(47, 58, 69, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #8a7f74;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.label-clear:hover { color: var(--coral-deep); border-color: var(--coral); }

/* 蜡笔 */
.wheel-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.crayon-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.crayon {
  width: 30px;
  height: 30px;
  border-radius: 9px 9px 45% 45%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--crayon);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(94, 74, 58, 0.16);
  cursor: pointer;
  transition: transform 140ms ease;
}

.crayon:active { transform: scale(0.92); }

.crayon.is-picked {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 0 3px rgba(47, 58, 69, 0.28), inset 0 -3px 6px rgba(0, 0, 0, 0.12);
}

.tool-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tool-chip.is-picked {
  border-color: var(--coral);
  color: var(--coral-deep);
  background: #fff4ef;
}

/* 情绪小超市 */
.market-area {
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 8px;
}

.market-area h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.market-tip {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 70px;
  align-content: flex-start;
  padding: 10px;
  border-radius: 14px;
  background: #fbf7f1;
  border: 1px dashed rgba(47, 58, 69, 0.12);
}

.market-chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(239, 123, 104, 0.28);
  background: #fff;
  font-family: inherit;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  color: var(--ink);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 3px 8px rgba(94, 74, 58, 0.08);
  transition: transform 120ms ease, opacity 160ms ease;
}

.market-chip:active { transform: scale(0.96); }

.market-chip.is-used {
  color: #b9b0a6;
  border-color: rgba(47, 58, 69, 0.08);
  background: #f2eee8;
  box-shadow: none;
  text-decoration: line-through;
  cursor: default;
  opacity: 0.72;
}

.market-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#colorNewWord {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: 12px;
  border: 1.5px solid rgba(239, 123, 104, 0.24);
  background: #fffdfa;
  outline: none;
}

#colorNewWord:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(239, 123, 104, 0.12);
}

#colorAddWord {
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.market-toast {
  min-height: 18px;
  margin: 10px 0 6px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--teal);
}

.market-toast.is-error { color: #d7615c; }

.color-upload { margin-top: 2px; }

/* 拖拽时跟着手指的那个词 */
.drag-ghost {
  position: fixed;
  z-index: 90;
  transform: translate(-50%, -130%);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--coral);
  font-size: 17px;
  font-weight: 700;
  color: var(--coral-deep);
  box-shadow: 0 12px 26px rgba(224, 96, 76, 0.28);
  pointer-events: none;
}

body.is-dragging { cursor: grabbing; user-select: none; }

/* 平板竖屏：轮子在上，超市在下 */
@media (max-width: 900px) {
  .color-workbench {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wheel-stage { max-width: min(60vh, 500px); }
  .market-area { position: static; }
  .market-list { min-height: 56px; }
}

/* ---------- 情绪涂色：教师端作品墙 ---------- */
.color-panel {
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  min-height: 360px;
}

.color-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  align-items: start;
}

.color-wall .empty-cloud {
  grid-column: 1 / -1;
  position: static;
  min-height: 300px;
}

.wall-card {
  margin: 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: wordIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wall-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(94, 74, 58, 0.16);
}

.wall-frame {
  aspect-ratio: 1 / 1;
  background: #fff;
}

.wall-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wall-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(47, 58, 69, 0.06);
}

.wall-words {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.wall-word {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6f1ea;
  color: #5d5248;
  white-space: nowrap;
}

.wall-time {
  font-size: 11px;
  color: #b3a69c;
  flex: none;
}

.color-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(32, 38, 45, 0.72);
  backdrop-filter: blur(6px);
}

.color-lightbox.is-open { display: grid; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 92vh;
}

.lightbox-inner img {
  max-width: min(88vw, 720px);
  max-height: 74vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-words {
  margin: 0;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.04em;
}

.lightbox-inner .text-button {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* 现场自检面板：只在网址带 ?diag=1 时出现 */
.color-diag {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 120;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(24, 30, 36, 0.9);
  color: #eaf2f0;
  font-size: 12px;
  line-height: 1.7;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  max-width: 62vw;
}

.color-diag b { color: #ffd08a; }

/* 右下角自检入口：平时很淡，不抢学生注意 */
.color-diag-btn {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 121;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(47, 58, 69, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(47, 58, 69, 0.45);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
}

.color-diag-btn:active { opacity: 1; }
