/*
 * 11-10 苹果电脑风格、毛玻璃（用户：「彻底升级一下布局，排版，字体，配色，动效，间距，文案，细节，视觉等整体升级，
 * 最好能做到类似macos的设计风格，毛玻璃」）。
 * 照 craft.css 的办法：这一层放在所有样式最后，老样式不删，出问题删掉这一个文件（和两个页面里引它的那一行）就回到原样。
 * 守的规矩（设计体系、闯关第一期、课程练习的 DESIGN.md）：
 * - 青绿只给要按的、当前在哪、点亮；进行中蓝，未开始灰，建设中灰虚线，提醒橙，未达到灰不用红；状态旁边都写字。
 * - 毛玻璃只用在边框部件：导航、吸顶的页头、弹出的菜单和窗口、输入框、右边资料目录。正文和卡片是实色，字看得清。
 *   玻璃上的字也要过 4.5:1；系统开了「减少透明度」或浏览器不支持时退回实色。
 * - 动效只说明状态（按下、展开、出现），120–280ms，减速收尾，不回弹；系统开了「减少动态效果」就不动。
 * - 不加回整条顶栏，不加红黄绿三个窗口按钮，不用苹果的蓝做主色（蓝在这里表示「进行中」）。
 * 改的东西：底和字从浅蓝白、藏青换成苹果电脑那样的中性灰和近黑；阴影去掉藏青色调；圆角收小一档；按钮改平涂；
 * 宽屏的左边导航改成苹果电脑侧栏的样子（标志、图标加名字一行一项、底下是自己）；分段的页签做成苹果的分段控件。
 */

:root {
  /* 三层底：窗口 / 侧栏和次一级的填色 / 控件；卡片白 */
  --paper: #f5f5f7; --paper-2: #efeff2; --paper-3: #e6e6ea;
  --card: #ffffff;
  /* 字：近黑到中灰。--ink-400 是最淡的字，在 --paper-3 上也有 4.8:1；--ink-300 只用在线和点上 */
  --ink-900: #1d1d1f; --ink-800: #2b2b2e; --ink-700: #3a3a3d; --ink-600: #4b4b50; --ink-500: #59595f; --ink-400: #636369; --ink-300: #c7c7cc;
  --hair: #e5e5ea; --hair-2: #d8d8de; --hair-3: #c7c7cc;
  --line2: #ececf0; --soft2: #fafafb;
  /* 主按钮：平涂的深青绿，上浅下深只差一点；白字在两头都过 4.5:1 */
  --accent-grad: linear-gradient(180deg, #0d8378 0%, #0b7b71 100%);
  --accent-grad-hover: linear-gradient(180deg, #0b7a70 0%, #0a6e65 100%);
  /* 阴影：中性灰，一圈半像素的细边加一层很淡的影子，像苹果电脑的窗口和卡片 */
  --shadow-1: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-2: 0 0 0 .5px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .14);
  --shadow-3: 0 0 0 .5px rgba(0, 0, 0, .08), 0 10px 30px rgba(0, 0, 0, .12), 0 32px 64px -24px rgba(0, 0, 0, .24);
  /* 键盘焦点：苹果的那圈半透明的主色光环 */
  --ring: 0 0 0 1px var(--accent), 0 0 0 4px rgba(15, 148, 136, .28);
  --glow: 0 0 0 4px rgba(15, 148, 136, .16);
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1);
  --t1: 120ms; --t2: 180ms; --t3: 280ms;
  --r1: 6px; --r2: 9px; --r3: 12px; --radius: 12px;
  /* 毛玻璃：侧栏、吸顶的页头用 --glass，弹出的菜单和窗口用更实一点的 --glass-strong */
  --glass: rgba(234, 234, 239, .72);  /* 侧栏比白色的正文深一点，像苹果电脑的侧栏 */
  --glass-strong: rgba(252, 252, 253, .93);  /* 弹出的窗口和菜单：底下的图表颜色只隐约透出一点 */
  --glass-white: rgba(255, 255, 255, .78);
  --glass-blur: saturate(180%) blur(24px);
  --glass-line: rgba(0, 0, 0, .08);
  --glass-edge: inset 0 .5px 0 rgba(255, 255, 255, .7);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font: var(--font-ui);
}

