/* ==========================================================================
   机智小童练习站 · 深空电路主题 v19 (2026-11-09)
   设计基调：星空蓝底（顶部淡银河 → 底部深空）+ 电光青主色 + 品牌橙点缀，
            玻璃面板 / HUD 边角 / 电路网格 / 星链粒子。
   约束：沿用全部历史 class 名与 CSS 变量名（--navy/--ink/--muted/--line ...），
        老模板里的引用不需要改；只把语义映射到深色底上。
   ========================================================================== */

:root{
  /* —— 兼容令牌：老模板 / account.css 仍在直接引用这些名字 —— */
  --navy:#EAF2FF;          /* 标题色（浅色主题里是深蓝） */
  --ink:#C6D5EA;           /* 正文色 */
  --muted:#9AB0CA;         /* 次要文字：星云青底比原来的深空底亮，原 #8598B4 压不住 */
  --line:rgba(122,170,255,.16);
  --bg:#0D1E42;
  --cream:#122650;
  --orange:#FF7A2F;
  --orange-d:#FF9A5C;

  /* —— 主题令牌 —— */
  --c-cyan:#22E0FF;
  --c-cyan-2:#7DEBFF;
  --c-blue:#3B82F6;
  --c-violet:#8B5CF6;

  --bg-0:#021B2C;          /* 星云兜底底色：与 .bg-fx 竖向色阶的最底部同色，避免滚动出界露边 */
  --bg-1:#0F224C;
  --surface:rgba(19,38,74,.72);
  --surface-solid:#132A50;
  --surface-2:#18345E;
  --surface-3:#20406C;

  --ok:#34D399;
  --bad:#FF6B6B;
  --warn:#FBBF24;

  --radius:14px;
  --radius-lg:20px;
  --shadow:0 18px 44px -30px rgba(2,8,22,.92);
  --shadow-lg:0 40px 90px -60px rgba(2,8,22,.95);
  --ring:0 0 0 1px rgba(34,224,255,.30), 0 0 28px -6px rgba(34,224,255,.36);

  --ease:cubic-bezier(.16,1,.3,1);
  --mono:ui-monospace,SFMono-Regular,"JetBrains Mono","Cascadia Mono",Consolas,"Liberation Mono",Menlo,monospace;
}

*{box-sizing:border-box}
html{color-scheme:dark}
html,body{margin:0;padding:0}
body{
  font-family:"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
  color:var(--ink);
  font-size:15px; line-height:1.72;
  background:var(--bg-0);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px;position:relative;z-index:1}
.main{min-height:60vh;padding-top:26px;padding-bottom:56px}
/* [hidden] 必须真的隐藏：.btn / .row 这类规则会写 display，直接把 UA 的 hidden 顶掉 */
[hidden]{display:none !important}

::selection{background:rgba(34,224,255,.30);color:#fff}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(122,170,255,.20);border-radius:8px;border:2px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:rgba(34,224,255,.38);background-clip:content-box}
:focus-visible{outline:2px solid var(--c-cyan);outline-offset:2px;border-radius:6px}

/* ==========================================================================
   背景层：星链粒子 + 电路网格 + 氛围渐变 + 噪点
   ========================================================================== */
.bg-fx{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  /* 星云青底：取自参考插画的竖向色阶（顶部亮青 → 中段湖蓝 → 底部深海军蓝）。
     两条约束同时要满足，所以分了两组：
       ① 光（B/C/D/E）只负责把最上方点亮成青色，衰减故意拉到 105% 以上——
          前几版收到 62~74%，结果两三层光晕在 y≈220px 同时收尾，切出一条硬边；
       ② 压暗罩（A）从顶栏下沿开始接管，保证浅色正文的对比度。正文是小字，
          背景一抬亮，"辅助说明"这类 --muted 灰字就直接糊掉。 */
  background:
    /* A. 内容压暗罩：视觉上就是参考图"上亮下暗"的下半段 */
    linear-gradient(180deg,
      rgba(2,17,28,0) 0%,
      rgba(2,17,28,0) 5%,
      rgba(2,17,28,.20) 12%,
      rgba(2,17,28,.42) 22%,
      rgba(2,17,28,.56) 34%,
      rgba(2,17,28,.64) 50%,
      rgba(2,17,28,.70) 100%),
    /* B. 爆发核心：中心落在视口上方外侧，只把光晕下沿漏进来。
          绿通道压一档（242→226），否则大面积叠出来会发"青绿"，参考图是偏蓝的 */
    radial-gradient(70rem 46rem at 58% -22%, rgba(78,226,252,.58), transparent 108%),
    /* C. 顶部宽横光：让整条顶边带青味，而不是只有一个亮点 */
    radial-gradient(150rem 44rem at 50% -30%, rgba(40,200,240,.50), transparent 112%),
    /* D. 左上补光 */
    radial-gradient(64rem 40rem at 0% -14%, rgba(52,200,234,.34), transparent 105%),
    /* E. 右上一点冷青，避免右侧塌陷成黑 */
    radial-gradient(60rem 38rem at 100% -8%, rgba(38,186,226,.24), transparent 106%),
    /* F. 粉紫星云丝带：参考图右侧、左下各一条，极淡，只做色彩层次 */
    radial-gradient(34rem 24rem at 82% 26%, rgba(206,132,214,.15), transparent 88%),
    radial-gradient(28rem 20rem at 10% 34%, rgba(158,118,212,.10), transparent 90%),
    /* G. 主竖向色阶：每 10% 一档，步子小才不会有条带感 */
    linear-gradient(180deg,
      #16A0C8 0%,
      #128EB6 10%,
      #0F7AA3 20%,
      #0C668E 31%,
      #0A5478 42%,
      #084563 53%,
      #063850 64%,
      #052D42 76%,
      #042337 88%,
      #021A29 100%);
}
.bg-fx canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.55}
/* 流星单独一层：星链要柔（.55），流星要看得见（.92），放一起只能二选一 */
.bg-fx #mtCanvas{opacity:.92}
.bg-fx::before{ /* 氛围光：只补顶部两角的色温，不碰内容区 —— 压暗罩已经在上层了，
                   这里再加中部光晕会把刚压下去的对比度重新拉亮 */
  content:"";position:absolute;inset:-10% -10% -10% -10%;
  background:
    radial-gradient(58rem 30rem at 8% -18%, rgba(70,226,246,.14), transparent 78%),
    radial-gradient(52rem 30rem at 100% -20%, rgba(40,172,216,.12), transparent 80%);
  filter:blur(.5px);
}
.bg-fx::after{ /* 电路网格 + 顶部渐隐 */
  content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(132,180,255,.062) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,180,255,.062) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
          mask-image:radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
/* 噪点：极低透明度，压住大面积纯色的"塑料感" */
body::after{
  content:"";position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

/* ==========================================================================
   顶栏 / 导航
   ========================================================================== */
.topbar{
  position:sticky;top:0;z-index:60;
  /* 顶栏底色带青：叠在星云最亮的顶部，用中性深蓝黑会割出一条生硬的横条 */
  background:linear-gradient(180deg, rgba(3,24,40,.90), rgba(4,32,52,.74));
  -webkit-backdrop-filter:blur(16px) saturate(150%);
          backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid var(--line);
}
/* 顶栏下沿的光带：缓慢横向流动，代替死板的分割线 */
.topbar::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,224,255,.65),rgba(139,92,246,.55),transparent);
  background-size:220% 100%;
  animation:topline 9s linear infinite;
}
@keyframes topline{from{background-position:0% 0}to{background-position:220% 0}}

.topbar-inner{display:flex;align-items:center;gap:16px;height:62px;flex-wrap:nowrap}
/* 顶栏与正文同一栅格（1180）：之前为了让 11 个导航项单行排开，顶栏单独放宽到 1560，
   结果品牌被推到屏幕边缘、导航比下方内容左出 100 多 px，看着没对齐。
   2026-11-10 导航收成「XX 中心」下拉后顶级项只剩 5~9 个，1180 足够单行放下，顶栏回归正文宽度。 */
.topbar .wrap{max-width:1180px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:17px;color:#F2F8FF;letter-spacing:.01em;
  transition:filter .25s}
.brand:hover{filter:drop-shadow(0 0 12px rgba(34,224,255,.55))}
.brand img{filter:drop-shadow(0 0 8px rgba(255,122,47,.45))}
.brand em{font-style:normal;color:var(--orange);font-weight:800;margin-left:2px;
  text-shadow:0 0 18px rgba(255,122,47,.45)}
/* 2026-11-10 品牌更名「机智小童闯关训练营」：机智小童走金黄色，闯关训练营沿用橙色强调
   品牌从 6 字变 9 字，窄屏（~900px）会被压到折行、账号区也被挤成「管…」。
   这里锁死品牌与账号区不被压缩，余量全部让给 .nav 横向滚动。 */
