/* iPad 首页、专属链接口令页（负责人 2026-10-05 定「乙」优化版，样稿 docs/ipad-candidates/home/ib-mock.*）· 归 Claude Code。
   结构：entry-desk.js 的 padStage() 借电脑版首页那块品牌面（大标题、七条卖点、点老师换一条），右边 / 下边换成 entry2.js 画的校长聊天（#epChat）。
   只在 body.e2-pad（新外观 + iPad 竖拿 / 横放）下生效；电脑版（body.e2-desk 没有 .e2-pad）、手机一条都不碰。
   竖拿：上卖点、下聊天，输入条贴在屏幕底下；打了编号 / 认得你（body.ep-pin）上面收成只剩大标题，键盘整个露出来。
   横放：左卖点（老师站在底边）、右聊天上下居中。 */
body.e2.e2-pad{--bar:112px;background-image:none!important;}   /* 首页 .e2-index 900 宽以上那层圆斑不要（漫画主题的点点底照旧：那条更具体） */
body.e2-pad .ed-main{justify-content:center;padding:24px clamp(24px,3vw,44px) 40px;}
body.e2-pad .ep-chat{width:100%;max-width:620px;min-height:0;display:flex;flex-direction:column;gap:12px;}
/* 校长站在门口：大一点、戴学士帽，名字写清楚；下面的话都是他说的，不用每句再挂小头像 */
body.e2-pad .ep-host{display:flex;align-items:center;gap:12px;}
body.e2-pad .ep-host img{width:96px;height:96px;flex:none;filter:drop-shadow(0 4px 6px rgba(0,0,0,.16));}
:is(html[data-theme="a"]) body.e2-pad .ep-host img{filter:drop-shadow(2px 2px 0 rgba(31,31,36,.9));}
body.e2-pad .ep-host b{display:block;font:900 21px/1.2 var(--e-head);color:var(--e-ink);}
body.e2-pad .ep-host small{display:block;margin-top:2px;font:800 14px/1.3 var(--e-head);color:var(--e-mute);}
body.e2-pad .ep-chat .e2-tav,body.e2-pad .ep-chat .e2-sys,body.e2-pad .ep-chat .e2-foot{display:none;}   /* 页脚在聊天下面（.ed-foot），发送栏里那份不要 */
body.e2-pad .ep-chat .e2-log{flex:none;max-width:none;margin:0;padding:0;gap:10px;}
body.e2-pad .ep-chat .e2-row{max-width:94%;margin-left:24px;}
body.e2-pad .ep-chat .e2-row.me{margin-left:0;}
body.e2-pad .ep-chat .e2-b{padding:13px 18px;font-size:18px;line-height:1.45;border-radius:20px 20px 20px 8px;}
body.e2-pad .ep-chat .e2-row.me .e2-b{border-radius:20px 20px 8px 20px;}
body.e2-pad .ep-chat .e2-b small,body.e2-pad .ep-chat #e2Hello #pinSub{font-size:14.5px;}
body.e2-pad .ep-chat .e2-chips{margin-left:24px;gap:10px;}
body.e2-pad .ep-chat .e2-chips a,body.e2-pad .ep-chat .e2-chips button{min-height:50px;padding:0 20px;font-size:16.5px;}
body.e2-pad .ep-chat .e2-pad{margin-left:24px;width:min(400px,calc(100% - 24px));padding:18px;box-sizing:border-box;}
body.e2-pad .ep-chat .dots i{width:18px;height:18px;}
body.e2-pad .ep-chat .keys{gap:10px;}
body.e2-pad .ep-chat .keys button{height:64px;font-size:26px;}
body.e2-pad .ep-chat .e2-compose{position:static;background:none;border:0;box-shadow:none;padding:6px 0 0;}
body.e2-pad .ep-chat .e2-compose form{max-width:none;gap:10px;}
body.e2-pad .ep-chat .e2-compose input{min-height:58px;font-size:20px;}
body.e2-pad .ep-chat .e2-compose button{min-height:58px;min-width:96px;font-size:19px;}
body.e2-pad .ed-foot{position:static;margin-top:14px;}
/* 专属链接口令页：pin.js 的「不是你？换一个学生编号」搬进聊天下面那排药丸 */
body.e2-pad .ep-chat #e2Lost .lost{display:inline-flex;align-items:center;min-height:50px;margin:0;padding:0 20px;border:max(var(--e-bw),1.5px) solid color-mix(in srgb,var(--e-ink) 30%,transparent);border-radius:999px;background:var(--e-surface);color:var(--e-accent-ink);font:800 16.5px var(--e-head);text-decoration:none;}