/* ---------- 底：很淡的一层颜色，侧栏的毛玻璃才透得出东西（像苹果电脑侧栏透出桌面） ---------- */
html { background: #ececf0; }
body {
  background-color: #efeff3;
  background-image:
    radial-gradient(1100px 760px at -8% -12%, rgba(15, 148, 136, .13), transparent 62%),
    radial-gradient(900px 700px at 108% 112%, rgba(43, 125, 224, .08), transparent 60%);
  background-attachment: fixed;
  color: var(--ink-700);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(15, 148, 136, .22); }
* { scrollbar-color: rgba(0, 0, 0, .18) transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .16); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .28); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r1); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.005em; }

/* ==================== 学生端（.cx） ==================== */
.cx { background: transparent; }
.cx > .cx-work, .cx > .cx-chat { background-color: var(--paper); }

/* ---------- 左边导航：毛玻璃侧栏 ---------- */
.cx > .cx-rail {
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-line); box-shadow: var(--glass-edge);
}
.cx-rail .logo { background: var(--card); border-radius: 10px; box-shadow: var(--shadow-1); }
.cx-rail .logo .lockup, .cx-rail-me .who-line { display: none; }
.cx-nav { border-radius: 8px; color: var(--ink-600); }
.cx-nav:hover { background: rgba(0, 0, 0, .05); color: var(--ink-900); }
.cx-nav.on { background: rgba(15, 148, 136, .13); color: var(--accent-800); }  /* 深一档：在灰玻璃上的浅青绿底上对比 5:1 以上 */
.cx-nav.on::before { display: none; }
.cx-nav .dot { border-color: transparent; }
.cx-avatar { background: var(--accent-grad); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25); }
.cx-menu {
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); border-radius: 10px; box-shadow: var(--shadow-3); padding: 5px;
}
.cx-menu button, .cx-menu a { border-radius: 5px; }
.cx-menu button:hover, .cx-menu a:hover { background: var(--accent-700); color: #fff; }
.cx-menu .who { color: var(--ink-500); }
.cx-menu .who b { color: var(--ink-900); }

/* 宽屏：苹果电脑侧栏的样子，上面标志加名字，一行一项（图标在左、名字在右），最下面是自己 */
@media (min-width: 1180px) {
  .cx { grid-template-columns: 220px minmax(0, 1fr) minmax(330px, 372px); }
  .cx.solo { grid-template-columns: 220px minmax(0, 1fr); }
  .cx:not(.solo) { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .cx > .cx-rail { align-items: stretch; padding: 18px 12px 14px; gap: 2px; }
  .cx-rail .logo { width: auto; height: auto; margin: 0 4px 22px; padding: 6px 8px; justify-content: start; background: transparent; box-shadow: none; display: flex; align-items: center; gap: 8px; }
  .cx-rail .logo:hover { transform: none; box-shadow: none; }
  .cx-rail .logo > .qy-icon { display: none; }
  .cx-rail .logo .lockup { display: block; height: 30px; width: auto; }
  .cx-nav { width: auto; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0 10px; height: 34px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-align: left; }
  .cx-nav svg { width: 18px; height: 18px; flex: none; }
  .cx-nav.on { font-weight: 600; }
  .cx-nav .dot { position: static; margin-left: auto; }
  .cx-rail-me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid var(--glass-line); }
  .cx-rail-me .who-line { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
  .cx-rail-me .who-line b { font-size: 13.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-rail-me .who-line span { font-size: 12px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cx-avatar { width: 30px; height: 30px; font-size: 12.5px; flex: none; }
  .cx-menu { left: 8px; bottom: 48px; }
}

/* 手机：底下一排，毛玻璃 */
@media (max-width: 860px) {
  .cx > .cx-rail { border-right: 0; border-top: 1px solid var(--glass-line); background: var(--glass); }
  .cx-nav { border-radius: 8px; }
  .cx-nav.on { background: transparent; }
}

/* ---------- 每一页的标题 ---------- */
.cx-work > .cx-head .title b { font-family: var(--font-display); font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--ink-900); }
.cx-work > .cx-head .title span { color: var(--ink-500); }
@media (max-width: 860px) { .cx-work > .cx-head .title b { font-size: 23px; } }

/* 页签：苹果的分段控件，一条浅灰的槽，选中的那一段是白底 */
.cx-work > .cx-tabs, .cx-tabs { display: flex; width: fit-content; max-width: 100%; gap: 2px; margin: 8px max(28px, calc((100% - 860px) / 2 + 28px)) 4px; padding: 2px;
  border: 0; border-radius: 9px; background: rgba(0, 0, 0, .055); overflow-x: auto; }
.cx-work > .cx-tabs { padding-left: 2px; padding-right: 2px; }
.cx-tab { margin: 0; padding: 5px 14px; border: 0; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-700); white-space: nowrap;
  transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease), box-shadow var(--t2) var(--ease); }
.cx-tab:hover { color: var(--ink-900); background: rgba(255, 255, 255, .5); }
.cx-tab.on { background: var(--card); color: var(--ink-900); font-weight: 600; border: 0; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .1); }
.cx-section-title { font-size: 12.5px; letter-spacing: .02em; color: var(--ink-500); }