.brand b{font-weight:800;color:#FFC93C;text-shadow:0 0 20px rgba(255,201,60,.45)}
.brand,.userbox{flex-shrink:0}
.brand span{white-space:nowrap}

/* 2026-11-10 用户要求「菜单之间间距小一点」：gap 6→4、左右内边距 12→9，
   项间空档从 30px 收到 22px。再紧就该看不出分组了，所以档位上也只跟着小幅递减。 */
.nav{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:16.5px;position:relative}
.nav::-webkit-scrollbar{display:none}
.nav a{
  position:relative;color:var(--muted);font-weight:500;padding:8px 10px;border-radius:9px;
  white-space:nowrap;flex-shrink:0;transition:color .18s,background .18s;
}
.nav a:hover{color:#F2F8FF;background:rgba(34,224,255,.07)}
.nav a.on{
  color:#9BE8FF;font-weight:700;
  background:rgba(34,224,255,.10);
  box-shadow:inset 0 0 0 1px rgba(34,224,255,.26);
  text-shadow:0 0 16px rgba(34,224,255,.45);
}
/* 游标：由 tech.js 跟随当前/悬停项滑动，JS 失效时下面的 .on 下划线兜底 */
.nav-ink{
  position:absolute;bottom:0;left:0;height:2px;width:0;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--c-cyan),transparent);
  box-shadow:0 0 14px rgba(34,224,255,.85);
  opacity:0;pointer-events:none;
  transition:transform .34s var(--ease),width .34s var(--ease),opacity .2s;
}
.nav a.on::after{
  content:"";position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);
  width:60%;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,rgba(34,224,255,.7),transparent);
}

/* 「我的创作」下拉：三个创作入口（图形化 / Python / C++）收进一个菜单。
   导航因此回到 10 项以内，所有标签都能完整显示在横栏，不再需要「更多」兜底。
   面板由 tech.js 挪到 body 上、fixed 定位 —— 导航是 overflow-x:auto，留在里面会被裁。 */
.nav-drop{position:relative;display:flex;flex-shrink:0}
.nav-drop-btn{display:inline-flex;align-items:center}
.nav-drop-btn .cv{display:inline-block;font-size:10.5px;line-height:1;margin-left:6px;opacity:.55;
  transform:translateY(1px);transition:transform .2s var(--ease),opacity .2s}
