/* 学习端样式 —— 1:1 还原 kaobida.net 参考站
   来源：参考站 css/head.css + css/global.css + css/foot.css 合并适配 */
html, body {
  color: #333;
  margin: 0;
  height: 100%;
  font-family: "Myriad Set Pro","Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;
}
a { text-decoration: none; color: #222; }
a:hover { color: #08acee; }
img { border: 0; }
button, input, optgroup, select, textarea {
  margin: 0; font: inherit; color: inherit; outline: none;
}
li { list-style: none; }
html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td {
  margin: 0; padding: 0;
}
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.clearfix::after { clear: both; content: "."; display: block; height: 0; visibility: hidden; }

/**************************************** 顶部灰条 ****************************************/
.bar {
  height: 36px; line-height: 36px;
  border-bottom: 1px solid #dbdbdb;
  background-color: #f8f8f8;
  width: 100%; font-size: 14px;
}
.wrap { width: 1200px; margin: 0 auto; position: relative; left: 2px; }
.bar .left { float: left; color: #666; }
.bar .right { float: right; color: #666; }
.bar .right a { color: #08acee; margin-left: 12px; }
.bar .right a.quit-link { color: red; }

/* ============================================================
   站内提醒条（合作商续费提醒）
   · 由 app.js 的 loadTeamNotices() 插到 #head 之后，只有主账号会看到
   · 文案来自后台（系统设置里的模板，或总部手动推送时填的内容），
     所以这里只管样式，不写死任何一句话
   ============================================================ */
.p-notice { background: #fff8e6; border-bottom: 1px solid #f3e2b0; }
.p-notice .pn-in {
  width: 1200px; max-width: 100%; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: #8a5b00;
}
.p-notice .pn-tag {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 6px;
  background: #f6c14b; color: #5c3d00; font-size: 12px; font-weight: 700;
}
.p-notice .pn-txt { flex: 1 1 auto; line-height: 1.6; }
.p-notice .pn-x {
  flex: 0 0 auto; padding: 3px 12px; border-radius: 999px;
  border: 1px solid #e0c179; color: #8a5b00; font-size: 12px; background: #fff;
}
.p-notice .pn-x:hover { background: #fdf1d6; }
@media (max-width: 768px) {
  .p-notice .pn-in { padding: 8px 10px; font-size: 12px; gap: 8px; }
}
.clear { clear: both; }

/**************************************** 头部 Logo ****************************************/
.m-wrap { width: 100%; min-width: 1200px; margin-left: auto; margin-right: auto; }
.m-box { width: 1200px; margin-left: auto; margin-right: auto; }
.g-header {
  height: 100px; overflow: hidden; box-sizing: border-box;
  border-bottom: 1px dashed #999;
}
.g-header .m-box { height: 100%; }
.g-header .f-l {
  display: flex; width: 180px; height: 100%; overflow: hidden; float: left;
}
.g-header .f-l img { display: block; width: auto; height: auto; margin: auto; max-height: 88px; }
.g-header .f-r {
  width: auto; height: 100%; overflow: hidden; float: right;
  box-sizing: border-box; padding-top: 20px;
}
.g-header .f-r p { font-size: 14px; color: #666; text-align: right; }
.g-header .f-r h3 {
  background: url(../images/topPage/02.png) 0 center no-repeat;
  margin-top: 3px; box-sizing: border-box; padding-left: 30px;
  font-size: 24px; font-weight: bold; color: #ff7010;
}
.f-l { float: left; }
.f-r { float: right; }

/**************************************** 头部搜索课程 ****************************************/
.head-search { padding-top: 11px; }
.head-search input[type="text"] {
  width: 258px; height: 38px; line-height: 38px; padding: 0 14px;
  font-size: 14px; color: #333; background: #fff; outline: none;
  border: 2px solid #08acee; border-right: 0; border-radius: 3px 0 0 3px;
  vertical-align: middle;
}
.head-search input[type="text"]:focus { border-color: #068ad4; }
.head-search input[type="text"]::placeholder { color: #b3b3b3; }
.head-search button {
  height: 38px; padding: 0 22px; margin-left: -4px; cursor: pointer;
  font-size: 15px; color: #fff; background: #08acee;
  border: 0; border-radius: 0 3px 3px 0; vertical-align: middle;
}
.head-search button:hover { background: #068ad4; }

/* 搜索结果里的分类归属标签 */
.uc-ykt-coursecard-wrap_tit_cat {
  display: inline-block; margin-left: 6px; padding: 0 6px; line-height: 16px;
  font-size: 12px; color: #fff; background: #08acee; border-radius: 2px;
  vertical-align: middle;
}

/**************************************** 导航 ****************************************/
.city-nav-header {
  width: 1200px; margin: 0 auto; display: table; position: relative; z-index: 50;
  height: 53px; color: #555; font-size: 18px; line-height: 53px;
}
.city-nav-list {
  cursor: pointer; position: relative; z-index: 50;
  float: left; width: 230px; height: 53px; color: #fff; background: #068ad4;
}
.city-nav-list > a {
  display: block; width: 230px; height: 53px; color: #fff;
}
.city-nav-list > a img {
  display: inline-block; margin-top: 15px; margin-left: 20px; margin-right: 12px;
  border: 0 none; width: 22px; height: 22px; float: left;
}
.city-nav-item { float: left; width: 970px; height: 53px; }
.city-nav-item a {
  font-size: 18px; line-height: 53px; position: relative;
  display: inline-block; padding: 0 12px;
}
.city-nav-item a:first-child { padding-left: 34px; }
.city-nav-item a.head_active { color: #08acee; }

.city-nav-left {
  width: 230px; height: auto; position: absolute; top: 53px; left: 0;
  border-top: 1px solid #27b1ff; background: #068ad4; display: none; z-index: 999;
}
.city-nav-list:hover .city-nav-left { display: block; }
.city-nav-left dl dd {
  position: relative; z-index: 50; width: auto; height: 66px; line-height: 66px;
  font-size: 18px; background: #068ad4 url(../images/icon-row.png) no-repeat center right;
  border-top: 1px solid #0070ae; border-bottom: 1px solid #27b1ff;
}
.city-nav-left dl dd a {
  height: 68px; line-height: 68px; font-size: 16px; display: block; width: 230px; color: #fff;
}
.city-nav-left dl dd a img {
  display: inline-block; margin-top: 23px; margin-left: 20px; margin-right: 12px;
  width: 22px; height: 22px; float: left; border: 0 none;
}
.city-nav-left dl dd a:hover { background: url(../images/icon-hover.png); color: #fff; }
.city-nav-left dl dd { position: relative; }
/* 悬停时把当前 dd 提到最上层。
   原因：所有 dd 的 z-index 都是 50，后一个 dd 会绘制在前一个之上；
   二级面板向下延伸正好落进下一个 dd 的范围，面板下半部分被遮挡，
   鼠标移到那里命中的是下一个 dd → 上一个 dd 的 :hover 丢失 → 面板“突然消失”。
   提升悬停项层级后，面板整体位于同级 dd 之上，悬停与点击都稳定。 */
.city-nav-left dl dd:hover { z-index: 200; }
.city-nav-left dl dd.has-casket:hover { z-index: 201; }
/* JS 延迟关闭用（见 app.js bindSubNav），鼠标快速划过时面板不立即消失 */
.city-nav-left dl dd.nav-open { z-index: 201; }
.city-nav-left dl dd.nav-open .city-nav-casket { display: block; }

/******** 二级菜单（各省份产学研 / 人人都是规划师）+ 三级省份 ********/
.city-nav-casket {
  display: none;
  position: absolute; left: 228px; top: -1px;
  width: 520px; padding: 14px 18px 16px;
  background: #fff; border: 1px solid #0070ae;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  z-index: 10002; font-size: 14px; line-height: normal;
  border-radius: 0 0 4px 4px;
}
.city-nav-left dl dd.has-casket:hover .city-nav-casket { display: block; }
.city-nav-casket .casket-group { position: relative; }
/* 覆盖侧栏 dd a 的白色大字样式（优先级需高于 .city-nav-left dl dd a） */
.city-nav-left dl dd .city-nav-casket .casket-row,
.city-nav-left dl dd .city-nav-casket .casket-row:hover {
  display: block; width: auto; height: 40px; line-height: 40px;
  padding: 0 8px; font-size: 15px; color: #222;
  background: none; border-radius: 3px;
}
.city-nav-left dl dd .city-nav-casket .casket-row:hover { background: #f2f8fd; color: #068ad4; }
.city-nav-casket .casket-name { font-weight: bold; }
.city-nav-casket .casket-cnt { font-style: normal; font-size: 12px; color: #999; margin-left: 8px; }
.city-nav-casket .casket-arr { float: right; color: #bbb; font-size: 16px; }
/* 三级省份面板：绝对定位浮在二级面板右侧（不参与布局）。
   若写成内联展开，省份展开/收起会改变二级行位置——鼠标从省份滑向「人人都是规划师」时
   行位置突变会让 hover 丢失、整个面板消失。改成右侧浮层后二级行位置恒定，可稳定点击。 */
.city-nav-casket .casket-provs {
  display: none;
  position: absolute; left: 100%; top: -1px;
  width: 340px; padding: 12px 14px 4px;
  background: #fff; border: 1px solid #0070ae;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  border-radius: 0 4px 4px 0;
}
.city-nav-casket .casket-group:hover .casket-provs { display: block; }
.city-nav-left dl dd .city-nav-casket .casket-provs a,
.city-nav-left dl dd .city-nav-casket .casket-provs a:hover {
  display: inline-block; width: auto; height: auto; line-height: normal;
  margin: 0 8px 8px 0; padding: 5px 12px; font-size: 13px;
  color: #333; background: #f2f7fb; border-radius: 3px;
}
.city-nav-left dl dd .city-nav-casket .casket-provs a:hover { background: #068ad4; color: #fff; }
.city-nav-casket .casket-provs a em { font-style: normal; color: #999; margin-left: 5px; font-size: 12px; }
.city-nav-casket .casket-provs a:hover em { color: #fff; }

/**************************************** Banner 轮播 ****************************************/
.city-slide { position: relative; width: 100%; min-width: 1200px; overflow: hidden; }
.city-slide-body ul { position: relative; height: 410px; width: 1200px; margin: 0 auto; }
.city-slide-body ul li { position: absolute; z-index: 3; width: 100%; height: 410px; }
.city-slide-body ul li a {
  position: relative; z-index: 1; margin: 0 auto; display: block;
  width: 770px; height: 410px;
}
.city-slide-body ul li img { width: 770px; height: 410px; display: block; }

/**************************************** 首页课程板块 ****************************************/
.main-ind { overflow-x: hidden; }
.row-ind2 { background-color: #f5f5f5; padding: 40px 0 5px; }
.wp { width: 1200px; margin: 0 auto; }
.row { padding: 0 10px; }

.class-items { padding-bottom: 40px; }
.class-items dt { line-height: 30px; }
.class-items dt h4 {
  font-size: 20px; text-transform: uppercase; font-weight: normal; margin: 15px 0 5px;
}
.class-items dd { overflow: hidden; }
.class-items .items { float: left; overflow: hidden; padding-top: 10px; }
.class-items .items + .items { margin-left: 25px; }
.class-items .items.i2 { width: 465px; }

.class-tit {
  position: relative; display: block; width: 200px; height: 320px;
  border-radius: 5px; overflow: hidden; background-repeat: no-repeat;
  background-position: 0 0; -webkit-background-size: cover; background-size: cover;
  color: #fff; padding: 20px;
}
.class-tit:hover { color: #fff; }

.more {
  float: right; font-size: 12px; color: #8e8e8e; padding-right: 20px;
  background: url(../images/topPage/icon-more1.png) no-repeat right center;
}
.more:hover { color: #1c1c1c; }

.mb { margin-bottom: 20px; }
.mr { margin-right: 25px; }
.ml { margin-left: 25px; }

/* 封面容器：桌面端只是普通 block（跟直接放 <img> 完全一样），
   移动端断点里才被赋成长宽比盒子 + 裁剪。见下方 @media。 */
.class-items .cov { display: block; }

.class-items .item1, .class-items .item2, .class-items .item3, .class-items .item4 {
  border-radius: 5px; overflow: hidden; float: left; background-color: #fff;
}
.class-items .item1 img { display: block; width: 465px; height: 150px; }
.class-items .item2 img { display: block; width: 220px; height: 110px; }
.class-items .item3 img { display: block; width: 220px; height: 320px; }
.class-items .item4 img { display: block; width: 220px; height: 150px; }
.class-items .item2 .label {
  line-height: 40px; padding: 0 19px; font-size: 14px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 220px;
  color: #333;
}
.class-items a { -webkit-transition: .3s; -o-transition: .3s; transition: .3s; }
.class-items a.item2, .class-items a.item1, .class-items a.item3 {
  cursor: pointer;
}
.class-items a.item2:hover, .class-items a.item1:hover, .class-items a.item3:hover {
  -webkit-transform: translateY(-5px); -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px); transform: translateY(-5px);
}

/**************************************** 课程列表页（查看更多） ****************************************/
.mc-search-course-list { background: #f4f4f4; }
.mc-search-course-list-wrap { min-height: 600px; margin-bottom: 60px; }
.uc-course-list { line-height: normal; background: #f4f4f4; }
.g-flow { width: 1200px; margin: 0 auto; text-align: left; }
.uc-course-list_ul { margin-right: -20px; font-size: 0; }
.uc-course-list_itm {
  width: 281px; height: 200px; margin-right: 20px; margin-bottom: 20px;
  background: #fff; display: inline-block; zoom: 1;
}
.uc-ykt-coursecard {
  position: relative; width: 281px; height: 200px; background-color: #fff; box-sizing: border-box;
}
.uc-ykt-coursecard > a { display: block; height: 100%; }
.uc-ykt-coursecard-wrap { width: 100%; height: 100%; display: block; position: relative; }
.uc-ykt-coursecard-wrap_box { padding: 1px 1px 0; height: 100%; width: 100%; }
.uc-ykt-coursecard-wrap_picbox {
  position: relative; overflow: hidden; height: 140px; width: 100%; border-radius: 3px 3px 0 0;
}
.uc-ykt-coursecard-wrap_picbox > img {
  width: 100%; height: 140px; transition: all 0.6s; -webkit-transition: all 0.6s;
  -o-transition: all 0.6s; -moz-transition: all 0.6s; -ms-transition: all 0.6s;
}
.uc-ykt-coursecard-wrap_tit {
  color: #333; padding: 0 10px; margin-top: 8px; margin-bottom: 4px;
  min-height: 20px; max-height: 40px; overflow: hidden;
}
.uc-ykt-coursecard-wrap_tit_isrec {
  font-size: 12px; color: #49AF4F; background: #E5F4E6; width: 32px; height: 18px;
  display: inline-block; text-align: center; line-height: 18px; margin-right: 8px;
}
.uc-ykt-coursecard-wrap_tit_name { line-height: 20px; font-size: 14px; }
.uc-ykt-coursecard:hover { box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1); }
.uc-ykt-coursecard:hover .uc-ykt-coursecard-wrap_box .imgPic {
  transform: scale(1.15); -webkit-transform: scale(1.15);
  -o-transform: scale(1.15); -moz-transform: scale(1.15); -ms-transform: scale(1.15);
}
.f-ib { display: inline-block; zoom: 1; }
.f-fl { float: left; }
.f-pa { position: absolute; }

/* 列表页标题行 */
.row-ind2 .list-title { padding-bottom: 0; }
.row-ind2 .list-title h4 { font-size: 20px; font-weight: normal; margin: 15px 0 5px; }

/* 分页（列表页底部） */
.pager-bar { width: 1200px; margin: 0 auto 40px; text-align: center; font-size: 14px; color: #666; }
.pager-bar button {
  display: inline-block; padding: 7px 18px; margin: 0 6px; font-size: 14px;
  color: #333; background: #fff; border: 1px solid #ddd; border-radius: 3px; cursor: pointer;
}
.pager-bar button:hover:not(:disabled) { color: #08acee; border-color: #08acee; }
.pager-bar button:disabled { color: #bbb; cursor: not-allowed; }
.pager-bar .pg-info { margin: 0 10px; }
.pager-bar .pg-jump { display: inline-block; margin-left: 18px; color: #666; }
.pager-bar .pg-jump input {
  width: 62px; height: 32px; line-height: 32px; padding: 0 6px; margin: 0 4px;
  text-align: center; font-size: 14px; color: #333; background: #fff;
  border: 1px solid #ddd; border-radius: 3px; outline: none; vertical-align: middle;
}
.pager-bar .pg-jump input:focus { border-color: #08acee; box-shadow: 0 0 0 2px rgba(8, 172, 238, .15); }
.pager-bar .pg-jump button { margin: 0 0 0 4px; padding: 6px 14px; vertical-align: middle; }
/* 去掉数字输入框的上下箭头，避免误触 */
.pager-bar .pg-jump input::-webkit-outer-spin-button,
.pager-bar .pg-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager-bar .pg-jump input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/**************************************** 底部 ****************************************/
.footer { background-color: #1c1c1c; }
.footer .wp { width: 1200px; margin: 0 auto; }
.footer .copyr {
  margin: 0 30px; font-size: 12px; color: #898989; line-height: 20px;
  padding: 20px 0; border-top: 1px solid #2e2e2e;
}
.footer .copyr .txt { margin-left: -20px; }
.footer .copyr .txt a { color: #898989; }
.footer .copyr .txt a:hover { color: #fff; }
.footer .copyr span { margin: 0 20px; }

/* ------------------------------------------------------------
   页脚贴底
   「我的晋升」「学业规划师认证」这类页面内容常常不满一屏，页脚就跟在内容
   后面浮在屏幕中间，下面留一大块白 —— 大屏上尤其难看。
   改法：body 变成纵向 flex 容器，页脚 margin-top:auto 吃掉剩余空间。

   ★ 只在 <body class="fill-page"> 的页面上生效，不要做成全局 body 规则：
     play.html（整屏播放器）、login.html（居中登录框）、certquery.html
     都是自己一套满屏布局，body 一改 flex 全乱。
   ★ #foot 是 <span>，必须显式 display:block，否则 inline 元素的
     margin-top:auto 在 flex 容器里虽然有块级化，但老 WebView 不认。
   ★★ 血泪教训：flex 子项只要带 margin:0 auto，横向就不再 stretch，
      而是按内容 shrink-to-fit —— .gw-page（max-width:1080 + margin:0 auto）
      在 1920 屏上实测只剩 527px 宽，整页像被"缩小"了。
      ⇒ 带居中容器的直接子元素必须显式 width:100%，再用它自己的
        max-width + margin:auto 去居中。
   ------------------------------------------------------------ */
body.fill-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 纵向既不压缩也不拉伸，高度由内容决定；剩余空间全给页脚的上外边距 */
body.fill-page > * { flex: 0 0 auto; }
body.fill-page > #head,
body.fill-page > #foot { width: 100%; }
body.fill-page > #foot { margin-top: auto; display: block; }
/* 内容容器的宽度必须写死 100%，否则被 flex 收缩（见上方说明） */
body.fill-page > .gw-page,
body.fill-page > .cert-page,
body.fill-page > .exam-page,
body.fill-page > .main-ind,
body.fill-page > .row-ind2,
body.fill-page > .mc-search-course-list,
body.fill-page > .tm-page { width: 100%; }

/**************************************** 登录页（动画渐变背景 + 橙色登录框） ****************************************/
.login-page {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(-45deg, #0f4c5c, #068ad4, #0a5f8f, #123f6d);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* 浮动光斑装饰 */
.login-page::before, .login-page::after,
.login-bubble {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.login-page::before { width: 420px; height: 420px; top: -120px; left: -100px; animation: float1 9s ease-in-out infinite; }
.login-page::after  { width: 300px; height: 300px; bottom: -80px; right: -60px; animation: float2 11s ease-in-out infinite; }
.login-bubble { width: 160px; height: 160px; top: 18%; right: 14%; animation: float2 13s ease-in-out infinite; }
.login-bubble.b2 { width: 90px; height: 90px; top: auto; right: auto; bottom: 20%; left: 12%; background: rgba(255,255,255,.12); animation: float1 10s ease-in-out infinite; }
@keyframes float1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-35px) scale(1.06); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(30px) scale(.94); }
}
.login-box {
  width: 470px; max-width: 94vw; padding: 0 0 35px 0; color: #666; border-radius: 6px;
  background: rgb(245,245,245); margin: 0 auto; position: relative; z-index: 2;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  animation: boxIn .6s ease both;
}
@keyframes boxIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-title {
  width: 100%; height: 62px; line-height: 62px; margin-bottom: 35px;
  font-size: 22px; font-weight: bolder; color: #FFF;
  background: linear-gradient(top, #e9580a, #dc3d0a);
  background: -webkit-linear-gradient(top, #e9580a, #dc3d0a);
  background: -moz-linear-gradient(top, #e9580a, #dc3d0a);
  background: -o-linear-gradient(top, #e9580a, #dc3d0a);
  background: linear-gradient(#e9580a, #dc3d0a);
  text-align: center; border-radius: 4px 4px 0 0;
}
.login-form { width: 330px; margin: 0 auto; }
.form-item { width: 100%; height: 48px; margin-bottom: 20px; position: relative; }
.form-item.user, .form-item.pass, .form-item.captcha { margin-bottom: 33px; }
.form-tips { width: 100%; line-height: 16px; font-size: 12px; color: #e35b5a; position: absolute; top: 100%; }
.form-item .form-tips { position: static; margin-top: 6px; height: auto; }
.form-button .btn-green { color: #fff; background: #e35004; width: 100%; border: 0; }
.form-button .btn {
  font-size: 22px; padding: 6px 19px; cursor: pointer; -webkit-transition: all .2s;
  transition: all .2s; border: 1px solid transparent; border-radius: 2px; outline: 0;
  font-family: "微软雅黑";
}
.btn.block { display: block; width: 100%; }
.login_input {
  width: 100%; height: 48px; padding: 12px 20px; -webkit-transition: all .2s; transition: all .2s;
  border: 1px solid #a5aaab; border-radius: 3px; outline: 0; font-size: 16px; background: #fff;
}
.captcha-row { display: flex; gap: 10px; }
.captcha-row .login_input { flex: 1; }
.captcha-row img { height: 48px; cursor: pointer; border-radius: 3px; background: #fff; }

/**************************************** 弹窗（改密/学习记录/子账号） ****************************************/
.modal-mask {
  display: none; position: fixed; inset: 0; background: rgba(8, 18, 32, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  z-index: 10000; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 720px; max-width: 100%; max-height: 84vh; background: #fff;
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(8, 18, 32, .32);
  animation: mPop .26s cubic-bezier(.22,1,.36,1);
}
@keyframes mPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes mSheetUp { from { transform: translateY(100%); } }
/* ★【2026-09-18 加固：弹窗在长内容下不挤压标题栏】
   说明：本次"点关闭没反应"的**真根因不在 CSS**（是 JS 里
   `$('#modalX').onclick = closeModal;` 早于 closeModal 定义执行、
   把 null 写进了 onclick，详见 app.js【弹窗】区块注释）。
   ⚠️ 我最初怀疑是 flex 压缩把 ✕ 挤出可视区 —— 已用对照实验证伪：
      还原这几行后，137/400 条记录下 ✕ 依然 top=74、head 高恒为 50、可点。
   保留这几行仍是有价值的**加固**（长内容下标题栏高度恒定、滚动锁定在 body 内），
   所以留下；但请不要把它当成该 bug 的修复。 */
.modal-head {
  height: 54px; line-height: 54px; padding: 0 18px; font-size: 15px; font-weight: 600; color: #1f2937;
  background: #fff; border-bottom: 1px solid #eef1f7;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
  cursor: pointer;   /* 整个标题栏都是关闭热区（见 app.js bindModalEvents） */
}
/* ✕ 做成固定尺寸方块：命中区域更大，鼠标悬停有反馈，用户更容易找到并点中 */
.modal-head .x {
  cursor: pointer; font-size: 22px; color: #8a94a6;
  width: 30px; height: 30px; line-height: 28px; text-align: center;
  border-radius: 8px; flex-shrink: 0; -webkit-user-select: none; user-select: none;
}
.modal-head .x:hover { background: #f1f4fa; color: #1f2937; }
.modal-body {
  padding: 18px 18px 20px; overflow-y: auto; font-size: 14px;
  flex: 1 1 auto; min-height: 0;
}
.modal-body table { width: 100%; border-collapse: collapse; }
.modal-body th, .modal-body td { border-bottom: 1px solid #eee; padding: 10px 8px; text-align: left; font-size: 13px; }
.modal-body th { background: #f6f9fc; color: #555; }
.modal-body a { color: #08acee; cursor: pointer; }
.m-btn {
  display: inline-block; padding: 9px 22px; font-size: 14px; border-radius: 10px;
  border: 1px solid #dde3ee; background: #fff; color: #33404f; cursor: pointer; margin-left: 10px;
  transition: background .15s, border-color .15s, color .15s;
}
.m-btn.primary {
  background: linear-gradient(135deg, #0a9adf, #08acee); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(8, 172, 238, .32);
}
.m-btn.danger { background: #e5484d; border-color: #e5484d; color: #fff; }
.m-btn:hover { opacity: .9; }
/* ★ 按钮条吸底：内容再长（比如学习记录几十条），按钮也一直看得见 —— 不用滚到底去找 */
.modal-actions {
  margin: 16px -18px -20px; padding: 13px 18px; text-align: right;
  position: sticky; bottom: -20px; background: #fff; border-top: 1px solid #eef1f7;
  box-shadow: 0 -8px 16px -8px rgba(8, 18, 32, .12);
}
/* 弹窗内的分页条（复用列表页 .pager-bar 的按钮观感，但宽度自适应弹窗） */
.modal-pager {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid #eee;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px; font-size: 13px; color: #666;
}
.modal-pager button {
  display: inline-block; padding: 5px 14px; margin: 0 4px; font-size: 13px;
  color: #333; background: #fff; border: 1px solid #ddd; border-radius: 3px; cursor: pointer;
}
.modal-pager button:hover:not(:disabled) { color: #08acee; border-color: #08acee; }
.modal-pager button:disabled { color: #bbb; cursor: not-allowed; }
.modal-pager .pg-info { margin: 0 8px; }
.modal-pager .pg-jump { display: inline-block; margin-left: 12px; color: #666; }
.modal-pager .pg-jump input {
  width: 54px; height: 28px; line-height: 28px; padding: 0 6px; margin: 0 4px;
  text-align: center; font-size: 13px; color: #333; background: #fff;
  border: 1px solid #ddd; border-radius: 3px; outline: none; vertical-align: middle;
}
.modal-pager .pg-jump input:focus { border-color: #08acee; box-shadow: 0 0 0 2px rgba(8, 172, 238, .15); }
.modal-pager .pg-jump button { margin: 0 0 0 4px; padding: 5px 12px; vertical-align: middle; }
.modal-pager .pg-jump input::-webkit-outer-spin-button,
.modal-pager .pg-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.modal-pager .pg-jump input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; margin-bottom: 6px; color: #555; }
.modal-field input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dde3ee; border-radius: 10px;
  font-size: 16px;   /* ★ 移动端 16px：小于 16px 时 iOS 聚焦会自动放大整页 */
}
.modal-field input:focus { outline: none; border-color: #08acee; box-shadow: 0 0 0 3px rgba(8,172,238,.15); }

/* ---------- 轻提示 Toast（替代浏览器原生 alert）---------- */
.toast-wrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100001;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: max-content; max-width: 90vw;
}
.toast {
  display: flex; align-items: center; gap: 9px; max-width: 90vw; padding: 11px 18px;
  border-radius: 12px; font-size: 14px; line-height: 1.5; color: #fff;
  background: rgba(31, 41, 55, .95); box-shadow: 0 10px 30px rgba(8, 18, 32, .3);
  animation: toastIn .22s cubic-bezier(.22,1,.36,1);
}
.toast .ico {
  flex: none; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22);
}
.toast.ok { background: linear-gradient(135deg, #16a34a, #15803d); }
.toast.err { background: linear-gradient(135deg, #e5484d, #c0343a); }
.toast.warn { background: linear-gradient(135deg, #e08b12, #b8720c); }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- 确认框（替代原生 confirm / prompt）---------- */
.modal.confirm { width: 420px; }
.cf-body { display: flex; gap: 13px; align-items: flex-start; }
.cf-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; line-height: 40px;
  text-align: center; background: rgba(8,172,238,.12); color: #068ad4;
}
.cf-icon.danger { background: #fdeaea; color: #e5484d; }
.cf-msg { font-size: 14px; line-height: 1.75; color: #33404f; white-space: pre-wrap; word-break: break-word; }
.cf-input {
  width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid #dde3ee; border-radius: 10px;
  font-size: 16px; line-height: 1.6; background: #fbfcfe; resize: vertical;
}
.cf-input:focus { outline: none; border-color: #08acee; background: #fff; box-shadow: 0 0 0 3px rgba(8,172,238,.15); }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; line-height: 18px;
}
.tag.on { background: #e5f4e6; color: #49af4f; }
.tag.off { background: #fdeaea; color: #e35b5a; }
.tag.warn { background: #fff4e0; color: #e6930c; }
.progress-bar { height: 6px; border-radius: 3px; background: #eee; overflow: hidden; }
.progress-bar > div { height: 100%; background: #06ad64; }
.empty-tip { color: #999; padding: 30px 0; text-align: center; }

/**************************************** 播放页 ****************************************/
.play-page {
  width: 1190px; margin: 0 auto; padding: 25px 0 40px;
}
.play-page .back-link { color: #8ab4d8; font-size: 14px; display: inline-block; margin-bottom: 12px; }
.play-page .play-title {
  font-size: 24px; color: #eee; font-weight: normal; margin-bottom: 20px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.play-page .player-wrap {
  position: relative;                 /* 水印层 .wm-layer / #aliBox 的定位基准 */
  /* 【★★ 2026-09-21 修正：写死 600px 高度 + 16:9 视频 = 必然错配】
     原来这里是 `height: 600px`。.play-page 宽 1190px，
     16:9 视频在该宽度下应该是 1190/16*9 ≈ **669px**。
     容器(600) 比视频(669) 矮、又比画面高的部分对不上，于是 SDK 只能把画面
     压进容器里 —— 表现就是用户看到的「一大块灰色空板 + 视频被挤成顶部一条」，
     而且会被误认为"页面里有两个播放器"（其实上面是画面、下面是容器底色）。
     正确做法：用 aspect-ratio 让容器**跟着视频比例走**，而不是写死像素。
     这样无论 .play-page 多宽，容器和画面的比例永远一致，不会有灰板。 */
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #383838;
  box-shadow: 0 4px 10px 2px rgba(174,174,174,.6);
  /* 兜底：aspect-ratio 不被支持的老浏览器仍给个合理高度 */
  height: auto;
  min-height: 420px;
}
/* 【★ 2026-09-20 修正】选择器必须收紧到「直系 video」，只用 > 
   原来写的是 `.play-page video`（后代选择器），会命中阿里云播放器 SDK 注入到 #aliBox
   里的**它自己的 <video>**，把那个 video 也强制成 width/height:100%，
   导致 SDK 内部尺寸计算错乱 —— 表现是「控制条能出来但错位、画面被压扁、按钮点不到」。
   加 `>` 后只作用于页面上那个原生 <video>（direct 模式用），SDK 注入的不受影响。 */
.play-page > .player-wrap > video,
.play-page .player-wrap > video {
  display: block; width: 100%; height: 100%;
  object-fit: contain;                /* 等比完整显示，黑边由水印层反算避开 */
  background: #000;
}
/* 私有加密模式下的阿里云播放器容器。
   【★★ 2026-09-21 修正：改为「绝对定位铺满父容器」，不再由 JS 设像素值】
   上一版让 app.js 用 `host.offsetWidth/offsetHeight` 算好像素再赋给 #aliBox 和
   Aliplayer({width,height})。问题：那个读数拿的是**插入容器之前**的值，
   布局还没稳定（标题行高度、字体加载都会影响），于是 SDK 按一个错的高度渲染，
   只画出顶部一条画面，剩下全是 .player-wrap 的灰底 —— 正是用户看到的"灰板"。
   现在改成：CSS 让 #aliBox 绝对定位铺满父容器（`inset:0`），
   JS 只传 '100%' 让 SDK 跟随父容器，尺寸由浏览器布局决定，不再手算。 */
#aliBox {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;   /* 铺满 .player-wrap */
  width: 100%; height: 100%;
  background: #000;
  z-index: 1;
}
/* SDK 注入的 video：只保证等比，不强制尺寸（尺寸由 SDK 自己按容器算） */
#aliBox video {
  object-fit: contain;
}
body.play-body { background: #16211b; }
.play-page .play-tip { color: #8a9a90; margin-top: 10px; font-size: 12px; }
/* 续播提示（定位到上次位置后短暂高亮；6 秒后由 JS 还原，见 app.js 的 resumeHint） */
.play-page .play-tip.tip-hl { color: #08acee; font-weight: 600; }

/* 播放出错提示框（2026-10-27 加）
   原来出错时是**直接改写标题 #pt 的文字**，用户既看不到"该怎么处理"，
   也没有任何重新加载的入口，只能自己刷新整个页面。现在独立成一个块：
   上半句是「出了什么问题」的中文说明，下面给一个「重新加载」按钮。 */
.play-err {
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid #5a3a3a; border-radius: 8px;
  background: #2a1f1f; color: #f0c8c8;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.play-err[hidden] { display: none; }
.play-err .pe-text { font-size: 14px; line-height: 1.6; flex: 1 1 260px; }
.play-err .pe-hint {
  display: block; margin-top: 4px; font-size: 12px; color: #b09090;
}
.play-err .pe-btn {
  flex: 0 0 auto; cursor: pointer;
  padding: 8px 20px; font-size: 14px;
  color: #fff; background: #3d7ab8; border: 0; border-radius: 6px;
}
.play-err .pe-btn:hover { background: #4a8cd0; }
.play-err .pe-btn[disabled] { background: #555; cursor: default; }
/* 自动重试倒计时里的弱化文字 */
.play-err .pe-count { color: #a08080; }

/* ==================================================================
   移动端适配（2026-10-27 新增）
   ------------------------------------------------------------------
   背景：这份样式原本是为 PC 端 1:1 还原参考站写的，**整份文件此前没有任何 @media**，
   容器全部写死 1200px。学员用手机浏览器打开时会横向滚动、字被压得很小。

   【适配策略】
     · ≤1200px：把写死的宽度改成「百分百 + 左右留白」，不再依赖 1200 这个魔数；
     · ≤1024px：课程卡片 4 列 → 3 列；
     · ≤768px ：主断点。卡片改 2 列、头部 Logo 与搜索区改为堆叠、
                顶部导航改横向滚动（不再被 1200 挤变形）；
     · ≤480px ：进一步压缩字号与间距，适配 iPhone SE 一类小屏。

   【不要动桌面端】全部用 max-width 断点书写，PC 上完全不受影响。
   ================================================================== */

/* ---------- ≤1200px：容器宽度解冻 ---------- */
@media (max-width: 1200px) {
  .wrap, .m-box, .wp, .g-flow, .pager-bar,
  .city-nav-header, .footer .wp {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  /* ★ min-width 是"横向滚动"的元凶，必须清掉 */
  .m-wrap { min-width: 0; }
  .city-slide { min-width: 0; }
  .city-slide-body ul { width: 100%; }
  .play-page { width: 100%; padding-left: 12px; padding-right: 12px; }
  /* Banner：原本整块写死 770×410，窄屏下会左侧留一大条空白。
     这里提前到 1200 断点处理，让 998~1200 区间也按宽度自适应。 */
  .city-slide-body ul,
  .city-slide-body ul li,
  .city-slide-body ul li a,
  .city-slide-body ul li img { height: auto; }
  .city-slide-body ul li a { width: 100%; }
  .city-slide-body ul li img { width: 100%; height: auto; }
  /* ★ .wrap 原本带了 `left: 2px` 的历史偏移（PC 上为了对齐视觉中线）。
     窄屏下这 2px 会让 documentElement.scrollWidth 比 clientWidth 恒多 2px，
     页面能横向拖动一点点，看着像没适配干净。这里归零。 */
  .wrap { left: 0; }
  /* 998~1200 区间里 4 列卡片会挤，先降到 3 列 */
  .uc-course-list_ul { margin-right: 0; }
  .uc-course-list_itm {
    width: calc((100% - 40px) / 3);
  }
  .uc-ykt-coursecard { width: 100%; }
  .uc-course-list_itm:nth-child(3n) { margin-right: 0; }

  /* ★ 顶部导航右侧链接区写死 970px（= 1200 - 230 的旧算数），
     在 768~1200 区间**没有任何规则管它** ⇒ 手机横屏（844）被它撑出 150px 横向滚动条。
     连带把 viewport 从 844 撑到 994（实测 innerWidth=994 而 clientWidth=844），
     页面整体被缩小一圈，这正是"横屏下看着怪怪的"的来源。
     ★★ 这里**绝对不能写 overflow:hidden**（2026-10-27 第三轮栽过）：
        下拉面板 .city-nav-left 是 absolute + top:48px，相对 .city-nav-list 定位，
        父级一旦 overflow:hidden，面板整个被裁掉 ——
        JS 类名加对了、display 也是 block，但**屏幕上什么都看不到**，
        表现就是「点课程中心，一级分类一个都不显示」。
        修横向溢出靠下面 .city-nav-item 的 overflow-x:auto 就够了，不需要裁父级。 */
  .city-nav-header { display: block; }
  .city-nav-item {
    float: left; width: auto; max-width: 100%;
    overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
  }
  .city-nav-item::-webkit-scrollbar { display: none; }
}

/* ---------- ≤1024px：平板 ---------- */
@media (max-width: 1024px) {
  /* ★ Logo 显示不全的根因（2026-10-27）
     logo 图 01.png 原始尺寸是 179×56。之前这里把容器压成 140×60（480 断点 120×52），
     而图片本身仍是自然宽度 179px，容器又带着 overflow:hidden
     ⇒ 右边被硬生生切掉 39~59px，学员看到的就是"考必达几个字缺了一截"。
     正确做法：容器给到 180px（正好等于原图宽度，不会放大失真），
     图片改成跟着容器缩放，高度交给浏览器算。 */
  .g-header { height: auto; padding: 12px 0; }
  .g-header .m-box { height: auto; }
  .g-header .f-l {
    width: 180px; height: auto; overflow: visible; float: none; margin: 0 auto;
  }
  .g-header .f-l img { width: 100%; height: auto; max-height: none; margin: 0; }
  .g-header .f-r {
    float: none; width: 100%; padding-top: 12px; text-align: center;
  }
  .g-header .f-r p { text-align: center; }
  .g-header .f-r h3 { display: inline-block; }
  .head-search { padding-top: 8px; }
  .head-search input[type="text"] { width: calc(100% - 110px); max-width: 320px; }

  /* ★★ 首页板块重排（2026-10-27）
     桌面端是「200 竖 banner + 465 + 465」的**固定像素拼图**（总宽 1180px），
     窄屏根本塞不下（右边直接被裁／错位）。
     之前这版只是把 img 改成 width:100%/height:auto，结果卡片高度跟着
     图片原始比例乱跳 —— 高的高矮的矮，就是学员说的"有大有小 不整齐"。
     现在整体改成两列网格：
       · 竖版装饰 banner → 满宽横条
       · 推广位        → 独占一整行（2:1）
       · 课程卡        → 两列（16:9）
     封面一律用 .cov 固定比例盒子裁剪，行列自然对齐。 */
  /* ★ dd 的宽度必须显式写 100%。
     实测：dd 里是「width:100% 的 .items + 1fr 分列的网格」，
     浏览器会拿子元素的**最大内容宽度**反推 dd 的宽度（366px 被算成 298px），
     不写这条，整块内容会比视口窄固定 68px，右边留一条空白。 */
  .class-items, .class-items dd { width: 100%; }
  .class-items { padding-bottom: 24px; }
  .class-items .items { float: none; width: 100%; overflow: visible; }
  .class-items .items + .items { margin-left: 0; }
  .class-items .items.i2 {
    width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  }
  /* ★ 竖版装饰海报（220×320）在手机上压成横条时，必须让 background-position 对齐底部：
     这 6 张图的分类名都印在**底部**，取 center 只能看到中间那截模糊的画面，
     看着像图片加载错了；对齐 bottom 正好把「商业模式探索 / BUSINESS MODEL EXPLORATION」露出来。 */
  .class-tit {
    width: 100%; height: 104px; padding: 0;
    background-position: center bottom;
  }
  /* ★★ 推广位（item1/item3）在手机上直接不参与排版。
     它们是人工做的「活动海报」，只有两种比例：
       item1 = 465×150  ≈ 3.1 : 1（横幅）
       item3 = 220×320  ≈ 0.69 : 1（竖版）
     这两种比例跟课程卡的 16:9 完全没法拼成整齐的行列：
     硬拉成 16:9 会像截图里那样把「KAOBIDA EDUCATION」裁掉半个单词，
     按原比例铺满又会一张 113px、一张 510px，照样"有大有小"。
     所以手机上只保留统一尺寸的课程卡（同一批课程依然能从课程列表进入），
     桌面端（>1024px）的拼图版式完全不变。 */
  .class-items .item1, .class-items .item3 { display: none; }
  .class-items .item2, .class-items .item4 {
    float: none; width: auto; margin: 0 !important;
  }
  /* 长宽比盒子：padding-top 的百分比是相对**宽度**算的，56.25% = 16:9。
     图片绝对定位铺满后 object-fit:cover 裁剪成统一比例。
     用 padding 撑高而不是 aspect-ratio，是为了兼容老版本安卓/X5 内核。 */
  .class-items .item2 .cov,
  .class-items .item4 .cov { position: relative; padding-top: 56.25%; }
  .class-items .cov img {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    object-fit: cover;
  }
  .class-items .item2 .label {
    width: auto; padding: 0 8px; line-height: 34px; font-size: 13px;
  }
  /* 卡片在手机上不做悬停位移（触屏没有 hover，位移会造成"粘住"的错觉） */
  .class-items a.item1:hover, .class-items a.item2:hover, .class-items a.item3:hover {
    -webkit-transform: none; transform: none;
  }
}

/* ---------- ≤768px：主移动端断点 ---------- */
@media (max-width: 768px) {
  /* 顶栏：欢迎语会占满一行，先藏掉，把空间让出来 */
  .bar { height: auto; line-height: 30px; font-size: 12px; }
  .bar .left { display: none; }
  .bar .right { float: none; text-align: right; }

  /* ★ 用户栏（#userBar）原来把「公司名 + 到期天数 + 学习记录 + 修改密码 +
     子账号 + 退出」全塞在一行且不换行，实测总宽 420px，在 390px 视口里
     直接把页面撑出横向滚动条。这里允许换行，并把操作链接的可点区域加大。 */
  .bar .right, #userBar {
    display: block; white-space: normal; line-height: 1.5;
    font-size: 12px; word-break: break-all;
  }
  #userBar a {
    display: inline-block; padding: 6px 4px; margin: 0 0 0 6px;
    font-size: 13px; min-height: 32px; line-height: 20px;
  }
  #userBar a.quit-link { color: #e35b5a; }

  /* ★ 导航：原来是「230px 课程中心 + 970px 链接」两栏，
     窄屏下会被压成一团。改成整条横向滚动，手指可以左右滑。 */
  .city-nav-header {
    display: flex; align-items: center; height: auto; min-height: 48px;
    padding-left: 0; padding-right: 0;
  }
  .city-nav-list {
    float: none; flex: 0 0 auto; width: auto; height: 48px;
  }
  .city-nav-list > a {
    width: auto; height: 48px; padding: 0 14px; line-height: 48px; font-size: 15px;
  }
  .city-nav-list > a img { margin-top: 13px; }
  /* 下拉面板改为**盖在内容之上**的浮层：窄屏里它不会把正文挤下去 */
  /* ★ 面板做成**满屏宽**的下拉抽屉（而不是 PC 那种 230px 悬挂侧栏）。
     手机上侧栏会被压缩成一百多像素，分类名全被截断（"最新课程更…"），
     满宽后中文分类名、省份标签都能完整显示，点击区域也更大。 */
  .city-nav-left {
    top: 48px; left: 0; width: 100vw; min-width: 0; max-width: 100vw;
    max-height: 70vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* ★★ dd 的高度必须 auto，不能沿用 PC 的固定 52px。
     PC 上二级面板是「向右浮层」不占位，所以 dd 可以写死高度；
     手机上面板改成了下方内联展开，dd 写死高度会让面板**盖住下面几个分类**
     （看着像"只剩一个分类"）。改成 auto 后 dd 会随面板一起长高。 */
  .city-nav-left dl dd { height: auto; min-height: 52px; font-size: 15px; }
  .city-nav-left dl dd > a { height: 52px; line-height: 52px; font-size: 15px; width: 100%; }
  /* dd 右侧原本有张小箭头底图，会和展开用的 ▾ 撞在一起，移动端去掉 */
  .city-nav-left dl dd.has-casket { background-image: none; }

  /* ★★ 「一级/二级/三级 关掉 hover、改由 JS 类名驱动」这套开关 **不放这里**。
       2026-10-27 第二轮实测：手机浏览器在手指点过某个元素之后，
       :hover 状态会**一直粘在上面**不消失。原来写在断点里的
         .city-nav-left dl dd.has-casket:hover .city-nav-casket { display: none }
       优先级是 (0,4,2)，比 .nav-open 那条 (0,3,2) 高 ⇒ 二级面板被永久盖成 display:none。
       JS 合成 click 测不出这个差异（不触发 :hover），真实手指点击才暴露。
       ⇒ 开关统一挪到文件末尾的 @media (hover: none) 块，并把 .nav-open 提权到同权重。
       详见下方注释，改这里请同步改那一处。 */

  /* 三级面板原来是「向右浮层」（left:228px），手机上会飘出屏幕。
     窄屏改成**内联展开**：点二级行，三级列表就在下方展开。 */
  .city-nav-casket {
    position: static; width: 100%; max-width: none; max-height: 260px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: none; border: 0; border-radius: 0;
    margin: 2px 0 0; padding: 0;
    background: #eaf3fa;
  }
  .city-nav-casket .casket-provs {
    position: static; width: 100%; box-shadow: none; border: 0; border-radius: 0;
    padding: 6px 10px 10px; background: transparent;
  }
  .city-nav-casket .casket-provs a { margin: 0 8px 8px 0; }
  /* 二级行的展开箭头要明确「这里还能再展开一层」 */
  .city-nav-left dl dd.has-casket > a::after {
    content: '▾'; float: right; margin-right: 12px; font-size: 13px; color: #d6e9f7;
  }
  .city-nav-left dl dd.has-casket.nav-open > a::after { content: '▴'; }
  /* 链接区横向滚动：这是移动端最常见的导航形态 */
  .city-nav-item {
    float: none; flex: 1 1 auto; width: auto; height: 48px;
    /* ★★ min-width:0 必须写：flex item 默认 min-width:auto，
       会被内部 nowrap 的导航链接撑开，反而把整个页面撑出横向滚动条
       —— 这是 flexbox 的经典陷阱，不写这条前面的 overflow-x 等于白设。 */
    min-width: 0;
    overflow-x: auto; overflow-y: hidden; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* 隐藏滚动条，视觉上更干净（横向仍可滑） */
    scrollbar-width: none;
  }
  .city-nav-item::-webkit-scrollbar { display: none; }
  .city-nav-item a {
    font-size: 15px; line-height: 48px; padding: 0 10px;
    display: inline-block; float: none;
  }
  .city-nav-item a:first-child { padding-left: 10px; }

  /* 课程卡片：3 列 → 2 列 */
  .uc-course-list_ul { margin-right: 0; }
  .uc-course-list_itm {
    width: calc((100% - 14px) / 2); height: auto; min-height: 190px;
    margin-right: 14px; margin-bottom: 14px;
  }
  .uc-course-list_itm:nth-child(3n) { margin-right: 14px; }
  .uc-course-list_itm:nth-child(2n) { margin-right: 0; }
  .uc-ykt-coursecard { width: 100%; height: auto; min-height: 190px; }
  .uc-ykt-coursecard-wrap_picbox { height: 116px; }
  .uc-ykt-coursecard-wrap_picbox > img { height: 116px; }
  .uc-ykt-coursecard-wrap_tit_name { font-size: 13px; line-height: 18px; }

  /* 列表页标题、板块间距 */
  .row-ind2 { padding: 20px 0 5px; }
  .row-ind2 .list-title h4 { font-size: 17px; margin: 10px 0 5px; }
  .row { padding: 0; }

  /* 分页：加大点击区域（移动端手指点击至少要 40px 以上才不容易误触） */
  .pager-bar { font-size: 13px; }
  .pager-bar button { padding: 10px 14px; margin: 0 3px 6px; }
  .pager-bar .pg-jump { display: block; margin: 10px 0 0; }

  /* 首页课程卡片：写死的 465px / 220px 图宽已在 1024 断点改成自适应，
     但卡片标题（.label > span）是一整行长文字，实测会撑到 420px 把页面顶出横向滚动条。
     ★ span 是 inline 元素，text-overflow:ellipsis 必须配 display:block 才生效。 */
  .class-items .label { padding: 0 12px; line-height: 36px; font-size: 13px; }
  .class-items .label span {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .class-items .items { padding-top: 6px; }

  /* 「查看更多」是文字链接，实测高 30px 偏小，加纵向 padding 到 40px */
  .more { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
  /* 页脚备案号：同样是 14px 的文字链接，加大可点区域（不影响排版） */
  .footer .copyr a { display: inline-block; padding: 8px 2px; line-height: 20px; }

  /* 页脚 */
  .footer .wp { text-align: center; }
  .footer .copyr { padding: 16px 0; font-size: 12px; line-height: 1.8; }

  /* 播放页：标题不再单行省略（手机上会截断太多），允许两行 */
  .play-page .play-title {
    font-size: 18px; white-space: normal; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 12px;
  }
  .play-page .player-wrap { min-height: 0; }
  .play-err { flex-direction: column; align-items: stretch; }
  .play-err .pe-btn { width: 100%; padding: 12px 0; }

  /* 搜索框、分页跳转框字号提到 16px。
     ★★ 这是 iOS Safari 的经典坑：**输入框 font-size 小于 16px 时，
     一聚焦就会自动把整页放大，而且松手后不会缩回去**，
     用户被迫手动双指缩小，体验很差。因为这里改的是移动端专属断点，
     桌面观感不受影响。 */
  .head-search input[type="text"],
  .pager-bar .pg-jump input,
  #qKeyword { font-size: 16px; }

  /* 登录页：表单原本写死 330px，窄屏下要跟着父容器走 */
  .login-box { width: 100%; max-width: 94vw; padding-bottom: 28px; }
  .login-form { width: 100%; padding: 0 16px; }
  .login-title { height: 56px; line-height: 56px; margin-bottom: 24px; font-size: 20px; }
  .form-item { margin-bottom: 16px; }
  .form-item.user, .form-item.pass, .form-item.captcha { margin-bottom: 26px; }
  .login_input { font-size: 16px; }   /* 同样是为了避免 iOS 聚焦放大 */
  .form-button .btn { font-size: 18px; padding: 10px 19px; }

  /* 弹窗：窄屏改成从底部升起的抽屉 —— 拇指够得到按钮，也不会被键盘顶得跑偏 */
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal, .modal-box {
    width: 100%; max-width: 100%; max-height: 90vh;
    border-radius: 18px 18px 0 0;
    animation: mSheetUp .28s cubic-bezier(.22,1,.36,1);
  }
  .modal.confirm { width: 100%; }
  .modal-body { font-size: 15px; }   /* padding 不动：上面 .modal-actions 的负 margin 是照着 18px 算的 */
  .modal-body th, .modal-body td { padding: 8px 6px; font-size: 13px; }
  .modal-head { height: 50px; line-height: 50px; padding: 0 14px; font-size: 15px; }
  .modal-actions { display: flex; gap: 10px; text-align: center; }
  .modal-actions .m-btn { flex: 1; margin: 0; padding: 12px 16px; font-size: 15px; }
  .m-btn { padding: 11px 20px; font-size: 15px; }
  .modal-pager { font-size: 14px; }

  /* 搜索：输入框和按钮撑满一行 */
  .head-search input[type="text"] {
    width: calc(100% - 96px); max-width: none; font-size: 14px;
  }
  .head-search button { padding: 0 14px; font-size: 14px; }

  /* 表格类内容（成绩、记录等）在窄屏一律允许横向滚动，
     好过把字压成一列看不清 */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- ≤480px：小屏 ---------- */
@media (max-width: 480px) {
  /* 小屏再收一点：150px 仍是原图 179px 的 0.84 倍，缩小不会失真 */
  .g-header .f-l { width: 150px; }
  .class-tit { height: 96px; }
  .class-items .items.i2 { gap: 8px; }
  .class-items .item2 .label { padding: 0 6px; line-height: 30px; font-size: 12px; }
  .head-search input[type="text"] { width: calc(100% - 84px); height: 36px; line-height: 36px; }
  .head-search button { height: 36px; padding: 0 10px; font-size: 13px; }
  .city-nav-list > a { padding: 0 10px; font-size: 14px; }
  .city-nav-item a { font-size: 14px; padding: 0 8px; }
  .uc-course-list_ul { margin-right: 0; }
  .uc-course-list_itm {
    width: calc((100% - 10px) / 2); margin-right: 10px; margin-bottom: 10px;
  }
  .uc-course-list_itm:nth-child(3n) { margin-right: 10px; }
  .uc-course-list_itm:nth-child(2n) { margin-right: 0; }
  .uc-ykt-coursecard-wrap_picbox { height: 96px; }
  .uc-ykt-coursecard-wrap_picbox > img { height: 96px; }
  .uc-ykt-coursecard-wrap_tit { padding: 0 6px; }
  .uc-ykt-coursecard-wrap_tit_name { font-size: 12px; }
  .play-page .play-title { font-size: 16px; }
}

/* ==========================================================================
   ★★★ 触屏设备专用块 (hover: none) —— 2026-10-27 第二轮修复
   --------------------------------------------------------------------------
   【为什么不写在 @media (max-width: 768px) 里】
     「手机」≠「窄屏」。手机横屏宽度是 844~932px，iPad 竖屏 768~834px，
     **全都超过 768 断点** ⇒ 按宽度写的触屏逻辑在这些设备上整体失效，
     表现就是「点课程中心一点反应都没有」（实测 844×390 横屏：一级面板打不开）。
     (hover: none) 是浏览器对「本设备无法悬停」的权威判断，与宽度无关：
     手机/平板一律命中，有鼠标的桌面一律不命中。

   【踩过的坑，别改回去】
     手机浏览器在手指点过某元素后，:hover 状态会**粘住不消失**。
     原来断点里写的是
         .city-nav-left dl dd.has-casket:hover .city-nav-casket { display: none }   → (0,4,2)
         .city-nav-left dl dd.nav-open      .city-nav-casket { display: block }     → (0,3,2)
     ⇒ 开了 .nav-open 也永远被 (0,4,2) 压成 display:none。
     JS 合成 click 测不出这个差异（不产生 :hover），真实手指点击才暴露。
     修法：让「开」的规则带上同样的 .has-casket，权重拉到 (0,4,2)，靠书写顺序取胜。

   【维护约定】
     JS 侧判据必须与此一致：app.js::isTouchUI() 同样以 (hover: none) 为准。
     下面第 2 段的布局规则是针对「>768 的触屏」，请与上面
     @media (max-width: 768px) 里的导航规则保持同步。
   ========================================================================== */
/* ---- 1. 只「关」不「开」 ----
   「开」的规则放在文件最末尾的无条件兜底块里，不写在这里。
   原因见下面第 3 段：一旦设备不认 (hover: none)，整个块会被整块忽略，
   连面板都弹不出来。关掉 hover 只是体验优化，没了也不会坏。 */
@media (hover: none) {
  .city-nav-list:hover .city-nav-left { display: none; }
  .city-nav-left dl dd.has-casket:hover .city-nav-casket { display: none; }
  .city-nav-casket .casket-group:hover .casket-provs { display: none; }
}

/* ---- 2. 布局：抽屉形态 ----
   ★ 用逗号 = 「或」：触屏设备 或 宽度 ≤1024 任一命中即可。
     不能只押 (hover: none) —— 老安卓 / 部分国产手机浏览器根本不认这个媒体特性，
     整块规则会被丢掉，面板会以 PC 那种 230px 悬挂侧栏出现（窄、字被截断）。 */
@media (hover: none), (max-width: 1024px) {
  .city-nav-left {
    width: 100vw; min-width: 0; max-width: 100vw;
    max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .city-nav-left dl dd { height: auto; min-height: 52px; font-size: 15px; }
  .city-nav-left dl dd > a { height: 52px; line-height: 52px; font-size: 15px; width: 100%; }
  .city-nav-left dl dd.has-casket { background-image: none; }
  .city-nav-casket {
    position: static; width: 100%; max-width: none; max-height: 260px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: none; border: 0; border-radius: 0;
    margin: 2px 0 0; padding: 0; background: #eaf3fa;
  }
  .city-nav-casket .casket-provs {
    position: static; width: 100%; box-shadow: none; border: 0; border-radius: 0;
    padding: 6px 10px 10px; background: transparent;
  }
  .city-nav-casket .casket-provs a { margin: 0 8px 8px 0; }
  .city-nav-left dl dd.has-casket > a::after {
    content: '▾'; float: right; margin-right: 12px; color: #cfe8fa; font-size: 12px;
  }
  .city-nav-left dl dd.has-casket.nav-open > a::after { content: '▴'; }
  /* 手指点击目标兜底 ≥44px，避免点空 */
  .city-nav-casket .casket-row,
  .city-nav-casket .casket-provs a { min-height: 44px; }
}

/* ==========================================================================
   ★★★ 无条件兜底：JS 类名驱动的「开」规则 —— 2026-10-27 第三轮修复
   --------------------------------------------------------------------------
   【为什么必须无条件、且放在文件最末尾】
     前两轮都把「开」和「关」写在同一处（先是 768 断点、后来是 (hover: none)）。
     只要那个条件不成立，整块被浏览器丢掉 ⇒ **面板永远 display:none**。
     代价最大的一次：单押 (hover: none)，而部分国产/老安卓浏览器根本不认这个
     媒体特性 ⇒ 学员点「课程中心」连一级分类列表都弹不出来（比没改之前更糟）。

   【原则】
     「开」永远无条件生效；「关 hover」只是体验优化，允许在某些设备上失效。
     桌面端不受影响：鼠标悬停仍走原有的 :hover 规则，点击展开只是多一条通路。

   【权重必须咬合（改选择器前先数一遍）】
     .city-nav-list:hover .city-nav-left                  (0,3,0)
     .city-nav-list.nav-opened > .city-nav-left           (0,3,0) ← 同权重，靠写在后面取胜
     .city-nav-left dl dd.has-casket:hover .city-nav-casket (0,4,2)
     .city-nav-left dl dd.has-casket.nav-open .city-nav-casket (0,4,2) ← 同权重，靠顺序
     .city-nav-casket .casket-group:hover .casket-provs     (0,4,0)
     .city-nav-casket .casket-group.nav-open .casket-provs  (0,4,0) ← 同权重，靠顺序
   ========================================================================== */
.city-nav-list.nav-opened > .city-nav-left { display: block; }
.city-nav-left dl dd.has-casket.nav-open .city-nav-casket { display: block; }
.city-nav-casket .casket-group.nav-open .casket-provs { display: block; }
/* 没有三级数据的分类也允许 JS 强行展开（有些分类是接口延迟返回才补上 has-casket） */
.city-nav-left dl dd.nav-open .city-nav-casket { display: block; }
