/* 独立学生子站外壳：头部 / 导航 / 内容，三端自适应。
   空间内部的 .spc-* 外观复用 schools.css，这里只管壳子。 */

.stu-page { min-height: 100vh; display: flex; flex-direction: column;
  background: var(--surface, #f4f7fb); }

/* ---------- 头部 ---------- */
.stu-head { position: sticky; top: 0; z-index: 30; background: var(--surface, #fff);
  border-bottom: 1px solid var(--border, #e5e9f0);
  backdrop-filter: saturate(1.1); }
.stu-head-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stu-brand { display: flex; align-items: center; gap: 9px; text-decoration: none;
  color: var(--text, #16243a); font-weight: 800; font-size: 18px; }
.stu-logo { width: 30px; height: 30px; fill: var(--brand-500, #2f7fe0); flex: none; }
.stu-head-acts { display: flex; align-items: center; gap: 8px; }
.stu-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border, #e5e9f0);
  background: var(--surface-2, #f1f5fb); color: var(--text-2, #475569); font-size: 17px;
  cursor: pointer; }
.stu-icon-btn:hover { color: var(--brand-500, #2f7fe0); border-color: var(--brand-500, #2f7fe0); }
.stu-ident-btn { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid var(--border, #e5e9f0); background: var(--surface-2, #f1f5fb);
  color: var(--text-2, #475569); white-space: nowrap; }
.stu-ident-btn.is-student { background: linear-gradient(135deg, var(--brand-500, #2f7fe0), var(--cyan-400, #22d3ee));
  color: #fff; border-color: transparent; }
.stu-ident-btn.is-teacher { background: linear-gradient(135deg, #7c5cff, #b06bf0); color: #fff; border-color: transparent; }
.stu-ident-btn.is-guest { background: var(--brand-500, #2f7fe0); color: #fff; border-color: transparent; }

/* ---------- 导航 ---------- */
.stu-nav { background: var(--surface, #fff); border-bottom: 1px solid var(--border, #e5e9f0); }
/* min-width:0 是关键：它是 body(flex column) 的子项，默认自动最小宽度会按
   5 个标签的总宽（约 448px）把页面撑出 390px 手机屏；加 0 后才由
   overflow-x:auto 自己横向滚动，而不是整页跟着横向拖。 */
.stu-nav { display: flex; gap: 6px; width: 100%; min-width: 0; box-sizing: border-box;
  max-width: 1180px; margin: 0 auto; padding: 0 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.stu-nav::-webkit-scrollbar { display: none; }
.stu-tab { flex: none; padding: 12px 16px; font-size: 15px; font-weight: 700; text-decoration: none;
  color: var(--text-2, #475569); border-bottom: 3px solid transparent; white-space: nowrap; }
.stu-tab.is-on { color: var(--brand-500, #2f7fe0); border-bottom-color: var(--brand-500, #2f7fe0); }

/* ---------- 内容 ---------- */
.stu-main { flex: 1 1 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.stu-loading { text-align: center; color: var(--text-3, #8494a8); padding: 40px 0; }
.stu-spin { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border, #e5e9f0);
  border-top-color: var(--brand-500, #2f7fe0); border-radius: 50%; animation: stu-spin .7s linear infinite;
  vertical-align: -3px; margin-right: 8px; }
@keyframes stu-spin { to { transform: rotate(360deg); } }
.stu-sec-h { font-size: 19px; font-weight: 800; color: var(--text, #16243a); margin: 4px 0 14px; }

/* 注册表单 */
.rg-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.rg-field { display: flex; flex-direction: column; gap: 6px; }
.rg-field > span { font-size: 13px; font-weight: 700; color: var(--text-2, #475569); }
.rg-field > span i { color: #e11d48; font-style: normal; }
.rg-input, .rg-select { height: 42px; border: 1px solid var(--border, #e5e9f0); border-radius: 10px;
  padding: 0 12px; font-size: 15px; background: var(--surface, #fff); color: var(--text, #16243a);
  width: 100%; max-width: 100%; box-sizing: border-box; }
.rg-select { appearance: none; -webkit-appearance: none; }
.rg-hint { font-size: 12px; color: var(--text-2, #475569); }
.rg-hint.rg-err { color: #e11d48; }
.rg-ok { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(135deg, #22c55e, #5eead4); color: #fff; font-size: 30px; font-weight: 800; }
.rg-acc-lab { font-size: 13px; color: var(--text-2, #475569); margin-bottom: 6px; }
.rg-acc { font-size: clamp(34px, 8vw, 52px); font-weight: 900; letter-spacing: 2px; line-height: 1.1;
  color: var(--text, #16243a); font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--brand-500, #2f7fe0), var(--cyan-400, #22d3ee));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rg-acc-sub { margin-top: 10px; font-size: 14px; color: var(--text-2, #475569); line-height: 1.8; }
.rg-acc-sub b { color: var(--text, #16243a); }
.rg-copy { margin-top: 14px; font-size: 12px; color: var(--text-2, #475569); }
.rg-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- 落地页（未登录） ---------- */
.stu-hero { max-width: 760px; margin: 8px auto 0; padding: 30px 26px 34px;
  background: linear-gradient(160deg, var(--surface, #fff), var(--surface-2, #eef4ff));
  border: 1px solid var(--border, #e5e9f0); border-radius: 18px; text-align: center; }
.stu-hero-t { font-size: 30px; font-weight: 900; color: var(--text, #16243a); margin: 0 0 10px;
  letter-spacing: .5px; }
.stu-hero-s { font-size: 15px; color: var(--text-2, #475569); line-height: 1.7; margin: 0 auto 22px;
  max-width: 520px; }
.stu-hero-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.stu-hero-acts .sch-btn { min-width: 150px; height: 46px; font-size: 16px; }
.stu-feats { list-style: none; padding: 0; margin: 0; max-width: 560px; margin: 0 auto;
  text-align: left; display: grid; gap: 10px; }
.stu-feats li { font-size: 14px; color: var(--text-2, #475569); line-height: 1.6;
  padding: 10px 14px; background: var(--surface, #fff); border: 1px solid var(--border, #e5e9f0);
  border-radius: 12px; }
.stu-feats li b { color: var(--brand-500, #2f7fe0); margin-right: 6px; }

/* 同学空间网格 */
.stu-mates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stu-mates-grid .spc-mate { padding: 12px; }
.stu-mates-grid .spc-mate u { font-style: normal; font-size: 14px; font-weight: 700; color: var(--text, #16243a); }
.stu-mates-grid .spc-mate span { font-size: 12px; color: var(--text-3, #8494a8); }

/* 身份下拉菜单 */
.stu-menu { position: absolute; top: 52px; right: 14px; z-index: 40; min-width: 168px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e5e9f0); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14); padding: 6px; }
.stu-menu-name { font-size: 13px; color: var(--text-3, #8494a8); padding: 6px 10px 8px; }
.stu-menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text, #16243a); }
.stu-menu-item:hover { background: var(--surface-2, #f1f5fb); }

/* Toast */
.stu-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 60;
  background: rgba(20, 30, 48, .92); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 86vw; }
.stu-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 底部 ---------- */
.stu-foot { border-top: 1px solid var(--border, #e5e9f0); background: var(--surface, #fff); }
.stu-foot-in { max-width: 1180px; margin: 0 auto; padding: 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2, #475569); }
.stu-foot-in a { color: var(--brand-500, #2f7fe0); text-decoration: none; }
.stu-foot-copy { text-align: center; font-size: 12px; color: var(--text-3, #8494a8); padding: 0 16px 18px; }

/* ---------- 窄屏（手机 / 小平板） ---------- */
@media (max-width: 760px) {
  .stu-head-in { padding: 9px 12px; }
  .stu-brand { font-size: 16px; }
  .stu-logo { width: 26px; height: 26px; }
  .stu-main { padding: 14px 12px 34px; }
  .rg-2col { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stu-sec-h { font-size: 17px; }
  .stu-mates-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .stu-hero { padding: 22px 16px 26px; border-radius: 14px; }
  .stu-hero-t { font-size: 24px; }
  .stu-hero-s { font-size: 14px; }
  .stu-hero-acts .sch-btn { min-width: 0; flex: 1 1 auto; }
}

/* 超窄屏：导航与头部更紧凑 */
@media (max-width: 420px) {
  .stu-tab { padding: 11px 12px; font-size: 14px; }
  .stu-ident-btn { padding: 0 11px; font-size: 13px; }
}

/* ================= 学生搜索 / 邀请（2026-11-04） ================= */
.stu-search{display:flex;gap:8px;align-items:center;margin:0 0 14px;flex-wrap:wrap}
.stu-search-in{flex:1 1 220px;min-width:0;height:42px;padding:0 14px;border-radius:12px;
  border:1px solid var(--sch-line,#dfe7f3);background:var(--sch-card,#fff);color:inherit;font-size:14px;outline:none}
.stu-search-in:focus{border-color:#7fb3ff;box-shadow:0 0 0 3px rgba(64,140,255,.14)}
.stu-search-sel{height:42px;padding:0 10px;border-radius:12px;border:1px solid var(--sch-line,#dfe7f3);
  background:var(--sch-card,#fff);color:inherit;font-size:14px}
.stu-search-btn{height:42px;white-space:nowrap}
.stu-search-hit{display:flex;flex-direction:column;gap:8px;margin:6px 0 18px}
.stu-hit{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;
  background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7);text-decoration:none;color:inherit}
.stu-hit:hover{border-color:#9cc4ff;transform:translateY(-1px)}
.stu-hit-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-style:normal;
  font-weight:700;color:#fff;background:linear-gradient(135deg,#4f9bff,#7f6bff);flex:none}
.stu-hit-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.stu-hit-txt b{font-size:14.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stu-hit-txt small{font-size:12px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stu-hit-go{font-style:normal;font-size:12.5px;color:#3d7bfd;white-space:nowrap}
.stu-sec-sub{margin:6px 0 10px;font-size:13px;font-weight:700;opacity:.7}
.stu-inv-card{background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7);border-radius:18px;padding:18px}
.stu-inv-lead{font-size:14px;line-height:1.9;opacity:.85;margin-bottom:14px}
.stu-inv-panel{margin-top:18px;display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.stu-inv-poster{width:240px;max-width:100%;border-radius:14px;box-shadow:0 10px 28px rgba(20,60,140,.18);display:block}
.stu-inv-side{flex:1 1 220px;min-width:0}
.stu-inv-lab{font-size:12.5px;opacity:.65;margin-bottom:6px}
.stu-inv-link{display:flex;gap:8px}
.stu-inv-link input{flex:1;min-width:0;height:40px;padding:0 10px;border-radius:10px;
  border:1px solid var(--sch-line,#dfe7f3);background:var(--sch-bg-soft,#f7faff);color:inherit;font-size:12.5px}
.stu-inv-tip{margin-top:12px;font-size:12.5px;line-height:1.8;opacity:.7}
.stu-inv-banner{margin:0 0 16px;padding:12px 14px;border-radius:12px;font-size:13.5px;line-height:1.7;
  background:rgba(64,140,255,.10);border:1px solid rgba(64,140,255,.25)}
.spc-err{color:#e25555}
@media (max-width:520px){
  .stu-search-in{flex:1 1 100%}
  .stu-search-sel{flex:1}
  .stu-inv-poster{width:100%}
}


/* ================= 三端对齐 / 安卓修复（2026-11-04） ================= */
/* 退出按钮：纯文字，无边框无背景 */
#stu-logout{border:0;background:transparent;box-shadow:none;padding:0 4px;height:34px;
  font-size:13px;color:inherit;opacity:.75;cursor:pointer}
#stu-logout:hover{opacity:1}
.stu-head-acts{display:flex;align-items:center;gap:6px}
.stu-icon-btn,.stu-ident-btn{height:34px;display:inline-flex;align-items:center;justify-content:center}
/* 邀请页状态行 */
.stu-inv-status{margin-top:10px;font-size:13px;color:#3d7bfd;min-height:18px}
.stu-inv-steps{margin:8px 0 0 18px;padding:0;font-size:13px;line-height:1.9}
/* 触摸优化，避免安卓点击延迟/丢失 */
.sch-btn,#stu-inv-gen,#stu-search-go,#stu-logout,.stu-hit,.stu-tab{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation}
/* 手机端：导航可横滑、按钮不挤、海报/搜索铺满 */
@media (max-width:560px){
  .stu-head-in{padding:0 12px}
  .stu-head-acts{gap:4px}
  .stu-nav{overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
  .stu-nav::-webkit-scrollbar{display:none}
  .stu-search{gap:6px}
  .stu-search-in{flex:1 1 100%;height:44px}
  .stu-search-sel{flex:1 1 45%;height:44px}
  .stu-search-btn{flex:1 1 45%;height:44px}
  .stu-inv-card{padding:14px}
  .stu-inv-poster{width:100%!important}
  .stu-inv-panel{gap:12px}
}
@media (min-width:561px) and (max-width:1024px){
  .stu-inv-poster{width:220px}
  .stu-search-in{flex:1 1 260px}
}


/* 导航横杠：跟随高亮平滑移动（三端一致） */
.stu-nav{position:relative}
.stu-tab{transition:color .18s ease,border-color .18s ease,background .18s ease;border-bottom-width:2px;border-bottom-style:solid}
.stu-tab.is-on{font-weight:800}
@media (max-width:560px){
  .stu-tab.is-on{background:rgba(47,127,224,.10);border-radius:10px 10px 0 0}
}


/* 邀请页「长按转发」醒目提示 */
.stu-inv-hot{margin:6px 0 12px;padding:12px 14px;border-radius:14px;text-align:center;
  background:linear-gradient(100deg,#ffd60a,#ff9f1a);color:#3a2600;font-size:14.5px;font-weight:800;
  letter-spacing:.3px;box-shadow:0 8px 22px rgba(255,180,0,.28);animation:stuHot 2s ease-in-out infinite}
@keyframes stuHot{0%,100%{transform:scale(1)}50%{transform:scale(1.02)}}


/* 邀请统计：四张小卡并排，第四张是「第 N 位注册会员」 */
.stu-inv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.stu-inv-stat{background:rgba(64,140,255,.08);border:1px solid rgba(64,140,255,.2);
  border-radius:10px;padding:7px 4px;text-align:center;min-width:0}
.stu-inv-stat b{display:block;font-size:16px;line-height:1.25;color:#2f7fe0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stu-inv-stat span{display:block;font-size:11px;line-height:1.3;opacity:.72}
.stu-inv-stat.is-member{background:linear-gradient(120deg,#fff7d6,#ffe9b8);border-color:#ffcf3f}
.stu-inv-stat.is-member b{color:#b45309}
.stu-inv-stats>.spc-tip{grid-column:1 / -1;text-align:center}
@media (max-width:380px){.stu-inv-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.stu-inv-people{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.stu-inv-person{font-size:12px;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#3b5bdb}
.stu-inv-rank-box{margin-top:18px;border-top:1px dashed var(--sch-line,#e6edf7);padding-top:14px}
.stu-inv-rank-title{font-size:14px;font-weight:800;margin-bottom:8px}
.stu-inv-rank{display:flex;flex-direction:column;gap:6px}
.stu-inv-rank-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;
  background:#f8faff;border:1px solid #e8eefb;font-size:13px;text-decoration:none;color:inherit}
.stu-inv-rank-item:hover{border-color:#9cc4ff}
.stu-inv-rk{width:22px;height:22px;border-radius:50%;background:#eef4ff;color:#2f7fe0;font-style:normal;
  display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.stu-inv-rank-item:nth-child(1) .stu-inv-rk{background:#ffd60a;color:#5a3d00}
.stu-inv-rank-item:nth-child(2) .stu-inv-rk{background:#dfe7f3;color:#4a5568}
.stu-inv-rank-item:nth-child(3) .stu-inv-rk{background:#ffe0c2;color:#8a4b00}
.stu-inv-rname{font-weight:700}
.stu-inv-rschool{font-size:11.5px;opacity:.6;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stu-inv-rcount{font-size:12.5px;color:#2f7fe0}


/* 会员号 / 第N位注册会员 高亮 */
.rg-member{margin:0 auto 16px;max-width:360px;padding:16px 14px;border-radius:18px;
  background:linear-gradient(120deg,#fff7d6,#ffe9b8);border:2px solid #ffcf3f;
  box-shadow:0 12px 30px rgba(255,190,0,.28);animation:memPulse 2.2s ease-in-out infinite}
@keyframes memPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.015)}}
.rg-member-idx{font-size:14px;color:#7a5200}
.rg-member-idx b{font-size:22px;color:#b45309;margin:0 3px}
.rg-member-no{margin-top:6px;font-size:14px;color:#7a5200}
.rg-member-no b{font-size:24px;letter-spacing:1px;color:#b45309}


/* 登录后推广条：保存到桌面 / 绑定微信（高亮） */
.stu-promo{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center;
  padding:10px 14px;background:linear-gradient(100deg,#eef4ff,#fff7e0)}
.stu-promo-btn{height:42px;padding:0 18px;border:0;border-radius:12px;font-size:14.5px;font-weight:800;
  cursor:pointer;color:#fff;letter-spacing:.3px;animation:promoPulse 2.4s ease-in-out infinite}
.stu-promo-btn.install{background:linear-gradient(100deg,#2f7fe0,#6a5cff);box-shadow:0 8px 20px rgba(60,100,255,.28)}
.stu-promo-btn.wx{background:linear-gradient(100deg,#22c55e,#16a34a);box-shadow:0 8px 20px rgba(22,163,74,.28)}
.stu-promo-ok{font-size:13.5px;color:#15803d;font-weight:700;padding:8px 12px}
@keyframes promoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@media (max-width:560px){
  .stu-promo{padding:8px 10px}
  .stu-promo-btn{flex:1 1 45%;height:44px;font-size:14px;padding:0 8px}
}


/* 保存到桌面步骤提示 */
.sg-steps{margin:10px 0;padding:12px;border-radius:12px;background:#f4f8ff;border:1px solid #dbe7ff;
  font-size:13.5px;line-height:2;color:#2b3a55;text-align:left}
.sg-hint{margin-top:8px;font-size:12px;color:#6b7686;line-height:1.7}

/* 推广条里的「我的编号」 */
.stu-promo-btn.acct{background:var(--surface,#fff);color:var(--text,#16243a);
  border:1px solid var(--border,#e5e9f0);box-shadow:none;font-variant-numeric:tabular-nums}

/* ---------- 注册成功弹层：保存账号密码 + 绑定微信 ---------- */
.rg-done{text-align:center}
.rg-done-t{display:block;font-size:21px;font-weight:900;color:var(--text,#16243a);margin:0 0 8px}
.rg-done-s{font-size:13.5px;color:var(--text-2,#475569);line-height:1.7}
.rg-done-s b{color:var(--text,#16243a)}
.rg-cred{margin:16px 0 12px;padding:6px 14px;border-radius:14px;text-align:left;
  background:var(--surface-2,#f1f5fb);border:1px dashed #c6dbf5}
.rg-cred-row{display:flex;align-items:center;gap:10px;padding:10px 0}
.rg-cred-row + .rg-cred-row{border-top:1px dashed rgba(120,150,200,.32)}
.rg-cred-k{flex:none;width:76px;font-size:12.5px;font-weight:700;color:var(--text-3,#8494a8)}
.rg-cred-v{flex:1 1 auto;min-width:0;font-size:19px;font-weight:900;color:var(--text,#16243a);
  letter-spacing:1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rg-cred-v.is-mask{letter-spacing:3px;color:var(--text-2,#475569)}
.rg-mini{flex:none;height:30px;padding:0 11px;border-radius:9px;cursor:pointer;
  border:1px solid var(--border,#e5e9f0);background:var(--surface,#fff);
  color:var(--brand-500,#2f7fe0);font-size:12.5px;font-weight:800}
.rg-mini:hover{border-color:var(--brand-500,#2f7fe0)}
.rg-save-warn{margin:8px 0 14px;padding:12px 14px;border-radius:12px;text-align:left;
  background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.75}
.rg-save-warn b{color:#b45309}
.rg-check{display:flex;gap:9px;align-items:flex-start;text-align:left;margin:14px 0 10px;
  font-size:13.5px;color:var(--text-2,#475569);line-height:1.5;cursor:pointer}
.rg-check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:#2f7fe0}
.rg-done-acts{display:grid;gap:10px;margin-top:14px}
.rg-wx-ico{font-size:32px;line-height:1;margin-bottom:8px}
.rg-wx-tip{margin:0 0 6px;padding:12px 14px;border-radius:12px;text-align:left;
  background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:13px;line-height:2}
.rg-wx-note{margin-top:12px;font-size:12px;color:var(--text-3,#8494a8);line-height:1.8;text-align:left}
.rg-wx-note b{color:var(--text,#16243a)}
.rg-msg{font-size:12.5px;line-height:1.7;margin:6px 0 0;text-align:left;color:var(--text-2,#475569)}
.rg-msg.rg-err,.rg-msg.rg-hint.rg-err{color:#e11d48}
.lg-or{display:flex;align-items:center;gap:10px;margin:16px 0 12px;color:var(--text-3,#8494a8);font-size:12px}
.lg-or:before,.lg-or:after{content:"";flex:1;height:1px;background:var(--border,#e5e9f0)}

:root[data-theme="dark"] .rg-save-warn{background:rgba(180,83,9,.16);border-color:rgba(180,83,9,.5);color:#fcd34d}
:root[data-theme="dark"] .rg-save-warn b{color:#fbbf24}
:root[data-theme="dark"] .rg-wx-tip{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.42);color:#86efac}
:root[data-theme="dark"] .rg-cred{border-color:rgba(120,150,200,.4)}
:root[data-theme="dark"] .sg-steps{background:rgba(47,127,224,.12);border-color:rgba(47,127,224,.35);color:#cbd8ea}

@media (max-width:420px){
  .rg-cred-k{width:64px;font-size:12px}
  .rg-cred-v{font-size:17px}
  .rg-mini{padding:0 9px;font-size:12px}
}

/* ---------- 一个微信多个账号：登录选择器 ---------- */
.wxch-body{padding:22px 20px}
.wxch-tip{font-size:13.5px;line-height:1.8;color:var(--text-2,#475569);margin:0 0 14px}
.wxch-tip b{color:var(--text,#16243a)}
.wxch-list{display:grid;gap:10px;margin:0 0 14px}
.wxch-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;
  padding:14px 16px;border-radius:14px;cursor:pointer;text-align:left;
  border:1px solid var(--border,#e5e9f0);background:var(--surface,#fff);
  transition:border-color .15s,box-shadow .15s}
.wxch-item:hover{border-color:var(--brand-500,#2f7fe0);box-shadow:0 6px 18px rgba(47,127,224,.14)}
.wxch-item.is-wait{opacity:.55;cursor:wait}
.wxch-name{font-size:16px;font-weight:900;color:var(--text,#16243a);margin-right:auto}
.wxch-acc{font-size:12.5px;font-weight:800;color:var(--brand-500,#2f7fe0);
  background:rgba(47,127,224,.1);padding:3px 8px;border-radius:8px;font-variant-numeric:tabular-nums}
.wxch-school{flex:1 1 100%;font-size:12px;color:var(--text-3,#8494a8);margin-top:2px}
.wxch-foot{font-size:13px;color:var(--text-3,#8494a8);line-height:1.9}
.wxch-foot a{color:var(--brand-500,#2f7fe0);font-weight:700;text-decoration:none}
.wxch-relogin{display:block;text-align:center;text-decoration:none;padding:13px 18px;border-radius:12px}

/* 微信未绑定账号 → 游客权限提示 */
.wx-guest-bar{margin:0 0 18px;padding:12px 14px;border-radius:12px;text-align:left;
  background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;line-height:1.75}
.wx-guest-bar b{color:#b45309}

/* 推广条：切换微信账号 / 解绑 */
.stu-promo-btn.wxch{background:var(--surface,#fff);color:var(--text,#16243a);
  border:1px solid var(--border,#e5e9f0);box-shadow:none;animation:none}
.stu-promo-unbind{height:32px;padding:0 12px;border-radius:9px;cursor:pointer;
  border:1px solid var(--border,#e5e9f0);background:transparent;
  color:var(--text-3,#8494a8);font-size:12.5px;font-weight:700}
.stu-promo-unbind:hover{border-color:#fca5a5;color:#e11d48}

/* 绑定第二步：检查规则说明 */
.rg-wx-note2{margin:10px 0 0;padding:10px 12px;border-radius:11px;text-align:left;
  background:var(--surface-2,#f1f5fb);border:1px dashed #c6dbf5;
  font-size:12px;line-height:1.8;color:var(--text-2,#475569)}
.rg-wx-note2 b{color:var(--text,#16243a)}

:root[data-theme="dark"] .wx-guest-bar{background:rgba(180,83,9,.16);border-color:rgba(180,83,9,.5);color:#fcd34d}
:root[data-theme="dark"] .wx-guest-bar b{color:#fbbf24}
:root[data-theme="dark"] .rg-wx-note2{background:rgba(47,127,224,.1);border-color:rgba(47,127,224,.32)}

@media (max-width:420px){
  .wxch-body{padding:18px 14px}
  .wxch-name{font-size:15px}
  .wxch-item{padding:12px 13px}
}

/* ================= 我的作业 / 我的老师（2026-11-06） ================= */
.hw-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;
  padding:12px 14px;border-radius:14px;background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7)}
.hw-bar-txt{flex:1 1 200px;font-size:13.5px;opacity:.85;min-width:0}
.hw-pend{color:#e25555;font-size:16px;font-weight:800}
.hw-sec-sub{margin:8px 0 10px;font-size:13px;font-weight:700;opacity:.7}
.hw-tip{padding:14px 16px;border-radius:14px;background:rgba(64,140,255,.10);
  border:1px solid rgba(64,140,255,.25);font-size:13px;line-height:1.85}
.hw-tgrid{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.hw-tcard{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;min-width:0;
  flex:1 1 240px;background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7)}
.hw-tav{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-style:normal;
  font-weight:800;color:#fff;font-size:16px;background:linear-gradient(135deg,#4f9bff,#7f6bff)}
.hw-tinfo{display:flex;flex-direction:column;gap:2px;min-width:0}
.hw-tinfo b{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-tinfo small{font-size:12px;opacity:.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hw-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.hw-chips s{font-style:normal;font-size:11.5px;padding:2px 8px;border-radius:999px;
  background:rgba(64,140,255,.12);color:#2f6fe0;text-decoration:none}
.hw-list{display:flex;flex-direction:column;gap:12px}
.hw-card{background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7);border-radius:16px;padding:14px 16px}
.hw-card-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hw-title{font-size:15.5px;font-weight:800;min-width:0;word-break:break-word}
.hw-tag{font-style:normal;font-size:11.5px;padding:2px 9px;border-radius:999px;white-space:nowrap;
  background:#eef2ff;color:#4a56d8;border:1px solid rgba(74,86,216,.18)}
.hw-tag.is-sub{background:#e8f8f1;color:#0f9d76;border-color:rgba(15,157,118,.22)}
.hw-tag.is-graded{background:#e8f8f1;color:#0f9d76;border-color:rgba(15,157,118,.22)}
.hw-tag.is-over{background:#fdeaea;color:#d33;border-color:rgba(211,51,51,.22)}
.hw-meta{font-size:12.5px;opacity:.65;margin-top:6px}
.hw-content{margin-top:8px;font-size:13.5px;line-height:1.8;white-space:pre-wrap;word-break:break-word}
.hw-shots{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hw-shots img{width:86px;height:86px;object-fit:cover;border-radius:10px;border:1px solid var(--sch-line,#e6edf7);
  background:#eef2ff;cursor:zoom-in}
.hw-cmt{margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(15,157,118,.09);
  border:1px solid rgba(15,157,118,.22);font-size:13px;line-height:1.8;display:flex;flex-direction:column;gap:2px}
.hw-cmt b{font-size:12.5px;color:#0f9d76}
.hw-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.hw-form{margin-top:12px;padding-top:12px;border-top:1px dashed var(--sch-line,#e6edf7)}
.hw-form-in{display:flex;flex-direction:column;gap:10px}
.hw-hint{font-size:12.5px;opacity:.7}
.hw-shot{position:relative;display:inline-block;font-style:normal;line-height:0}
.hw-shot img{width:86px;height:86px;object-fit:cover;border-radius:10px;border:1px solid var(--sch-line,#e6edf7)}
.hw-shot-x{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;
  background:#e25555;color:#fff;font-size:13px;line-height:22px;padding:0;cursor:pointer}
.hw-cam{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.hw-file{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.hw-ta{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--sch-line,#dfe7f3);
  background:var(--sch-bg-soft,#f7faff);color:inherit;font-size:13.5px;line-height:1.7;resize:vertical;outline:none;
  font-family:inherit}
.hw-ta:focus{border-color:#7fb3ff;box-shadow:0 0 0 3px rgba(64,140,255,.14)}
.hw-err{color:#e25555;font-size:12.5px;min-height:18px;margin-top:6px}
.hw-loading{display:flex;align-items:center;gap:8px;font-size:13px;opacity:.7;padding:8px 2px}
:root[data-theme="dark"] .hw-tag{background:rgba(91,107,255,.18);color:#b9c4ff;border-color:rgba(91,107,255,.35)}
:root[data-theme="dark"] .hw-tag.is-sub,
:root[data-theme="dark"] .hw-tag.is-graded{background:rgba(34,197,94,.16);color:#86efac;border-color:rgba(34,197,94,.4)}
:root[data-theme="dark"] .hw-tag.is-over{background:rgba(226,85,85,.18);color:#fca5a5;border-color:rgba(226,85,85,.4)}
:root[data-theme="dark"] .hw-chips s{background:rgba(91,107,255,.2);color:#c7d0ff}
:root[data-theme="dark"] .hw-cmt{background:rgba(15,157,118,.14);border-color:rgba(15,157,118,.4)}
:root[data-theme="dark"] .hw-cmt b{color:#86efac}
:root[data-theme="dark"] .hw-tip{background:rgba(47,127,224,.12);border-color:rgba(47,127,224,.35)}
@media (max-width:520px){
  .hw-tcard{flex:1 1 100%}
  .hw-shots img,.hw-shot img{width:76px;height:76px}
  .hw-bar{padding:10px 12px}
  .hw-card{padding:12px 13px}
}
@media (prefers-reduced-motion: reduce){
  .hw-card,.hw-tcard{transition:none}
}

/* ================= 编程空间（学生空间里的一大类，2026-11-08） =================
   结构：一个区标题（编程空间）+ 三组工具卡。作品不再单列一个区，
   统一收进「我的空间 → 我的作品」；工具卡只管「打开工具」，
   作品卡与点赞/分享/删除样式在 work-actions.css 里，这里不重复定义 .wa-*。 */
/* 作品卡底部：点赞 / 分享 / 删除 三个小按钮排一行，窄卡自动换行。
   schools.css 有 .spc-work span{display:block}，这里用更高特异性覆盖。 */
.spc-work .spc-work-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 10px 10px}
.stu-code-h{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:22px 0 12px}
.stu-code-h h1{margin:0;font-size:19px;font-weight:800;color:var(--text,#16243a)}
.stu-code-h span{font-size:13px;color:var(--text-3,#8b98a9)}
.stu-code{display:flex;flex-direction:column;gap:14px}
.stu-code-g{border:1px solid var(--border,#e6edf5);border-radius:16px;background:var(--surface,#fff);padding:13px 14px 15px}
.stu-code-gh{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--text,#16243a)}
.stu-code-tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.stu-code-tool{position:relative;display:flex;flex-direction:column;gap:3px;padding:12px 14px;
  border:1px solid var(--border,#e6edf5);border-radius:12px;background:var(--surface-2,#f7fafc);
  text-decoration:none;color:inherit;transition:border-color .14s,transform .14s,box-shadow .14s}
.stu-code-tool:hover{border-color:var(--border-strong,#cbd8e6);transform:translateY(-1px);box-shadow:0 6px 18px rgba(19,48,82,.07)}
.stu-code-tool b{padding-right:52px;font-size:14px;font-weight:700;color:var(--text,#16243a)}
.stu-code-tool i{font-style:normal;font-size:12.5px;color:var(--text-3,#8b98a9)}
.stu-code-badge{position:absolute;top:10px;right:10px;padding:2px 8px;border-radius:999px;
  background:rgba(47,127,224,.1);color:#2f7fe0;font-size:11px;line-height:1.6;text-decoration:none}

[data-theme="dark"] .stu-code-g{background:#182028;border-color:#2b3742}
[data-theme="dark"] .stu-code-gh,[data-theme="dark"] .stu-code-tool b{color:#e6eef7}
[data-theme="dark"] .stu-code-h h1{color:#e6eef7}
[data-theme="dark"] .stu-code-tool{background:#1c2530;border-color:#2d3a49}
[data-theme="dark"] .stu-code-badge{background:rgba(47,127,224,.22);color:#9dc3ff}

@media (max-width:520px){
  .stu-code-h{margin:18px 0 10px}
  .stu-code-h h1{font-size:17px}
  .stu-code-tools{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .stu-code-tool{padding:10px 12px}
  .stu-code-tool b{padding-right:0}
  .stu-code-badge{position:static;align-self:flex-start;margin-top:5px}
}


/* 我的作业 */
.stu-hw-list{display:flex;flex-direction:column;gap:12px}
.stu-hw-card{background:var(--sch-card,#fff);border:1px solid var(--sch-line,#e6edf7);border-radius:14px;padding:14px}
.stu-hw-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stu-hw-sub{font-size:11.5px;padding:2px 8px;border-radius:999px;background:#eef4ff;color:#3b5bdb}
.stu-hw-title{font-size:15px}
.stu-hw-due{font-size:12px;color:var(--sub,#6b7686)}
.stu-hw-content{margin:8px 0;font-size:13px;color:var(--sub,#6b7686);line-height:1.7;white-space:pre-wrap}
.stu-hw-files{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0;font-size:12.5px}
.stu-hw-file{color:#2f7fe0;text-decoration:none}
.stu-hw-bar{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.stu-hw-status{font-size:12.5px;color:var(--sub,#6b7686)}
.stu-hw-status.ok{color:#0f9d76;font-weight:700}
.stu-hw-status.pending{color:#b45309;font-weight:700}