.nav-drop-btn:hover .cv{opacity:1}
.nav-drop-btn[aria-expanded="true"]{color:#F2F8FF;background:rgba(34,224,255,.07)}
.nav-drop-btn[aria-expanded="true"] .cv{transform:rotate(180deg);opacity:1}

.nav-menu{
  /* 位置由 tech.js 按按钮位置算（挂 body、文档坐标）。
     不能用 fixed —— 顶栏有 backdrop-filter，会把 fixed 的包含块变成顶栏本身，面板一出去就被吞；
     也不能留在 .nav 里用 absolute —— 展开时改 overflow 会把导航的 scrollLeft 归零、按钮跳位。 */
  position:absolute;z-index:120;width:254px;padding:7px;border-radius:15px;
  border:1px solid rgba(122,170,255,.26);
  background:rgba(19,38,74,.97);
  box-shadow:0 28px 62px -30px rgba(2,8,22,.95),0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter:blur(14px) saturate(1.1);
  /* 不要用 fill-mode:both —— 面板从 display:none 切回来时，浏览器可能不启动动画，
     both 会把元素钉在第一帧（opacity:0），面板就"在但看不见"。无 fill 时默认态即终态。 */
  animation:nmIn .17s var(--ease);
}
@keyframes nmIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.nav-menu-h{padding:4px 10px 7px;font:700 10px var(--mono);letter-spacing:.16em;color:#8296AF;text-transform:uppercase}
.nav-menu a{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;
  white-space:normal;box-shadow:none;
}
.nav-menu a .ic{
  flex:none;width:28px;height:28px;display:grid;place-items:center;border-radius:9px;
  background:rgba(34,224,255,.09);font-size:15px;line-height:1;
}
.nav-menu a .tx{display:flex;flex-direction:column;gap:1px;min-width:0}
.nav-menu a .tx b{font-size:14.3px;font-weight:600;color:var(--ink);letter-spacing:.01em}
.nav-menu a .tx i{font-style:normal;font-size:11.5px;color:#7E90A8;white-space:nowrap}
.nav-menu a .cur{
  margin-left:auto;flex:none;font-size:10px;font-weight:700;color:#7DEBFF;
  padding:2px 7px;border-radius:99px;background:rgba(34,224,255,.14);
}
.nav-menu a:hover{background:rgba(34,224,255,.09)}
.nav-menu a:hover .tx b{color:#EAF2FF}
.nav-menu a.on{background:rgba(34,224,255,.13);box-shadow:none}
.nav-menu a.on .tx b{color:#9BE8FF}
.nav-menu a.on .ic{background:rgba(34,224,255,.16)}
.nav.nav-drop-open{-webkit-mask-image:none;mask-image:none}

.userbox{display:flex;align-items:center;gap:10px}
.u-name{font-weight:600;color:var(--navy);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid transparent;border-radius:11px;padding:10px 20px;
  font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;letter-spacing:.01em;
  position:relative;overflow:hidden;white-space:nowrap;
  transition:transform .16s var(--ease),box-shadow .22s,background .2s,color .2s,border-color .2s;
}
.btn:active{transform:translateY(1px) scale(.997)}
.btn-sm{padding:7px 14px;font-size:13.5px;border-radius:9px}
/* 表格里的操作列：一排按钮不换行，间距收紧（学生管理 / 作业明细等） */
.tbl td.ops{white-space:nowrap}
.tbl td.ops .btn{padding:5px 10px;font-size:12.5px;border-radius:8px;margin:0 5px 0 0}
.tbl td.ops .btn:last-child{margin-right:0}
/* 日期、手机号这类短字段：宁可占满列宽也别折成两行，折一行整行高就翻倍 */
.nowrap{white-space:nowrap}
.btn-primary{
  background:linear-gradient(135deg,#4BEBFF 0%,#2BB6FF 52%,#3B82F6 100%);
  color:#02121C;
  box-shadow:0 10px 26px -14px rgba(34,224,255,.95), inset 0 1px 0 rgba(255,255,255,.55);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 34px -12px rgba(34,224,255,1), inset 0 1px 0 rgba(255,255,255,.7);
}
/* 掠过的高光，只在 hover 出现一次 */
.btn-primary::after{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent);
  transform:skewX(-18deg);opacity:0;
}
.btn-primary:hover::after{animation:sheen .75s var(--ease) forwards}
@keyframes sheen{0%{left:-60%;opacity:0}18%{opacity:1}100%{left:120%;opacity:0}}

.btn-ghost{background:rgba(255,255,255,.035);border-color:var(--line);color:var(--navy)}
.btn-ghost:hover{border-color:rgba(34,224,255,.42);color:#fff;background:rgba(34,224,255,.08);
  box-shadow:0 0 22px -10px rgba(34,224,255,.75)}
.btn-block{width:100%}
.btn-danger{color:#FF9A96;border-color:rgba(255,107,107,.38);background:rgba(255,107,107,.08)}
.btn-danger:hover{border-color:rgba(255,107,107,.7);color:#fff;background:rgba(255,107,107,.85);
  box-shadow:0 0 24px -10px rgba(255,107,107,.9)}
.btn[disabled]{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}

/* ==========================================================================
   卡片 / 通用
   ========================================================================== */
.card{
  position:relative;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  transition:border-color .28s,box-shadow .28s,transform .28s var(--ease);
}
/* 跟随鼠标的青色聚光（tech.js 写入 --mx/--my，纯 CSS 兜底在左上） */
.card::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(320px circle at var(--mx,50%) var(--my,0%), rgba(34,224,255,.10), transparent 62%);
  opacity:0;transition:opacity .3s;
}
.card:hover{border-color:rgba(34,224,255,.30);box-shadow:var(--shadow), 0 0 40px -22px rgba(34,224,255,.65)}
.card:hover::before{opacity:1}

.muted{color:var(--muted)}
.chip{display:inline-block;background:rgba(255,255,255,.05);color:var(--muted);border:1px solid var(--line);
  border-radius:999px;padding:2px 10px;font-size:12.5px}
.chip-sm{padding:1px 7px;font-size:11.5px;background:rgba(255,122,47,.14);color:#FFB07A;
  border:1px solid rgba(255,122,47,.32)}
.lv{display:inline-block;border-radius:6px;padding:1px 8px;font-size:12px;font-weight:700;
  border:1px solid transparent}
.lv-1{background:rgba(52,211,153,.14);color:#5BE7B4;border-color:rgba(52,211,153,.30)}
.lv-2{background:rgba(251,191,36,.14);color:#FFD166;border-color:rgba(251,191,36,.30)}
.lv-3{background:rgba(255,107,107,.14);color:#FF9A96;border-color:rgba(255,107,107,.32)}
.dot-ok{color:var(--ok);font-weight:800;text-shadow:0 0 12px rgba(52,211,153,.7)}
.dot-idle{display:inline-block;width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.14)}
.pill{
  display:inline-flex;align-items:center;gap:8px;background:rgba(34,224,255,.09);
  color:#9BE8FF;border:1px solid rgba(34,224,255,.30);border-radius:999px;
  padding:5px 14px 5px 12px;font-size:12.5px;font-weight:600;letter-spacing:.10em;
  font-family:var(--mono);
}
.pill::before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--c-cyan);
  box-shadow:0 0 10px var(--c-cyan);animation:pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.75)}}

/* ==========================================================================
   首页 hero（HUD 边角 + 电路纹理 + 扫描线）
   ========================================================================== */
.hero{
  position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;
  background:
    radial-gradient(760px 420px at 6% -22%, rgba(34,224,255,.17), transparent 62%),
    radial-gradient(680px 400px at 104% 6%, rgba(59,130,246,.17), transparent 64%),
    linear-gradient(158deg, rgba(22,39,68,.94), rgba(11,23,46,.94));
  border:1px solid rgba(34,224,255,.18);
  border-radius:24px;padding:46px 46px 42px;margin-bottom:34px;overflow:hidden;
  box-shadow:var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.07);
}
/* 电路纹理 */
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(34,224,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,224,255,.07) 1px, transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:radial-gradient(85% 70% at 78% 40%, #000, transparent 72%);
          mask-image:radial-gradient(85% 70% at 78% 40%, #000, transparent 72%);
  opacity:.7;
}
/* HUD 四角括号 */
.hero::after{
  content:"";position:absolute;inset:13px;border-radius:18px;pointer-events:none;opacity:.5;
  background:
    linear-gradient(var(--c-cyan),var(--c-cyan)) left top/16px 1px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) left top/1px 16px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) right top/16px 1px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) right top/1px 16px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) left bottom/16px 1px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) left bottom/1px 16px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) right bottom/16px 1px no-repeat,
    linear-gradient(var(--c-cyan),var(--c-cyan)) right bottom/1px 16px no-repeat;
}
.hero-txt{position:relative;z-index:2}
.hero h1{
  font-size:clamp(28px,3.4vw,42px);line-height:1.28;margin:16px 0 14px;letter-spacing:-.02em;
  font-weight:800;
  background:linear-gradient(102deg,#FFFFFF 6%,#CDEBFF 46%,#59DCFF 92%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-wrap:balance;
}
.hero p{color:#9FB2CB;font-size:15.5px;max-width:520px;margin:0 0 24px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-points{display:flex;gap:20px;list-style:none;padding:22px 0 0;margin:0;color:var(--muted);
  font-size:13.5px;flex-wrap:wrap;border-top:1px dashed rgba(122,170,255,.18);margin-top:24px}
.hero-points li::before{content:"✓";color:var(--c-cyan);font-weight:800;margin-right:6px;
  text-shadow:0 0 10px rgba(34,224,255,.8)}
.hero-art{position:relative;z-index:2}
/* 课堂画面装进"终端窗口"：深色窗框 + 扫描光带 + 立体微倾，避免白底插画直接压在深色背景上 */
.hud-screen{
  position:relative;border-radius:18px;overflow:hidden;
  border:1px solid rgba(34,224,255,.30);background:#122C58;
  box-shadow:0 40px 70px -52px #000, 0 0 70px -34px rgba(34,224,255,.85);
  transform:perspective(1300px) rotateY(-3.5deg) rotateX(1.5deg);
  transition:transform .55s var(--ease),box-shadow .55s;
}
.hero-art:hover .hud-screen{
  transform:perspective(1300px) rotateY(0) rotateX(0);
  box-shadow:0 46px 80px -52px #000, 0 0 90px -30px rgba(34,224,255,1);
}
.hud-bar{
  display:flex;align-items:center;justify-content:space-between;padding:9px 14px;
  background:linear-gradient(90deg, rgba(34,224,255,.12), rgba(59,130,246,.06));
  border-bottom:1px solid rgba(122,170,255,.18);
}
.hud-dots i{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.16);display:inline-block;margin-right:6px}
.hud-dots i:nth-child(1){background:#FF6B6B}
.hud-dots i:nth-child(2){background:#FBBF24}
.hud-dots i:nth-child(3){background:#34D399}
.hud-tag{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;color:#7DEBFF}
.hud-screen img{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;object-position:center 48%;
  /* 原图是白底插画，压一点亮度和色温，让它像"屏幕里的画面"而不是一张白纸贴在页面上 */
  filter:brightness(.90) saturate(1.05) contrast(1.03);
  transition:filter .5s var(--ease)}
.hero-art:hover .hud-screen img{filter:brightness(.97) saturate(1.08) contrast(1.02)}
.hud-scan{
  position:absolute;left:0;right:0;height:42%;top:-45%;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(34,224,255,.16),transparent);
  animation:scan 6.5s linear infinite;
}
/* 屏幕暗角：把插画的亮底压进窗框里，避免大面积白色跳出来 */
.hud-screen::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg, rgba(6,14,32,.30), transparent 26%, transparent 74%, rgba(6,14,32,.42));
  box-shadow:inset 0 0 70px rgba(5,12,28,.55);
}
@keyframes scan{0%{top:-45%}100%{top:105%}}

.hud-card{
  position:absolute;display:flex;flex-direction:column;gap:1px;padding:8px 13px;border-radius:11px;
  background:rgba(12,26,52,.92);border:1px solid rgba(34,224,255,.32);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 20px 40px -24px #000, 0 0 30px -18px rgba(34,224,255,.9);
  font-family:var(--mono);animation:float 5.5s ease-in-out infinite;
}
.hud-card b{font-size:15px;color:#7DEBFF;line-height:1.3}
.hud-card span{font-size:10.5px;letter-spacing:.10em;color:#8598B4}
.hud-a{left:-20px;bottom:28px}
.hud-b{right:-16px;top:38px;animation-delay:1.1s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}

.section{margin-bottom:34px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:16px}
.section-head h2{
  font-size:20px;margin:0;color:#EFF6FF;font-weight:800;letter-spacing:.01em;
  position:relative;padding-left:14px;
}
.section-head h2::before{
  content:"";position:absolute;left:0;top:.22em;bottom:.22em;width:3px;border-radius:3px;
  background:linear-gradient(180deg,var(--c-cyan),rgba(59,130,246,.35));
  box-shadow:0 0 12px rgba(34,224,255,.7);
}
.more{color:#7DEBFF;font-weight:600;font-size:14px;transition:.2s}
.more:hover{color:#fff;text-shadow:0 0 14px rgba(34,224,255,.8)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

.problem-card{display:block;transition:transform .28s var(--ease),border-color .28s,box-shadow .28s}
.problem-card:hover{
  transform:translateY(-4px);border-color:rgba(34,224,255,.42);
  box-shadow:0 26px 50px -34px #000, 0 0 46px -22px rgba(34,224,255,.8);
}
.pc-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.pc-score{color:#FFB07A;font-size:12.5px;font-family:var(--mono);font-variant-numeric:tabular-nums}
.problem-card h3{margin:0 0 6px;font-size:16.5px;color:#EFF6FF;font-weight:700;letter-spacing:.01em}
.pc-tags{margin:0;color:var(--muted);font-size:13px}

.band{
  background:
    radial-gradient(700px 260px at 88% -10%, rgba(34,224,255,.16), transparent 62%),
    radial-gradient(540px 260px at 4% 116%, rgba(255,122,47,.12), transparent 66%),
    linear-gradient(120deg, rgba(19,34,60,.94), rgba(12,25,50,.94));
  border:1px solid rgba(34,224,255,.18);border-radius:20px;padding:0;overflow:hidden;
  box-shadow:var(--shadow);
}
.band-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 34px}
.band h2{margin:0 0 6px;font-size:20px;color:#EFF6FF;font-weight:800}
.band p{margin:0;color:#93A6C0}

/* ==========================================================================
   页头
   ========================================================================== */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px;
  flex-wrap:wrap;position:relative;padding-bottom:16px;border-bottom:1px solid var(--line)}
.page-head::after{ /* 标题区下沿的一小段高亮，别把整条线都点亮 */
  content:"";position:absolute;left:0;bottom:-1px;width:96px;height:1px;
  background:linear-gradient(90deg,var(--c-cyan),transparent);
  box-shadow:0 0 12px rgba(34,224,255,.8);
}
.page-head h1{
  font-size:clamp(21px,2.4vw,27px);margin:0 0 4px;font-weight:800;letter-spacing:-.01em;
  background:linear-gradient(100deg,#FFFFFF,#BFE6FF 70%,#63DDFF);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.page-head .sub{margin:0;color:var(--muted);font-size:14px}
.head-actions{display:flex;gap:10px}

/* 页内分组按钮（成长报告的两个入口：档案 / 生成新报告）
   放在「学生管理」页头，替代原来占顶部导航的两格 */
.gtabs{
  display:inline-flex;align-items:center;gap:3px;padding:3px;
  border:1px solid var(--line);border-radius:12px;
  background:rgba(255,255,255,.035);
}
.gtabs a{
  display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:9px;
  font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap;
  transition:color .16s,background .16s,box-shadow .2s;
}
.gtabs a:hover{color:#EAF2FF;background:rgba(34,224,255,.09)}
.gtabs a.hot{color:#7DEBFF}
.gtabs a.hot:hover{background:rgba(34,224,255,.13)}
.gtabs a.on{
  color:#04121F;font-weight:800;
  background:linear-gradient(135deg,var(--c-cyan),var(--c-blue));
  box-shadow:0 10px 22px -14px rgba(34,224,255,.95);
}
@media (max-width:640px){
  .gtabs{width:100%;justify-content:center}
  .gtabs a{flex:1;justify-content:center;padding:7px 8px;font-size:12.5px}
}
.filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
input:not([type]),input[type=text],input[type=password],input[type=number],input[type=search],
input[type=email],input[type=tel],input[type=url],input[type=date],input[type=time],
input[type=datetime-local],input[type=month],input[type=week],select,textarea{
  height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-size:14px;
  /* 底色用"半透明深"而不是"半透明白"：星云背景顶部很亮，白 4.5% 在亮处等于没底，
     输入框会整块消失、placeholder 也糊掉。深色底在浅深两种背景上都成立。 */
  font-family:inherit;color:var(--navy);background:rgba(5,20,34,.38);outline:none;
  transition:border-color .16s,box-shadow .16s,background .16s;
  /* 日期/时间控件跟随深色：原生弹层与图标不再白底 */
  color-scheme:dark;
}
textarea{height:auto;padding:10px 12px;line-height:1.65}
input::placeholder,textarea::placeholder{color:#8FA6C0}
/* 日期控件右侧的原生小图标在深色下默认发黑，反相一下 */
input[type=date]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=month]::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.6);opacity:.55;cursor:pointer;transition:opacity .16s;
}
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover,
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover,
input[type=month]::-webkit-calendar-picker-indicator:hover{opacity:1}
input:not([type]):focus,input[type=text]:focus,input[type=password]:focus,input[type=number]:focus,input[type=search]:focus,
input[type=email]:focus,input[type=tel]:focus,input[type=url]:focus,
input[type=date]:focus,input[type=time]:focus,input[type=datetime-local]:focus,input[type=month]:focus,
select:focus,textarea:focus{
  border-color:rgba(34,224,255,.55);background:rgba(34,224,255,.05);
  box-shadow:0 0 0 3px rgba(34,224,255,.13), 0 0 22px -12px rgba(34,224,255,.9);
}
select option{background:#13305C;color:var(--navy)}
/* 原生勾选 / 单选：跟随主题，别在深底上留白方块 */
input[type=checkbox],input[type=radio]{accent-color:#22E0FF;cursor:pointer}
/* 文件选择：浏览器默认按钮是浅灰实心，单独压成描边按钮 */
input[type=file]{font-size:13px;color:var(--muted)}
input[type=file]::file-selector-button{
  -webkit-appearance:none;appearance:none;   /* 不清掉原生的 3D 边，外面会多一圈白描边 */
  margin-right:10px;padding:6px 12px;border:1px solid var(--line);border-radius:8px;
  background:rgba(255,255,255,.06);color:var(--navy);font-family:inherit;font-size:13px;
  font-weight:600;cursor:pointer;transition:background .16s,border-color .16s,color .16s;
}
input[type=file]::file-selector-button:hover{
  background:rgba(34,224,255,.13);border-color:rgba(34,224,255,.45);color:#fff;
}
.filter input[type=text]{width:230px}
/* 进度槽：页面里写死 #eef1f5 的槽在深色底上会"消失"，统一给一条可见的暗槽 */
.hw-bar{background:rgba(255,255,255,.10) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.hw-bar>i{background:linear-gradient(90deg,#22E0FF,#34D399) !important;box-shadow:0 0 10px -2px rgba(34,224,255,.6)}

/* ==========================================================================
   表格
   ========================================================================== */
.table-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);overflow:hidden;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.tbl th{
  text-align:left;padding:12px 16px;background:rgba(255,255,255,.032);color:#8FA3BF;
  font-weight:600;font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  font-family:var(--mono);border-bottom:1px solid var(--line);white-space:nowrap;
}
/* 表头统一走面板色：个别老页面给 thead 写了暖白底，在深色下会变成一块脏砖红 */
.tbl thead th,.tbl thead tr,.hw-tbl th{background:rgba(255,255,255,.032) !important}
.tbl td{padding:12px 16px;border-bottom:1px solid rgba(122,170,255,.10);color:var(--ink);
  line-height:1.55;vertical-align:middle}
.tbl tr:last-child td{border-bottom:none}
.tbl tbody tr{transition:background .16s}
.tbl tbody tr:hover{background:rgba(34,224,255,.055)}
.tbl tr.me{background:rgba(255,122,47,.10)}
.p-title{font-weight:600;color:#DCEBFF;transition:color .16s}
.p-title:hover{color:#7DEBFF}
/* 整行可点：把标题链接的点击热区铺满整行，点行内任意位置都能进题目
   （保留真链接，中键/右键新窗口打开、键盘 Tab 聚焦照常可用） */
.tbl tr.row-link{position:relative;cursor:pointer}
.tbl tr.row-link:hover{background:rgba(34,224,255,.075)}
.tbl tr.row-link .p-title::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}
.tbl tr.row-link .p-title:focus-visible{outline:2px solid var(--c-cyan);outline-offset:3px;border-radius:4px}
/* 行内自带操作控件要浮在热区之上，否则点不到 */
.tbl tr.row-link td .btn,.tbl tr.row-link td button,.tbl tr.row-link td select,.tbl tr.row-link td input{position:relative;z-index:2}
/* 非表格的题目条（课时题包里的推荐 / 搜索结果）同样整条可点 */
.prob-row{position:relative;cursor:pointer;border-radius:10px}
.prob-row:hover{box-shadow:0 0 0 1px rgba(34,224,255,.38)}
.prob-row .prob-link::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}
.prob-row .btn{position:relative;z-index:2}
.empty{text-align:center;color:var(--muted);padding:34px 0}
.pager{display:flex;gap:8px;justify-content:center;margin-top:22px;align-items:center}
.pager a{
  min-width:34px;height:34px;display:flex;align-items:center;justify-content:center;
  border-radius:9px;background:rgba(255,255,255,.04);color:var(--muted);
  border:1px solid var(--line);font-size:14px;transition:.18s;
}
.pager a:hover{color:#fff;border-color:rgba(34,224,255,.42);background:rgba(34,224,255,.08)}
.pager a.on{
  background:linear-gradient(135deg,#4BEBFF,#3B82F6);color:#02121C;font-weight:700;border-color:transparent;
  box-shadow:0 8px 20px -12px rgba(34,224,255,.95);
}
.rank-no{display:inline-flex;width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.06);
  align-items:center;justify-content:center;font-weight:700;font-size:13px;color:var(--muted);
  font-family:var(--mono)}
.rank-no.r1{background:rgba(255,195,69,.18);color:#FFD166;box-shadow:0 0 16px -6px rgba(255,209,102,.8)}
.rank-no.r2{background:rgba(203,213,225,.16);color:#D8E3F2}
.rank-no.r3{background:rgba(255,122,47,.18);color:#FFB07A}

/* ==========================================================================
   做题页
   ========================================================================== */
.crumb{color:var(--muted);font-size:13.5px;margin-bottom:14px;font-family:var(--mono);letter-spacing:.02em}
.crumb a:hover{color:#7DEBFF}
.solve{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:18px;align-items:start}
.stmt{max-height:calc(100vh - 150px);overflow:auto}
.stmt-head h1{font-size:23px;margin:0 0 10px;color:#F2F8FF;font-weight:800;letter-spacing:-.01em}
.stmt-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.prose{color:#B9C9DE;font-size:14.8px}
.stmt-h{
  font-size:15px;margin:24px 0 8px;color:#E6F2FF;font-weight:700;
  display:flex;align-items:center;gap:8px;
}
.stmt-h::before{content:"";width:3px;height:14px;border-radius:2px;background:var(--c-cyan);
  box-shadow:0 0 10px rgba(34,224,255,.8)}
.samples{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.sample-h{font-size:12px;color:var(--muted);margin-bottom:5px;font-family:var(--mono);
  letter-spacing:.08em;text-transform:uppercase}
.sample pre{
  margin:0;background:#0D2350;border:1px solid var(--line);border-left:2px solid rgba(34,224,255,.55);
  border-radius:10px;padding:11px 13px;font-size:13.5px;white-space:pre-wrap;color:#CFE6FF;
  font-family:var(--mono);
}
.hint{margin-top:16px;background:rgba(251,191,36,.07);border:1px solid rgba(251,191,36,.26);
  border-radius:10px;padding:11px 14px}
.hint summary{cursor:pointer;color:#FFD166;font-weight:600;font-size:14px}
.mini-subs{list-style:none;padding:0;margin:6px 0 0;font-size:13.5px}
.mini-subs li{display:flex;gap:12px;align-items:center;padding:6px 0;border-bottom:1px dashed rgba(122,170,255,.14)}
.st{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:600;
  border:1px solid transparent}
.st-ok{background:rgba(52,211,153,.13);color:#5BE7B4;border-color:rgba(52,211,153,.3)}
.st-bad{background:rgba(255,107,107,.13);color:#FF9A96;border-color:rgba(255,107,107,.32)}
.st-warn{background:rgba(251,191,36,.13);color:#FFD166;border-color:rgba(251,191,36,.3)}
.st-wait{background:rgba(255,255,255,.06);color:var(--muted);border-color:var(--line)}

.editor-col{display:flex;flex-direction:column;gap:14px;position:sticky;top:78px}
.editor-card{padding:0;overflow:hidden}
.ed-head{display:flex;justify-content:space-between;align-items:center;padding:11px 16px;
  border-bottom:1px solid var(--line);font-size:13px;background:rgba(255,255,255,.02)}
.lang{font-weight:700;color:#7DEBFF;font-family:var(--mono);letter-spacing:.08em;font-size:12.5px}
.ed-head select{
  height:auto;background:rgba(34,224,255,.08);border:1px solid rgba(34,224,255,.28);
  color:#9BE8FF;border-radius:7px;padding:3px 6px;font-size:12px;font-family:var(--mono);
}
.ed-head select:hover{border-color:rgba(34,224,255,.55)}
#code{
  width:100%;height:330px;border:none;outline:none;padding:14px 16px;resize:vertical;
  font-family:var(--mono);font-size:13.5px;line-height:1.65;
  background:#0D1E42;color:#D6E8FF;tab-size:4;
}
.ed-actions{display:flex;gap:10px;padding:12px 16px;border-top:1px solid var(--line);background:rgba(255,255,255,.02)}
.result-card{padding:16px}
.res-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.res-detail{display:flex;flex-wrap:wrap;gap:8px}
.test-pill{border-radius:8px;padding:5px 10px;font-size:12.5px;font-weight:600;border:1px solid transparent}
.tp-ok{background:rgba(52,211,153,.13);color:#5BE7B4;border-color:rgba(52,211,153,.3)}
.tp-bad{background:rgba(255,107,107,.13);color:#FF9A96;border-color:rgba(255,107,107,.32)}
.tp-warn{background:rgba(251,191,36,.13);color:#FFD166;border-color:rgba(251,191,36,.3)}

/* ==========================================================================
   表单 / 登录
   ========================================================================== */
.auth-wrap{display:flex;justify-content:center;padding:54px 0}
/* 登录页：左侧品牌叙事 + 右侧表单，桌面端两栏，窄屏只留表单 */
.auth-split{
  display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;
  max-width:1040px;margin:0 auto;padding:56px 0 64px;
}
.auth-brand h2{
  font-size:clamp(26px,3.1vw,38px);line-height:1.26;margin:18px 0 16px;font-weight:800;letter-spacing:-.02em;
  background:linear-gradient(102deg,#FFFFFF 8%,#CDEBFF 48%,#59DCFF 94%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.auth-brand p{color:#9FB2CB;font-size:15px;max-width:430px;margin:0 0 24px}
.auth-points{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.auth-points li{display:flex;align-items:center;gap:10px;color:#B9C9DE;font-size:14.5px}
.auth-points li::before{
  content:"";width:6px;height:6px;flex:none;border-radius:2px;background:var(--c-cyan);
  box-shadow:0 0 12px rgba(34,224,255,.85);transform:rotate(45deg);
}
@media (max-width:860px){
  .auth-split{grid-template-columns:1fr;gap:22px;padding:26px 0 40px;max-width:460px}
  .auth-brand{display:none}
}
.auth-card{width:100%;max-width:430px;overflow:hidden}
.auth-card::after{ /* 顶部一道青色光带，替代单调的白卡 */
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,224,255,.85),rgba(139,92,246,.6),transparent);
}
.auth-card.center{text-align:center}
.auth-card h1{font-size:23px;margin:0 0 6px;color:#F2F8FF;font-weight:800;letter-spacing:-.01em}
.auth-card .sub{color:var(--muted);font-size:14px;margin:0 0 20px}
.form{display:flex;flex-direction:column;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;color:#A9BDD6;font-weight:600}
.form .opt{color:var(--muted);font-weight:400}
.form-tip{text-align:center;color:var(--muted);font-size:13.5px;margin:6px 0 0}
.form-tip a{color:#7DEBFF;font-weight:600}

/* ==========================================================================
   Scratch / Python / C++ 创作页共用外壳
   ========================================================================== */
.scratch-shell{display:flex;flex-direction:column;background:var(--surface-solid);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;height:calc(100vh - 170px);min-height:800px}
.scratch-shell iframe{width:100%;height:100%;flex:1 1 0;min-height:0;border:0;display:block}
.scratch-tip{margin-top:12px;font-size:13px}
.scratch-shell.fs{position:fixed;inset:0;z-index:999;border-radius:0;height:100vh;min-height:0}
/* 全屏创作时把站点顶栏整体让位。
   .wrap 是 position:relative;z-index:1 的层叠上下文，外壳再写 z-index:999 也只在 .wrap 里比大小，
   顶栏是 .wrap 之外的 sticky z-index:60 —— 层级上永远压在上面，把编辑器那条菜单（保存作品/连接硬件/机智板）挡掉。
   与其去调层级，不如全屏时直接隐藏：全屏就该只剩创作区，退出用 Esc 或编辑器里的 ⤡。 */
body.is-fs-editor .topbar{display:none}
body.is-fs-editor .foot{display:none}
body.is-fs-editor .main{padding-top:0;padding-bottom:0;min-height:0}

/* 全屏创作时不再额外占一条横条：按钮由 app.js 注入到编辑器自己的紫色顶栏
   （「连接硬件」左边）。下面这条只在注入失败（编辑器顶栏改版）时兜底出现，
   保证学生任何情况下都有保存入口。 */
.scratch-shell .fs-tools{display:none}
.scratch-shell.fs.fs-fallback .fs-tools{display:flex;align-items:center;gap:8px;flex:none;height:44px;
  padding:0 12px;background:var(--surface-2);border-bottom:1px solid var(--line);position:relative;z-index:10}
.fs-tools .fs-tag{font-size:13.5px;font-weight:700;color:#A9BDD6;letter-spacing:.2px;white-space:nowrap}
.fs-tools .fs-sp{flex:1 1 auto;min-width:8px}
.fs-tools .btn{flex:none;white-space:nowrap}
@media (max-width:720px){
  .fs-tools .fs-tag{display:none}
  .scratch-shell.fs.fs-fallback .fs-tools{padding:0 8px;gap:6px}
  .fs-tools .btn{padding:6px 9px;font-size:12.5px}
}

/* ==========================================================================
   布置作业 · 题目多选器
   ========================================================================== */
.pk{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.025)}
.pk-bar{display:flex;gap:8px;padding:8px;background:rgba(255,255,255,.03);border-bottom:1px solid var(--line)}
.pk-bar input{flex:1;min-width:0;height:34px;border:1px solid var(--line);border-radius:8px;
  padding:0 10px;font-size:13px;outline:none;background:rgba(255,255,255,.04);color:var(--navy)}
.pk-bar input:focus{border-color:rgba(34,224,255,.55);box-shadow:0 0 0 3px rgba(34,224,255,.12)}
.pk-bar select{height:34px;border:1px solid var(--line);border-radius:8px;padding:0 6px;font-size:13px;
  background:#13305C;color:var(--navy);outline:none}
.pk-list{max-height:210px;overflow:auto}
.pk-item{display:flex;align-items:center;gap:8px;padding:7px 12px;cursor:pointer;font-size:13.5px;line-height:1.5;
  transition:background .14s}
.pk-item:hover{background:rgba(34,224,255,.06)}
.pk-item input{width:15px;height:15px;flex:none;margin:0;accent-color:#22E0FF}
.pk-item .pk-lv{flex:none}
.pk-item .pk-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-sel{padding:8px 12px;background:rgba(255,122,47,.08);border-top:1px solid rgba(255,122,47,.22);
  font-size:12.5px;color:#FFB07A}
.pk-empty{padding:16px;text-align:center;color:var(--muted);font-size:13px}

/* 编译器报错详情块 */
.compile-block{margin-top:10px;text-align:left}
.compile-block .compile-tit{font-size:13px;font-weight:600;color:#FFB07A;margin-bottom:6px}
.compile-out{background:#0F2450;color:#FF9A96;border:1px solid rgba(255,107,107,.22);border-radius:10px;
  padding:12px 14px;font-family:var(--mono);font-size:12.5px;line-height:1.6;max-height:260px;
  overflow:auto;white-space:pre-wrap;word-break:break-word}

/* ==========================================================================
   底部
   ========================================================================== */
.foot{border-top:1px solid var(--line);background:rgba(6,13,30,.7);padding:22px 0;color:var(--muted);
  font-size:13px;position:relative}
.foot::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(34,224,255,.45),transparent)}
.foot-inner{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.foot-links a{margin-left:16px;transition:color .18s}
.foot-links a:hover{color:#7DEBFF}

/* ==========================================================================
   Toast
   ========================================================================== */
#toast{
  position:fixed;left:50%;top:22px;transform:translateX(-50%) translateY(-14px);
  background:rgba(12,22,38,.96);color:#EAF2FF;border:1px solid rgba(34,224,255,.35);
  padding:10px 18px;border-radius:11px;font-size:14px;opacity:0;pointer-events:none;
  transition:.22s;z-index:9999;box-shadow:0 18px 40px -24px #000, 0 0 30px -16px rgba(34,224,255,.8);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#toast.err{background:rgba(60,16,20,.96);border-color:rgba(255,107,107,.45);color:#FFD9D9}

/* ==========================================================================
   兼容老模板：作业主题色 / 选题器 chips
   ========================================================================== */
.hw-theme{display:inline-block;background:rgba(255,122,47,.13);color:#FFB07A;
  border:1px solid rgba(255,122,47,.30);border-radius:6px;padding:1px 7px;font-size:12px;font-weight:600;margin-right:6px}
.pk-item .pk-add{flex:none;padding:2px 12px;font-size:12.5px}
.pk-item .pk-add.pk-added{background:rgba(34,224,255,.12);color:#7DEBFF;border-color:rgba(34,224,255,.36)}
.pk-id{flex:none;color:#6E819C;font-size:12.5px;min-width:44px;font-family:var(--mono)}
.pk-sel{padding:10px 12px;border-top:1px solid var(--line);background:rgba(255,255,255,.025);line-height:1.9;font-size:13px}
.pk-cnt{color:#8FA3BF;margin-right:6px}
.pk-chip{display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.04);
  border:1px solid var(--line);border-radius:999px;padding:2px 6px 2px 10px;margin:2px 6px 2px 0;
  max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:#DCEBFF}
.pk-x{border:none;background:rgba(255,255,255,.08);color:#8FA3BF;width:18px;height:18px;border-radius:50%;
  cursor:pointer;font-size:13px;line-height:1;flex:none;transition:.15s}
.pk-x:hover{background:rgba(255,107,107,.25);color:#FF9A96}

/* 实时选题器：提示 / 标签 / 页脚 */
.pk-hint{padding:22px 14px;text-align:center;color:#6E819C;font-size:13px;line-height:1.9}
.pk-hint b{color:#7DEBFF;font-weight:600}
.pk-hint code{background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:4px;
  padding:1px 6px;font-size:12px;color:#B9C9DE;font-family:var(--mono)}
.pk-tags{flex:none;color:#6E819C;font-size:12px;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-foot{padding:9px 12px;text-align:center;color:#6E819C;font-size:12.5px;border-top:1px dashed var(--line)}

/* ==========================================================================
   入场动效：一次编排好的错峰上浮，而不是每块各动各的
   ========================================================================== */
@keyframes fxIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* 用 backwards 而不是 both：动画结束后回到元素自身样式，
   否则 fill-mode:both 会永久压住 .card:hover 的 transform */
.main > *{animation:fxIn .58s var(--ease) backwards}
.main > *:nth-child(2){animation-delay:.05s}
.main > *:nth-child(3){animation-delay:.10s}
.main > *:nth-child(4){animation-delay:.15s}
.main > *:nth-child(5){animation-delay:.20s}
.main > *:nth-child(6){animation-delay:.25s}
/* 滚动到才出现的区块（由 tech.js 打 .in） */
.rv{opacity:0;transform:translateY(18px)}
.rv.in{opacity:1;transform:none;transition:opacity .55s var(--ease),transform .55s var(--ease)}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width:1440px){
  .brand{font-size:16px}
}
@media (max-width:1200px){
  .brand{font-size:15px}
}
/* 导航放不下时可以横滑：右侧留一道渐隐，提示"后面还有"（tech.js 检测到溢出才加 .has-more） */
.nav.has-more{
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%);
          mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%);
}
/* 顶栏固定单行（2026-11-10 用户要求：不要两行）。
   原来是 flex-wrap:wrap，教师/校长/总部在 1920 以下会切成两行、顶栏变高。
   单行之后靠两件事腾地方：① 按档位收紧字号与内边距 ② 还放不下就横滑，右侧渐隐提示后面还有项（.has-more）。
   顶栏宽度与正文一致（1180），导航左端和下方内容对齐。
   教师 5 项、校长 7~8 项、总部 9 项、学生 9 项，在 1280 以上都能一屏到底。 */
@media (max-width:1920px){
  .topbar-inner{height:62px}
  :where(body.role-1,body.role-2,body.role-3,body.role-4) .nav{
    order:0;flex:1 1 auto;padding-bottom:0;margin-left:0;
  }
  /* 横滑容器会把 bottom:-6px 的下划线裁掉，靠 .on 的底色和描边足够 */
  :where(body.role-1,body.role-2,body.role-3,body.role-4) .nav a.on::after{display:none}
  .nav{font-size:15.6px;gap:3px}
  /* 字号放大后总部 9 项在这一档差 9px，内边距各收 1px 补回来，字号不动 */
  .nav a{padding:7px 7px}
  .nav-drop-btn .cv{margin-left:4px;font-size:9.5px}
}
@media (max-width:1500px){
  .topbar-inner{gap:8px}
  .nav{font-size:15px;gap:2px}
  .nav a{padding:6px 6px}
}
@media (max-width:1280px){
  .nav{font-size:14.2px;gap:2px}
  .nav a{padding:6px 5px}
}
/* 窄屏时顶栏那个「退出」按钮和账号菜单里的「退出登录」重复，收起来省 60px */
@media (max-width:1100px){
  .userbox > .btn-ghost{display:none}
}
@media (max-width:960px){
  .hero{grid-template-columns:1fr;padding:30px 24px;gap:24px}
  .hero-art{order:-1}
  .hero::after{inset:9px}
  .hud-screen{transform:none}
  .hud-a{left:6px;bottom:10px}
  .hud-b{right:6px;top:auto;bottom:10px}
  .grid-3{grid-template-columns:1fr}  .solve{grid-template-columns:1fr}
  .stmt{max-height:none}
  .editor-col{position:static}
  .samples{grid-template-columns:1fr}
  .nav{gap:2px;font-size:14px}
  .nav a{padding:6px 4px}
  .page-head{align-items:flex-start}
}
@media (max-width:640px){
  .wrap{padding:0 14px}
  .hero{padding:24px 18px}
  .hud-card{display:none}
  .band-inner{flex-direction:column;align-items:flex-start;padding:24px 20px}
  .foot-inner{flex-direction:column;gap:8px}
  .foot-links a{margin:0 14px 0 0}
}

/* ==========================================================================
   移动端：顶栏改两行（品牌+账号 / 导航横向滚动），避免导航被挤到消失
   ========================================================================== */
@media (max-width:760px){
  /* 手机宽度放不下「品牌 + 账号 + 8 个导航项」，这里回归两行：品牌/账号一行，导航独占一行横滑。
     单行只在 >760（桌面、平板、投影）生效。 */
  .topbar-inner{flex-wrap:wrap;height:auto;padding:9px 0 7px;gap:8px 12px}
  .brand{order:1;font-size:15px}
  .brand img{height:26px;width:auto}
  .userbox{order:2;margin-left:auto;gap:8px}
  /* margin-left 原本是 -9px，用来抵 flex gap；代价是第一项的底色块被左边缘裁掉 9px，
     字号放大后更显眼，改成 0 让高亮块完整，文字离边由 a 的 padding 保证 */
  .nav{order:3;flex:1 0 100%;margin-left:0;padding-bottom:2px;gap:4px}
  .nav a{padding:6px 10px;font-size:15px}
  .main{padding-top:30px}
  .u-btn .u-nm{max-width:64px}
}

/* ==========================================================================
   降级：尊重系统"减少动态效果"
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
  .main > *{animation:none}
  .rv{opacity:1;transform:none}
  .bg-fx canvas{display:none}
}

/* ==========================================================================
   说明：站点还有大量老模板把浅色底/深色字直接写在 style="" 里。
   这些由 tech.js 在运行时按亮度自动换算成深色主题的对应值（见 tech.js 的
   adaptInlineStyles），样式表里不写 !important 覆盖，避免与运行时改写互相打架。
   ========================================================================== */

/* ==========================================================================
   参考题解（题目级，仅教师可见）· 2026-11-13
   ========================================================================== */
.sol-card{margin-top:16px;border:1px solid rgba(34,224,255,.32);border-radius:12px;overflow:hidden;
  background:linear-gradient(180deg,rgba(34,224,255,.09),rgba(34,224,255,.01) 260px),var(--cream);
  box-shadow:0 10px 28px rgba(0,0,0,.28)}
.sol-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,rgba(34,224,255,.12),rgba(34,224,255,.03))}
.sol-tag{font-size:13px;font-weight:700;color:var(--c-cyan-2)}
.sol-lock{font-size:11px;border:1px solid rgba(255,122,47,.5);color:var(--orange-d);border-radius:999px;padding:1px 8px;line-height:1.6}
.sol-meta{font-size:12px;color:var(--muted)}
.sol-edit{margin-left:auto;font-size:12.5px;color:var(--c-cyan-2);text-decoration:none;
  border:1px solid var(--line);border-radius:8px;padding:3px 10px;white-space:nowrap}
.sol-edit:hover{background:rgba(34,224,255,.12)}
.sol-empty{padding:14px 16px;font-size:13px;color:var(--muted)}
.sol-empty a{color:var(--c-cyan-2)}

/* Markdown 渲染体（题解正文） */
.md-box{padding:14px 18px;font-size:14px;line-height:1.9;color:var(--ink);overflow-wrap:anywhere}
.md-box .md-h{margin:18px 0 8px;color:var(--navy);font-size:15.5px;font-weight:700;line-height:1.5}
.md-box h3.md-h{font-size:17px}
.md-box .md-h:first-child{margin-top:4px}
.md-box p{margin:8px 0}
.md-box .md-ul,.md-box .md-ol{margin:8px 0 8px 22px;padding:0}
.md-box .md-ul{list-style:disc}
.md-box .md-ol{list-style:decimal}
.md-box .md-ul li,.md-box .md-ol li{margin:4px 0}
.md-box .md-code{position:relative;margin:12px 0;padding:14px 16px;border-radius:10px;
  background:rgba(2,27,44,.72);border:1px solid var(--line);overflow:auto;max-height:520px}
.md-box .md-code code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.8px;line-height:1.7;
  color:#cfe6ff;white-space:pre;display:block}
.md-box .md-lang{position:absolute;top:8px;right:10px;font-size:11px;font-style:normal;
  color:#bfd8ff;background:rgba(34,224,255,.14);border:1px solid rgba(34,224,255,.22);
  border-radius:4px;padding:0 6px;letter-spacing:.3px}
.md-box .md-ic{background:rgba(34,224,255,.12);border-radius:4px;padding:1px 5px;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12.8px;color:var(--c-cyan-2)}
.md-box .md-tex{background:rgba(34,224,255,.08);border-radius:4px;padding:0 4px;color:#dcebff;
  font-size:.97em;font-family:inherit;overflow-wrap:anywhere}
.md-box .md-tex sup,.md-box .md-tex sub{font-size:.72em;line-height:0}
.md-box .md-q{margin:10px 0;padding:6px 12px;border-left:3px solid rgba(34,224,255,.45);
  color:var(--muted);background:rgba(34,224,255,.05);border-radius:0 8px 8px 0}
.md-box .md-hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.md-box a{color:var(--c-cyan-2)}
.md-box b{color:var(--navy)}
/* 题面窄栏里的一行入口（题解正文放到页面底部全宽） */
.sol-bar-tip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding:8px 11px;
  border:1px solid rgba(34,224,255,.28);border-radius:10px;background:rgba(34,224,255,.07);font-size:12px}
.sol-bar-tip .sol-tag{font-size:12.5px}
.sol-bar-tip .sol-edit{margin-left:auto;font-size:12px;padding:2px 9px}
.sol-bar-tip .sol-lock{font-size:10.5px;padding:0 7px}
.sol-jump{color:var(--c-cyan-2);text-decoration:none;font-size:12px;border-bottom:1px dashed rgba(34,224,255,.5);line-height:1.5}
.sol-jump:hover{border-bottom-style:solid}
@media (min-width:900px){
  .sol-card .md-box{padding:18px 28px;font-size:14.5px}
  .sol-card .md-code{max-height:640px}
}
/* 题库管理：题解标记 */
.sol-flag{margin-left:6px;font-size:12px;text-decoration:none;opacity:.95;vertical-align:middle;line-height:1}
.sol-flag:hover{opacity:1}
.sol-flag-off{color:var(--muted);opacity:.4;font-weight:700;font-size:13px}
.sol-flag-off:hover{opacity:.9;color:var(--c-cyan-2)}

/* ===== 题面/题解插图（PDF 题面转图，2026-11-13） ===== */
.stmt-img{display:block;max-width:100%;height:auto;margin:14px 0;border-radius:8px;background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.28);cursor:zoom-in}
.stmt-img:hover{box-shadow:0 3px 16px rgba(0,0,0,.42)}
.md-box .stmt-img{margin:12px 0}
@media (max-width:760px){.stmt-img{margin:10px 0;border-radius:6px}}

/* ---------- 题单练习（/sheets, /sheet/{n}）2026-11-19 ---------- */
.yd-page{max-width:980px;margin:0 auto}
.yd-tree{display:flex;flex-direction:column;gap:12px}
.yd-mod{background:rgba(255,255,255,.035);border:1px solid rgba(122,170,255,.12);border-radius:14px;overflow:hidden}
.yd-mod-h{display:flex;align-items:center;gap:9px;width:100%;padding:12px 16px;background:none;border:none;
  color:var(--ink,#EAF2FF);font-size:15.5px;font-weight:700;cursor:pointer;text-align:left}
.yd-mod-h .yd-fd{font-size:16px}
.yd-mod-h .yd-ar{margin-left:auto;font-size:12px;opacity:.55;transition:transform .18s}
.yd-mod:not(.open) .yd-ar{transform:rotate(-90deg)}
.yd-leaves{display:none;padding:2px 10px 10px 14px}
.yd-mod.open .yd-leaves{display:block}
.yd-leaf{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:9px;text-decoration:none;
  color:rgba(224,236,255,.82);font-size:14px;transition:background .14s,color .14s}
.yd-leaf:hover{background:rgba(34,224,255,.08);color:#fff}
.yd-leaf.on{background:rgba(242,176,61,.14);color:#F2B03D;font-weight:600}
.yd-leaf .yd-fd2{font-size:13px;opacity:.8}
.yd-leaf .yd-nm{flex:1;min-width:0}
.yd-leaf .yd-cnt{font-size:12px;color:rgba(160,190,230,.75);background:rgba(255,255,255,.05);
  padding:2px 8px;border-radius:999px;white-space:nowrap}
.yd-leaf.on .yd-cnt{color:#F2B03D}
/* 列表页布局 */
.yd-wrap{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}
.yd-side{position:sticky;top:74px;max-height:calc(100vh - 90px);overflow:auto;scrollbar-width:thin;
  padding-right:4px}
.yd-side .yd-mod{margin-bottom:10px}
.yd-side .yd-mod.open{background:rgba(255,255,255,.03)}
.yd-side .yd-mod-h{padding:10px 13px;font-size:14px}
.yd-side .yd-leaf{padding:6px 9px;font-size:13.2px}
.yd-main .crumb{display:flex;align-items:center;gap:8px;font-size:13.5px;margin:2px 0 12px;color:rgba(170,195,230,.8)}
.yd-main .crumb a{color:#6FC8FF;text-decoration:none}
.yd-main .crumb a:hover{text-decoration:underline}
.yd-main .crumb i{font-style:normal;opacity:.45}
.yd-main .crumb b{color:var(--ink,#EAF2FF);font-weight:700}
@media (max-width:900px){
  .yd-wrap{grid-template-columns:1fr}
  .yd-side{position:static;max-height:none}
  .yd-mod-h{font-size:15px}
}

/* ---------- 评价反馈 / 教学质量报告（/eval, /eval-reports）2026-11-19 ---------- */
.ev-page{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.ev-banner{padding:10px 14px;border-radius:10px;font-size:14px;font-weight:600}
.ev-banner.ok{background:rgba(61,220,151,.12);color:#3ddc97;border:1px solid rgba(61,220,151,.3)}
.ev-banner.bad{background:rgba(239,106,106,.12);color:#ef6a6a;border:1px solid rgba(239,106,106,.3)}
.ev-empty{text-align:center;padding:48px 20px;background:rgba(255,255,255,.035);border:1px solid rgba(122,170,255,.12);border-radius:14px}
.ev-empty-ic{font-size:40px;margin-bottom:8px}
.ev-empty-d{color:rgba(170,195,230,.75);font-size:13.5px;margin-top:6px}
.ev-teacher{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(255,255,255,.04);
  border:1px solid rgba(122,170,255,.14);border-radius:14px;padding:14px 18px}
.ev-teacher-ic{font-size:26px}
.ev-teacher b{font-size:16px;color:var(--ink,#EAF2FF)}
.ev-teacher-cls{color:rgba(170,195,230,.8);font-size:13px;margin-left:10px}
.ev-week{margin-left:auto;font-size:12.5px;color:rgba(160,190,230,.7)}
.ev-done{font-size:12.5px;font-weight:700;color:#3ddc97;background:rgba(61,220,151,.12);
  border:1px solid rgba(61,220,151,.3);padding:3px 10px;border-radius:999px}
.ev-card{background:rgba(255,255,255,.035);border:1px solid rgba(122,170,255,.12);border-radius:14px;padding:16px 18px}
.ev-card-h{font-size:14.5px;font-weight:700;color:var(--ink,#EAF2FF);margin-bottom:12px}
.ev-dim{padding:10px 0 4px;border-bottom:1px dashed rgba(122,170,255,.1)}
.ev-dim:last-child{border-bottom:none}
.ev-dim-h{display:flex;align-items:center;gap:10px}
.ev-dim-h b{font-size:14.5px}
.ev-score{margin-left:auto;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;min-width:44px;text-align:right}
.ev-dim-d{font-size:12.5px;color:rgba(170,195,230,.65);margin:2px 0 6px}
.ev-range{width:100%;accent-color:#22e0ff;height:22px;cursor:pointer}
.ev-ta{display:block;margin-bottom:12px}
.ev-ta span{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px;color:rgba(224,236,255,.85)}
.ev-ta textarea{width:100%;box-sizing:border-box;background:rgba(10,18,34,.6);border:1px solid rgba(122,170,255,.2);
  border-radius:10px;color:var(--ink,#EAF2FF);padding:10px 12px;font-size:14px;resize:vertical;font-family:inherit}
.ev-ta textarea:focus{outline:none;border-color:#22e0ff}
.ev-anon{font-size:12.5px;color:rgba(160,190,230,.65);margin-top:4px}
.ev-submit{align-self:center;min-width:200px;padding:11px 26px;font-size:15px}
/* 教师列表 / 详情 */
.ev-list{display:flex;flex-direction:column;gap:12px}
.ev-trow{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:rgba(255,255,255,.035);
  border:1px solid rgba(122,170,255,.12);border-radius:14px;padding:14px 18px}
.ev-tinfo{display:flex;align-items:center;gap:10px;min-width:170px}
.ev-tinfo b{font-size:15.5px;color:var(--ink,#EAF2FF)}
.ev-campus{font-size:12px;color:#6FC8FF;background:rgba(111,200,255,.1);padding:2px 9px;border-radius:999px}
.ev-cnt{font-size:12.5px;color:rgba(160,190,230,.7)}
.ev-score-big{font-size:30px;font-weight:800;font-variant-numeric:tabular-nums;text-align:center;min-width:86px}
.ev-score-big small{display:block;font-size:11px;font-weight:600;color:rgba(160,190,230,.6);margin-top:2px}
.ev-mini-dims{flex:1;min-width:230px;display:grid;grid-template-columns:1fr 1fr;gap:3px 18px}
.ev-md{display:flex;align-items:center;gap:8px;font-size:12px}
.ev-md span{color:rgba(170,195,230,.75);white-space:nowrap;width:64px}
.ev-bar{display:block;flex:1;height:6px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden}
.ev-bar b{display:block;height:100%;border-radius:999px}
.ev-md em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums;width:34px;text-align:right;font-size:11.5px}
.ev-nodata{flex:1;color:rgba(160,190,230,.55);font-size:13px}
.ev-actions{display:flex;gap:8px;margin-left:auto}
.ev-detail-sum{margin-bottom:4px}
.ev-crumb{font-size:13.5px;color:rgba(170,195,230,.8);display:flex;gap:8px;align-items:center}
.ev-crumb a{color:#6FC8FF;text-decoration:none}
.ev-crumb a:hover{text-decoration:underline}
.ev-crumb i{font-style:normal;opacity:.45}
.ev-item{padding:12px 0;border-bottom:1px dashed rgba(122,170,255,.1)}
.ev-item:last-child{border-bottom:none}
.ev-item-h{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ev-item-date{font-size:12.5px;color:rgba(160,190,230,.6)}
.ev-item-chips{display:flex;gap:6px;flex-wrap:wrap}
.ev-chip{font-size:11.5px;background:rgba(255,255,255,.05);padding:2px 8px;border-radius:999px;color:rgba(170,195,230,.8)}
.ev-chip b{font-weight:700}
.ev-msg{font-size:13.5px;color:rgba(224,236,255,.85);background:rgba(255,255,255,.04);border-radius:9px;
  padding:8px 12px;margin-top:8px;line-height:1.6}
.ev-msg-p{border-left:3px solid #f2b03d}
/* AI 报告弹层 */
.ev-mask{position:fixed;inset:0;background:rgba(4,10,22,.72);z-index:900;display:flex;align-items:center;justify-content:center;padding:20px}
.ev-modal{width:min(720px,100%);max-height:84vh;display:flex;flex-direction:column;background:#101a2e;
  border:1px solid rgba(122,170,255,.25);border-radius:16px;box-shadow:0 18px 60px rgba(0,0,0,.5)}
.ev-modal-h{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;font-size:15.5px;font-weight:700;
  color:var(--ink,#EAF2FF);border-bottom:1px solid rgba(122,170,255,.15)}
.ev-modal-x{background:none;border:none;color:rgba(200,220,250,.7);font-size:22px;cursor:pointer;line-height:1}
.ev-modal-x:hover{color:#fff}
.ev-modal-meta{padding:8px 18px 0;font-size:12px;color:rgba(160,190,230,.6)}
.ev-modal-b{padding:12px 18px 18px;overflow:auto;font-size:14px;line-height:1.8;color:rgba(224,236,255,.9)}
.ev-modal-b h4{color:#22e0ff;font-size:14.5px;margin:14px 0 6px}
.ev-modal-b p{margin:4px 0}
.ev-loading{color:rgba(170,195,230,.8);text-align:center;padding:30px 0}
.ev-err{color:#ef6a6a;font-weight:600;text-align:center;padding:24px 0}
@media (max-width:720px){
  .ev-trow{flex-direction:column;align-items:flex-start}
  .ev-actions{margin-left:0;width:100%}
  .ev-mini-dims{grid-template-columns:1fr}
  .ev-score-big{text-align:left}
}

/* ---------- 教学质量报告页 2.0：阶段平均分 / 走势 / 报告存档（2026-11-19 下午） ---------- */
.ev-dims2{display:grid;grid-template-columns:1fr 1fr;gap:14px 30px;margin-top:4px}
.ev-dim2 .ev-dim2-t{display:flex;align-items:baseline;gap:8px;margin-bottom:5px}
.ev-dim2 .ev-dim2-t b{font-size:14.5px;color:var(--ink,#EAF2FF)}
.ev-dim2 .ev-dim2-t em{font-style:normal;margin-left:auto;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.ev-dim2 .ev-bar{height:8px}
.ev-dim2 .ev-dim2-d{font-size:12px;color:rgba(170,195,230,.55);margin-top:4px}
.ev-wk{display:flex;align-items:center;gap:12px;padding:7px 0;border-bottom:1px dashed rgba(122,170,255,.1)}
.ev-wk:last-child{border-bottom:none}
.ev-wk>span{font-size:12.5px;color:rgba(170,195,230,.75);width:96px;white-space:nowrap}
.ev-wk .ev-bar{flex:1;height:8px}
.ev-wk>em{font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;width:42px;text-align:right;font-size:14px}
.ev-wk>u{text-decoration:none;font-size:11.5px;color:rgba(160,190,230,.55);width:38px;text-align:right}
.ev-wk mark{background:rgba(34,224,255,.15);color:#22e0ff;font-size:11px;font-weight:700;padding:1px 8px;border-radius:999px}
.ev-rep{font-size:14px;line-height:1.85;color:rgba(224,236,255,.9);padding-top:6px}
.ev-rep h4{color:#22e0ff;font-size:14.5px;margin:12px 0 5px}
.ev-rep p{margin:4px 0}
.ev-rep-empty{padding:14px 0 6px;text-align:center;color:rgba(170,195,230,.75);font-size:13.5px}
.ev-rep-empty .btn{margin-top:10px}
.ev-hist{border-bottom:1px dashed rgba(122,170,255,.1)}
.ev-hist:last-child{border-bottom:none}
.ev-hist summary{cursor:pointer;padding:11px 0;font-size:14px;font-weight:700;color:var(--ink,#EAF2FF);
  display:flex;align-items:center;gap:10px;list-style:none}
.ev-hist summary::-webkit-details-marker{display:none}
.ev-hist summary::after{content:'▸';margin-left:auto;color:rgba(160,190,230,.5);transition:transform .15s}
.ev-hist[open] summary::after{transform:rotate(90deg)}
.ev-hist summary:hover{color:#6FC8FF}
.ev-hist summary i{font-style:normal;font-weight:500;font-size:12px;color:rgba(160,190,230,.55)}
.ev-hist .ev-rep{padding:0 0 12px}
@media (max-width:720px){
  .ev-dims2{grid-template-columns:1fr}
  .ev-wk>span{width:82px}
}
