/* 学前教育 AI 工作台 · 电脑版
   出发点：幼儿园的教具。福禄贝尔「恩物」里的球和方块、第七恩物的圆、半圆、方、三角小木片，
   加上建构区单元积木里的拱门；样子学瑞士 Naef 这类木玩具：白底、平涂的漆色、干净的几何形。
   大胆只用在一处：首页五个模块是五块积木，摆在一条「架子」线上。
   其余地方安静：没有阴影、没有一堆一样的卡片、没有每块都飘进来的动画。 */
:root {
  --paper: #ffffff;
  --peg: #f1f2f4;          /* 侧栏、安静的底：像教室里的洞洞板 */
  --ink: #1c2340;          /* 墨蓝，代替纯黑 */
  --ink-2: #555c73;
  --muted: #9096a6;
  --line: #e3e5ea;
  /* 五种漆色，一块积木一种 */
  --yellow: #f5b700; --red: #e5462d; --blue: #2d5bd6; --green: #1f9e68; --pink: #f08cb0; --orange: #f2851f;
  --c-daily: var(--yellow); --c-games: var(--red); --c-course: var(--blue); --c-growth: var(--green); --c-family: var(--pink); --c-env: var(--orange);

  --cn: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --num: "Futura", "Century Gothic", "Avenir Next", -apple-system, sans-serif;
  --bounce: cubic-bezier(.3, 1.45, .55, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 1080px; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--cn); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
main:focus-visible { outline: none; }

/* ---------------- 侧栏：照 Claude 的样子 ---------------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; transition: grid-template-columns .25s ease; }
.side { position: sticky; top: 0; z-index: 30; height: 100vh; background: var(--peg); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 18px; }
/* 三个小色块：登录页上的 logo */
/* logo：三块积木，图形在 app.js 的 MARK 和 mark.svg 里，这里只管大小 */
.mark { display: inline-flex; flex: none; }
.mark svg, .brand svg { stroke: none; } /* logo 只用实心色块：不吃上面给线条图标的描边 */
.mark svg { width: 44px; height: 12px; }
.mark.big svg { width: 132px; height: 36px; }
/* 侧栏顶上两行：第一行 logo + 名字（一直在），第二行 收起按钮 + 教师/幼儿/家长 */
.brand { flex: 0 0 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px; margin-bottom: 6px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.brand:hover { background: rgb(28 35 64 / .06); }
.brand svg { width: 40px; height: 11px; flex: none; }
.brand-name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.folded .brand { justify-content: center; padding: 0; } /* 收起时 logo 还在顶上，只是不带名字 */
.folded .brand-name { display: none; }
.side-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* 教师 | 幼儿 | 家长：像 Claude 左上角的「对话 | 代码」，只用图标，停上去才有字 */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgb(28 35 64 / .07); }
.seg a { display: grid; place-items: center; width: 34px; height: 28px; border-radius: 7px; color: var(--ink-2); }
.seg a svg { width: 18px; height: 18px; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(28 35 64 / .14); }
.fold { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.fold:hover { color: var(--ink); background: rgb(28 35 64 / .06); }
.fold svg { width: 20px; height: 20px; transition: transform .25s; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.nav a svg { width: 19px; height: 19px; color: var(--ink-2); }
.nav a:hover { background: rgb(28 35 64 / .05); }
.nav a.on { background: rgb(28 35 64 / .08); font-weight: 600; }
.nav a.on svg { color: var(--ink); }
/* 底下一行账号：头像、名字 · 班级、箭头；上面一条细线隔开 */
.side-bottom { margin: auto -12px 0; padding: 10px 12px 0; border-top: 1px solid var(--line); position: relative; }
.me-card { display: flex; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: var(--ink); }
.me-card:hover, .me-card.on, .me-card[aria-expanded="true"] { background: rgb(28 35 64 / .06); }
.me-card .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card b { font-size: 15px; font-weight: 500; }
.me-card small { color: var(--muted); font-size: 14px; }
.me-card small::before { content: " · "; }
.me-card .avatar { width: 28px; height: 28px; font-size: 13px; }
.me-card .chev { width: 16px; height: 16px; color: var(--muted); }
/* 点账号弹出来的菜单 */
.me-menu { position: absolute; left: 8px; bottom: calc(100% + 6px); z-index: 20; width: 232px; padding: 6px; box-shadow: 0 16px 36px -14px rgb(28 35 64 / .3); }
.me-menu[hidden] { display: none; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink); font-size: 14px; cursor: pointer; text-align: left; }
.me-menu a:hover, .me-menu button:hover { background: var(--peg); }
.me-menu svg { width: 18px; height: 18px; color: var(--ink-2); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
/* 收起：只留图标 */
.folded .shell { grid-template-columns: 64px 1fr; }
.folded .side { padding-left: 10px; padding-right: 10px; }
.folded .side .lbl { display: none; }
.folded .side-top { justify-content: center; }
.folded .nav a { justify-content: center; padding: 9px 0; }
.folded .side-bottom { margin: auto -10px 0; padding: 10px 10px 0; }
.folded .me-card { justify-content: center; padding: 7px 0; }
.folded .fold svg { transform: scaleX(-1); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }

/* ---------------- 主区通用 ---------------- */
main { padding: 56px 64px 88px; max-width: 1080px; width: 100%; margin: 0 auto; outline: none; }
.title { font-size: 36px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 14px; }
.section h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; margin: 0; }
.section h2 svg { width: 18px; height: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.demo { font-size: 12px; color: var(--ink-2); background: var(--peg); padding: 2px 10px; border-radius: 99px; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); border-radius: 99px; padding: 7px 18px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--ink); color: #fff; }
.btn:hover { background: #2b3459; }
.btn.line { background: var(--paper); color: var(--ink); }
.btn.line:hover { background: var(--peg); }
.tab { border: 1.5px solid var(--line); background: var(--paper); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tab:hover { border-color: var(--ink-2); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- 首页 ---------------- */
.hello .title { font-size: 48px; line-height: 1.2; white-space: nowrap; }
.hello .sub { font-size: 16px; margin-top: 10px; }

/* 首页是一张桌子，正好一屏：东西都在框里，页面不往下滚。平时锁住；点右上角「调整」，露出虚线框和洞洞板的点，才能拖、加、拿掉小组件 */
main.home { max-width: none; height: 100vh; min-height: 640px; padding: 16px 48px 28px; display: flex; flex-direction: column; gap: 30px; }
.desk { position: relative; flex: 1; min-height: 0; border-radius: 18px; outline: 1.5px dashed transparent; outline-offset: 8px; transition: outline-color .2s, background-color .2s; }
.desk.editing { outline-color: #c3c8d3; background: radial-gradient(circle, #dde0e6 1.2px, transparent 1.6px) 0 0 / 22px 22px; }
.piece { position: absolute; user-select: none; -webkit-user-drag: none; }
.desk.editing .piece { cursor: grab; touch-action: none; }
.desk.editing .piece * { pointer-events: none; }        /* 解锁时整块都能抓，搜索框也一起拖 */
.desk.editing .piece:hover { outline: 1.5px dashed var(--muted); outline-offset: 6px; border-radius: 12px; }
.piece.dragging { z-index: 4; cursor: grabbing; }
.piece.settling { transition: left .35s var(--bounce), top .35s var(--bounce); }
.piece:focus-within { z-index: 5; }                       /* 搜索结果盖在别的东西上面 */
.piece:not(.blk).dragging { filter: drop-shadow(0 14px 18px rgb(28 35 64 / .18)); }
.piece:not(.blk).bump { animation: nudge .45s ease-out; }
@keyframes nudge { 30% { translate: -5px 0; } 65% { translate: 4px 0; } }
.find-piece { display: flex; align-items: center; }
.tile.att { width: 420px; max-width: 100%; box-sizing: border-box; padding: 16px 20px; border: 1px solid var(--line); }

/* 搜索：找孩子、游戏、模块 */
.find { position: relative; width: 300px; flex: none; }
.find-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 16px; color: var(--muted); cursor: text; }
.find-box:focus-within { border-color: var(--ink); color: var(--ink); }
.find-box svg { width: 18px; height: 18px; }
.find-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.find-box input::placeholder { color: var(--muted); }
.find-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 14px 32px -14px rgb(28 35 64 / .3); }
.find-list:empty { display: none; }
.find-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; font-size: 15px; }
.find-item:hover, .find-item:focus-visible { background: var(--peg); }
.find-item:first-child { background: var(--peg); }
.find-item small { margin-left: auto; color: var(--muted); font-size: 12px; }
.find-item .face { width: 24px; height: 24px; font-size: 12px; }
.find-none { padding: 8px 10px; color: var(--muted); font-size: 14px; }

.send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send:hover { background: var(--blue); }
.send svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* 五块积木散在桌上，可以拖动；不会叠在一起 */
.blk { width: 170px; display: flex; flex-direction: column; color: var(--ink); }
.blk .stage { height: 100px; display: flex; align-items: flex-end; }
.blk .shape { display: block; width: 80px; height: 80px; border-radius: 6px; background: var(--c); transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%; transition: transform .35s var(--bounce), filter .2s; animation: drop .7s var(--bounce) backwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
.blk .txt { padding: 12px 0 0 2px; }
.blk b { display: block; font-size: 16px; font-weight: 600; }
.blk small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 2px; }
.blk:hover .shape { transform: translateY(-6px) rotate(calc(var(--r, 0deg) - 8deg)); }
.blk.bump .shape { animation: bump .45s ease-out; }
@keyframes bump { 30% { transform: translateX(-5px) rotate(calc(var(--r, 0deg) - 6deg)); } 65% { transform: translateX(4px) rotate(calc(var(--r, 0deg) + 4deg)); } }
.blk.dragging .shape { transform: scale(1.06) rotate(calc(var(--r, 0deg) - 4deg)); filter: drop-shadow(0 14px 14px rgb(28 35 64 / .22)); }
.desk-bar { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 36px; }
.desk-bar .demo { margin-right: auto; }
.desk-bar [hidden] { display: none !important; }
.lock-btn, .add-btn { height: 36px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; padding: 0 16px 0 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.lock-btn svg, .add-btn svg { width: 17px; height: 17px; }
.lock-btn:hover, .add-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.done-btn { height: 36px; border: 0; border-radius: 99px; padding: 0 20px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.done-btn:hover { background: #2b3459; }

/* 拿掉小组件的「－」：只在解锁时出现，固定的东西没有 */
.rm { display: none; position: absolute; top: -9px; left: -9px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--muted); cursor: pointer; z-index: 2; }
.rm::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: #fff; }
.rm:hover { background: var(--ink); }
.desk.editing .rm { display: block; pointer-events: auto; }

/* 小组件列表：像手机加小组件，按类分，每个能看到长什么样 */
.gallery { position: absolute; top: 46px; right: 0; z-index: 10; width: 400px; max-height: min(640px, calc(100vh - 120px)); overflow: auto; padding: 8px 18px 16px; box-shadow: 0 18px 40px -16px rgb(28 35 64 / .35); }
.gallery h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 8px; }
.g-item { border-radius: 14px; background: var(--peg); padding: 14px; margin-bottom: 10px; }
.g-prev { pointer-events: none; zoom: .82; }
.g-prev .tile.att { width: 100%; }
.g-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 600; }
.g-foot button { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 99px; padding: 4px 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.g-foot button svg { width: 14px; height: 14px; stroke-width: 2.4; }
.g-on { color: var(--muted); font-size: 13px; font-weight: 400; }
.g-reset { display: block; margin: 6px auto 0; border: 0; background: none; color: var(--blue); font-size: 13px; cursor: pointer; }

/* 小组件本身 */
.today { color: var(--ink-2); font-size: 16px; white-space: nowrap; }
.quote { width: 320px; border-left: 3px solid var(--c-daily); padding: 2px 0 2px 14px; }
.quote p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.quote small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.quiet { width: 420px; max-width: 100%; padding: 14px 20px 16px; }
.quiet-head { color: var(--ink-2); font-size: 15px; }
.quiet-head b { font: 500 24px/1 var(--num); color: var(--ink); margin-right: 6px; }
.quiet-kids { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.quiet-kids a { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.quiet-kids a:hover { color: var(--blue); }
.quiet-kids .face { width: 26px; height: 26px; font-size: 12px; }
.blk-daily  .shape { width: 84px; height: 84px; border-radius: 50%; }
.blk-games  .shape { width: 98px; height: 86px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.blk-course .shape { width: 80px; height: 80px; border-radius: 6px; }
.blk-growth .shape { width: 116px; height: 58px; border-radius: 58px 58px 0 0; }
.blk-family .shape { width: 72px; height: 94px; border-radius: 36px 36px 0 0; }
.blk-env    .shape { width: 88px; height: 88px; border-radius: 88px 0 0 0; }   /* 四分之一圆：教室的一个角 */
@keyframes drop { from { transform: translateY(-70px); opacity: 0; } 40% { opacity: 1; } }

.attention .panel { padding: 0 20px; }
.att { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.att:first-child { border-top: 0; }
.chip { display: block; width: 14px; height: 14px; background: var(--c); flex: none; }
.chip.round { border-radius: 50%; }
.chip.tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 15px; }
.chip.square { border-radius: 2px; }
.chip.half { width: 16px; height: 8px; border-radius: 8px 8px 0 0; }
.chip.arch { width: 11px; height: 14px; border-radius: 6px 6px 0 0; }
.chip.quarter { border-radius: 14px 0 0 0; }
.chip.xl { width: 56px; height: 56px; }
.chip.xl.tri { width: 62px; height: 54px; }
.chip.xl.square { border-radius: 6px; }
.chip.xl.half { width: 72px; height: 36px; border-radius: 36px 36px 0 0; }
.chip.xl.arch { width: 44px; height: 60px; border-radius: 22px 22px 0 0; }
.chip.xl.quarter { border-radius: 56px 0 0 0; }
.att .what { flex: 1; color: var(--ink-2); font-size: 15px; }
.att .what b { font: 500 24px/1 var(--num); color: var(--ink); margin-right: 6px; }
.att .go { color: var(--ink-2); font-size: 14px; display: flex; align-items: center; gap: 2px; }
.att .go svg { width: 16px; height: 16px; }
.att:hover .go { color: var(--blue); }

/* ---------------- 模块页（还没做） ---------------- */
.mod-head { display: flex; align-items: flex-end; gap: 18px; }
.empty { text-align: center; padding: 56px 24px; color: var(--ink-2); margin-top: 32px; }
.empty p { font-size: 16px; margin: 0 0 18px; }

/* ---------------- 孩子们 ---------------- */
.kids { display: flex; flex-wrap: wrap; gap: 8px; }
.kid { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; text-align: left; }
.kid:hover { border-color: var(--ink-2); }
.kid.on { border-color: var(--ink); background: var(--peg); }
.kid b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.kid small { font-size: 12px; }
/* 孩子的头像是一块小积木，形状和颜色轮着来 */
.face { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--c); flex: none; border-radius: 50%; }
.face.f1 { border-radius: 6px; }
.face.f2 { border-radius: 17px 17px 3px 3px; }
.face.f3 { border-radius: 50% 50% 50% 6px; }
.s-good { color: var(--green); } .s-warn { color: #b98500; } .s-bad { color: var(--red); } .s-none { color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; white-space: nowrap; background: var(--peg); }

.stats, .stats.panel { display: grid; grid-template-columns: repeat(3, 1fr); border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.stat { padding: 18px 24px 4px 0; }
.stat b { display: block; font: 500 52px/1.05 var(--num); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--ink-2); margin-top: 6px; font-size: 14px; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.n-brown { color: var(--ink); } .n-green { color: var(--green); } .n-purple { color: var(--blue); } .n-red { color: var(--red); }

.bars { padding: 22px 26px; display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 16px; font-size: 14px; }
.bar .track { height: 12px; border-radius: 99px; background: var(--peg); overflow: hidden; }
.bar .fill { height: 100%; background: var(--c, var(--blue)); border-radius: 99px; }
.bar .n { text-align: right; font: 500 15px/1 var(--num); font-variant-numeric: tabular-nums; }
.bar.zero .n { color: var(--muted); }

.list { padding: 0 20px; }
.item { display: grid; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.kid-item { grid-template-columns: 34px 90px 1fr 1.2fr auto; cursor: pointer; }
.kid-item b { font-size: 15px; font-weight: 600; }
.kid-item:hover b { color: var(--blue); }

/* ---------------- 游戏活动 ---------------- */
.game-item { grid-template-columns: 16px 1.3fr 2fr 110px; padding: 16px 0; }
.game-item .dot { width: 14px; height: 13px; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.game-item b { display: block; font-size: 16px; font-weight: 600; }
.game-item .meta { color: var(--muted); font-size: 13px; }
.vers { display: flex; flex-wrap: wrap; gap: 6px; }
.ver { font-size: 13px; background: var(--peg); border-radius: 99px; padding: 3px 12px 3px 3px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ver i { font: 500 11px/1.6 var(--num); font-style: normal; background: var(--ink); color: #fff; border-radius: 99px; padding: 0 7px; }
.uses { text-align: right; }
.uses b { font: 500 28px/1 var(--num); display: block; }
.uses small { color: var(--muted); font-size: 12px; }

/* ---------------- 我的信息、设置 ---------------- */
.profile { display: flex; gap: 20px; align-items: center; padding: 24px 26px; margin-top: 24px; }
.profile .avatar { width: 64px; height: 64px; font-size: 24px; }
.profile b { font-size: 22px; font-weight: 600; display: block; }
/* 背景：一个模块一小节，每条一句，像读一页笔记 */
.bgdoc { padding: 6px 28px 22px; }
.bgdoc h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 20px 0 6px; letter-spacing: .02em; }
.bgdoc ul { margin: 0; padding-left: 1.1em; max-width: 46em; }
.bgdoc li { font-size: 15px; line-height: 1.75; margin: 3px 0; }
.bgdoc li::marker { color: var(--line); }
.info { display: grid; grid-template-columns: 120px 1fr; row-gap: 14px; padding: 22px 26px; margin: 0; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.info.gap { margin-top: 16px; }

/* ---------------- 登录 ---------------- */
body.locked .side { display: none; }
body.locked .shell { display: block; }
body.locked main { max-width: none; padding: 0; }
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 10vh; text-align: center; }
.gate h1 { font-size: 28px; font-weight: 600; margin: 22px 0 0; }
.gate .en { margin: 4px 0 0; font: 500 13px var(--num); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.gate .sub { margin-top: 14px; color: var(--muted); }
.auth { width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 30px; text-align: left; }
.fld span { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px 4px; }
.fld input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); outline: none; }
.fld input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(45 91 214 / .12); }
.fld input::placeholder { color: var(--muted); font-size: 14px; }
.go-btn { margin-top: 6px; border: 0; border-radius: 99px; padding: 12px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.go-btn:hover { background: var(--blue); }
.go-btn:disabled { opacity: .6; cursor: default; }
.auth .err { margin: 0; text-align: center; }
.swap { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.swap button, .link { border: 0; background: none; padding: 0 0 0 4px; color: var(--blue); font: inherit; font-size: 14px; cursor: pointer; }
.invite { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.invite .code { font: 600 17px var(--num); letter-spacing: .04em; user-select: all; }
.invite small { color: var(--muted); font-size: 13px; }
.pw-form { margin-top: 4px; width: 300px; gap: 10px; }
.pw-form .row { display: flex; align-items: center; gap: 16px; }
.pw-form .go-btn { margin: 4px 0 0; padding: 9px 22px; font-size: 15px; }
.pw-form .err { text-align: left; }
.pw-box .ok { color: var(--green, #1f9e68); }
.role { margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: rgb(45 91 214 / .1); color: var(--blue); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.err { color: var(--red); min-height: 1.5em; margin: 12px 0 0; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .blk .shape, .blk.bump .shape { animation: none; transition: none; }
  .piece.settling { transition: none; }
  .piece.bump { animation: none; }
}

/* ---------------- 幼儿端、家长端：老师切过去看看（侧栏一直在） ---------------- */
.side .nav[hidden] { display: none; }
.view-pick { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.view-pick select { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 2px 6px; background: var(--paper); }
.view-empty { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.view-empty .mark svg { width: 88px; height: 24px; }
.view-empty p { margin: 0; }