/* ---------- 按钮：苹果电脑的按钮，矮一点、圆角小一点、平涂 ---------- */
.cx-btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--card); color: var(--ink-900); font-size: 14px; font-weight: 500; letter-spacing: 0;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1.5px rgba(0, 0, 0, .07); }
.cx-btn:hover { background: #fafafb; border: 0; }
.cx-btn:active { transform: scale(.98); background: var(--paper-2); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .16); }
.cx-btn.primary { background: var(--accent-grad); color: #fff; font-weight: 600;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .28), 0 0 0 .5px rgba(6, 70, 64, .45), 0 1px 2px rgba(6, 70, 64, .22); }
.cx-btn.primary:hover { background: var(--accent-grad-hover); transform: none;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .28), 0 0 0 .5px rgba(6, 70, 64, .5), 0 4px 12px -4px rgba(11, 123, 113, .45); }
.cx-btn.primary:active { transform: scale(.98); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(6, 70, 64, .5); }
.cx-btn.primary:disabled, .cx-btn:disabled { background: var(--paper-2); color: var(--ink-400); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.cx-btn.big { height: 42px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.cx-btn.small { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.cx-btn.ghost { background: transparent; box-shadow: none; color: var(--ink-600); }
.cx-btn.ghost:hover { background: rgba(0, 0, 0, .05); color: var(--ink-900); }
.cx-btn:focus-visible, .cx-quiet:focus-visible, .cx-goto:focus-visible, .cx-row:focus-visible { box-shadow: var(--ring); }
.cx-goto { border: 0; border-radius: 999px; padding: 5px 13px; font-weight: 500; color: var(--ink-900);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1.5px rgba(0, 0, 0, .07); }
.cx-goto:hover { background: var(--accent-700); color: #fff; box-shadow: 0 0 0 .5px rgba(6, 70, 64, .5); }
.cx-quiet { color: var(--ink-500); }
.cx-quiet:hover { color: var(--accent-700); }

/* 新版里借用的旧版部件（「我」页的账号与隐私卡片）：按钮和新版的一样 */
.cx .btn { height: 32px; padding: 0 12px; border-radius: 7px; border: 0; background: var(--card); color: var(--ink-900); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1.5px rgba(0, 0, 0, .07); transition: background-color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.cx .btn:hover { background: #fafafb; }
.cx .btn:active { transform: scale(.98); background: var(--paper-2); }
.cx .btn.primary { background: var(--accent-grad); color: #fff; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .28), 0 0 0 .5px rgba(6, 70, 64, .45); }
.cx .btn.danger-line { color: var(--red-ink); }
.cx .acct h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink-900); margin: 0 0 10px; }
.cx .data-use { margin-top: 12px; padding: 12px 14px; border-radius: var(--r2); background: var(--paper); }

/* ---------- 卡片：白底、半像素细边、很淡的影子；能点的一行轻轻浮起 ---------- */
.cx-card { border: 0; border-radius: var(--r3); box-shadow: var(--shadow-1); }
.cx-card-foot { background: var(--soft2); border-top-color: var(--line2); }
.cx-row { border: 0; border-radius: var(--r3); box-shadow: var(--shadow-1); }
.cx-row:hover { box-shadow: var(--shadow-2); }
.cx-tag { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
.cx-tip, .cx-need { border-radius: var(--r2); }
.cx-table th { background: rgba(250, 250, 251, .92); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* 更多、收件箱这类下拉的单子：苹果的弹出菜单 */
.cx-more-list { border: 1px solid var(--glass-line); border-radius: 10px; padding: 5px; background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-3); animation: cx-pop var(--t2) var(--ease); transform-origin: top left; }
.cx-more-list button { border-radius: 5px; padding: 8px 10px; font-size: 14px; }
.cx-more-list button:hover { background: var(--accent-700); color: #fff; }
.cx-more-list button:hover .dot { background: #fff; }

/* ---------- 对话和输入框 ---------- */
.cx-solo-col, .cx-talk { background: var(--card); }
.cx-msg .av { border-radius: 8px; }
.cx-msg.me .bubble { background: #ececf0; border-radius: 16px 16px 5px 16px; }
.cx-compose-wrap { position: relative; }
.cx-compose { border: 0; border-radius: 14px; background: var(--glass-white); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 4px 18px -6px rgba(0, 0, 0, .12); transition: box-shadow var(--t2) var(--ease); }
.cx-compose:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(15, 148, 136, .18), 0 4px 18px -6px rgba(0, 0, 0, .12); }
.cx-send { width: 30px; height: 30px; }
.cx-pill { border: 0; border-radius: 999px; background: var(--glass-white); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); color: var(--ink-700); font-size: 13px; padding: 5px 12px;
  transition: background-color var(--t1) var(--ease), color var(--t1) var(--ease), transform var(--t1) var(--ease); }
.cx-pill:hover { background: var(--card); color: var(--ink-900); }
.cx-pill:active { transform: scale(.97); }
.cx-pill.on { background: rgba(15, 148, 136, .12); color: var(--accent-800); box-shadow: 0 0 0 .5px rgba(15, 148, 136, .35); }

/* 做题页顶上吸顶的一条：毛玻璃，下面的字滚上去隐约看得见 */
.cx-talk > .cx-head { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-line); }
.cx-talk > .cx-head .title b { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -.005em; }

/* 右边资料：目录一条是毛玻璃，展开的内容是实色 */
.cx-side { border-left: 1px solid var(--glass-line); background: transparent; }
.cx-side-dir { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-right: 1px solid var(--glass-line); }
.cx-side-tab { border: 0; border-radius: 8px; color: var(--ink-600); }
.cx-side-tab:hover { background: rgba(0, 0, 0, .05); }
.cx-side-tab.on { background: rgba(15, 148, 136, .13); color: var(--accent-800); border: 0; }
.cx-side-body { background: var(--paper); box-shadow: -1px 0 0 var(--glass-line); }
.cx-side-head { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-line); }
.cx-side-head b { font-family: var(--font-display); color: var(--ink-900); font-weight: 600; }

/* ---------- 弹出的窗口：苹果的面板，底下的页面暗一点、糊一点 ---------- */
.cx-modal-back { background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: mac-fade var(--t2) var(--ease); }
.cx-modal { border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-3); animation: mac-in var(--t3) var(--ease); }
@keyframes mac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mac-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- 闯关的几块（quest.css）：卡片和步骤条跟着收圆角、去边框 ---------- */
.qm-letter, .qm-zone, .qm-next, .qm-sheet { border: 0; box-shadow: var(--shadow-1); }
.qm-bar { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-line); }

/* 回信上的「业务结果」原来是浅青绿底；青绿只给要按的、当前在哪、点亮，这一块改成浅灰底 */
.qm-result { background: var(--paper); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .04); }
.qm-step.now { background: rgba(15, 148, 136, .1); color: var(--accent-800); }

/* ---------- 看板式的页（成长、考核、探索地图）：灰底上放白卡片，像苹果的「系统设置」 ---------- */
.dk-card, .dk-kpi { border: 0; border-radius: var(--r3); box-shadow: var(--shadow-1); }

/* 成长页：职级的几格、各项能力的小格，从「白底加框」改成「灰底不加框」，像苹果「系统设置」里一组一组的格子 */
.qm-cell { border: 0; background: var(--paper); border-radius: 10px; }
.qm-cell.here { background: rgba(15, 148, 136, .09); box-shadow: inset 0 0 0 1.5px var(--accent); }
.gx-node { border: 0; background: var(--paper); border-radius: 10px; box-shadow: none; transition: background-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease); }
.gx-node:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.gx-node.some { box-shadow: inset 0 0 0 1px var(--accent-200); }
.gx-node.up { background: rgba(15, 148, 136, .09); box-shadow: inset 0 0 0 1.5px var(--accent); }
.gx-node.met { background: var(--accent-700); box-shadow: none; }
.gx-node.off, .gx-node.floor { background: transparent; box-shadow: none; border: 1px dashed var(--hair-3); }  /* 虚线：平台测不到、底线，照旧 */
.gx-node.floor.bad { border-color: var(--bad); background: var(--bad-weak); }

/* 关键能力原来标 ★，改成写字的小标签 */
.gx-node .star { top: 8px; right: 8px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 18px; color: var(--amber-ink); background: var(--amber-50); }
.gx-node.met .star { color: var(--accent-800); background: #fff; }
.gx-node:has(.star) > b { padding-right: 38px; }

/* 换页时内容轻轻浮上来（只动透明度和一点位移，280ms，减速收尾）；系统开了减少动态效果就不动 */
.cx > .cx-work > .cx-pane > .cx-pane-in, .cx-solo-col .cx-col, .qm-map, .qm-page { animation: mac-page var(--t3) var(--ease) both; }
@keyframes mac-page { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* 能点的行和卡片：按下去时轻轻一缩 */
.cx-row:active, .qm-node-in:active, .qm-inbox-row:active { transform: scale(.995); }

/* ---------- 11-10 新手引导和功能说明（js/help.js） ---------- */
/* 生词：虚线下划线，点一下出一句解释 */
.hx-term-wrap { position: relative; display: inline; }
.hx-term { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted var(--ink-400); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hx-term:hover, .hx-term[aria-expanded="true"] { text-decoration-color: var(--accent-700); color: var(--ink-900); }
.hx-pop { position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: min(300px, 80vw);
  padding: 9px 12px; border-radius: 9px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-3); color: var(--ink-800); font-size: 13px; font-weight: 400; line-height: 1.65; text-align: left;
  white-space: normal; letter-spacing: 0; animation: mac-in var(--t2) var(--ease); pointer-events: none; }
/* 每页第一次打开时页顶的一句话 */
.hx-tip { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--r2); background: rgba(0, 0, 0, .04);
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);  /* 中性灰：蓝在这里表示「进行中」，说明不用蓝 */ color: var(--ink-800); font-size: 14px; line-height: 1.65; animation: mac-in var(--t3) var(--ease); }
.hx-tip-i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: italic 600 12px/1 Georgia, serif; color: #fff; background: var(--ink-500); }
.hx-tip-tx { flex: 1; min-width: 0; }
.hx-tip-ok { flex: none; border: 0; background: rgba(255, 255, 255, .8); color: var(--ink-900); font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14); cursor: pointer; }
.hx-tip-ok:hover { background: #fff; }
/* 第一次进工作台的介绍 */
.hx-intro-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .22);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: mac-fade var(--t2) var(--ease); }
.hx-intro { width: min(460px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 20px; border-radius: 16px; background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow-3); animation: mac-in var(--t3) var(--ease); }
.hx-intro-n { font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.hx-intro h2 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink-900); animation: mac-page var(--t3) var(--ease); }
.hx-intro p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink-700); min-height: 5.4em; animation: mac-page var(--t3) var(--ease); }
.hx-intro-dots { display: flex; gap: 6px; }
.hx-intro-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hair-3); transition: width var(--t2) var(--ease), background-color var(--t2) var(--ease); }
.hx-intro-dots i.on { width: 18px; border-radius: 3px; background: var(--accent); }
.hx-intro-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.hx-intro-act .ghost { margin-right: auto; }
@media (prefers-reduced-transparency: reduce) { .hx-pop, .hx-intro { background: #fbfbfc; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- 不支持毛玻璃、或者系统开了「减少透明度」：一律实色 ---------- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cx > .cx-rail, .cx-side-dir { background: #f0f0f3; }
  .cx-menu, .cx-more-list, .cx-modal { background: #fbfbfc; }
  .cx-talk > .cx-head, .cx-side-head, .qm-bar, .cx-compose, .cx-pill { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  body { background-image: none; }
  .cx > .cx-rail, .cx-side-dir { background: #f0f0f3; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cx-menu, .cx-more-list, .cx-modal { background: #fbfbfc; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cx-talk > .cx-head, .cx-side-head, .qm-bar, .cx-compose, .cx-pill, .cx-table th { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cx-modal-back { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- 11-10 学生端改版第一期：「任务」页、「命题」页、子任务页（js/chat/tasks.js、topics.js） ----------
   照交付包 assets/ui.css 的部件搬过来，类名都加 tk-，不动现有的类。颜色、圆角、阴影用这一份开头的变量。
   一屏只有一个青绿主按钮（.cx-btn.primary）；卡片是实色，毛玻璃只在输入框上（沿用 .cx-compose）。 */
.cx-nav .dot.tk-reply { background: var(--accent); }  /* 「任务」上的小点：有回信没看，青绿（「成长」上新点亮的照旧是橙黄） */
.cx-pane-in.tk-home { max-width: 988px; align-items: center; gap: 0; padding-top: 46px; }
.cx-pane-in.tk-page { max-width: 1040px; gap: 0; padding-top: 26px; }
.tk-hero { margin: 0 0 18px; font-family: var(--font-display); font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; color: var(--ink-900); text-align: center; }
.tk-h1 { margin: 0 0 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.35; font-weight: 650; color: var(--ink-900); }
.tk-h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.tk-lead { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-600); max-width: 760px; }
.tk-count { margin-left: 10px; font-size: 14px; font-weight: 400; color: var(--ink-400); white-space: nowrap; }
/* 首页的输入框：比对话里的高一档、圆角 18 */
.tk-ask { width: 100%; max-width: 700px; }
.tk-ask .cx-compose-wrap { padding: 0; }
.tk-ask .cx-compose { min-height: 92px; align-items: flex-end; padding: 14px 12px 12px 18px; border-radius: 18px; box-shadow: var(--shadow-2); }
.tk-ask .cx-compose textarea { align-self: stretch; min-height: 48px; font-size: 15.5px; }
/* 标签：分区单选，条件可以同时打开（选中的是深色底，不用青绿：青绿留给主按钮） */
.tk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tk-chips.center { justify-content: center; margin: 14px 0 0; }
.tk-chip { height: 30px; padding: 0 13px; border: 0; border-radius: 15px; background: var(--card); box-shadow: var(--shadow-1); font-size: 13px; color: var(--ink-600);
  display: inline-flex; align-items: center; cursor: pointer; transition: background-color var(--t1) var(--ease); }
.tk-chip:hover { background: var(--soft2); }
.tk-chip.on, .tk-chip.on:hover { background: var(--ink-900); color: #fff; box-shadow: none; }
.tk-chip:focus-visible, .tk-card:focus-visible, .tk-go:focus-visible, .tk-sub:focus-visible, .tk-back:focus-visible, .tk-link:focus-visible { outline: 0; box-shadow: var(--ring); }
.tk-chips.center .tk-chip { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13.5px; }
.tk-vr { width: 1px; height: 18px; margin: 0 4px; background: var(--hair-2); }
/* 一块：小标题，右边一个链接 */
.tk-sec { width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.tk-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tk-sec-h h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.tk-link { font-size: 13px; color: var(--accent-700); text-decoration: none; border-radius: 4px; }
.tk-link:hover { text-decoration: underline; }
.tk-sec > .cx-quiet, .tk-fold > .cx-quiet, .tk-cert { align-self: flex-start; }
/* 卡片网格：三列，860 以下一列 */
.tk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tk-card { display: flex; flex-direction: column; gap: 8px; min-height: 176px; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-1);
  color: inherit; text-decoration: none; text-align: left; transition: box-shadow var(--t2) var(--ease), transform var(--t2) var(--ease); }
a.tk-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); text-decoration: none; }
.tk-from { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-500); }
.tk-av { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--paper-3); color: var(--ink-600); }
.tk-av.big { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
.tk-name { font-size: 15.5px; line-height: 1.45; font-weight: 600; color: var(--ink-900); }
.tk-what { flex: 1; font-size: 13px; line-height: 1.65; color: var(--ink-500); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tk-quote { flex: 1; font-size: 14.5px; line-height: 1.75; color: var(--ink-800); }
.tk-why { margin: 0; padding: 7px 10px; border-radius: 8px; background: var(--accent-50); color: var(--accent-800); font-size: 12.5px; line-height: 1.6; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-400); }
.tk-btn { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--card); color: var(--ink-900);
  font-size: 13px; font-weight: 500; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1.5px rgba(0, 0, 0, .07); }
.tk-rec { display: flex; flex-direction: column; gap: 12px; margin: 0 0 30px; }
.tk-rec .cx-msg .body { font-size: 14.5px; }
.tk-onboard { width: 100%; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.tk-onboard .tk-card { min-height: 0; gap: 14px; padding: 20px; }
/* 搜索框 */
.tk-search { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 0 12px; padding: 0 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); color: var(--ink-400); }
.tk-search:focus-within { box-shadow: var(--shadow-1), 0 0 0 3px rgba(15, 148, 136, .2); }
.tk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-900); padding: 8px 0; }
.tk-search input::placeholder { color: var(--ink-400); }
.tk-page > .tk-cards { margin-top: 6px; }
.tk-more { display: flex; justify-content: center; margin-top: 18px; }
.tk-empty { margin: 0; padding: 36px 20px; text-align: center; color: var(--ink-400); font-size: 14px; line-height: 1.8; }
.tk-foot-note { margin: 14px 0 0; text-align: center; color: var(--ink-400); font-size: 13px; line-height: 1.8; }
.tk-cert { margin-top: 24px; }
/* 状态：一个小圆点加字。蓝进行中，橙等学生动手，青绿回信到了和已交付，灰未开始。不只靠颜色 */
.tk-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-400); white-space: nowrap; }
.tk-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); }
.tk-st.b { color: var(--blue-ink); } .tk-st.b .tk-dot { background: var(--blue); }
.tk-st.o { color: var(--orange-ink); } .tk-st.o .tk-dot { background: var(--orange); }
.tk-st.g { color: var(--accent-700); } .tk-st.g .tk-dot { background: var(--accent); }
/* 「继续做」「已交付」：一行一个项目，三列 */
.tk-going { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tk-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1);
  font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: box-shadow var(--t2) var(--ease); }