/* 横放：左边卖点（老师站在底边），右边聊天上下居中 */
@media (orientation:landscape) and (min-height:700px){
  body.e2-pad .ed-lineup{display:grid;height:clamp(100px,calc(100vh * .19),190px);}
  body.e2-pad .ed-heads{display:none;}
  body.e2-pad .ed-pic{height:clamp(150px,calc(100vh * .28),280px);}
}
@media (orientation:landscape) and (max-height:800px){
  body.e2-pad.ep-pin .ep-host img{width:64px;height:64px;}
  body.e2-pad.ep-pin .ep-chat .keys button{height:54px;font-size:23px;}
  body.e2-pad.ep-pin .ep-chat .e2-pad{padding:14px;}
  body.e2-pad.ep-pin .ep-chat,body.e2-pad.ep-pin .ep-chat .e2-log{gap:8px;}
  body.e2-pad.ep-pin .ed-main{padding-top:16px;padding-bottom:16px;}   /* 键盘那步：740 / 750 高一屏放下，不用滚 */
  body.e2-pad.ep-pin .ed-foot{margin-top:8px;}
}

/* 竖拿：上卖点（收紧一点）、下聊天；输入条贴在屏幕底下（像发消息），拇指够得着 */
@media (orientation:portrait){
  body.e2-pad .ed-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;height:auto;min-height:100dvh;}
  body.e2-pad .ed-side{padding:22px 40px 0;gap:10px;border-right:0;}
  body.e2-pad .ed-pitch{margin:0;gap:10px;}
  body.e2-pad .ed-side h1{font-size:30px;}
  body.e2-pad .ed-big,body.e2-pad .ed-pick{max-width:none;}
  body.e2-pad .ed-pic{height:clamp(130px,16vh,230px);}
  body.e2-pad .ed-lineup{display:none;}
  body.e2-pad .ed-heads{display:flex;flex-wrap:nowrap;justify-content:space-between;padding:4px 0 14px;}
  body.e2-pad .ed-main{justify-content:flex-start;padding:24px 40px calc(var(--bar) + 16px);}
  body.e2-pad .ep-chat{max-width:740px;}
  body.e2-pad .ep-chat .e2-compose{position:fixed;left:0;right:0;bottom:0;z-index:10;padding:14px 40px calc(14px + env(safe-area-inset-bottom));background:var(--e-surface);border-top:var(--e-bw) solid var(--e-bc);box-shadow:0 -6px 20px rgba(16,24,40,.08);}
  body.e2-pad .ep-chat .e2-compose form{max-width:740px;margin:0 auto;}
  body.e2-pad .ep-chat .e2-msg{max-width:740px;}
  /* 输口令 / 认得你：上面卖点收成只剩大标题 */
  body.e2-pad.ep-pin .ed-big,body.e2-pad.ep-pin .ed-pick,body.e2-pad.ep-pin .ed-crew,body.e2-pad.ep-pin .ed-sub{display:none;}
  body.e2-pad.ep-pin .ed-side{padding-bottom:20px;}
  body.e2-pad.ep-pin .ed-main{padding-bottom:40px;}
}
@media (orientation:portrait) and (max-height:1060px){
  body.e2-pad .ed-pic{height:140px;}
  body.e2-pad .ep-host img{width:80px;height:80px;}
}
/* 12.9 寸竖拿（900 宽以上，负责人 10-05 选「甲 · 一栏 740」，样稿 docs/ipad-candidates/home/pro-mock.css）：
   上面卖点也收进和聊天、输入条同一栏 740（和 11 寸一样宽）居中、左右边对齐，不再拉满 944；图大一点；
   聊天在剩下的高度里上下居中（首页、输口令、认得你都是），不再挤在上面、下面空一截。11 寸、横放不变。 */
@media (orientation:portrait) and (min-width:900px){
  body.e2-pad .ed-side{padding-left:calc((100% - 740px) / 2);padding-right:calc((100% - 740px) / 2);}
  body.e2-pad .ed-pic{height:clamp(140px,19vh,260px);}
  body.e2-pad .ed-pv{zoom:1.12;}
  body.e2-pad .ed-main{justify-content:center;}
}
