/* 手机布局试验稿。仅作用于手机宽度，桌面页面沿用原样。 */
@media (max-width: 768px) {
  :root { --mobile-blue: #4a7cfe; --mobile-blue-dark: #376bef; --mobile-blue-soft: #edf3ff; }
  html, body, .app-container { background: #f6f7f9; }
  #loginPage.login-wrapper { height: 100dvh; }
  #loginPage .login-panel { min-height: 100dvh; padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px)); }
  #loginPage .login-card { width: calc(100% - 32px); max-width: 360px; margin: auto; padding: 14px 18px 16px; }
  #loginPage .login-brand { display: grid; grid-template-columns: 34px auto; column-gap: 8px; justify-content: center; align-items: center; margin-bottom: 12px; }
  #loginPage .login-brand-mark { grid-column: 1; grid-row: 1 / 3; height: 34px; }
  #loginPage .login-brand-title { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 18px; line-height: 1.2; text-align: left; }
  #loginPage .login-brand-sub { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 10px; line-height: 1.2; text-align: left; }
  #loginPage .login-title { display: none; }
  #loginPage .form-item { margin-bottom: 10px; }
  #loginPage .form-item[style*="margin-bottom: 30px"] { margin-bottom: 14px !important; }
  #loginPage .form-item label { margin-bottom: 4px; font-size: 12px; line-height: 1.25; }
  #loginPage .form-item input { height: 44px; font-size: 16px !important; }
  #loginPage .login-submit-btn { height: 44px; }
  .app-container { --primary: var(--mobile-blue); --primary-light: var(--mobile-blue-soft); height: 100dvh; min-height: 0; }
  .app-container .main-content, .app-container .view-container { min-height: 0; }
  .app-container .header { background: #173f60; border: 0; color: #fff; }
  .app-container .hamburger-btn, .app-container #topBreadcrumb, .app-container .bc-current { color: #fff; }
  /* 顶部面包屑条手机端不占一整行：隐藏（导航走底部工作台/我的入口） */
  .app-container .header { display: none; }
  .app-container .view-container { padding: 10px 10px 8px; overflow-y: auto; overscroll-behavior-y: contain; }

  /* 与参考图一致：固定双入口，其余业务继续从工作台和“更多”进入。 */
  .app-container .bottom-nav { justify-content: space-around; box-shadow: 0 -4px 18px rgba(30,40,60,.06); }
  .app-container .bottom-nav-item { display: none; min-width: 112px; min-height: 52px; font-size: 12px; }
  .app-container .bottom-nav-item[data-view="mobile-home"],
  .app-container .bottom-nav-item[data-view="mobile-profile"] { display: flex; }
  .app-container .bottom-nav-item .bn-icon { font-size: 23px; }
  .app-container .bottom-nav-item.active { color: var(--mobile-blue); }
  /* iPhone 独立启动时部分 Safari 版本把安全区回报为 0，预留手势横条空间。 */
  @supports (-webkit-touch-callout: none) {
    .app-container { --safe-bottom: max(env(safe-area-inset-bottom, 0px), 22px); }
  }

  .mobile-shell-page { padding-bottom: 0; }
  .mobile-home-hero { margin: -10px -10px 8px; padding: 12px 14px 13px; color: #fff; background: linear-gradient(145deg,#173f60,#1b557e 65%,#4a7cfe); border-radius: 0 0 18px 18px; }
  .mobile-home-kicker { opacity: .9; font-size: 11px; }
  .mobile-home-hero h1 { font-size: 19px; line-height: 1.25; margin: 5px 0 2px; color: #fff; }
  .mobile-home-hero p { font-size: 12px; margin: 0; opacity: .9; }
  /* 工作台顶部两组：①校区概况 ②学生问题 */
  .mobile-home-summary { margin-top: 8px; display: block; background: transparent; padding: 0; }
  .mhs-block { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 4px; border-radius: 12px; background: rgba(255,255,255,.92); color: #384355; }
  /* 学生问题三类：正式问题 / 上周未出勤 / 课时不足，均可点击查看名单 */
  .mhs-block-issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 5px; padding: 6px 4px; background: rgba(255,255,255,.92); }
  #mobileHomeSummary .mhs-block-issues > button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; padding: 0 2px; border: 0; border-right: 1px solid #dce5f5; background: transparent; border-radius: 0; color: #384355; cursor: pointer; }
  #mobileHomeSummary .mhs-block-issues > button:last-child { border-right: 0; }
  #mobileHomeSummary .mhs-block-issues > button:active { background: rgba(74,124,254,.08); }
  #mobileHomeSummary .mhs-block-issues strong { font-size: 14px; font-weight: 700; line-height: 1.2; }
  #mobileHomeSummary .mhs-block-issues span { font-size: 10.5px; color: #7c8797; white-space: nowrap; }
  .mhs-block > div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-right: 1px solid #dce5f5; min-width: 0; }
  .mhs-block > div:last-child { border-right: 0; }
  .mhs-block strong { font-size: 15px; font-weight: 700; line-height: 1.2; }
  .mhs-block span { font-size: 10.5px; color: #7c8797; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .mobile-home-panel { background: #fff; border-radius: 16px; margin-bottom: 8px; padding: 10px 12px; box-shadow: 0 2px 12px rgba(20,35,60,.05); }
  .mobile-home-panel h2 { font-size: 15px; margin: 0 0 7px; color: #202a3b; }
  .mobile-home-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 6px; }
  .mobile-home-grid button { background: transparent; padding: 2px 0; min-height: 54px; font-size: 12px; color: #384355; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .mobile-home-grid button span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--mobile-blue-soft); color: var(--mobile-blue-dark); border-radius: 10px; font-size: 20px; }
  .mobile-home-next p { color: #7c8797; font-size: 12px; }
  .mobile-home-next button { width: 100%; text-align: left; background: var(--mobile-blue-soft); color: #2c4a9a; min-height: 40px; }
  .mobile-home-next button span { float: right; font-size: 23px; line-height: 18px; }

  .mobile-profile-hero { margin: -10px -10px 10px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; color: #fff; background: linear-gradient(135deg,#173f60,#1b557e); border-radius: 0 0 20px 20px; }
  .mobile-profile-avatar { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); color: #173f60; display: grid; place-items: center; font-size: 21px; font-weight: 700; flex: none; }
  .mobile-profile-hero h1 { font-size: 18px; line-height: 1.35; margin: 0 0 3px; color: #fff; overflow-wrap: anywhere; }
  .mobile-profile-hero p { margin: 0; font-size: 13px; opacity: .85; }
  .mobile-profile-list { background: #fff; border-radius: 16px; overflow: hidden; }
  .mobile-profile-list button { width: 100%; background: #fff; border-radius: 0; border-bottom: 1px solid #edf0f2; min-height: 50px; text-align: left; font-size: 15px; color: #374151; padding: 10px 16px; }
  .mobile-profile-list button:last-child { border-bottom: 0; }
  .mobile-profile-list span { float: right; font-size: 24px; color: #a3aab4; line-height: 20px; }

  /* ===== 学员范围切换：紧凑分段控件（覆盖内联 gap/margin，仅手机端） ===== */
  #view-students > [role="tablist"] { background: #fff; gap: 2px !important; margin: 0 0 6px !important; border-radius: 10px; padding: 2px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
  #view-students > [role="tablist"] button { flex: 1; min-height: 28px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
  #view-students > [role="tablist"] .student-btn-primary { background: var(--mobile-blue); border-color: var(--mobile-blue); }
  #view-students > [role="tablist"] .student-btn-secondary { background: transparent; border-color: transparent; color: #64748b; }

  /* ===== 工具栏：单行（学员总数 · 在校/离校 · 搜索/新增） ===== */
  #view-students .mobile-toolbar { background: #fff; padding: 7px 9px; border-radius: 11px; margin-bottom: 6px; gap: 5px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
  #view-students .mobile-toolbar-title { font-size: 14px; color: #273244; }
  #view-students .mobile-toolbar-count { font-size: 11.5px; color: #8a94a3; }
  #view-students .mobile-quick-tag { flex: none; height: 26px; padding: 0 10px; display: flex; align-items: center; border-radius: 13px; font-size: 12px; color: #64748b; background: #f1f5f9; border: 1px solid transparent; cursor: pointer; }
  #view-students .mobile-quick-tag.active { color: var(--mobile-blue-dark); background: var(--mobile-blue-soft); border-color: var(--mobile-blue); font-weight: 600; }
  #view-students .mobile-toolbar-row .mobile-toolbar-btn:first-of-type { margin-left: auto; }
  #view-students .mobile-toolbar-btn { min-width: 30px; width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
  #view-students .mobile-toolbar-btn svg { width: 15px; height: 15px; }
  #view-students .mobile-toolbar-btn.add-btn { background: var(--mobile-blue); }

  /* ===== 学员卡：两行紧凑布局，一屏可见更多学员 ===== */
  #view-students .student-list { gap: 6px; }
  #view-students .student-row { position: relative; display: flex; align-items: center; gap: 9px; min-height: 0; padding: 7px 10px; border-radius: 11px; }
  #view-students .student-row-avatar { width: 34px; height: 34px; margin: 0; font-size: 14px; border-radius: 50%; flex: none; }
  #view-students .student-row .bday-cake { position: absolute; left: 32px; top: 2px; font-size: 12px; margin: 0; z-index: 1; }
  #view-students .student-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  #view-students .student-row-line1 { display: flex; align-items: center; gap: 5px; min-width: 0; }
  #view-students .student-row-name { font-size: 12.5px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #view-students .student-issue-flag { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; margin-left: 3px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: -2px; }
  #view-students .student-row-status { flex: none; font-size: 9.5px; padding: 1.5px 6px; border-radius: 8px; }
  #view-students .student-row-line2 { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; }
  #view-students .student-row-phone { color: #8a94a3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; min-width: 0; }
  #view-students .student-row-asset { color: var(--mobile-blue-dark); font-weight: 600; flex: none; font-size: 11px; }
  #view-students .student-row-owner { color: #94a3b8; flex: none; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; }
  #view-students .student-row-more { flex: none; width: 26px; height: 26px; min-height: 26px; font-size: 15px; color: #b6bfcc; justify-self: end; }
  #view-students .exam-trend { margin-left: 0; font-size: 10.5px; line-height: 14px; }

  #studentDetailOverlay { align-items: stretch; justify-content: flex-start; padding: 0; }
  #studentDetailOverlay > .detail-header,
  #studentDetailOverlay > .detail-content,
  #studentDetailOverlay > .detail-actions { width: 100%; max-width: none; border-radius: 0; }
  #studentDetailOverlay > .detail-content { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  #studentDetailOverlay .detail-header { background: #173f60; border: 0; }
  #studentDetailOverlay .detail-title, #studentDetailOverlay .detail-close-btn { color: #fff; }
  #studentDetailOverlay .detail-content { background: #f6f7f9; }
  #studentDetailOverlay .mobile-detail-hero { display: flex; gap: 15px; align-items: center; margin: 0 0 16px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgba(20,35,60,.05); }
  #studentDetailOverlay .mobile-detail-avatar { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--mobile-blue-soft); color: var(--mobile-blue-dark); font-size: 27px; overflow: hidden; }
  #studentDetailOverlay .mobile-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
  #studentDetailOverlay .mobile-detail-info { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: #7b8594; font-size: 13px; }
  #studentDetailOverlay .mobile-detail-info strong { font-size: 19px; color: #263244; }
  #studentDetailOverlay .mobile-detail-info span:nth-child(3) { flex-basis: 100%; }
  #studentDetailOverlay .mobile-detail-asset { color: var(--mobile-blue-dark); font-weight: 600; }
  #studentDetailOverlay .detail-section { border-radius: 14px; box-shadow: 0 2px 10px rgba(20,35,60,.04); }
  #studentDetailOverlay .detail-section h4 { color: var(--mobile-blue-dark); font-size: 14px; letter-spacing: 0; }
  #studentDetailOverlay .detail-row { gap: 15px; min-height: 38px; align-items: baseline; }
  #studentDetailOverlay .detail-row .value { text-align: right; overflow-wrap: anywhere; }

  /* ==================== 全页精致化 ==================== */

  /* 1) 通用页面工具栏白卡：班课管理等所有用 .mobile-toolbar 的页面与学员页一致 */
  .mobile-toolbar { background: #fff; padding: 9px 10px; border-radius: 12px; margin-bottom: 8px; gap: 6px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }

  /* 2) 空状态统一白卡化（不再光秃秃一行小字） */
  .app-container .empty-state { background: #fff; border-radius: 12px; padding: 36px 16px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }

  /* 3) 班课管理页：容器透明化 + 空状态卡片 */
  #view-classes.card-box { background: transparent; border: none; box-shadow: none; padding: 0; min-height: auto; }
  #view-classes #classesEmpty { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
  .app-container .classes-grid { gap: 8px; }

  /* 4) 学员详情弹窗：修横向溢出（长文本按钮/时间线筛选撑破容器） */
  #studentDetailOverlay .detail-content { overflow-x: hidden; }
  #studentDetailOverlay .btn-default { white-space: normal; text-align: left; height: auto; }
  #studentDetailOverlay .detail-section, #studentDetailOverlay .detail-content > * { max-width: 100%; min-width: 0; }
  #studentDetailOverlay .tl-manage, #studentDetailOverlay .tl-manage-count { white-space: normal !important; }
  #studentDetailOverlay .tl-filters { flex-wrap: wrap; }
  #studentDetailOverlay .detail-actions { flex-wrap: wrap; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  #studentDetailOverlay .detail-actions button { flex: 1 1 44%; min-height: 38px; font-size: 13.5px; }

  /* 5) 待办页：紧凑 tab、黑色激活胶囊统一回蓝色主题 */
  #view-renew .page-toolbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  #view-renew .renew-tabs { gap: 4px; width: 100%; }
  #view-renew .renew-tab { flex: 1; min-width: 0; padding: 8px 6px; font-size: 12.5px; text-align: center; white-space: nowrap; border-radius: 9px; }
  #view-renew .renew-tab.active { background: var(--mobile-blue); border-color: var(--mobile-blue); color: #fff; }
  #view-renew .page-toolbar-right { width: 100%; justify-content: flex-end; gap: 6px; }
  #view-renew .btn-default[style*="1e293b"] { background: #edf3ff !important; color: #376bef !important; border-color: #9dbaff !important; }
  #view-renew #renewListContainer { padding: 12px !important; }

  /* 6) 运营数据统计：报表切换按钮紧凑化，区块节奏统一 */
  #view-stats .stats-report-nav { margin: 0 0 10px; gap: 5px; }
  #view-stats .stats-report-nav button { min-width: 0; flex: 1; height: 28px; padding: 0 8px; font-size: 11.5px; border-radius: 8px; }
  #view-stats .stats-section { margin-bottom: 16px; }
  #view-stats .stats-section-title { margin-bottom: 6px; }
  #view-stats .stat-cards { gap: 1px; background: #e7ecf3; border-radius: 12px; overflow: hidden; border: 1px solid #e7ecf3; box-shadow: 0 1px 2px rgba(20,35,60,.05); }
  #view-stats .stat-card { border-radius: 0; border: none; box-shadow: none; padding: 7px 8px; }
  #view-stats .stat-label, #view-stats .stat-card > div:first-child { font-size: 10px; margin-bottom: 2px; line-height: 1.35; }
  #view-stats .stat-value { font-size: 15px; }
  #view-stats .stat-unit { font-size: 10px; margin-left: 2px; }
  #view-stats #academicAffairsCards .academic-total,
  #view-stats #academicAffairsCards .academic-rate { font-size: 20px; line-height: 1.25; }
  #view-stats .stat-card-hint { font-size: 9.5px; margin-top: 3px; }

  /* 附件2/3/5：各组卡横排单行（格数=列数，auto-fit 自动均分），格内紧凑 */
  #view-stats .stat-cards { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }
  #view-stats .stat-cards.stat-cards-five,
  #view-stats .stat-cards.stat-cards-alert { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; }

  /* 附件4：区间统计日期筛选缩到一排（iOS 日期框本地化显示宽，文字让位、日期框自适应伸缩） */
  #view-stats .filter-bar { flex-wrap: nowrap; align-items: center; gap: 3px; padding: 8px; }
  #view-stats .filter-bar span { font-size: 9.5px; white-space: nowrap; flex: none; }
  #view-stats .filter-bar input[type="date"] { flex: 1 1 100px; min-width: 0; max-width: none; min-height: 28px; font-size: 10px; padding: 2px 4px; }
  #view-stats .filter-bar .btn-primary { flex: none; min-height: 28px; font-size: 11px; padding: 0 7px; border-radius: 8px; }

  /* 7) 学情反馈页：双层 tab 紧凑统一 */
  #view-feedback-new .tabs { gap: 4px; flex-wrap: wrap; }
  #view-feedback-new .tabs .tab { padding: 6px 12px; font-size: 12.5px; }
  #view-feedback-new .page-toolbar { padding: 10px 12px; gap: 8px; }
  #view-feedback-new .page-toolbar select,
  #view-feedback-new .page-toolbar input { min-height: 34px; font-size: 13px; border-radius: 9px; }

  /* 8) 我的页：列表卡片统一圆角阴影 */
  .mobile-profile-list { border-radius: 12px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
  .mobile-profile-list button { min-height: 50px; padding: 10px 16px; }

  /* ==================== 学员预警弹窗（工作台三入口目标页）手机卡片化 ==================== */
  #businessAlertsModal .modal-content { width: calc(100vw - 16px) !important; max-width: none !important; max-height: 92dvh; border-radius: 14px; }
  #businessAlertsModal .modal-header { padding: 10px 12px; font-size: 14px; }
  #businessAlertsModal .alert-tabs { padding: 8px 10px 0; gap: 5px; }
  #businessAlertsModal .alert-tab { padding: 5px 9px; font-size: 11px; white-space: nowrap; border-radius: 8px; }
  #businessAlertsModal .modal-body { padding: 8px 10px !important; gap: 8px !important; max-height: none !important; }
  #businessAlertsModal .filter-bar { padding: 6px 0; gap: 6px; }
  #businessAlertsModal .filter-bar input { min-height: 30px; font-size: 12px; }
  #businessAlertsModal .filter-bar .btn-primary { min-height: 30px; font-size: 12px; padding: 0 10px; }
  /* 名单行卡片化：隐藏表头，两行紧凑（姓名独占首行，其余信息+按钮第二行） */
  #businessAlertsModal .ba-row.ba-head { display: none !important; }
  #businessAlertsModal .ba-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 7px 10px; font-size: 11px; background: #fff; border-radius: 10px; margin-bottom: 5px; border: 1px solid #eef2f7; }
  #businessAlertsModal .ba-row > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
  #businessAlertsModal .ba-row > .ba-name { flex: 1 1 100%; font-size: 12.5px; display: flex; align-items: baseline; gap: 5px; }
  #businessAlertsModal .ba-row > .ba-name > div { font-size: 10px; font-weight: 400; color: #94a3b8; }
  #businessAlertsModal .ba-actions { margin-left: auto; flex: 0 0 auto; gap: 5px; }
  #businessAlertsModal .ba-actions button { min-height: 24px !important; font-size: 10.5px; padding: 0 8px !important; }
  #businessAlertsModal .modal-footer { padding: 8px 10px; }
  #businessAlertsModal .modal-footer button { min-height: 30px; font-size: 12px; padding: 0 10px; }

  /* ==================== 系统设置页紧凑化 ==================== */
  #view-settings .mobile-toolbar { background: transparent; box-shadow: none; padding: 0 0 6px; margin-bottom: 0; }
  #view-settings .mobile-toolbar h3 { font-size: 16px !important; }
  #view-settings .setting-section { padding: 10px 12px; border-radius: 10px; }
  #view-settings .setting-section + .setting-section { margin-top: 8px; }
  #view-settings .setting-section-title { font-size: 13.5px; margin-bottom: 2px; }
  #view-settings .setting-section-desc { font-size: 10.5px; line-height: 1.5; margin: 2px 0 6px; }
  #view-settings .setting-row { min-height: 34px; padding: 4px 0; gap: 8px; flex-wrap: wrap; }
  #view-settings .setting-row-label { font-size: 11.5px; }
  #view-settings .setting-row-control { gap: 6px; }
  #view-settings .setting-row-control input,
  #view-settings .setting-row-control select { min-height: 30px !important; height: 30px; font-size: 11.5px; padding: 0 6px; }
  /* 内嵌样式给设置页按钮设了 44px，需要 !important 压回 30px */
  #view-settings .btn-primary,
  #view-settings .btn-default,
  #view-settings .btn-danger { min-height: 30px !important; height: 30px; font-size: 11.5px !important; padding: 0 10px !important; border-radius: 8px; }
  /* 管理员人脸调试：手机端不显示（诊断工具，实际签到走「刷脸签到」页；桌面保留） */
  #view-settings .setting-section:has(#faceV2TestSection) { display: none; }
  #view-settings .setting-row .badge { font-size: 10.5px; height: 20px; padding: 0 8px; }

  /* ==================== 深度密度优化（减少滑动） ==================== */

  /* 9) 学员详情：整体压扁——小头像/小字/紧区块，一屏看更多 */
  #studentDetailOverlay .detail-header { padding: 9px 12px; }
  #studentDetailOverlay > .detail-content { padding: 9px; }
  #studentDetailOverlay .mobile-detail-hero { gap: 10px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
  #studentDetailOverlay .mobile-detail-avatar { width: 40px; height: 40px; font-size: 17px; }
  #studentDetailOverlay .mobile-detail-info { gap: 2px 6px; font-size: 11.5px; }
  #studentDetailOverlay .mobile-detail-info strong { font-size: 14.5px; }
  #studentDetailOverlay .detail-overview-grid { gap: 8px; }
  #studentDetailOverlay .detail-section { border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(20,35,60,.03); }
  #studentDetailOverlay .detail-section h4 { font-size: 12px; margin: 0 0 5px; }
  #studentDetailOverlay .detail-row { gap: 10px; min-height: 0; padding: 4px 0; font-size: 12.5px; line-height: 1.5; }
  #studentDetailOverlay .detail-row .label { color: #8a94a3; }
  #studentDetailOverlay .tl-filters { gap: 4px; margin: 2px 0 8px; }
  #studentDetailOverlay .tl-chip { font-size: 10.5px; padding: 2px 8px; }
  #studentDetailOverlay .detail-actions { padding: 8px 10px; }
  #studentDetailOverlay .detail-actions button { flex: 1 1 30%; min-height: 34px; font-size: 13px; }

  /* 10) 待办页：行式列表在窄屏改纵向卡片，绝不横向溢出 */
  #view-renew .ops-work-row { grid-template-columns: 1fr; gap: 3px; padding: 10px 12px; font-size: 12.5px; }
  #view-renew .page-toolbar { padding: 8px 10px; margin-bottom: 8px; }

  /* 11) 学情反馈：双层 tab 与筛选控件再收一号 */
  #view-feedback-new .tabs { gap: 3px; margin-bottom: 6px; }
  #view-feedback-new .tabs .tab { padding: 5px 10px; font-size: 12px; }
  #view-feedback-new .page-toolbar { padding: 8px 10px; margin-bottom: 8px; row-gap: 6px; }
  #view-feedback-new .page-toolbar select,
  #view-feedback-new .page-toolbar input { min-height: 30px; font-size: 12.5px; padding: 2px 6px; }
  #view-feedback-new .page-toolbar input[type="date"] { max-width: 122px; }

  /* 12) 运营统计：标题区收一号（统计卡数值规则统一在前述 6) 节） */
  #view-stats .page-header .page-title { font-size: 16px; }
  #view-stats .page-header .page-sub { font-size: 11px; margin-top: 2px; }
  #view-stats .stats-section-title h3 { font-size: 14px; }
  #view-stats .stats-section-sub { font-size: 10.5px; }

  /* ==================== 布局重构（不是缩字号，是重排） ==================== */

  /* 13) 运营统计组卡合并样式已并入前述 6) 节 */

  /* 14) 学员详情：时间线管理提示块与历史入口压扁 */
  #studentDetailOverlay .tl-manage { font-size: 10.5px; padding: 6px 8px; gap: 6px; margin-bottom: 8px; }
  #studentDetailOverlay .tl-manage-count { font-size: 10.5px; }
  #studentDetailOverlay .tl-manage button { min-height: 26px; font-size: 11px; padding: 2px 10px; }
  #studentDetailOverlay .detail-history-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  #studentDetailOverlay .detail-history-actions .btn-default { min-height: 32px; font-size: 12.5px; justify-content: center; }

  /* 15) 待办页：动态区内边距与行距收紧（覆盖内联 padding） */
  #view-renew #renewListContainer > div:first-child { padding: 8px 12px 0 !important; }
  #view-renew .page-card { margin: 0; }
  #view-renew .page-toolbar { margin-bottom: 6px; }
  /* 附件1：三个业务 tab 与「+发现问题」同一排；去掉「共 0 项」 */
  #view-renew .page-toolbar { flex-direction: row; align-items: center; gap: 6px; }
  #view-renew .renew-tabs { width: auto; flex: 1; min-width: 0; }
  #view-renew .page-toolbar-right { width: auto; margin-left: 0; flex: none; }
  #view-renew .page-toolbar-right .btn-primary { min-height: 30px; font-size: 12px; padding: 0 10px; border-radius: 8px; }
  #view-renew .renew-tab { padding: 6px 4px; font-size: 11.5px; }
  #view-renew #renewSummary { display: none; }
  /* 附件2：去掉「当前问题」按钮；「历史记录」缩小并排到分类胶囊一排末尾
     （两个内联 div 用 display:contents 融进同一 flex 行；首按钮恒为当前问题） */
  #view-renew #renewListContainer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; }
  #view-renew #renewListContainer > div:first-child,
  #view-renew #renewListContainer > div:nth-child(2) { display: contents !important; }
  /* open 态第一个按钮（当前问题）隐藏；history 态第一个按钮（当前问题，btn-default）保留为末尾小按钮以便切回 */
  #view-renew #renewListContainer > div:first-child > button.btn-primary:first-child { display: none; }
  /* 历史记录（恒为第二个按钮）缩小并排分类胶囊同行末尾；列表行/空状态另起一行 */
  #view-renew #renewListContainer > div:nth-child(2) > button,
  #view-renew #renewListContainer > div:first-child > button { height: 32px; min-height: 32px; padding: 0 6px !important; font-size: 11px !important; line-height: 1.2; white-space: nowrap; flex: none; }
  #view-renew #renewListContainer > div:first-child > button:last-child { order: 1; margin-left: auto; }
  #view-renew #renewListContainer > div:first-child > button.btn-default:first-child { order: 2; margin-left: 0; width: auto; }
  #view-renew #renewListContainer > div:not(:first-child):not(:nth-child(2)) { order: 3; width: 100%; }
  #view-renew .ops-issue-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; padding: 10px 12px; }
  #view-renew .ops-issue-row > div:first-child .ops-meta { display: none; }
  #view-renew .ops-issue-row > div:nth-child(2) { grid-column: 1 / -1; }
  #view-renew .ops-issue-row > div:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  #view-renew .ops-issue-row > div:nth-child(4) { grid-column: 1; grid-row: 3; align-self: center; }
  #view-renew .ops-issue-row > div:nth-child(5) { grid-column: 2; grid-row: 3; }
  #view-renew .ops-issue-row .ops-primary-text { font-size: 12.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

  /* 16) 学情反馈：筛选卡与列表贴身 */
  #view-feedback-new .page-toolbar { margin-bottom: 6px; }
  /* 待记录筛选：学生/日期/日期/今天 一排；隐藏「共 N 条学习记录」 */
  #view-feedback-new #fbPendingToolbar { flex-wrap: nowrap; align-items: center; }
  #view-feedback-new #fbPendingToolbar select { flex: 1 1 76px; min-width: 0; max-width: 86px; }
  #view-feedback-new #fbPendingToolbar input[type="date"] { flex: 1 1 92px; min-width: 0; max-width: 100px; width: auto !important; }
  #view-feedback-new #fbPendingToolbar .btn-sm { flex: none; min-height: 30px; padding: 2px 10px; font-size: 12px; }
  #view-feedback-new #fbPendingToolbar .page-toolbar-right,
  #view-feedback-new #fbListCount { display: none !important; }

  /* ==================== 17) 新增/编辑学员弹窗：手机表单流 ==================== */
  /* 左栏照片（90px）+ 右栏 12 份弹性列：右栏三排字段 */
  #studentModal .basic-grid { grid-template-columns: 90px repeat(12, minmax(0, 1fr)) !important; gap: 0 6px !important; }
  /* 人脸卡：占左列前两排；照片在上、「拍照」按钮与照片同宽 */
  #studentModal .face-mini { grid-column: 1 !important; grid-row: 1 / span 2 !important; flex-direction: column !important; align-items: center; justify-content: flex-start; gap: 0; padding: 4px 3px !important; margin-bottom: 0 !important; }
  #studentModal .face-mini > label { display: none; }
  #studentModal .face-mini #enrollVideo,
  #studentModal .face-mini #enrollPhotoPreview { width: 84px !important; aspect-ratio: 1/1; margin: 2px auto 5px; }
  #studentModal .face-mini button { width: 84px !important; min-height: 26px !important; font-size: 10.5px !important; padding: 0 !important; margin: 0 0 4px !important; }
  #studentModal .face-mini #faceV2EnrollmentStatus { display: none !important; }
  /* 右栏三排：①姓名｜手机（手机更宽） ②学校｜年级 ③生日(照片正下方)｜咨询｜教务 */
  #studentModal .basic-grid > div:nth-of-type(2) { grid-column: 2 / 7; grid-row: 1; }    /* 姓名 */
  #studentModal .basic-grid > div:nth-of-type(3) { grid-column: 7 / 14; grid-row: 1; }   /* 家长手机号 */
  #studentModal .basic-grid > div:nth-of-type(5) { grid-column: 2 / 9; grid-row: 2; }    /* 所在学校 */
  #studentModal .basic-grid > div:nth-of-type(6) { grid-column: 9 / 14; grid-row: 2; }   /* 年级 */
  #studentModal .basic-grid > div:nth-of-type(4) { grid-column: 1; grid-row: 3; }        /* 学生生日：照片正下方 */
  #studentModal .basic-grid > div:nth-of-type(7) { grid-column: 2 / 8; grid-row: 3; }    /* 责任咨询 */
  #studentModal .basic-grid > div:nth-of-type(8) { grid-column: 8 / 14; grid-row: 3; }   /* 责任教务 */
  /* 生日框在 90px 左栏内：缩字号并隐藏日历图标（点输入框本身即可唤起系统日期选择器） */
  #studentModal .basic-grid > div:nth-of-type(4) input[type="date"] { font-size: 9.5px !important; padding: 2px 1px !important; }
  #studentModal .basic-grid > div:nth-of-type(4) input[type="date"]::-webkit-calendar-picker-indicator { width: 10px; margin: 0; padding: 0; opacity: .55; }
  #studentModal .basic-grid > .form-item { margin-bottom: 8px !important; min-width: 0; }
  #studentModal .basic-grid .form-item label { font-size: 10px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 所有框统一 32px 高（原内嵌样式 12px 上下内边距把框撑到约 48px，压到三分之二） */
  #studentModal .basic-grid input,
  #studentModal .basic-grid select,
  #studentModal .basic-grid .resp-view { height: 32px !important; min-height: 32px !important; max-height: 32px !important; }
  #studentModal .basic-grid input, #studentModal .basic-grid select { font-size: 10.5px !important; padding: 0 3px !important; }
  /* 勾选后出现的时间下拉同样小号，宽度满格（压过内嵌样式的 13px/7px 8px） */
  #studentModal div#regularSlots select,
  #studentModal div#summerSlots select { width: 100% !important; min-height: 28px !important; font-size: 10px !important; padding: 2px 1px !important; }
  /* 时间下拉外层容器有内联 min-width:95px，比四列格宽还宽导致布局顶爆，手机端压掉 */
  #studentModal div#regularSlots > div,
  #studentModal div#summerSlots > div { min-width: 0 !important; }
  #studentModal .basic-grid input[style*="max-width:120px"] { max-width: 100% !important; }
  #studentModal .resp-view { min-height: 28px; padding: 0 4px; }
  #studentModal .resp-change-btn { padding: 2px 4px; font-size: 9.5px; }
  /* 到课时间四个框一行（寒暑假/春秋季两组一致；div# 提特异性压过 980 断点的两列规则） */
  #studentModal div#summerSlots,
  #studentModal div#regularSlots { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; }
  #studentModal #regularSlots > div { padding: 4px 3px !important; }
  /* 格子内标签：压内边距、缩勾选框，保证「周六上午」四字完整落在框内 */
  #studentModal div#regularSlots label,
  #studentModal div#summerSlots label { font-size: 10px !important; white-space: nowrap !important; padding: 3px 3px !important; gap: 2px !important; min-width: 0 !important; overflow: hidden; }
  #studentModal div#regularSlots label input[type=checkbox],
  #studentModal div#summerSlots label input[type=checkbox] { width: 13px !important; height: 13px !important; margin: 0 !important; flex: none; }
  /* 家长通知/课程区行距收紧 */
  #studentModal .profile-section { margin-bottom: 10px; }
  #studentModal .form-area .form-item { margin-bottom: 12px; }
  #studentModal .form-area label { font-size: 11px; margin-bottom: 4px; }
  /* 课程与到课安排：计费模式/课时余额 = 标签左 + 控件右，同一行 */
  #studentModal .profile-two-columns { display: flex !important; gap: 7px !important; }
  #studentModal .profile-two-columns > .form-item { display: flex !important; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; margin-bottom: 8px !important; }
  #studentModal .profile-two-columns > .form-item > label { flex: none; margin: 0 !important; font-size: 10px !important; white-space: nowrap; }
  #studentModal .profile-two-columns > .form-item > select,
  #studentModal .profile-two-columns > .form-item > input { flex: 1 1 0; min-width: 0; min-height: 28px !important; font-size: 11px !important; padding: 2px 4px !important; }
  /* 全托伴学：开始/结束日期并排一行，标签同样在左
     （覆盖 index.html 内嵌的 #dateBox{flex-direction:column!important}，靠 #studentModal 提特异性） */
  #studentModal #dateBox { flex-direction: row !important; gap: 7px !important; flex-wrap: nowrap !important; }
  #studentModal #dateBox > .form-item { display: flex; align-items: center; gap: 4px; flex: 1 1 0 !important; min-width: 0; margin-bottom: 8px !important; }
  #studentModal #dateBox > .form-item > label { flex: none; margin: 0 !important; font-size: 10px !important; white-space: nowrap; }
  #studentModal #dateBox > .form-item > input { min-width: 0; min-height: 28px !important; font-size: 11px !important; padding: 2px 4px !important; }
  #studentModal .wxpusher-row button { padding: 7px 10px; font-size: 12px; }
  #studentModal #formBindStatus { font-size: 10.5px; margin-top: 5px; }
  /* 家长通知：隐去「WxPusher UID（可选）」标签，输入框与按钮统一 32px 高 */
  #studentModal .profile-section:has(#formWxpusherUid) > .form-item > label { display: none; }
  #studentModal #formWxpusherUid,
  #studentModal #formParentBindBtn { height: 32px !important; min-height: 32px !important; max-height: 32px !important; font-size: 10.5px !important; }
  #studentModal #formWxpusherUid { padding: 0 8px !important; }
  #studentModal #formParentBindBtn { padding: 0 8px !important; white-space: nowrap; }
  /* 底部按钮均分 */
  #studentModal .modal-footer { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  #studentModal .modal-footer button { flex: 1; min-width: 0; min-height: 40px; font-size: 14.5px; }
}