.tk-go:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.tk-go-tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-go-tx b { font-size: 14.5px; font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-go .cx-btn { flex: none; pointer-events: none; }
/* 子任务页 */
.tk-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--ink-500); text-decoration: none; border-radius: 4px; }
.tk-back::before { content: ""; width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.tk-back:hover { color: var(--accent-700); text-decoration: none; }
.tk-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; }
.tk-head .tk-h1 { margin: 0 0 4px; }
.tk-page > .tk-why { margin: 0 0 14px; font-size: 13.5px; }
.tk-subs { display: flex; flex-direction: column; gap: 8px; }
.tk-sub { display: grid; grid-template-columns: 72px minmax(0, 1fr) 120px 76px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--card);
  box-shadow: var(--shadow-1); cursor: pointer; transition: box-shadow var(--t2) var(--ease); }
.tk-sub:hover { box-shadow: var(--shadow-2); }
.tk-sub.now { box-shadow: 0 0 0 1.5px rgba(15, 148, 136, .5), var(--shadow-1); }
.tk-sub.small { grid-template-columns: 160px minmax(0, 1fr) 120px 76px; padding: 9px 16px; background: var(--soft2); }
.tk-sub-n { font-size: 12.5px; color: var(--ink-400); }
.tk-sub-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-sub-tx b { font-size: 14.5px; font-weight: 600; color: var(--ink-900); }
.tk-sub-tx small { font-size: 12.5px; line-height: 1.6; color: var(--ink-500); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tk-sub .cx-btn { justify-self: end; justify-content: center; pointer-events: none; }
.tk-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--accent-50); color: var(--accent-800); font-size: 11.5px; font-weight: 550; vertical-align: 1px; }
.tk-fold { display: flex; flex-direction: column; gap: 6px; margin: -2px 0 4px; padding-left: 84px; }
@media (max-width: 860px) {
  .cx-pane-in.tk-home { padding-top: 28px; }
  .tk-hero { font-size: 22px; }
  .tk-cards, .tk-going { grid-template-columns: minmax(0, 1fr); }
  .tk-card { min-height: 0; }
  .tk-sub, .tk-sub.small { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .tk-sub.small { grid-template-columns: minmax(0, 1fr) auto; }
  .tk-sub.small .tk-sub-n { grid-column: 1 / -1; }
  .tk-sub .tk-st { display: none; }  /* 窄屏放不下状态这一列：按钮上的字（开始、继续、查看、打开）已经跟着状态写 */
  .tk-fold { padding-left: 0; }
  .tk-vr { display: none; }
  .tk-count { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-chip, .tk-card, .tk-go, .tk-sub { transition: none; }
  a.tk-card:hover { transform: none; }
}

/* 11-18 跟着点一遍（help.js 的 Tour）：被讲的那一块亮着，其余压暗；卡片放在旁边 */
.hx-tour { position: fixed; inset: 0; z-index: 1200; }
.hx-tour-dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.hx-tour-hole { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .5), 0 0 0 3px rgba(255, 255, 255, .9); pointer-events: none; transition: left .2s, top .2s, width .2s, height .2s; }
.hx-tour-card { position: absolute; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 16px; border-radius: 16px; background: #fff; color: #111827;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .28); }
.hx-tour-card h2 { margin: 0; font-size: 17px; font-weight: 700; }
.hx-tour-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #374151; }
.hx-tour-card .hx-intro-act { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .hx-tour-hole { transition: none; } }
