.meal-settlement-container .statistic-cards .ant-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.meal-settlement-container .statistic-cards .ant-card .ant-statistic-title {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.45);
}
.meal-settlement-container .statistic-cards .ant-card .ant-statistic-content {
  font-size: 22px;
}
.meal-settlement-container .ant-collapse {
  border-radius: 8px;
  overflow: hidden;
}
.meal-settlement-container .ant-collapse > .ant-collapse-item > .ant-collapse-header {
  font-weight: 600;
  padding: 10px 16px;
}
.meal-settlement-container .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
  vertical-align: 0;
}
.meal-settlement-container .ant-collapse .ant-collapse-content-box {
  padding: 16px;
}
.meal-settlement-container .meal-price-summary-table .ant-table-thead > tr > th {
  background: #f9f0ff;
  font-weight: 600;
}
.meal-settlement-container .meal-price-history-table .ant-table-thead > tr > th {
  background: #f0f5ff;
  font-weight: 600;
}
.meal-settlement-container .ant-pro-table .ant-table-cell .ant-btn-link {
  padding: 4px 6px;
}
@media print {
  .meal-settlement-container .ant-pro-table-toolbar {
    display: none !important;
  }
  .meal-settlement-container .ant-table-cell:last-child {
    display: none !important;
  }
  .meal-settlement-container .ant-pagination {
    display: none !important;
  }
}
.campus-material-page {
  padding: 4px;
}
.campus-material-page .cm-dash-row {
  margin-bottom: 12px;
}
.campus-material-page .cm-dash-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.campus-material-page .cm-dash-card .cm-dash-title {
  color: #8c8c8c;
  font-size: 13px;
  margin-bottom: 6px;
}
.campus-material-page .cm-dash-card .cm-dash-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.campus-material-page .cm-dash-card .cm-dash-note {
  margin-top: 6px;
  color: #bfbfbf;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.campus-material-page .cm-main-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.campus-material-page .cm-main-card .ant-tabs-nav {
  margin-bottom: 12px;
}
.campus-material-page .cm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.campus-material-page .cm-toolbar .cm-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.campus-material-page .cm-row-expiring > td {
  background-color: #fffbe6 !important;
}
.campus-material-page .cm-row-expired > td {
  background-color: #fff1f0 !important;
}
.campus-material-page .cm-medicine-box {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
  padding: 8px 12px 0;
  margin-bottom: 16px;
}
.campus-material-page .cm-medicine-box .cm-medicine-tip {
  color: #52c41a;
  font-size: 12px;
  margin-bottom: 8px;
}
.cm-inbound-modal-root .cm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.cm-inbound-modal-root .cm-toolbar .cm-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cm-inbound-modal-root .cm-form-label {
  color: #8c8c8c;
  font-size: 12px;
  margin-bottom: 4px;
}
.cm-inbound-modal-root .cm-doc-hint {
  color: #8c8c8c;
  font-size: 12px;
}
.cm-inbound-modal-root .cm-doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.cm-inbound-modal-root .cm-doc-footer .cm-doc-footer-total {
  color: #595959;
  font-size: 13px;
}
.cm-inbound-modal-root .cm-doc-total-bar {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  color: #595959;
  font-size: 13px;
}
.cm-inbound-modal-root .cm-doc-empty {
  padding: 32px 0;
  color: #8c8c8c;
  text-align: center;
}
.cm-inbound-modal-root .cm-doc-row-filled > td {
  background-color: #f6ffed !important;
}
.cm-inbound-modal-root .cm-doc-row-changed > td {
  background-color: #fffbe6 !important;
}
.cm-inbound-modal-root .cm-doc-row-removed > td {
  background-color: #fff1f0 !important;
  color: #bfbfbf;
}
@media (max-width: 768px) {
  .campus-material-page .cm-dash-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }
  .campus-material-page .cm-dash-row > .ant-col {
    flex: 0 0 auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .campus-material-page .cm-dash-card {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid #ece7f8 !important;
    box-shadow: none !important;
  }
  .campus-material-page .cm-dash-card .ant-card-body {
    padding: 3px 10px !important;
  }
  .campus-material-page .cm-dash-card .cm-dash-title {
    display: inline;
    margin-bottom: 0;
    font-size: 11px;
    line-height: 16px;
  }
  .campus-material-page .cm-dash-card .cm-dash-value {
    display: inline;
    margin-left: 4px;
    font-size: 13px !important;
    line-height: 16px;
  }
  .campus-material-page .cm-dash-card .cm-dash-note {
    display: none;
  }
  .campus-material-page .cm-toolbar {
    gap: 6px;
    margin-bottom: 8px;
  }
  .campus-material-page .cm-toolbar .ant-input-affix-wrapper,
  .campus-material-page .cm-toolbar .ant-input,
  .campus-material-page .cm-toolbar .ant-select {
    width: 100% !important;
  }
}
.material-stock-section {
  padding: 4px;
}
.material-stock-section .mat-dash-row {
  margin-bottom: 12px;
}
.material-stock-section .mat-dash-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.material-stock-section .mat-dash-card .mat-dash-title {
  color: #8c8c8c;
  font-size: 13px;
  margin-bottom: 6px;
}
.material-stock-section .mat-dash-card .mat-dash-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.material-stock-section .mat-dash-card .mat-dash-note {
  margin-top: 6px;
  color: #bfbfbf;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material-stock-section .mat-main-card {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.material-stock-section .mat-main-card .ant-tabs-nav {
  margin-bottom: 12px;
}
.material-stock-section .mat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.material-stock-section .mat-toolbar .mat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c5cfc 0%, #8f6ffd 46%, #2fb6a8 128%);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.login-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(143, 111, 253, 0.32), transparent 45%), radial-gradient(circle at 80% 70%, rgba(47, 182, 168, 0.28), transparent 45%);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 2;
  width: 356px;
  max-width: 92vw;
  border-radius: 22px;
  padding: 30px 30px 26px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 32px 72px rgba(30, 22, 70, 0.32), 0 8px 20px rgba(30, 22, 70, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: loginCardIn 0.6s ease-out both;
}
.login-card .ant-card-body {
  padding: 0;
}
@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.login-brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-logo-img {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 18px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 92, 252, 0.18);
}
.login-company {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(120deg, #5b3fd6 0%, #7c5cfc 45%, #2fb6a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #3d3a52;
}
.login-title {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #6b6880;
}
.login-version {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 12px;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 1px;
  color: #5b3fd6;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.28);
  border-radius: 999px;
}
.login-card .ant-input-affix-wrapper {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e4e1d8;
  transition: all 0.2s;
}
.login-card .ant-input-affix-wrapper:hover {
  border-color: #8f6ffd;
}
.login-card .ant-input-affix-wrapper-focused,
.login-card .ant-input-affix-wrapper:focus-within {
  border-color: #7c5cfc;
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.14);
}
.login-card .login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 14px;
  min-height: 40px;
}
.login-card .login-remember .ant-checkbox-wrapper {
  font-size: 14px;
  color: #4a4841;
  line-height: 1.4;
}
.login-card .login-remember-tip {
  font-size: 12px;
  color: #9a978d;
  text-align: right;
  flex: 0 1 auto;
}
.login-card .login-btn {
  height: 46px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 8px;
  text-indent: 8px;
  background: linear-gradient(120deg, #7c5cfc 0%, #8f6ffd 55%, #5b3fd6 100%);
  border: none;
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.32);
  transition: all 0.2s;
}
.login-card .login-btn:hover {
  background: linear-gradient(120deg, #8f6ffd 0%, #9f82ff 55%, #6c4fe0 100%);
  box-shadow: 0 10px 26px rgba(124, 92, 252, 0.38);
  transform: translateY(-1px);
}
.login-card .login-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(124, 92, 252, 0.3);
}
.login-mascot {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: mascotSplit 0.7s 0.5s cubic-bezier(0.22, 0.9, 0.35, 1.2) both;
}
.login-mascot::before {
  content: '';
  position: absolute;
  inset: -24% -38%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 72%);
}
.login-mascot img {
  display: block;
  position: relative;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5)) drop-shadow(0 16px 18px rgba(28, 20, 66, 0.38));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  animation: mascotBreathe 2.8s ease-in-out infinite, mascotIdle 3.8s ease-in-out infinite;
}
.login-mascot-left {
  height: 250px;
  left: calc(50% - 287px);
  top: 40px;
  animation-name: mascotSplitL;
}
.login-mascot-right {
  height: 250px;
  right: calc(50% - 287px);
  top: 40px;
  animation-name: mascotSplitR;
}
.login-mascot-right img {
  animation-delay: 0.9s, 1.3s;
}
@keyframes mascotBreathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.022);
  }
}
@keyframes mascotIdle {
  0%,
  76%,
  100% {
    rotate: 0deg;
  }
  82% {
    rotate: -3.4deg;
  }
  86% {
    rotate: 1.8deg;
  }
  90% {
    rotate: 0deg;
  }
  94% {
    rotate: -1.2deg;
  }
  97% {
    rotate: 0deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-mascot img {
    animation: none;
  }
}
@keyframes mascotSplitL {
  from {
    opacity: 0;
    transform: translateX(120px) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
@keyframes mascotSplitR {
  from {
    opacity: 0;
    transform: translateX(-120px) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}
.login-icp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1;
  pointer-events: none;
}
.login-icp a {
  pointer-events: auto;
}
.hold-anim {
  animation: none !important;
  opacity: 0 !important;
}
@media (max-width: 768px) {
  .login-page {
    align-items: flex-start;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .login-card {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
    border-radius: 20px;
    padding: 28px 22px 24px;
  }
  .login-logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  .login-company {
    font-size: 21px;
    letter-spacing: 2px;
  }
  .login-title {
    font-size: 14px;
  }
  .login-card .login-btn {
    height: 44px;
  }
  .login-card .login-remember {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 0;
    margin-bottom: 12px;
  }
  .login-card .login-remember .ant-checkbox-wrapper {
    min-height: 40px;
    align-items: center;
  }
  .login-card .login-remember-tip {
    text-align: left;
    padding-left: 26px;
  }
  .login-icp {
    bottom: 8px;
  }
  .login-mascot-left {
    height: 230px;
    left: 12px;
    top: 52px;
    bottom: auto;
  }
  .login-mascot-right {
    height: 230px;
    right: 12px;
    top: 22px;
    bottom: auto;
  }
}
.parent-portal {
  min-height: 100vh;
  background: #f2f3f7;
  padding: 12px 12px 40px;
}
.parent-portal__shell {
  max-width: 720px;
  margin: 0 auto;
}
.parent-portal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.parent-portal__title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.parent-portal__sub {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 2px;
}
.parent-portal__child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.parent-portal .ant-card {
  border-radius: 14px;
  margin-bottom: 12px;
}
.parent-portal .ant-card-head {
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
}
.parent-portal .ant-card-body {
  padding: 14px;
}
.parent-portal .ant-descriptions-item-label {
  width: 92px;
  color: #8c8c8c;
}
.parent-portal .pp-photo {
  width: 84px;
  height: 108px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.parent-portal__rank {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.parent-portal__rank-card {
  flex: 1 1 150px;
  min-width: 140px;
  border-radius: 12px;
  padding: 12px;
  background: #f7f5ff;
  border: 1px solid #e9e3ff;
}
.parent-portal__rank-card b {
  font-size: 22px;
  color: #7c5cfc;
  margin-right: 2px;
}
.parent-portal__rank-card span {
  font-size: 12px;
  color: #8c8c8c;
}
.parent-portal__rank-card i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #595959;
  margin-top: 4px;
}
.parent-portal__trend {
  width: 100%;
  height: 160px;
  display: block;
}
.parent-portal__muted {
  color: #999;
  font-size: 12px;
}
.parent-portal__icp {
  margin-top: 12px;
  padding-bottom: 2px;
}
.parent-portal__money .ant-statistic-title {
  font-size: 12px;
}
.parent-portal__money .ant-statistic-content {
  font-size: 20px;
}
.user-account-page {
  padding: 4px;
}
.user-account-page .ua-subtitle {
  font-size: 13px;
  color: #8a8aa8;
  font-weight: 400;
}
.user-account-page .perm-tree-box {
  max-height: 480px;
  overflow: auto;
  border: 1px solid #f0edf5;
  border-radius: 8px;
  padding: 8px 12px;
  background: #faf9ff;
}
.user-account-page .ua-wx-card {
  margin-top: 16px;
}
.user-account-page .ua-wx-card .ant-card-body {
  padding-top: 12px;
}
.user-account-page .ua-wx-desc {
  margin-bottom: 4px;
}
.user-account-page .ua-wx-desc .ant-descriptions-item-label {
  white-space: nowrap;
  color: #8a8aa8;
}
.user-account-page .ua-wx-url {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.user-account-page .ua-wx-tip {
  font-size: 12px;
  color: #8a8aa8;
}
.user-account-page .ua-wx-help {
  margin: 6px 0 12px;
  line-height: 1.7;
}
.user-account-page .ua-wx-mask {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
  color: #52c41a;
}
.user-account-page .ua-wx-code {
  margin: 14px 0 8px;
  padding: 10px 0;
  text-align: center;
  font-family: Menlo, Consolas, monospace;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 10px;
  text-indent: 10px;
  color: #07c160;
  background: #f6ffed;
  border: 1px dashed #b7eb8f;
  border-radius: 10px;
}
.meal-date-rel {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: #f4f1fe;
  color: #5a49b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.meal-report-container .meal-stat-row .meal-stat {
  text-align: center;
  padding: 8px 0;
}
.meal-report-container .meal-stat-row .meal-stat-mid {
  border-left: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}
.meal-report-container .meal-stat-row .meal-stat-label {
  font-size: 16px;
  font-weight: 600;
  color: #595959;
}
.meal-report-container .meal-stat-row .meal-stat-note {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.meal-report-container .meal-stat-row .meal-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.meal-report-container .meal-stat-row .meal-chip-breakfast {
  background: #fff7e6;
  border-color: #ffd591;
  color: #ad4e00;
}
.meal-report-container .meal-stat-row .meal-chip-lunch {
  background: #e6f1fb;
  border-color: #91caff;
  color: #0958d9;
}
.meal-report-container .meal-stat-row .meal-chip-dinner {
  background: #f4f1fe;
  border-color: #b7aef0;
  color: #5a49b8;
}
.meal-report-container .meal-batch-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.meal-report-container .meal-batch-title {
  font-size: 12px;
  font-weight: 600;
  color: #595959;
  white-space: nowrap;
}
.meal-report-container .meal-batch-scope {
  font-size: 11px;
  color: #bfbfbf;
  white-space: nowrap;
}
.meal-report-container .meal-batch-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.meal-report-container .meal-batch-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meal-report-container .meal-batch-name {
  font-size: 12px;
  color: #595959;
  white-space: nowrap;
}
.meal-report-container .meal-batch-type.ant-segmented {
  font-size: 11px;
}
.meal-report-container .ios-switch.ant-switch {
  background: #e5e5ea;
  transform: scale(1.22);
  transform-origin: center center;
  margin-inline: 5px;
}
.meal-report-container .ios-switch.ant-switch:hover:not(.ant-switch-disabled) {
  background: #d8d8dd;
}
.meal-report-container .ios-switch.ant-switch .ant-switch-inner-unchecked {
  color: #4a4a4f;
  font-weight: 600;
}
.meal-report-container .ios-switch.ant-switch.ant-switch-checked {
  background: #34c759;
}
.meal-report-container .ios-switch.ant-switch.ant-switch-checked:hover:not(.ant-switch-disabled) {
  background: #2fb350;
}
.meal-report-container .ios-switch.ant-switch.ant-switch-checked .ant-switch-inner-checked {
  color: #fff;
  font-weight: 600;
}
.meal-report-container .ios-switch.ant-switch.ant-switch-disabled {
  opacity: 0.5;
}
@media (max-width: 768px) {
  .meal-report-container .toolbar-card {
    margin-bottom: 8px;
  }
  .meal-report-container .meal-stat-row {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    /* ★★ 2026-10-07：必须**同时**清掉 antd `gutter` 带来的**负边距**。
         下面把 `.ant-col` 的 `padding-left/right` 清成了 0 —— 而 antd 的 gutter 是**一对配套**机制：
         Row 负边距 `-gutter/2` ＋ Col 内边距 `+gutter/2`，靠后者把内容"推回"容器内。
         只清 Col 的 padding、不清 Row 的负边距 ⇒ **内容整体外扩 gutter 宽度**。
         手机端实测（390px 视口）：这一行宽到 **411px**，右边「合计」栏被父级 `overflow:hidden`
         **裁掉约 15px**（不是能左右滑，是直接看不到）。
         ⚠️ 注意：**不要**把它做成全站规则 —— 别的 Row 没清 Col padding，
         全局清负边距反而会让那些内容整体偏移。只在"清了 Col padding"的地方配套清 Row 边距。 */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .meal-report-container .meal-stat-row > .ant-col {
    /* ★★ 2026-10-07 修：外层是 `span={24}` ⇒ 本该占满整行。
           原来写 `flex: 0 0 auto` + `max-width: none` 会**既不收缩也不限宽**，
           加上内层 Card 写了 `width:100%`（相对本列解析）⇒ 宽度解析成 max-content，
           实测列宽 = **405px** > 容器 350px，右边被父级 overflow:hidden **裁掉 55px**。
           改成「可伸缩 + 不超容器 + 允许收缩到 0」：列宽 = 350，Card 随之 350。 */
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .meal-report-container .meal-stat-row .ant-card {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #ece7f8 !important;
    box-shadow: none !important;
  }
  .meal-report-container .meal-stat-row .ant-card-body {
    padding: 8px 4px !important;
  }
  .meal-report-container .meal-stat-row .ant-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .meal-report-container .meal-stat-row .ant-row > .ant-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .meal-report-container .meal-stat-row .meal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px !important;
    border: none !important;
    text-align: center;
  }
  .meal-report-container .meal-stat-row .meal-stat-label {
    font-size: 15px;
    line-height: 19px;
    font-weight: 600;
    color: #595959;
  }
  .meal-report-container .meal-stat-row .meal-stat-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .meal-report-container .meal-stat-row .meal-chip {
    font-size: 15px;
    padding: 3px 9px;
  }
  .meal-report-container .meal-batch-bar {
    justify-content: flex-start;
    gap: 6px;
  }
  .meal-report-container .meal-batch-scope {
    display: none;
  }
  .meal-report-container .meal-batch-items {
    flex: 1 1 100%;
    gap: 12px;
  }
  /* 第六轮（老师）：报餐列表「**取消卡片形式**，就用简单表格一行一行显示信息」，而且字段要显示完整 ——
     · 行不再是圆角描边卡片（改成一条浅色下划线，像表格）；
     · 保留字段放开宽度上限，长值换行显示（原来 22% 上限 + 省略号，教学点 / 画室看不全）。 */
  body.mobile-card-mode .meal-plain-table .ant-table,
  body.mobile-card-mode .meal-plain-table .ant-table-container,
  body.mobile-card-mode .meal-plain-table .ant-table-content,
  body.mobile-card-mode .meal-plain-table .ant-table-body {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.mobile-card-mode .meal-plain-table .ant-table-tbody > tr {
    margin: 0 !important;
    padding: 7px 2px !important;
    border: none !important;
    border-bottom: 1px solid #f0edf5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  body.mobile-card-mode .meal-plain-table .ant-table-tbody > tr > td[data-label] {
    max-width: 100% !important;
  }
  body.mobile-card-mode .meal-plain-table .ant-table-tbody > tr > td[data-mobile-title='1'] {
    max-width: 100% !important;
    font-size: 13.5px;
  }
}
.meal-report-container .row-meal-paused > td {
  background: #fafafa !important;
  color: #b5b5b5 !important;
}
.meal-report-container .row-meal-paused > td:first-child {
  box-shadow: inset 3px 0 0 #d9d9d9;
}
.meal-report-container .row-meal-paused:hover > td {
  background: #f5f5f5 !important;
}
.meal-report-container .row-meal-paused > td .ant-checkbox-wrapper,
.meal-report-container .row-meal-paused > td .ant-radio-group {
  filter: grayscale(1);
  opacity: 0.55;
}
.meal-report-container .meal-paused-tag.ant-tag {
  color: #8c8c8c;
  background: #f0f0f0;
  border-color: #d9d9d9;
}
.meal-report-container .meal-batch-item-pause {
  padding-left: 12px;
  border-left: 1px dashed #e6e1f2;
}
.meal-report-container .meal-pause-form {
  padding: 2px 2px 4px;
}
.meal-report-container .meal-pause-label {
  font-size: 13px;
  color: #595959;
  white-space: nowrap;
}
.meal-report-container .meal-pause-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.meal-report-container .meal-pause-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #8c8c8c;
}
@media (max-width: 768px) {
  body.mobile-card-mode .meal-report-container .meal-plain-table .ant-table-tbody > tr.row-meal-paused {
    background: #fafafa !important;
    border-left: 3px solid #d9d9d9 !important;
  }
  body.mobile-card-mode .meal-report-container .meal-plain-table .ant-table-tbody > tr.row-meal-paused > td {
    background: transparent !important;
    color: #b5b5b5 !important;
  }
  body.mobile-card-mode .meal-report-container .meal-plain-table .ant-table-tbody > tr.row-meal-paused > td:first-child {
    box-shadow: none;
  }
  .meal-report-container .meal-pause-row {
    gap: 2px;
  }
  .meal-report-container .meal-pause-row .ant-picker {
    flex: 1 1 auto;
    min-width: 118px;
  }
}
.meal-report-container .meal-stat-card .ant-card-head {
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px dashed #f0edf7;
}
.meal-report-container .meal-stat-card .ant-card-head-title {
  padding: 8px 0;
  font-size: 15px;
  color: #595959;
}
.meal-report-container .meal-stat-card .ant-card-extra {
  padding: 8px 0;
}
/* ===== 历史报餐记录：列表弹窗 ===== */
.meal-history-modal .mh-toolbar {
  width: 100%;
}
.meal-history-modal .mh-summary-bar {
  margin-bottom: 8px;
  font-size: 12px;
  color: #595959;
}
.meal-history-modal .mh-summary-bar b {
  color: #7c5cfc;
}
.meal-history-modal .mh-cell {
  line-height: 1.3;
}
.meal-history-modal .mh-num {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}
.meal-history-modal .mh-num-strong {
  color: #7c5cfc;
}
.meal-history-modal .mh-unit {
  margin-left: 2px;
  font-size: 11px;
  color: #8c8c8c;
}
.meal-history-modal .mh-brief {
  font-size: 11px;
  color: #8c8c8c;
  white-space: nowrap;
}
.meal-history-modal .mh-date-main {
  font-weight: 600;
  font-size: 13px;
}
.meal-history-modal .mh-date-week {
  font-size: 11px;
  color: #999;
}
.meal-history-modal .mh-tag-locked,
.meal-history-modal .mh-tag-draft {
  margin: 0;
}
.meal-history-modal .mh-tag-sub {
  font-size: 10px;
  opacity: 0.75;
}
.meal-history-modal .mh-detail-btn {
  padding: 0;
}
/* ===== 历史报餐记录：某天详单（抽屉） ===== */
.meal-history-drawer {
  /* ★ 2026-10-04（P5-2）：当天「不计入就餐」的行（暂停就餐 / 请假暂停伙食）—— 变灰 + 打标签，
     统计本来就不计、打印也已排除；这里只是让老师一眼看出"这段名单里哪些人不吃" */
}
.meal-history-drawer .mh-stat-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.meal-history-drawer .mh-stat {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #f0edf7;
  border-radius: 10px;
  background: #fafaff;
}
.meal-history-drawer .mh-stat-total {
  border-color: #e3dcff;
  background: #f6f3ff;
}
.meal-history-drawer .mh-stat-label {
  font-size: 12px;
  color: #8c8c8c;
}
.meal-history-drawer .mh-stat-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.meal-history-drawer .mh-stat-unit {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 400;
  color: #999;
}
.meal-history-drawer .mh-stat-note {
  font-size: 11px;
  color: #8c8c8c;
}
.meal-history-drawer .mh-detail-note {
  margin-bottom: 4px;
  font-size: 12px;
  color: #8c8c8c;
}
.meal-history-drawer .mhd-on {
  color: #389e0d;
  font-weight: 600;
}
.meal-history-drawer .mhd-off {
  color: #d9d9d9;
}
.meal-history-drawer .mhd-paused-row > td {
  background: #fafafa;
  color: #b0b0b0;
}
.meal-history-drawer .mhd-paused-row .mhd-on {
  color: #d3d3d3;
  /* 变灰后"吃"也别再是醒目的绿 */
  font-weight: 400;
}
.meal-history-drawer .mhd-paused-tag {
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 16px;
  color: #8c8c8c;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .meal-report-container .meal-stat-card .ant-card-head {
    padding: 0 10px;
  }
  .meal-report-container .meal-stat-card .ant-card-head-title {
    font-size: 12px;
  }
  .meal-report-container .meal-stat-card .meal-history-btn {
    font-size: 12px;
  }
  /* 历史列表在手机上：日期 + 状态一行；学生 / 教师 / 合计各占一行（横向挤不下） */
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr {
    display: block !important;
    padding: 8px 10px 7px !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-date {
    display: inline-flex !important;
    align-items: baseline;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-date::before {
    display: none !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-date .mh-date-week {
    font-weight: 400;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-status {
    float: right;
    display: inline-flex !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-status::before {
    display: none !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-stu,
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-tea,
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-all {
    display: flex !important;
    align-items: baseline;
    margin-top: 3px;
    padding-top: 3px !important;
    border-top: 1px dashed #f2effb !important;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-stu::before,
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-tea::before,
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-all::before {
    flex: 0 0 74px;
    font-size: 11px;
    font-weight: 600;
    color: #7c5cfc;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-op {
    display: block !important;
    margin-top: 6px;
  }
  body.mobile-card-mode .meal-history-table-holder .ant-table-tbody > tr > td.mh-op::before {
    display: none !important;
  }
  body.mobile-card-mode .meal-history-table-holder .mh-brief {
    white-space: normal;
  }
  .meal-history-drawer .mh-stat-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .meal-history-drawer .mh-stat {
    flex: 1 1 30%;
    padding: 6px 8px;
  }
  .meal-history-drawer .mh-stat-value {
    font-size: 17px;
  }
}
.meal-enroll-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid #ece7f8;
  border-radius: 8px;
  background: #fbfaff;
  vertical-align: middle;
}
.meal-enroll-title {
  font-size: 12px;
  color: #6b5ba8;
  font-weight: 600;
  margin-right: 2px;
  white-space: nowrap;
}
.meal-enroll-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6e2f5;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.meal-enroll-item:hover {
  border-color: #5a49b8;
  background: #f4f1ff;
}
.meal-enroll-item .meal-enroll-icon {
  font-size: 13px;
}
.meal-enroll-item .meal-enroll-label {
  font-size: 12px;
  color: #555;
}
.meal-enroll-item .meal-enroll-num {
  font-size: 14px;
  color: #5a49b8;
}
.meal-enroll-modal .meal-enroll-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 8px;
}
.meal-enroll-modal .meal-enroll-back {
  margin-bottom: 8px;
}
.meal-enroll-modal .meal-enroll-school-table .ant-table-tbody > tr {
  cursor: pointer;
}
.meal-enroll-modal .meal-enroll-open {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .meal-enroll-bar {
    padding: 4px 6px;
    gap: 4px;
  }
  .meal-enroll-title {
    flex: 0 0 100%;
  }
  .meal-enroll-item {
    padding: 2px 7px;
  }
  .meal-enroll-item .meal-enroll-num {
    font-size: 13px;
  }
}
/* ============================================================
   报餐明细查询中心（2026-10-06 · P6-B1）
   ★ 必须写成**顶层选择器**：antd Modal 挂在 body 上，
     进不了 `.meal-report-container` 那层作用域。
   ★ 可读性：本弹窗内所有文字 ≥ 13px —— 老师 2026-10-06 刚反馈过「模块文字太小看不清」，
     新界面不允许再出现 11/12px 小字。
   ============================================================ */
.meal-insight-modal .mi-title {
  font-size: 16px;
  font-weight: 600;
}
.meal-insight-modal .mi-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.meal-insight-modal .mi-total {
  font-size: 14px;
  color: #595959;
}
.meal-insight-modal .mi-num {
  color: #1677ff;
  font-weight: 600;
}
.meal-insight-modal .mi-warn {
  color: #d46b08;
  font-weight: 600;
}
.meal-insight-modal .mi-none {
  font-size: 13px;
  color: #8c8c8c;
}
.meal-insight-modal .mi-note {
  margin-bottom: 10px;
}
.meal-insight-modal .mi-note .ant-alert-message {
  font-size: 13px;
  line-height: 1.7;
}
.meal-insight-modal .mi-dim-note {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 8px;
}
.meal-insight-modal .mi-meal-tag {
  font-size: 13px;
}
.meal-insight-modal .mi-name-btn {
  padding: 0;
  height: auto;
  font-size: 14px;
}
.meal-insight-modal .mi-group-table .ant-table-thead > tr > th {
  font-size: 14px;
  white-space: nowrap;
}
.meal-insight-modal .mi-group-table .ant-table-tbody > tr > td {
  font-size: 14px;
}
.meal-insight-modal .mi-stu-table .ant-table-thead > tr > th {
  font-size: 13px;
  white-space: nowrap;
}
.meal-insight-modal .mi-stu-table .ant-table-tbody > tr > td {
  font-size: 14px;
}
.meal-insight-modal .mi-empty {
  padding: 32px 0;
}
.meal-insight-modal .mi-empty .ant-empty-description {
  font-size: 14px;
  color: #595959;
}
.meal-insight-modal .mi-range-label {
  font-size: 14px;
  color: #595959;
}
/* ============================================================
   报餐明细查询 · 数据对比模式（2026-10-06 · P6-B2）
   老师口径：「两天比对，找出差异的数据，不一样的要明确显示出来」
     ⇒ 表格读法 = A 日 → B 日 后面跟差异；**红 = A 日比 B 日多、绿 = 少**（图例在界面里写明）。
   ★ 同样顶层选择器 + 所有文字 ≥ 13px。
   ============================================================ */
.meal-insight-modal {
  /* 差异配色：深色字 + 白底，不碰「绿底紫字 / 亮青绿标题」那条可读性红线 */
}
.meal-insight-modal .mi-cmp-label {
  font-size: 14px;
  color: #595959;
}
.meal-insight-modal .mi-cmp-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #595959;
}
.meal-insight-modal .mi-cmp {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}
.meal-insight-modal .mi-cmp-a {
  color: #8c8c8c;
}
.meal-insight-modal .mi-cmp-b {
  color: #1f1f1f;
  font-weight: 600;
}
.meal-insight-modal .mi-cmp-arrow {
  color: #bfbfbf;
}
.meal-insight-modal .mi-cmp-same {
  color: #bfbfbf;
}
.meal-insight-modal .mi-cmp-up {
  color: #cf1322;
  font-weight: 600;
}
.meal-insight-modal .mi-cmp-down {
  color: #237804;
  font-weight: 600;
}
.meal-insight-modal .mi-cmp-table .ant-table-thead > tr > th {
  font-size: 14px;
  white-space: nowrap;
}
.meal-insight-modal .mi-cmp-table .ant-table-tbody > tr > td {
  font-size: 14px;
}
.meal-insight-modal .mi-diff-table .ant-table-thead > tr > th {
  font-size: 13px;
  white-space: nowrap;
}
.meal-insight-modal .mi-diff-table .ant-table-tbody > tr > td {
  font-size: 14px;
}
/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* 关键性能优化：touch-action: manipulation 消除移动端 300ms 点击延迟，
     配合 viewport 的 user-scalable=no，手机点按钮不再「要两次才生效」 */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* 文字缩放关闭后，避免浏览器在横竖屏时自动调整字号造成布局跳动 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  /* 滚动容器用惯性滚动，滑屏更跟手 */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f0edf5;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c8c0e0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c5cfc;
}

/* ===== 卡片 ===== */
.ant-card {
  border-radius: 16px !important;
  box-shadow: 0 2px 16px rgba(124, 92, 252, 0.06) !important;
  border: 1px solid #f0edf5 !important;
}
.ant-card-bordered {
  border-color: #f0edf5 !important;
}
.ant-card-head {
  border-bottom: 1px solid #f0edf5 !important;
}
.ant-card-head-title {
  color: #1a1a2e !important;
  font-weight: 600 !important;
}

/* ===== 按钮 ===== */
.ant-btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.ant-btn-primary {
  background: #7c5cfc !important;
  border-color: #7c5cfc !important;
  box-shadow: 0 2px 8px rgba(124, 92, 252, 0.25) !important;
}
.ant-btn-primary:hover {
  background: #6b4ce0 !important;
  border-color: #6b4ce0 !important;
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.35) !important;
}
/* ★★ 2026-10-07 修「按钮文字与按钮一样、看不到文字」（老师报「去办理请假」按钮）：
   上面那条 `.ant-btn-primary{background:#7c5cfc !important}` 是**全局**的，会把 ghost（描边）主按钮
   本来透明的底色也刷成紫色 —— 而 ghost 按钮的文字颜色本来就是主色（紫）⇒ **紫底紫字，看不见**。
   这里给 ghost 主按钮还原透明底（选择器多一个类，特异性更高，能压过上面那条 !important）。 */
.ant-btn-primary.ant-btn-background-ghost {
  background: transparent !important;
  color: #7c5cfc !important;
  border-color: #7c5cfc !important;
  box-shadow: none !important;
}
.ant-btn-primary.ant-btn-background-ghost:hover {
  background: rgba(124, 92, 252, 0.08) !important;
  color: #6b4ce0 !important;
  border-color: #6b4ce0 !important;
  box-shadow: none !important;
}
/* 同款问题的 danger 版（`type="primary" ghost danger`）：红底红字 */
.ant-btn-primary.ant-btn-dangerous.ant-btn-background-ghost {
  background: transparent !important;
  color: #ff4d4f !important;
  border-color: #ff4d4f !important;
  box-shadow: none !important;
}
.ant-btn-primary.ant-btn-dangerous.ant-btn-background-ghost:hover {
  background: rgba(255, 77, 79, 0.08) !important;
  color: #ff7875 !important;
  border-color: #ff7875 !important;
  box-shadow: none !important;
}
.ant-btn-default {
  border-color: #e0dcec !important;
}
.ant-btn-default:hover {
  border-color: #7c5cfc !important;
  color: #7c5cfc !important;
}
/* ★ 2026-10-07：文字类一律用「过 AA」的深一档紫。
   `#7c5cfc` 作文字色对比度仅 4.38:1（WCAG AA 正文需 ≥4.5:1，按相对亮度公式实算），
   而 hover 色 `#6b4ce0` 是 5.62:1 ⇒ 直接把**基态**提到达标色。
   `#7c5cfc` 仍留给图标 / 描边 / 底色（那些不受 AA 约束）。
   ⚠️ 本条是**全局规则**（不在手机段内）⇒ 电脑端一并变深，这是有意的：AA 失败是全局的。 */
.ant-btn-link {
  color: #6b4ce0 !important;
}
.ant-btn-link:hover {
  color: #6b4ce0 !important;
}

/* ===== 输入框 ===== */
.ant-input,
.ant-select-selector,
.ant-picker {
  border-radius: 8px !important;
  border-color: #e0dcec !important;
}
.ant-input:hover,
.ant-select:hover .ant-select-selector,
.ant-picker:hover {
  border-color: #7c5cfc !important;
}
.ant-input:focus,
.ant-select-focused .ant-select-selector,
.ant-picker-focused {
  border-color: #7c5cfc !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.12) !important;
}

/* ===== 表格 ===== */
.ant-table {
  border-radius: 12px !important;
  overflow: hidden;
}
.ant-table-thead > tr > th {
  background: #f0edff !important;
  color: #1a1a2e !important;
  font-weight: 600 !important;
  border-bottom: 2px solid #e5def5 !important;
}
.ant-table-tbody > tr:hover > td {
  background: #f8f6ff !important;
}
.ant-table-tbody > tr > td {
  border-bottom: 1px solid #f0edf5 !important;
}

/* ===== Tabs ===== */
.ant-tabs-tab {
  border-radius: 8px 8px 0 0 !important;
  font-weight: 500 !important;
}
.ant-tabs-tab:hover {
  color: #7c5cfc !important;
}
.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: #7c5cfc !important;
}
.ant-tabs-ink-bar {
  background: #7c5cfc !important;
  height: 3px !important;
}

/* ===== 标签 ===== */
.ant-tag {
  border-radius: 6px !important;
}
.ant-tag-blue {
  background: #f0edff !important;
  border-color: #d5ccf5 !important;
  color: #5b3fd0 !important;
}
.ant-tag-purple {
  background: #f0edff !important;
  border-color: #d5ccf5 !important;
  color: #7c5cfc !important;
}
.ant-tag-red {
  background: #fff0f0 !important;
  border-color: #f5d0d0 !important;
  color: #e05050 !important;
}
.ant-tag-green {
  background: #f0faf0 !important;
  border-color: #d0e8d0 !important;
  color: #3a9e3a !important;
}

/* ===== Modal ===== */
.ant-modal-content {
  border-radius: 16px !important;
  box-shadow: 0 8px 40px rgba(26, 26, 46, 0.12) !important;
}
.ant-modal-header {
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid #f0edf5 !important;
}
.ant-modal-title {
  color: #1a1a2e !important;
  font-weight: 600 !important;
}

/* ===== 下拉菜单 ===== */
.ant-dropdown-menu {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08) !important;
}

/* ===== 统计数字 ===== */
.ant-statistic-title {
  color: #8888aa !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.ant-statistic-content {
  color: #1a1a2e !important;
  font-weight: 700 !important;
}

/* ===== 选择器下拉 ===== */
.ant-select-dropdown {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08) !important;
}
.ant-select-item-option-selected {
  background: #f0edff !important;
}

/* ===== 弹出确认 ===== */
.ant-popconfirm {
  border-radius: 12px !important;
}
.ant-popover-inner {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.10) !important;
}

/* ===== 上传组件 ===== */
.ant-upload-drag {
  border-radius: 12px !important;
  border-color: #e0dcec !important;
}
.ant-upload-drag:hover {
  border-color: #7c5cfc !important;
}
.ant-upload-drag-icon {
  color: #7c5cfc !important;
}

/* ==========================================================================
   ===== 窄屏 / 手机适配（≤768px）============================================
   背景：Web 端经花生壳外网给老师用手机打开时，界面「显示与手机屏幕不匹配」——
   桌面版布局（固定 200px 侧边栏 + 各页面写死 span 的栅格 + 一行十几列的宽表格）
   在 390px 竖屏上会横向溢出、文字被挤成竖排、弹窗超出屏幕。
   本文件是**唯一被入口 import 的全局样式**（main.jsx → ./index.css），所以手机适配
   统一收口在这里，业务页零改动：
     ① 布局高度改用 dvh（手机地址栏收起/展开时 100vh 会裁掉底部）
     ② 顶栏收紧到 56px
     ③ 栅格列一律整行（antd Col 的 span 是死值，不会自动响应）；看板（.ant-statistic）另按
        「胶囊」处理（③-补充：一行多个、11px 标题 + 13px 数值、模块之间 6px）
     ④ 卡片 / 统计数字收小内边距
     ⑤ 宽表格**降级成紧凑列表**（一行 = 一条记录 + 每格左侧小号列名标签，彻底不横滑；行上只留
        前 CARD_KEEP_FIELDS 个字段，其余折起来）—— 由
        utils/mobileTableCards.js 在 ≤768px 时给 <body> 挂 mobile-card-mode、按表头文案给每个
        td 写 data-label，并给首格 / 操作格打 data-mobile-title / data-mobile-action；
        本文件只负责「长什么样」（⑤-1 表头/固定列、⑤-2 骨架、⑤-3 一行一条、⑤-4 行内单元格、
        ⑤-5 折叠与展开）
     ⑥ 弹窗 / 抽屉不超出屏幕　⑦ 表单与工具栏允许换行（⑧ 日期范围下拉内部可横滑、⑨ 页签/分页收小）
   断点与 hooks/useIsMobile.js 的 MOBILE_MAX_WIDTH = 768 保持一致。
   另：⑩ 段是「一行一记录列表」（.mr-*，components/MobileRecordList.jsx 专用）—— 主列表页
   （学生管理 / 小学初中 / 教师管理 / 用户账号 / 毕业生档案 / 退学档案 / 高校数据库）手机上只显示
   关键字段，其余字段与操作按钮点这一行进「详情抽屉」看，与电脑端表格刻意做出区别；
   ⑪ 段是「搜索 / 筛选 / 表单控件一律小一号 + 工具栏两列网格式」（页面自挂
   className="page-toolbar" / "kpi-strip"），解决老师反馈的「搜索区一进页就占满整屏」。
   ========================================================================== */
@media (max-width: 768px) {
  /* ① 视口高度：100dvh 跟随手机可视区；不支持 dvh 的浏览器回退 100vh */
  .app-layout {
    height: 100vh !important;
  }
  @supports (height: 100dvh) {
    .app-layout {
      height: 100dvh !important;
    }
  }

  /* ② 顶栏：收紧高度（左右内边距已由 App.jsx 按 isMobile 收窄） */
  .ant-layout-header {
    height: 56px !important;
    line-height: 56px !important;
  }

  /* ③ 栅格：手机上所有列占满整行（页面里写的是 span=6/8/12，antd 不会自动堆叠） */
  .ant-row > .ant-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  /* ③-补充：顶上的「看板」（统计数字）在手机上收成**胶囊** ——
        老师反馈「看板模块太大，手机上只适合胶囊形式，字要缩小、位置紧凑、模块之间也要紧凑」。
        · 容器改成 flex 流式：胶囊按内容宽度自动排，一行能放几个就放几个（原来 2 列一行的格子）；
        · 卡片本身变成药丸（圆角 999px + 细边 + 无阴影），内边距压到 3px 10px；
        · 标题与数值同一行（inline-flex），标题 11px 灰、数值 13px 深，整块高度 ~24px。
        ⚠️ 第六轮收紧：「看板行」必须是**一列一个看板卡片**（`.ant-col > [div] > .ant-card > .ant-card-body > .ant-statistic`）——
        原来写的是 `.ant-row:has(.ant-statistic)`（任意后代），于是首页那种「大卡里恰好也用 Statistic 展示数字」的
        布局行（餐食看板 + 教学点分布排行）也整行变成 `flex: 0 0 auto` → 卡片被压到内容宽度，
        排行表里的教学点名称 / 人数被挤到 59px 一格（老师反馈「字段显示不完整」）。 */
  .ant-row:has(> .ant-col > .ant-card > .ant-card-body > .ant-statistic),
  .ant-row:has(> .ant-col > div > .ant-card > .ant-card-body > .ant-statistic) {
    row-gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .ant-row:has(> .ant-col > .ant-card > .ant-card-body > .ant-statistic) > .ant-col,
  .ant-row:has(> .ant-col > div > .ant-card > .ant-card-body > .ant-statistic) > .ant-col {
    flex: 0 0 auto !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* ③-补充②（第十轮 2026-09-20）：同一行里「不放看板胶囊」的列必须能收缩。
     上面 ③-补充 为了「胶囊按内容宽度排」给**整行**的 .ant-col 都设了 flex: 0 0 auto / max-width: none，
     于是财务「欠费学员看板」里装 ProTable 的 <Col span={16}> 被内容撑到 535px
     （探针实测：Col-16 flex="0 0 auto"、max-width=none → 整页 .app-content 368px 却能滚到 563px，
     手机上又要左右拖）。这里把这类列改回「占满一行 + 允许收缩」（min-width: 0 才是能收缩的关键）。 */
  .ant-row:has(> .ant-col > .ant-card > .ant-card-body > .ant-statistic) > .ant-col:not(:has(.ant-statistic)),
  .ant-row:has(> .ant-col > div > .ant-card > .ant-card-body > .ant-statistic) > .ant-col:not(:has(.ant-statistic)) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  /* 纯看板卡片（卡片体里直接就是 <Statistic>）→ 胶囊 */
  .ant-card:has(> .ant-card-body > .ant-statistic) {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid #ece7f8 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  /* 第六轮：首页「最顶上 8 个核心数字」——手机上编成 **4 列 × 2 行**（老师：集成成 2 行卡片，高度再小一点）。
    ⚠️ 必须写在 ③ 段之后：`.ant-row > .ant-col { flex: 0 0 100% }`（0,2,0）与
    `.ant-row:has(...) > .ant-col { flex: 0 0 auto }`（0,4,1）都比 `.home-kpi-row > .ant-col` 权重大，
    所以要带 !important 且选择器要够长。 */
  .ant-row.home-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  .ant-row.home-kpi-row > .ant-col {
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  .ant-row.home-kpi-row .ant-card {
    display: block !important;
    width: 100% !important;
    border-radius: 10px !important;
  }
  .ant-row.home-kpi-row .ant-card .ant-card-body {
    padding: 6px 8px !important;
  }
  /* 卡片右侧那圈图标在手机上纯占高（卡片只剩 ~2 行字），收掉。
     ⚠️ 2026-09-29 修 bug：这条原来靠**结构**选择器（> div > div:last-child）隐藏图标；
     当天把卡片结构改成「小图标 span + 文字块 div」后，:last-child 变成了**文字块**
     → 手机端数字和标签整块被隐藏（老师反馈「学生与师资的模块不显示数字」）。
     现在**一律用类名**（.home-kpi-icon / -label / -value），以后再改结构也不会误伤。 */
  .ant-row.home-kpi-row .home-kpi-icon {
    display: none !important;
  }
  .ant-row.home-kpi-row .home-kpi-label {
    font-size: 11px !important;
    line-height: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ant-row.home-kpi-row .home-kpi-value {
    font-size: 17px !important;
    line-height: 20px !important;
    color: #1e293b !important;
  }
  .ant-row.home-kpi-row .ant-statistic {
    display: block !important;
  }
  .ant-row.home-kpi-row .ant-statistic-title {
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ant-row.home-kpi-row .ant-statistic-content,
  .ant-row.home-kpi-row .ant-statistic-content-value {
    font-size: 17px !important;
    line-height: 20px !important;
  }
  .ant-card:has(> .ant-card-body > .ant-statistic) > .ant-card-body {
    padding: 3px 10px !important;
  }
  .ant-statistic {
    display: inline-flex !important;
    align-items: baseline;
    gap: 4px;
  }
  .ant-statistic-title {
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 16px !important;
  }
  .ant-statistic-content,
  .ant-statistic-content-value,
  .ant-statistic-content-prefix,
  .ant-statistic-content-suffix {
    font-size: 13px !important;
    line-height: 16px !important;
  }

  /* ④ 卡片 / 统计数字：内边距与字号一起收紧（看板之外的内容卡片也少占地方） */
  .ant-card-body {
    padding: 10px !important;
  }
  .ant-card-head {
    padding: 10px 12px !important;
    font-size: 14px !important;
    min-height: 40px !important;
  }

  /* ⑤ 表格
     · 兜底：JS（mobileTableCards.js）失效时仍可在卡片内横向滚动，不至于把字挤成竖排。
       —— 不再写 min-width（上一版写死 620px，导致「本来放得下的表格也被迫左右滑」）。
     · 主用法：.mobile-card-mode（由 JS 在 ≤768px 时挂到 <body>）→ 表格「卡片化」，
       每个数据行一张卡、每格左侧是表头文案（data-label），彻底没有横向滚动。 */
  .ant-table-content,
  .ant-table-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 8px 10px !important;
  }

  /* ⑤-1 表头 / 固定列：列名已在每格的标签里，表头（含 scroll.y 的独立表头表）不再占地方；
        固定列（姓名/操作）在手机上会盖住卡片内容，取消 sticky */
  body.mobile-card-mode .ant-table-header,
  body.mobile-card-mode .ant-table-thead,
  body.mobile-card-mode .ant-table colgroup,
  body.mobile-card-mode .ant-table-measure-row {
    display: none !important;
  }
  /* ⭐ 第八轮（2026-09-19）：量测行必须**压得住 ⑤-3 的 `tr { display: flex }`** ——
     上面那条 `.ant-table-measure-row`（0,2,0）权重低于 ⑤-3 的 `tbody > tr`（0,3,0），
     会被盖回来 → antd 用来量列宽的隐藏行变成一张 15px 空卡片，漏在第一条数据行**上方**，
     里面是半截「+ 还有 N 项 ▾」（老师：「xxx 的个人卡片上面还有文字被遮挡」）。
     这条（0,4,0）才是真的把量测行藏掉的那条；utils/mobileTableCards.js 同时不再给它打标记。 */
  body.mobile-card-mode .ant-table-tbody > tr.ant-table-measure-row {
    display: none !important;
  }
  body.mobile-card-mode .ant-table-cell-fix-left,
  body.mobile-card-mode .ant-table-cell-fix-right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
  }
  body.mobile-card-mode .ant-table-cell-fix-left-last::after,
  body.mobile-card-mode .ant-table-cell-fix-right-first::after {
    display: none !important;
  }

  /* ⑤-2 骨架：表格 / 表体全部改成块级流式，解除横向滚动与 scroll.y 的固定高度 */
  body.mobile-card-mode .ant-table,
  body.mobile-card-mode .ant-table-container,
  body.mobile-card-mode .ant-table-content,
  body.mobile-card-mode .ant-table-body,
  body.mobile-card-mode .ant-table-tbody {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.mobile-card-mode .ant-table-body {
    margin: 0 !important; /* scroll.y 时 antd 会补 margin */
  }
  body.mobile-card-mode .ant-table table {
    display: block !important;
    width: 100% !important; /* 覆盖 scroll.x 写死的行内宽度（如 1500px） */
    min-width: 0 !important;
    table-layout: auto !important;
  }

  /* ⑤-3 一行 = 一条紧凑记录（第五轮改：原来一行一张「大卡」，一行十几个字段行，
        390px 竖屏一屏只看得到一两个人 —— 老师反馈「还是太占位置」）
        · 这一行里只放**关键信息**：首格（姓名 / 名称 / 编号）当标题，后面跟 2~3 个字段的
          「列名 值」，字更小、间距更紧；
        · 放不下的字段由 JS 打 data-mobile-extra 折叠（⑤-5），点这一行展开看详情；
        · 操作按钮单独钉在行尾（data-mobile-action），不参与省略号挤压。 */
  body.mobile-card-mode .ant-table-tbody > tr {
    position: relative;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    margin: 0 0 6px;
    padding: 6px 10px 6px 8px;
    border: 1px solid #ece7f8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(124, 92, 252, 0.05);
    overflow: hidden;
  }
  body.mobile-card-mode .ant-table-tbody > tr:last-child {
    margin-bottom: 2px;
  }

  /* ⑤-4 一格 = 行内一小段「列名 值」（不再一格一行） */
  body.mobile-card-mode .ant-table-tbody > tr > td {
    display: inline-flex !important;
    align-items: baseline;
    gap: 3px;
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
    font-size: 12px;
    line-height: 18px;
    /* 第六轮：值允许换行（原来只能 nowrap + 省略号 → 长值被切掉，老师反馈「字段显示不完整」）；
       标签仍不换行、仍然淡色小字。 */
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    overflow: hidden !important;
  }
  body.mobile-card-mode .ant-table-tbody > tr > td + td {
    border-top: none !important;
  }
  /* 列名标签：比正文更小更淡（手机上只当「这是哪一项」的提示，不当主信息） */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #9a9ab8;
    font-size: 10.5px;
    line-height: 16px;
    word-break: keep-all;
    white-space: nowrap; /* 列名不换行（值才允许换行） */
  }
  /* ⭐ 第八轮（2026-09-17）④ 教学点管理：行本身就是「编号 + 教学点名称」，
     每格左侧那枚灰色列名「教学点名称」纯属重复占宽 —— 老师要求删掉。
     页面侧（App.jsx → CampusManager）给该列挂了 className="campus-name-cell"，
     这里只去掉这一列的灰字；列与值都保留，桌面端本来就没有灰字 → 两端一致。 */
  body.mobile-card-mode .ant-table-tbody > tr > td.campus-name-cell::before {
    display: none !important;
  }
  /* 首格 = 这条记录的标题（JS 打 data-mobile-title）：加粗、稍大，后面的字段小字跟随
     ⚠️ 宽度上限：手机一行放不下十几列，给标题 34%、其余保留字段各 22% —— 加起来的「最宽可能」
        必须 < 一行可用宽度，否则 flex 会「因为放不下而折行」，一行一条又变成一列一行（踩过：
        38% + 24% + 24% + 勾选框 + 间隙 = 289px，比 390px 视口下可用的 288px 多 1px，照样折行）。 */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-title='1'] {
    flex: 0 1 auto;
    max-width: 34% !important;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
  }
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-title='1']::before {
    display: none !important; /* 标题不再重复「姓名」这类列名 */
  }
  /* ⑥ 轮：保留字段不再被 22% 卡住（长值换行显示，一眼看全）；标题格仍限 34% 但放开换行 */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-label]:not([data-mobile-title='1']):not([data-mobile-action='1']) {
    max-width: 100% !important;
  }
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-title='1'] {
    max-width: 60% !important;
  }
  /* 勾选列：行首，不再浮在右上角 */
  body.mobile-card-mode .ant-table-tbody > tr > td.ant-table-selection-column {
    position: static !important;
    order: -1;
    flex: 0 0 auto;
    padding: 0 2px 0 0 !important;
    border: none !important;
    overflow: visible !important;
  }
  /* 操作列（含按钮）：放不下就整体折到第二行（不把信息行挤折行）；这一行内部不换行、可横滑 */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-action='1'] {
    order: 910;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 4px;
    max-width: 100% !important;
    margin-left: auto;
    padding-top: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
  }
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-action='1']::before {
    display: none !important; /* 一排按钮前面不用再写「操作」 */
  }
  /* 操作格里如果是 <Space wrap>：行内不许换行（换行就又把卡片撑成好几行），放不下就横滑 */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-action='1'] .ant-space {
    flex-wrap: nowrap !important;
  }
  /* 行内按钮：收小一点，一行放得下更多信息 */
  body.mobile-card-mode .ant-table-tbody > tr > td .ant-btn {
    height: 24px !important;
    padding: 0 7px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }
  /* 省略号列在行内继续省略（一行就是一行，不再放开换行） */
  body.mobile-card-mode .ant-table-cell-ellipsis {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* 空数据 */
  body.mobile-card-mode .ant-table-tbody > tr.ant-table-placeholder {
    display: block !important;
    padding: 18px 12px;
    text-align: center;
  }
  body.mobile-card-mode .ant-table-tbody > tr.ant-table-placeholder > td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    color: #8a8aa8;
    white-space: normal !important;
  }

  /* ⑤-5 折叠 + 点这一行展开详情：行上只留前 CARD_KEEP_FIELDS 个字段（JS 侧给其它格子打
        data-mobile-extra），其余收起来，行尾提示「+ 还有 N 项 ▾」；点这一行（不落在按钮 /
        勾选框 / 输入框上）时由 mobileTableCards.js 给 tr 切 mobile-card-expanded 类，
        折叠的字段再放出来（每个字段独占一行，看得清）。全部字段仍在，只是默认不铺满。 */
  body.mobile-card-mode .ant-table-tbody > tr[data-mobile-extra-count] > td[data-mobile-extra] {
    display: none !important;
  }
  /* ⚠️ 展开规则必须写在折叠规则**之后**（同优先级，靠顺序覆盖） */
  body.mobile-card-mode .ant-table-tbody > tr[data-mobile-extra-count].mobile-card-expanded > td[data-mobile-extra] {
    display: inline-flex !important;
    flex: 0 0 100%; /* 展开项独占一行，与「列名 值」对齐好看 */
    font-size: 12px;
  }
  body.mobile-card-mode .ant-table-tbody > tr[data-mobile-extra-count]::after {
    content: '+ 还有 ' attr(data-mobile-extra-count) ' 项 ▾';
    order: 900;
    flex: 0 0 auto;
    margin-right: auto;
    color: #7c5cfc;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
  }
  /* ⭐ 第八轮（2026-09-19）：带提示的行走**允许长高**（提示万一换到第二行也不被自身 overflow:hidden 裁掉）。
     ⑤-3 给所有行写了 overflow:hidden（为了圆角与一行一条），这里只对这一类行放开 —— 内容是 flex 流式，
     正常不会溢出卡片；操作格自己有 overflow-x:auto，横滑行为不变。 */
  body.mobile-card-mode .ant-table-tbody > tr[data-mobile-extra-count] {
    overflow: visible !important;
  }
  body.mobile-card-mode .ant-table-tbody > tr[data-mobile-extra-count].mobile-card-expanded::after {
    content: '收起 ▴';
    flex: 0 0 100%;
    margin-right: 0;
    padding-top: 2px;
  }

  /* ⑤-6 排课总表（.schedule-board-holder）：手机端**不折叠**，一张卡 = 一周课表
     老师（2026-09-29）：「手机端的排课管理里，排课总表，高中和小学的列表不需要折叠，直接显示即可」。
     为什么必须例外：这张表是「教学点/届别 × 周一~周日」的矩阵，⑤-5 的折叠只留前 3 格
     ⇒ 一打开**只看得到周一**（探针实测：10 格可见 3 格 + 行尾「+ 还有 7 项 ▾」），
     等于把"一周的课"折没了。所以排课总表的容器挂了 data-mobile-keep-all="1"
     （js 侧一格不折，见 utils/mobileTableCards.js ⑤），这里只负责**排得好看**：
       第一行 = 「教学点 · 届别」+ 右侧人数胶囊；下面周一~周日各一行（列名定宽、时间对齐）；
       一天多个时间段用「·」分隔，没课的天显示灰色「—」。 */
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr {
    padding: 8px 10px 7px !important; /* 行仍是 ⑤-3 的 flex 流式（只是这里多留一点上下白） */
  }
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-title {
    display: inline-flex !important;
    flex: 0 1 auto;
    max-width: calc(100% - 74px) !important;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 20px;
  }
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-title div {
    font-weight: 600;
  }
  /* 学生数：右侧小胶囊（列名不必再写一遍「学生数」） */
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-count {
    display: inline-flex !important;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 1px 8px !important;
    border-radius: 999px;
    background: #f0edff;
    color: #4a3f7a !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 18px;
  }
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-count::before {
    display: none !important; /* 「学生数」三个字省掉，3 人 自带含义 */
  }
  /* 周一~周日 / 任课教师：各占一整行，列名定宽、内容左对齐 → 一列对齐像课表 */
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-day,
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-teacher {
    display: flex !important;
    flex: 0 0 100% !important;
    flex-wrap: wrap;
    max-width: 100% !important;
    align-items: baseline;
    column-gap: 3px;
    padding: 3px 0 0 !important;
    border-top: 1px dashed #f2effb !important;
    margin-top: 2px;
    font-size: 12px;
  }
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-day::before,
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-teacher::before {
    flex: 0 0 44px;
    color: #7c5cfc;
    font-size: 11px;
    font-weight: 600;
  }
  /* 一天多个时间段：用「·」分开，不然两个时间挨在一起看不出是两段 */
  body.mobile-card-mode .schedule-board-holder .ant-table-tbody > tr > td.sb-day > div + div::before {
    content: '· ';
    color: #c9c3e0;
  }

  /* ⑥ 弹窗 / 抽屉：留 8px 边距，宽度不超出屏幕（业务弹窗 width 常写死 800~1000） */
  .ant-modal {
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto !important;
    top: 8px !important;
    padding-bottom: 8px !important;
  }
  .ant-modal-body {
    padding: 14px 12px !important;
  }
  .ant-modal-footer {
    padding: 10px 12px !important;
  }
  /* ⑥-补充（第九轮 2026-09-19）：弹窗标题里的**长考试名**必须换行 ——
     antd 的 `.ant-modal-title` / `.ant-tag` 默认 `white-space: nowrap`，
     像「2027届2026-09月考横山桥高中+和裕高中联考」这种名字会把弹窗顶出 390px 屏幕
     （整页跟着出现横向滚动条）。标题与抬头标签一律允许换行。 */
  .ant-modal-title {
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 20px;
  }
  .ant-modal-header .ant-tag {
    white-space: normal !important;
    overflow-wrap: anywhere;
    height: auto;
    line-height: 18px;
  }
  .ant-drawer-content-wrapper {
    max-width: 100vw !important;
  }

  /* ⑥-补充②（2026-09-21）：**弹窗里的长分隔标题会把弹窗顶宽** ——
     ExamPlacementModal 的「考场设置（按顺序分配考号段，考场内随机；人数 = 该考场容纳考生数）」
     这类 <Divider orientation="left"> 文案 antd 默认 white-space: nowrap：实测该 span 宽 479px，
     而弹窗可用宽只有 374px → **弹窗内容横向溢出 141px**，`.ant-modal-wrap` 能左右拖 136px，
     右边「重新随机考号」按钮被切掉一半（手指点不到、一拖整屏就滑走）。两条一起修：
     ① 允许换行（消掉溢出源）；② 遮罩层禁横向滚动（真有溢出也不许左右拖）。
     判据脚本：scripts/probe-mobile-hscroll.cjs（本轮已把它扩展到「🧭 新建考试（考务编排）」弹窗）。 */
  .ant-modal .ant-divider-inner-text {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .ant-modal-wrap {
    overflow-x: hidden !important;
  }

  /* ⑦ 表单 / 工具栏：允许换行，避免按钮与筛选项挤出屏幕 */
  .ant-form-item {
    margin-bottom: 14px !important;
  }
  /* ★★ 2026-10-07：必须**同时**写 display。
     antd 的 Space 是 `display: inline-flex` —— **行内级 flex 容器会收缩到内容宽度**，
     于是 `flex-wrap: wrap` **永远不会触发**（写了等于没写）。
     手机端实测：考试中心工具栏 396px > 390px 视口 ⇒ 右侧按钮被 `overflow:hidden` **裁掉**（看不到也点不到）。 */
  .ant-space {
    display: flex !important;
    flex-wrap: wrap;
  }
  .ant-descriptions-view table {
    table-layout: auto !important;
  }
  .ant-descriptions-item-label {
    white-space: nowrap !important;
  }

  /* ⑧ 日期范围选择（两个日历面板并排）会超出屏幕 → 允许下拉内部横向滚动 */
  .ant-picker-dropdown {
    max-width: calc(100vw - 8px) !important;
  }
  .ant-picker-dropdown .ant-picker-panel-container {
    max-width: 100%;
    overflow-x: auto;
  }

  /* ⭐ 第八轮（2026-09-17）②-1/②-2/②-3/②-4：小学 / 初中（课后服务）页手机端 ——
     老师四条要求：主标题不占一行、筛选区紧凑、按钮按类别分两行可折叠、加「全部排课情况」看板。
     · ②-3 `.primary-page-title`：页内大标题（16px 的 `<span>🎒 …`，**不是 h2[data-page-title]**，
       所以第七轮 ⑭ 段管不到它）在手机上收起 —— 页名已在顶栏 LOGO 右侧；
     · ②-2 `.primary-actions`：2026-10-06（P31）**已废弃** —— 零散按钮收进三组聚合下拉后，
       手机上不再需要「按类别分两行 + 收起」那套（改为 ㉔ 段的 `.list-topbar` 常显铺开）。 */
  .primary-page-title {
    display: none !important;
  }
  /* ②-4 看板：表头与统计行在手机上小一号（表格本体由页面内联样式控制，可横滑） */
  .primary-schedule-board .ant-card-head-title {
    white-space: normal !important;
  }

  /* ⑨ 页签 / 分页：收小内边距，避免折行错位 */
  .ant-tabs-tab {
    padding: 8px 10px !important;
  }
  .ant-pagination {
    font-size: 13px;
  }
  /* 原「提醒事项（生日 / 合同 / 请假）」卡片专用样式（第八轮为它加的页签换行）已在
     2026-09-29 首页重排中**删除**：那张卡与「我的今日」标签内容重复，已并入「① 今日待办」
     （今日的走标签抽屉；未来的近期生日 / 快到期的合同就地列一行）。
     页签换行本身不受影响 —— ⑱ 段的 `.ant-tabs-top` 全局规则仍兜底所有页签栏。 */
  /* ⑨-补充 2：首页底部「小学 / 初中（课后服务）概览」卡片标题里的口径 / 学期标签
     不再被 antd 的单行省略号截掉（实测 .ant-card-head-title 189px 里塞了 530px 内容，
     「在读口径：未删除 · 未退学 · 未结业」右边界 476px、「2026年秋学期」573px → 全看不见）。 */
  .primary-dashboard-card .ant-card-head {
    height: auto !important;
  }
  .primary-dashboard-card .ant-card-head-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .primary-dashboard-card .ant-card-head-title > span {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
  }

  /* ⑩ 手机端「精简卡片列表」（components/MobileRecordList.jsx，只在页面 isMobile 分支渲染）：
        **一行 = 一条记录**（第五轮改：原来一张卡三四行，老师反馈「太占位置」）——
        标题（姓名 / 用户名）+ 2~3 个关键字段（页面用 cardKeys 指定）+「还有 N 项」+「›」，
        其余字段与全部操作按钮点这一行走底部「详情抽屉」。与电脑端表格刻意区分开（电脑端列一行不动）。
        类名前缀 mr- = mobile record。 */
  .mr-list {
    display: block;
  }
  .mr-list-footer {
    margin-top: 8px;
  }
  .mr-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    max-height: 40px; /* 一行一条：内容再高也在这一行里裁掉（全部信息点开抽屉看） */
    overflow: hidden;
    margin: 0 0 6px;
    padding: 7px 10px;
    border: 1px solid #ece7f8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(124, 92, 252, 0.05);
    cursor: pointer;
  }
  .mr-card:last-child {
    margin-bottom: 2px;
  }
  /* 已勾选：整行描边提示（批量删除 / 排课等按勾选执行的操作用得上） */
  .mr-card-selected {
    border-color: #7c5cfc;
    box-shadow: 0 2px 10px rgba(124, 92, 252, 0.18);
  }
  .mr-card-check {
    order: -1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  .mr-card-title {
    flex: 0 0 auto;
    max-width: 46%;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 18px;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 标题里可能是个「可点姓名」按钮（还带学生照片 / 出勤灯）：压成一行，别把行撑高 */
  .mr-card-title .ant-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: auto !important;
    padding: 0 !important;
    max-width: 100%;
    overflow: hidden;
  }
  .mr-card-title .ant-btn > span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 行上的学生照片 / 头像收成 20px（完整照片在详情抽屉里，行上只当「这是谁」的记号） */
  .mr-card-title .ant-avatar {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
  }
  .mr-card-title div[style*='border-radius: 50%'] {
    width: 20px !important;
    height: 20px !important;
  }
  .mr-card-fields {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .mr-field {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 18px;
  }
  /* ★ 2026-10-07：原来 10.5px + #9a9ab8（对比度实算 2.73:1，远低于 4.5:1）。
     这行是老师区分「学籍号 / 身份证 / 届别」的唯一依据 ⇒ 太小太淡会**读错数据**。
     主次改由字重 / 字距区分，不靠"淡到看不见"。 */
  .mr-field-label {
    flex: 0 0 auto;
    color: #6b6b85;
    font-size: 12px;
  }
  .mr-field-value {
    min-width: 0;
    color: #3d3d5c;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mr-card-hint {
    flex: 0 0 auto;
    color: #6b4ce0;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
  }
  .mr-card-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #b3b3cc;
    font-size: 12px;
    white-space: nowrap;
  }
  /* ⑩-补充（第七轮·样板 2026-09-19）：**两列「列名 : 值」小表**（layout="grid"，先只在学生管理用）——
     老师第二轮反馈：「一行一条记录」把 3 个关键字段压在同一行里 → 文字互相叠加、有值被省略号吃掉。
     做法（DOM 不动，只换排版）：标题仍占一行（勾选框 + 姓名 +「还有 N 项」+ ›），
     关键字段**每项占一行** —— 左边列名（max-content，同一张卡里各行自动对齐，看起来就是表格），
     右边值（minmax(0,1fr)）放开换行不再截断；列间距 12px，字段区与标题之间一条虚线分隔。
     其他页面（layout 默认 'inline'）仍是第五轮的「一行一条」，互不影响。 */
  .mr-card-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px 8px;
    min-height: 0;
    max-height: none; /* 覆写「一行一条」的 40px 上限：格子里就是行上全部关键字段 */
    overflow: visible;
    padding: 4px 8px 5px;
  }
  /* 标题行：勾选框 / 标题 /「还有 N 项」/ 箭头各归其位（DOM 顺序不变，靠 order 排在字段区之前） */
  .mr-card-grid > .mr-card-check {
    order: -1;
  }
  .mr-card-grid > .mr-card-title {
    order: 1;
    flex: 1 1 auto;
    max-width: none; /* 覆写 46%：标题该用满剩下的宽度 */
  }
  .mr-card-grid > .mr-card-hint {
    order: 2;
  }
  .mr-card-grid > .mr-card-more {
    order: 3;
  }
  /* 字段区：整块换到第二行（flex 100%），内部两列网格 */
  .mr-card-grid > .mr-card-fields {
    order: 4;
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: baseline;
    margin: 0;
    padding: 4px 0 0;
    border-top: 1px dashed #f2eefc;
    white-space: normal; /* 覆写「一行不换行」：值放不下就换行，不再被省略号吃掉 */
    overflow: visible;
  }
  /* 一个字段 = 两格（列名 | 值）：.mr-field 只当壳，自己不参与布局 */
  .mr-card-grid .mr-field {
    display: contents;
  }
  .mr-card-grid .mr-field-label {
    font-size: 12px;
    line-height: 17px;
    white-space: nowrap;
  }
  .mr-card-grid .mr-field-value {
    font-size: 12.5px;
    line-height: 17px;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }
  /* 值里的标签（出勤 / 教学点）压到与文字同高，别把这一行撑高 */
  .mr-card-grid .mr-field-value .ant-tag {
    margin: 0;
    padding: 0 6px;
    height: 19px;
    line-height: 18px;
    font-size: 12px;
  }
  /* ⑩-补充二（第八轮·2026-09-26）：**分行字段组**（titleSuffixKeys + fieldRows）——
     老师反馈「姓名后面直接跟届别、下面两行写教学点 / 吃饭+住宿，卡片里还有很多空位没利用起来」。
     做法：①届别这类「值跟在姓名后」→ .mr-card-sub（小一号字、次要色，不占额外行）
          ②其余关键字段**按行分组**，一行并排多个 → 原本每行右侧的大片留白消化掉，
            同样的卡片高度里多装好几个字段（学生卡：姓名+届别 / 教学点 / 就餐+住宿+出勤）。 */
  .mr-card-rows {
    order: 4;
    flex: 0 0 100%;
    /* 流式排列：字段「列名 + 值」作为一个整体依次铺排，一行放不下自动换行 ——
       值紧跟列名（不做两端对齐），腾出来的宽度用来多放字段，而不是拉大间距 */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;         /* 行间距 6px、字段之间 20px */
    margin: 0;
    padding: 9px 0 2px;
    border-top: 1px dashed #f2eefc;
    white-space: normal;
    overflow: visible;
  }
  /* 页面给的「行分组」只用于确定字段顺序，布局交给上面的流式容器 */
  .mr-card-row {
    display: contents;
  }
  .mr-card-rows .mr-field {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;              /* 列名与值紧贴，不做两端对齐 */
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .mr-card-rows .mr-field-label {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 19px;
    color: #6b6b85;
    white-space: nowrap;
  }
  .mr-card-rows .mr-field-value {
    min-width: 0;
    font-size: 13px;
    line-height: 19px;
    text-align: left;
    word-break: break-word;
  }
  .mr-card-rows .mr-field-value .ant-tag {
    margin: 0;
    padding: 0 6px;
    height: 19px;
    line-height: 18px;
    font-size: 12px;
  }
  /* 标题后缀（届别「高二（11）」等）：紧跟姓名，小一号字 + 次要色，不与姓名抢主次 */
  .mr-card-sub {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #8a879c;
    white-space: nowrap;
  }
  /* 分行排布的卡片整体给足内边距（字段等分后需要更多呼吸空间） */
  .mr-card-rows-mode {
    padding: 9px 11px 10px;
  }
  .mr-card-rows-mode > .mr-card-title {
    margin-bottom: 1px;
  }
  /* 详情抽屉：全部字段表 + 补充内容 + 操作区（原「操作」列整排按钮） */
  .mr-detail-extra {
    margin-top: 14px;
  }
  .mr-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #f2eefc;
  }
  /* 抽屉里的字段表：标签列固定窄一点，值列放开换行（手机上一行一对最清楚） */
  .mr-drawer .ant-descriptions-item-label {
    width: 6.2em;
  }
  .mr-drawer .ant-descriptions-item-content {
    word-break: break-word;
  }

  /* ⑪ 搜索 / 筛选 / 表单控件：手机上一律小一号，别让搜索区一进页就占满整屏 ——
        老师反馈「搜索框大小要调整，不要让每个页面的搜索区占据整个屏幕」。
        · 输入框 / 下拉 / 日期统一 13px 字，内边距收紧（高度仍交给 antd，触控不至于难点）；
        · 工具栏（页面自己挂 className="page-toolbar"）改成两列网格式排布，控件不再一行一个；
        · 「查看更多 / 收起」这类纯文字按钮不受影响。 */
  .ant-input,
  .ant-input-affix-wrapper,
  .ant-input-number,
  .ant-picker,
  .ant-select-single .ant-select-selector,
  .ant-select-multiple .ant-select-selector,
  .ant-input-affix-wrapper > input.ant-input {
    font-size: 13px !important;
  }
  .ant-input,
  .ant-input-affix-wrapper,
  .ant-input-number,
  .ant-picker,
  .ant-select-single .ant-select-selector {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }
  textarea.ant-input {
    padding: 6px 8px !important;
  }
  .ant-form-item-label > label {
    font-size: 13px !important;
  }
  /* 工具栏（筛选 / 搜索区）：两列网格 + 紧凑间距 */
  .page-toolbar {
    margin-bottom: 8px !important;
  }
  /* 看板容器（页面自己用 flex 排的统计卡）：手机上加 className="kpi-strip" → 一行多个、间距紧凑 */
  .kpi-strip {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }
  .page-toolbar .ant-space {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
    width: 100%;
  }
  .page-toolbar .ant-space-item {
    min-width: 0;
  }
  .page-toolbar .ant-input-affix-wrapper,
  .page-toolbar .ant-input,
  .page-toolbar .ant-input-number,
  .page-toolbar .ant-select,
  .page-toolbar .ant-picker {
    width: 100% !important;
  }
  /* 搜索框（带放大镜的输入框）与嵌套整行控件：独占一行，好点也好认 */
  .page-toolbar .ant-space-item:has(.ant-input-affix-wrapper),
  .page-toolbar .ant-space-item:has(.ant-space),
  .page-toolbar .ant-space-item:has(.ant-checkbox-wrapper) {
    grid-column: 1 / -1;
  }
  .page-toolbar .ant-row {
    row-gap: 6px !important;
  }
  .page-toolbar .ant-row > .ant-col {
    flex: 0 0 calc(50% - 3px) !important;
    max-width: calc(50% - 3px) !important;
  }
  /* 栅格里的搜索框：（放大镜输入框 / Input.Search / 裸 Input）独占一行，好点也好认 */
  .page-toolbar .ant-row > .ant-col:has(.ant-input-search),
  .page-toolbar .ant-row > .ant-col:has(.ant-input-affix-wrapper),
  .page-toolbar .ant-row > .ant-col:has(> .ant-input) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* ⑫ 个人信息弹窗（学生 / 教师 / 毕业生档案卡 + 报名详情抽屉）：
        老师反馈「弹出的个人信息卡片版面变形，表格图文的布置要优化」。三个根因 + 对策：
        · ① Descriptions 写死 column={2}：390px 屏每格只剩 ~170px，而标签是 nowrap
             → 身份证号 / 监护人地址被挤成一列竖排。组件已按 isMobile 传 column={1}（本段只兜底断词）；
        · ② 照片 / 证件图宽度写死（Row/Col span=6、flex 0 0 200px）或高度写死（height: 200）
             → 要么把右侧信息挤成一条，要么一张图占满首屏。本段把照片收到 130px、6 张证件图排三列；
        · ③ 弹窗里的宽表格（如请假记录 9 列）交给 ⑤ 段卡片化，这里只补断词，避免横向溢出。 */
  .person-photo-card .ant-card-cover img,
  .person-photo-card .ant-card-cover .ant-image,
  .person-photo-card .ant-card-cover .ant-image img,
  .person-photo-card .ant-card-cover > div {
    height: 130px !important;
  }
  .person-photo-card .ant-card-body {
    padding: 8px 10px !important;
  }
  .person-photo-card .ant-card-meta-title {
    font-size: 14px !important;
  }
  .person-photo-card .ant-card-actions {
    border-top: none !important;
  }
  /* 毕业生档案卡：原来是「照片 200px 固定 + 信息 flex:1」的左右两栏，手机上信息被挤成一条 */
  .person-card-layout {
    display: block !important;
  }
  .person-card-photo {
    flex: none !important;
    width: 132px !important;
    margin-bottom: 10px;
  }
  .person-card-info {
    width: 100% !important;
  }
  /* 教师档案的 6 张证件图：手机上三列小图（原来一张一行，往下翻半天） */
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  /* 弹窗里的字段值：允许词内断行（身份证号 / 长地址不撑破表格）；
     标签也放开换行 —— ⑦ 段的 nowrap 会让「住宿计费标准(元/天)」这类长标签把整列撑宽，
     值列只剩几十像素，就是老师看到的「表格变形」 */
  .ant-modal .ant-descriptions-item-content {
    word-break: break-word;
  }
  .ant-modal .ant-descriptions-item-label {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* ⑭ 页面主标题：手机上不再在正文里占一行 —— 老师反馈「主标题可以显示得小一点，不要浪费空间，
        放在最顶端清琪雅苑 LOGO 的右侧位置」（App.jsx 顶栏已经用 getMenuLabel(active) 显示当前页名）。
        做法：页面里的 <h2 data-page-title> 只在手机隐藏；桌面照旧（大标题 + 副标题在正文里）。
        ⚠️ 必须给页面标题打 data-page-title（各页面已加）—— 不能写 `.app-content h2`：
        有些页面的**分节小标题**也是 h2（如成绩分析的「① 新增成绩记录」），那样会被一起藏掉。 */
  .app-content h2[data-page-title] {
    display: none !important;
  }
  /* ⑭-补充 毕业生档案的搜索 / 操作栏：老师明确要「分两行显示，不要左右滑」
        （其它页面仍是第六轮的一行横滑：放不下左右滑一下）。 */
  .page-toolbar.graduate-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 6px !important;
    overflow: visible !important;
  }
  .page-toolbar.graduate-toolbar > * {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
  .page-toolbar.graduate-toolbar > :has(input.ant-input),
  .page-toolbar.graduate-toolbar > :has(.ant-input-affix-wrapper) {
    flex: 1 1 100% !important; /* 搜索框独占第一行，按钮在下面两行铺开 */
  }
  /* 按钮小一号 → 6 个按钮正好铺成 2 行（原来 3 行） */
  .page-toolbar.graduate-toolbar .ant-btn {
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .page-toolbar.graduate-toolbar .ant-space-item {
    flex: 0 0 auto !important;
  }

  /* ⑬ 手机端工具栏「不吃屏」（utils/mobileToolbars.js）——
        老师第三轮反馈：「每个页面中的搜索框都占据了几乎一整个屏幕，第一眼看不到主体下面的列表信息」。
        实测（scripts/probe-mobile-search-area.cjs）：学生管理列表第一行落在 1102px = 一屏的 131%，
        上面堆着 6 块 / 6750px 工具栏（筛选 6 行 + 另一排筛选 6 行 + 操作按钮 8 行）。
        JS 侧给命中的工具栏打 data-mt（结构性判定；页面自挂 className="page-toolbar" 的同样命中）：
        · data-mt="collapse"：筛选项（下拉 / 日期 / 数字框）被 JS 加了 .mt-hidden → 本段收起来；
          展开态（data-mt-expanded="1"）不加任何 display 覆写，回到 antd 原样；
        · data-mt="over"：按钮/控件多的工具栏 —— **一行 + 溢出收进「更多 N ▾」**（.mt-fit-hidden），
          先「收紧」再「收纳」，**永远不横滑**（index.css ⑯ 段，老师第四轮：不要横向滚动条）；
        · .mt-toggle 是「筛选 · N ▾」小胶囊（JS 插在行首，点一下展开 / 收起）；
        · .mt-fit-toggle 是「更多 N ▾」小胶囊（JS 插在行尾，点一下把收起来的按钮铺开成多行）。
        桌面（>768px）完全不受影响：本段在 @media 里，且 JS 回桌面宽度会撤掉类名与胶囊。 */
  /* ⚠️ 选择器必须带 `body.mobile-toolbar-mode .app-content` 前缀：
     ⑪ 段有 `.page-toolbar .ant-space { display: grid !important }`、`.page-toolbar .ant-row > .ant-col
     { flex: 0 0 50% !important }`（0,3,0）—— 两边都是 !important 时**比的是选择器权重**，
     只写 `[data-mt='collapse']`（0,1,0）会被 ⑪ 顶掉，折叠后的行还是两三行（高校数据库踩过）。
     ⚠️⚠️ 「接管排版」的规则一律要带 `:not([data-mt-expanded='1'])`：展开后必须把宽度**还回** ⑪ 段的
     两列网格，否则每个下拉只剩内容宽度（学生管理「教学点（可多选）」被压成 41px、placeholder 宽度 0 → 看不见）。 */
  body.mobile-toolbar-mode .app-content [data-mt='over']:not([data-mt-expanded='1']),
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible; /* ⑯ 段：折叠态**不横滑**（原来这里 overflow-x:auto，老师第四轮已取消） */
    padding-bottom: 2px;
  }
  /* 收起来的筛选条件：只在折叠态不显示（展开态自动恢复 antd 原样排版） */
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > .mt-hidden {
    display: none !important;
  }
  /* 折叠态一行里的每一项：按内容宽度排（把 ⑪ 段的 50% / 100% 栅格宽度让开），放不下 → 由 JS 收进「更多 ▾」 */
  body.mobile-toolbar-mode .app-content [data-mt='over']:not([data-mt-expanded='1']) > *,
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > * {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt='over'] > .ant-col,
  body.mobile-toolbar-mode .app-content [data-mt='over'] > .ant-space-item,
  body.mobile-toolbar-mode .app-content [data-mt='over'] > .ant-row,
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > .ant-col,
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > .ant-space-item,
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > .ant-row {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* 折叠态：搜索框那一项吃掉剩余宽度（行上最常用的就是它） */
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > :has(input.ant-input),
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > :has(.ant-input-affix-wrapper),
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) > :has(.ant-input-search) {
    flex: 1 1 130px !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt] input.ant-input,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-input-affix-wrapper,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-input-search {
    width: 100% !important;
  }
  /* 一行放得下：控件高 30px（触摸目标仍够 30px），按钮不换行不折字 */
  body.mobile-toolbar-mode .app-content [data-mt] .ant-input,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-input-affix-wrapper,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-input-number,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-picker,
  body.mobile-toolbar-mode .app-content [data-mt] .ant-select-single .ant-select-selector {
    /* ★ 2026-10-07：30 → 36。实测全站 146 处控件 <44px；工具栏是最高频操作区，
       先把它提到 36（视觉不臃肿上限），小图标类再由文末「无障碍基线」用透明外扩补到 40+。 */
    height: 36px !important;
    min-height: 36px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt] .ant-btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12.5px;
    white-space: nowrap;
  }
  body.mobile-toolbar-mode .app-content [data-mt] .ant-btn > .anticon + span {
    margin-inline-start: 4px;
  }
  /* 「筛选 · N ▾」小胶囊：行首、药丸形，当前有筛选时显示已选数量（点一下展开 / 收起） */
  body.mobile-toolbar-mode .app-content [data-mt='collapse'] > .mt-toggle {
    order: -1;
    flex: 0 0 auto !important;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d5ccf5;
    border-radius: 999px;
    background: #f6f3ff;
    color: #5b3fd0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 34px;
    white-space: nowrap;
    cursor: pointer;
  }
  body.mobile-toolbar-mode .app-content [data-mt='collapse'][data-mt-expanded='1'] > .mt-toggle {
    border-color: #7c5cfc;
    background: #7c5cfc;
    color: #fff;
  }

  /* ⑬-补充（第八轮 2026-09-17）：两个「显式退出横滑、自己分行」的工具栏（页面侧挂 data-mt-skip="1"）——
     ① 生活管理 → 报餐管理的日期行（老师：「后面的日期框显示不完整」）；
     ② 系统设置 → 数据回收站的筛选栏（老师：「筛选栏目里的文字在画面外面、需要滚动」）。
     实测：两者都被判成一行横滑（.meal-date-bar 505px > 322px；回收站 490px > 274px），
     右侧内容必须左右滑才看得到。这里让它们**分行铺开**（与 `.page-toolbar.graduate-toolbar` 同一口径），
     并把写死的宽度放开，让日期框 / 搜索框 / 下拉各自吃掉本行剩余宽度。
     ⚠️ 选择器仍带 `body.mobile-toolbar-mode .app-content` 前缀（0,4,0），与 ⑬ 段同一本「权重账」。 */
  body.mobile-toolbar-mode .app-content .meal-date-bar,
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 6px !important;
    overflow: visible !important;
  }
  body.mobile-toolbar-mode .app-content .meal-date-bar > .ant-space-item,
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar > .ant-space-item {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
  /* 日期导航组（◀ 日期框 ▶ 明天 今天）：整组当一个块，只占一行；日期框可收缩但不小于 120px
     （原来写死 140px 且整行横滑 → 日期框右边界 398px 越过 390 视口） */
  body.mobile-toolbar-mode .app-content .meal-date-bar .meal-date-nav {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
  body.mobile-toolbar-mode .app-content .meal-date-bar .meal-date-nav .ant-picker {
    flex: 0 1 140px !important;
    width: auto !important;
    min-width: 120px !important;
  }
  /* 回收站：搜索框（写死 320）与类型下拉（写死 260）比容器还宽 → 各自独占一行 */
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar > .ant-space-item:has(.ant-input-affix-wrapper),
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar > .ant-space-item:has(.ant-select) {
    flex: 1 1 100% !important;
  }
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar .ant-input-affix-wrapper,
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar .ant-input-search,
  body.mobile-toolbar-mode .app-content .page-toolbar.recycle-toolbar .ant-select {
    width: 100% !important;
  }

  /* ⭐ 第九轮（2026-09-19）⑭ 考试中心「成绩单 / 成绩列表」手机端 = **打印成绩单同一版式**（老师要求）——
     老师原话：「所有考试中心需要出现成绩单显示和成绩列表时，采用与打印的成绩单一样的表格形式，
     学生的成绩排名都是显示全的」。
     做法：弹窗里不再用 antd Table（手机上会被 ⑤ 段降级成卡片、宽表还要横滑），
     改用纯 HTML `<table class="sheet-table">`（components/ScoreSheetTable.jsx）：
       · `table-layout: fixed` + 百分比列宽（JS 按「这场考试有几列」算好）→ **任何屏幕宽度都不横滑**；
       · 列口径 / 表尾「各科均分 · 总分均分」行 / 跨教学点时的「教学点」列，与 lib/scoreSheetPrintHtml.mjs
         的打印纸逐格同源（同一份 sheetRows，同一次排名）；
       · 手机端 11px 字号 + 1~3px 内边距 → 390px 屏幕上 6~8 列也放得下（**不缩字段、不省略、不横滑**）。
     桌面端不用本组件（弹窗仍走 antd Table），本段在 @media 内 → 电脑端零影响。 */
  .sheet-table-wrap {
    width: 100%;
    overflow: visible;
  }
  .sheet-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 列宽只认 <colgroup> 的百分比 → 内容再长也只在格内换行 */
    background: #fff;
    font-size: 11px;
    line-height: 1.3;
    color: #1a1a2e;
  }
  .sheet-table th,
  .sheet-table td {
    border: 1px solid #e0daf2;
    padding: 3px 1px;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
  }
  .sheet-table thead th {
    background: #f0edff;
    color: #4a3f7a;
    font-weight: 600;
    white-space: nowrap;
  }
  .sheet-table td.sheet-seq {
    color: #7b7b96;
  }
  /* 姓名：左对齐 + 允许换行（三字以上姓名不挤成两行小字） */
  .sheet-table td.sheet-name {
    text-align: left;
    padding-left: 3px;
  }
  .sheet-table td.sheet-total {
    font-weight: 700;
    color: #7c5cfc;
  }
  .sheet-table tbody tr:nth-child(even) td {
    background: #fcfbff;
  }
  .sheet-table tfoot td {
    background: #f7f4ff;
    font-weight: 700;
    color: #4a3f7a;
  }
  /* 成绩录入格：InputNumber 去掉上下箭头、占满格子，手指点得到 */
  .sheet-table .ant-input-number {
    width: 100% !important;
    border-color: #ddd6f5 !important;
  }
  .sheet-table .ant-input-number-input {
    height: 26px !important;
    padding: 0 2px !important;
    font-size: 12px !important;
    text-align: center;
  }
  .sheet-table .ant-input-number-input::placeholder {
    font-size: 10px;
    color: #b9b3d0;
  }
  /* 「批量导入」标记：手机端不再占一整行（桌面用 antd Tag，这里是小胶囊） */
  .sheet-table .sheet-imported {
    display: inline-block;
    margin-left: 3px;
    padding: 0 3px;
    border-radius: 3px;
    background: #f0edff;
    color: #7c5cfc;
    font-size: 9px;
    line-height: 14px;
    vertical-align: middle;
  }
  /* 「删」：成绩单里删单条成绩（原来是 antd 的 link 按钮，格子里放不下 → 一个汉字） */
  .sheet-table .sheet-del {
    padding: 0 2px;
    border: none;
    background: none;
    color: #ff4d4f;
    font-size: 11px;
    line-height: 16px;
    cursor: pointer;
  }
  /* 成绩单弹窗抬头（考试名 / 教学点 / 参考人数 / 总分均分）在 390px 上排两行也看全 */
  .sheet-head-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11.5px;
    color: #666;
  }

  /* ⭐ 第九轮（2026-09-19）⑮ 考试名称必须**看全**（老师：「历史成绩档案里面考试名称显示不完整」）——
     原来手机端标题格被 ⑤-4 段的 `max-width: 34%~60%` 卡住 + Tag 单行不换行 →
     长名（如「2027届2026-09月考横山桥高中+和裕高中联考」）被切在「…」里。
     口径：考试名称就是这条记录的**标题**，宁可占两行也要给全（App.jsx 的考试名称 Tag 挂 .exam-name-tag）。 */
  body.mobile-card-mode .ant-table-tbody > tr > td[data-mobile-title='1']:has(.exam-name-tag) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .exam-name-tag {
    display: inline-block;
    max-width: 100%;
    height: auto !important;
    padding: 1px 6px !important;
    font-size: 12.5px;
    line-height: 17px;
    white-space: normal !important; /* Tag 默认 nowrap → 长考试名必须允许换行 */
    overflow-wrap: anywhere;
  }

  /* ⭐ 第九轮（2026-09-19）⑯ 手机端工具栏「一行放不下的按钮进『更多 ▾』」——
     老师第四轮反馈：「所有页面不能有横向滚动条」。原来的 swipe 模式（一行 + overflow-x:auto）
     实测留下 8 处「可左右拖动的元素」（scripts/probe-mobile-hscroll.cjs：学生管理 1683px、
     报名管理 805px、考试中心检索栏 596px…）。改为「一行 + 溢出收进胶囊」：
       · 折叠态：display:flex / nowrap / **overflow:visible**，放不下的项被 JS 加 .mt-fit-hidden；
         行尾一枚「更多 N ▾」胶囊（点一下 = 展开成多行、全部可见，再点收起）；
       · 展开态（data-mt-expanded="1"）：flex-wrap:wrap，什么都不藏（老师主动点的，多行没关系）；
       · 先「收紧」再「藏」：只差十几 px 的行（教师管理 346 > 344）只收紧内边距 → **一个按钮都不用藏**。 */
  body.mobile-toolbar-mode .app-content [data-mt='over']:not([data-mt-expanded='1']) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }
  /* ⑬ 段给折叠态写的是 overflow-x:auto（那是横滑时代的产物）→ 折叠态一律不横滑（覆盖见下条） */
  body.mobile-toolbar-mode .app-content [data-mt='collapse']:not([data-mt-expanded='1']) {
    overflow: visible !important;
  }
  /* 展开态：多行铺开（老师点过「更多 / 筛选」，多行是预期） */
  body.mobile-toolbar-mode .app-content [data-mt='over'][data-mt-expanded='1'],
  body.mobile-toolbar-mode .app-content [data-mt='collapse'][data-mt-expanded='1'] {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }
  /* 溢出仓：折叠态被「更多」收起来的项（展开态不加任何 display 覆写 → 回到 antd 原样） */
  body.mobile-toolbar-mode .app-content [data-mt]:not([data-mt-expanded='1']) > .mt-fit-hidden {
    display: none !important;
  }
  /* 第一档「收紧」：只差一点点就把间隙 / 内边距 / 字挤一挤（比藏按钮更友好） */
  body.mobile-toolbar-mode .app-content [data-mt][data-mt-tight='1'] {
    gap: 4px !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt][data-mt-tight='1'] > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt][data-mt-tight='1'] .ant-btn {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
  body.mobile-toolbar-mode .app-content [data-mt][data-mt-tight='1'] .ant-btn > .anticon + span {
    margin-inline-start: 3px !important;
  }
  /* 「更多 N ▾」胶囊：行尾、药丸形（与「筛选 ▾」同一套长相） */
  body.mobile-toolbar-mode .app-content [data-mt] > .mt-fit-toggle {
    flex: 0 0 auto !important;
    order: 999;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d5ccf5;
    border-radius: 999px;
    background: #f6f3ff;
    color: #5b3fd0;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 34px;
    white-space: nowrap;
    cursor: pointer;
  }
  body.mobile-toolbar-mode .app-content [data-mt][data-mt-expanded='1'] > .mt-fit-toggle {
    border-color: #7c5cfc;
    background: #7c5cfc;
    color: #fff;
  }
  /* 没有东西被收起来时，胶囊不占地方（JS 直接移除 DOM） */

  /* ⭐ 第九轮（2026-09-19）⑰ 小学 / 初中「全部排课情况」看板手机端不再横滑 ——
     7 列（序号 / 学校 / 课程 / 学生人数 / 上课时间 / 任教老师 / 上课教室）在 390px 上最少要 611px
     （scripts/probe-mobile-hscroll.cjs 第 3 页实测 cw=298 / sw=611）→ 手机端换成
     「一条排课 = 一张小卡」：标题（学校 · 课程）+ 两列小表（人数 / 上课时间 / 教师 / 教室）。
     数据仍来自同一份 buildTables（口径不变），桌面端仍是原来那张表。 */
  .primary-schedule-board .psb-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .primary-schedule-board .psb-card {
    border: 1px solid #ece7fb;
    border-radius: 8px;
    background: #fcfbff;
    padding: 8px;
  }
  .primary-schedule-board .psb-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12.5px;
  }
  .primary-schedule-board .psb-seq {
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #7c5cfc;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
  }
  .primary-schedule-board .psb-school {
    font-weight: 600;
    color: #1a1a2e;
    overflow-wrap: anywhere;
  }
  .primary-schedule-board .psb-course {
    color: #4a3f7a;
    overflow-wrap: anywhere;
  }
  .primary-schedule-board .psb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 8px;
    font-size: 11.5px;
  }
  .primary-schedule-board .psb-field {
    display: flex;
    gap: 4px;
    min-width: 0;
  }
  .primary-schedule-board .psb-field > span {
    flex: 0 0 auto;
    color: #9a9ab8;
  }
  .primary-schedule-board .psb-field > b {
    font-weight: 500;
    color: #1a1a2e;
    overflow-wrap: anywhere;
  }
  .primary-schedule-board .psb-field.psb-wide {
    grid-column: 1 / -1;
  }

  /* ⑱ 页签栏（第十轮 2026-09-20）：老师反馈「校区物资管理和财务管理的标签按钮还是需要左右移动，
     一个窗口显示不全，可以在手机端改变显示方式，不用标签形式用按钮或者有没有更好的方案」。
     根因：antd 默认页签栏在窄屏只做「切掉 / 收进『更多 ⋯』」，两种都得左右移或再点一次。
     分两条路（全站都是顶部页签，没有 tabPosition="left"）：
       ① 财务 / 校区物资管理 → components/MobileTabBar.jsx（本段下半部分 .mobile-tab-bar）：
          ≤4 个页签 = 多行胶囊按钮铺开；>4 个 = 一个「当前页签 n/N ▾」按钮 + 完整清单；
       ② 其余页面（含弹窗 / 抽屉里的子页签，如财务「报表中心」的三个子页签）：一行放不下就
          **换行铺开**成胶囊按钮 —— 不切掉、不藏进「更多」、不需要左右移。 */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap {
    overflow: visible !important;
  }
  /* transform: none = 掐掉 antd 的左右位移（换行后本来也用不到）；gap 顶替 antd 的 margin-left */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-list {
    flex-wrap: wrap !important;
    gap: 6px !important;
    transform: none !important;
  }
  /* 页签按内容宽度排（压小就把字挤成省略号了） */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-tab {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #f2f2f7 !important;
    border: 1px solid transparent !important;
    line-height: 20px !important;
  }
  /* 选中的页签填色（老师说的「用按钮」：一眼看出当前在哪一页） */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active {
    background: rgba(93, 68, 209, 0.12) !important;
    border-color: rgba(93, 68, 209, 0.35) !important;
  }
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: #5d44d1 !important;
    font-weight: 600 !important;
  }
  /* 换行铺开后下划线（ink-bar）会停在第一行、和第二行的选中页签对不上 → 手机端不用下划线，靠胶囊底色 */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-ink-bar {
    display: none !important;
  }
  /* 换行之后 antd 的「更多 ⋯」不需要了，留着反而占宽度 */
  .ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-operations {
    display: none !important;
  }

  /* ⑱-补充：MobileTabBar（财务管理 12 个页签 / 校区物资管理 7 个页签）—— 一屏一行，点开是完整清单 */
  .mobile-tab-bar {
    margin-bottom: 10px;
  }
  .mobile-tab-bar .mtb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mobile-tab-bar .mtb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 20px;
    color: #1a1a2e;
    text-align: left;
    background: #f2f2f7;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow-wrap: anywhere;
  }
  .mobile-tab-bar .mtb-pill.mtb-active {
    color: #5d44d1;
    font-weight: 600;
    background: rgba(93, 68, 209, 0.12);
    border-color: rgba(93, 68, 209, 0.35);
  }
  .mobile-tab-bar .mtb-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 22px;
    color: #1a1a2e;
    text-align: left;
    background: rgba(93, 68, 209, 0.08);
    border: 1px solid rgba(93, 68, 209, 0.35);
    border-radius: 8px;
  }
  .mobile-tab-bar .mtb-cur {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .mobile-tab-bar .mtb-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: #7a7a90;
    white-space: nowrap;
  }




}

/* ==========================================================================
   个人信息弹窗的「证件图网格」（components/TeacherDetailModal.jsx）
   · 电脑：一行 6 张（原来用 <Row/><Col span={4}>，等价，且不再受栅格 onMobile 100% 规则影响）；
   · 手机：三列小图，规则在上面 @media (max-width: 768px) 的 ⑫ 段（带 !important，覆盖本段）。
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

/* ==========================================================================
   ⑰ 考勤点名 · 筛选条「先①学段 → 再②教学点」（modules/Attendance/AttendanceContent.jsx）
   · 结构：.att-filter > .att-step（.att-step-label + 控件）
   · **手机端不做折叠收起**：.att-filter 挂 data-mt-skip="1" 显式退出
     utils/mobileToolbars 的自动折叠（否则「日期 + 3 个下拉」满足 ≥2 个下拉的判定，
     会被收成「筛选 · N ▾」胶囊，老师就看不到「先选学段、再选教学点」这两步了）——
     这里再把它竖向分步铺开。
     （.att-step 不必挂：它一行只有 1 个控件，够不到 handleToolbar 的 ctl≥2 门槛。）
   · 电脑端（>768px）零影响：仍是横向一行。
   ========================================================================== */
.att-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}
.att-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.att-step-label {
  color: #6b6a63;
  font-size: 13px;
  white-space: nowrap;
}
.att-step-label b {
  color: #006838;
  font-weight: 700;
  margin-right: 2px;
}
/* 「未分教学点」提示：不抢眼，但要看得见 */
.att-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #FAEEDA;
  color: #8a4b00;
  font-size: 12.5px;
  line-height: 1.6;
}
.att-hint b {
  color: #B25E00;
}

/* 弹窗里的分步（①学段 ②教学点 ③类型 ④时段/性别） */
.att-mstep {
  margin-bottom: 16px;
}
.att-mlabel {
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a4944;
}
.att-mlabel b {
  color: #006838;
  font-weight: 700;
  margin-right: 2px;
}

@media (max-width: 768px) {
  /* 手机端：竖向分步 —— 每一步独占一行，顺序自上而下看得清 */
  .att-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .att-step {
    width: 100%;
  }
  .att-step-label {
    flex: 0 0 auto;
    min-width: 66px;
  }
  /* 控件吃掉剩余宽度：指头好点，也不留半截空白 */
  .att-step > .ant-picker,
  .att-step > .ant-select,
  .att-step > .ant-segmented {
    flex: 1 1 auto;
    min-width: 0;
  }
  .att-step > .ant-picker,
  .att-step > .ant-select {
    width: auto;
  }
  /* 学段两个选项平分整行（原来 Segmented 只占内容宽度，手机上偏窄不好点） */
  .att-step > .ant-segmented {
    width: 100%;
  }
  .att-step > .ant-segmented .ant-segmented-item {
    flex: 1 1 0;
    text-align: center;
  }
  /* 已选考勤类型的标签另起一行，别把「② 教学点」那行挤变形 */
  .att-filter > .ant-tag {
    align-self: flex-start;
    margin-left: 66px !important;
  }
  .att-hint {
    font-size: 12px;
  }
}

/* ==========================================================================
   ⑳ 考勤点名 · 「点名记录」查阅（2026-09-28）
   modules/Attendance/AttendanceRecords.jsx（抽屉内容）+ AttendanceContent.jsx（顶部入口）
   · 顶部 .att-topbar：页面名 + 「点名记录」按钮
   · 抽屉内 .att-rec：筛选条（**手机端不折叠**，data-mt-skip）+ 汇总 + 列表
   · .att-roster：某一场点名的学生名单（按状态分组，缺勤/迟到/请假在前）
   ========================================================================== */

/* 顶部工具条：页面名靠左、「点名记录」靠右 */
.att-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
}
.att-topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: #2f2e2a;
}

/* 抽屉标题：主标题 + 一行灰色小字说明（手机上也读得清） */
.att-rec-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.att-rec-title-sub {
  font-size: 12px;
  font-weight: 400;
  color: #8a887f;
}

/* 筛选条：一行一组「标签 + 控件」，控件多了自动换行（不做折叠收起） */
.att-rec-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.att-rec-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.att-rec-label {
  flex: 0 0 auto;
  min-width: 42px;
  font-size: 13px;
  color: #6b6a63;
}

/* 汇总条：共 N 场 · 应到 M 人次 · 缺勤 K 人次 */
.att-rec-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e4e1d8;
  font-size: 13px;
  color: #4a4944;
}
.att-rec-summary-tip {
  margin-left: auto;
  font-size: 12px;
  color: #9a978d;
}

/* 某一场点名的学生名单分组 */
.att-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0;
}
.att-roster-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: #8a887f;
}
.att-roster-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.att-roster-tag {
  flex: 0 0 auto;
  min-width: 62px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.att-roster-names {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 22px;
  color: #2f2e2a;
  word-break: break-word;
}
.att-roster-name {
  margin-right: 10px;
  white-space: nowrap;
}
.att-roster-remark {
  color: #8a887f;
  font-style: normal;
  font-size: 12px;
}
.att-roster-foot {
  font-size: 12px;
  color: #8a887f;
}
/* 名单里「删掉这一条」：小图标按钮，默认半透明不抢名字的视线（2026-10-17）
   ⚠️ 图标按用户 2026-10-05 立的规矩取「≈ 字号」：这里名字 13px ⇒ 图标 12px（纯图标按钮尤其显大）。 */
.att-roster-del {
  padding: 0 2px;
  margin-left: 2px;
  height: 20px;
  vertical-align: -2px;
  opacity: 0.5;
}
.att-roster-del:hover { opacity: 1; }
.att-roster-del .anticon { font-size: 12px; }

/* ==========================================================================
   考勤 · 改这一场点名的设置（弹窗内排版，2026-10-17）
   ========================================================================== */
.att-edit-note {
  background: #f4f8f5;
  border-left: 3px solid #006838;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #4a4a45;
}
.att-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.att-edit-label {
  flex: 0 0 64px;
  font-size: 13px;
  color: #6b6a63;
}
@media (max-width: 768px) {
  .att-edit-row { flex-wrap: wrap; }
  .att-edit-label { flex: 0 0 100%; }
}

@media (max-width: 768px) {
  /* 手机端：筛选条竖排、控件吃满整行（指头好点）；汇总提示另起一行 */
  .att-rec-line {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .att-rec-label {
    min-width: 0;
  }
  .att-rec-line > .ant-segmented,
  .att-rec-line > .ant-picker,
  .att-rec-line > .ant-select,
  .att-rec-line > .ant-input-affix-wrapper {
    width: 100% !important;
    min-width: 0;
  }
  .att-rec-line > .ant-segmented .ant-segmented-item {
    flex: 1 1 0;
    text-align: center;
  }
  .att-rec-line > .ant-btn {
    width: 100%;
  }
  .att-rec-summary-tip {
    margin-left: 0;
  }
  /* 名单：标签独占一行宽度自适应，名字不再被挤成竖排 */
  .att-roster-row {
    flex-direction: column;
    gap: 4px;
  }
  .att-roster-tag {
    min-width: 0;
    align-self: flex-start;
  }
  .att-roster-name {
    white-space: normal;
  }
}

/* ==========================================================================
   首页概览 · 分组（2026-09-29 重排）
   --------------------------------------------------------------------------
   背景（老师原话）：「重新布置一下我的首页概览…东一块西一块做的很凌乱。同样类目的可以放在一起做。
   要有条理，有秩序。显示的方式也要合理。」
   诊断：凌乱的主因不是间距，而是**同类信息被拆到两三个地方**（生日/合同/请假、餐食、教学点、住宿、
   考试都各出现两次），加上面积与重要度倒挂、卡片套卡片、各块没有归类交代。
   做法：11 个散块 → **5 个分组**（① 今日待办 ② 学生与师资 ③ 后勤保障 ④ 教学与成绩 ⑤ 小学/初中专区），
   每组一个标题条；**组与组间距（18px）> 组内间距（12px）**，层次自然出来。
   桌面与手机共用，所以放在文件末尾（不在任何 @media 里）。
   ⚠️ 改这里的间距前先看 scripts/verify-home-layout.cjs —— 有闸门钉着分组顺序与间距关系。
   ========================================================================== */
.home-group {
  margin-bottom: 18px;
}
.home-group:last-of-type {
  margin-bottom: 6px;
}
.home-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 2px 8px;
}
/* 左侧品牌色竖条（松烟绿 → 黛紫）：只做色块、不做文字色 —— 绿底紫字是本项目一级事故红线 */
.home-group-bar {
  flex: 0 0 auto;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #006838 0%, #5A49B8 100%);
}
.home-group-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #1e293b;
}
.home-group-desc {
  font-size: 12px;
  color: #9a988f;
}
/* 组内小标题（如「近期生日」「今日三餐分布」），比卡片标题轻一档 */
.home-mini-title {
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #5f5e5a;
}
/* 手机：分组上下留白收一点（屏幕上本来就要滚）；标题条字号不动 —— 它是"这是哪一类"的锚点 */
@media (max-width: 768px) {
  .home-group {
    margin-bottom: 14px;
  }
  .home-group-desc {
    flex: 0 0 100%;
    font-size: 11.5px;
  }
}

/* --------------------------------------------------------------------------
   教学点分布 · 按学段左右分区（左高中 / 右小学初中，2026-09-29）
   --------------------------------------------------------------------------
   老师原话：「教学点分布，左边放高中，右边放小学初中。」
   桌面：两块左右并排，中间一条 1px 竖线分隔（靠分隔线立边界，不靠两张卡 —— 一张卡里分区，
        结构上仍是"一个教学点分布"这件事）。
   手机：改为上下叠（竖线换成横线）—— 390px 宽里左右并排，两张表都剩不到 170px，读不了。
   分块配色的学段色（高中绿 / 小学初中紫）由 JS 内联给出（见 HomePage 的 STAGE_BLOCKS）。
   ⚠️ 有闸门钉着"两块各自的合计 == 该学段在读人数"（scripts/verify-home-layout.cjs）。
   -------------------------------------------------------------------------- */
.home-stage-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.home-stage-block {
  flex: 1 1 0;
  min-width: 0;
}
/* 桌面：第二块（小学 / 初中）用一条竖线分开 */
.home-stage-block + .home-stage-block {
  border-left: 1px solid #ecebe4;
  padding-left: 16px;
}
.home-stage-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.home-stage-dot {
  flex: 0 0 auto;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.home-stage-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.home-stage-total {
  margin-left: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}
.home-stage-unit {
  font-size: 11px;
  color: #9a988f;
}
.home-stage-sub {
  margin-left: auto;
  font-size: 11.5px;
  color: #9a988f;
}
.home-stage-warn {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: #d46b08;
}
@media (max-width: 768px) {
  .home-stage-block + .home-stage-block {
    border-left: none;
    padding-left: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ecebe4;
  }
}

/* --------------------------------------------------------------------------
   首页 · 「① 今日待办」里的近期生日 / 快到期的合同（2026-09-29）
   --------------------------------------------------------------------------
   老师原话：「生日和合同两个模块占据了整整一行，显示的内容不需要这么多位置。」
   原来每人一整行（头像 + 标签 + 日期 + 剩余天数），5 个人竖排 5 行 —— 两块各占半行却高得离谱。
   现在改**横向胶囊**：一人一个 chip、自动换行，5 个人通常一两行排完（高度降约 2/3）。
   紧迫度用颜色表达：生日 ≤3 天红底、合同 ≤7 天红 / ≤15 天橙 / 其余中性；文字一律深色（不用品牌浅色做文字）。
   -------------------------------------------------------------------------- */
.home-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 4px;
}
.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border: 1px solid #e6e5dd;
  border-radius: 14px;
  background: #fafaf7;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.home-chip-avatar {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-chip-name {
  font-weight: 600;
  color: #1e293b;
}
.home-chip-meta {
  color: #9a988f;
}
.home-chip-badge {
  font-weight: 600;
}
.home-chip-empty {
  padding: 3px 0;
  font-size: 12px;
  color: #9a988f;
}

/* --------------------------------------------------------------------------
   首页 · 「学生 / 教师」标记 + 榜单前三名皇冠（2026-09-29）
   --------------------------------------------------------------------------
   老师原话：「教师生日和学生生日合并在一个模块，标记一下学生和老师即可」
             「明星进步榜的前三名，三个皇冠带在头像圈圈上，前五名同样前三名头像戴个皇冠（分等级）」
   · 生日是学生/教师混排的，光靠头像颜色分不清 → 加「学生 / 教师」文字标记（蓝 / 绿，与头像同色系）。
   · 皇冠戴在头像右上角（金 / 银 / 铜），头像描边同色 —— 进步榜与前五名共用同一套。
   -------------------------------------------------------------------------- */
.home-chip-tag {
  font-size: 11px;
  font-weight: 600;
}
/* 可点的合同胶囊（未上传合同 → 点一下直接新建上传） */
.home-chip-action:hover {
  border-color: #F0C36D !important;
  background: #FDF4E3 !important;
}
/* 头像 + 右上角皇冠：外层 relative，皇冠绝对定位（榜单行没有 overflow:hidden，不会被裁） */
.home-rank-photo {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
}
.home-crown {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1.5px solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   ㉑ 点名考勤 · 手机端「操作按钮常显」（2026-09-29）
   --------------------------------------------------------------------------
   老师原话：「点名考勤那个页面。切换考勤和一键全新那个地方不需要做折叠。好多老师找不到。」
   真因：手机端 utils/mobileToolbars.js 会把「换到 ≥2 行的工具栏」折叠成胶囊
   （筛选型收成「筛选 ▾」；按钮型把溢出的收进「更多 N ▾」）。点名页有两处被判成了工具栏：
     ① 考勤信息条（类别/教学点/「切换考勤」 + 「一键全勤」「保存点名」）
     ② 每个学生的「出勤/迟到/请假/缺勤」四个按钮
   处理：这些容器在页面侧挂 data-mt-skip="1" 显式退出折叠（见 AttendanceContent.jsx），
   这里再把它们**铺开换行**；学生的四个状态按钮做成「一行等分」——手指好点，也不会横滑。
   ⚠️ 选择器带 `body.mobile-toolbar-mode .app-content` 前缀（与 ⑬ 段同一本「权重账」）。
   ⚠️ 有闸门/探针钉着「本页不得出现折叠胶囊」（scripts/probe-attendance-toolbar.cjs）。
   ========================================================================== */
@media (max-width: 768px) {
  body.mobile-toolbar-mode .app-content .att-info-bar,
  body.mobile-toolbar-mode .app-content .att-info-bar .ant-space,
  body.mobile-toolbar-mode .app-content .att-stu-row .att-stu-marks {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    overflow: visible !important;
  }
  body.mobile-toolbar-mode .app-content .att-info-bar > .ant-space-item,
  body.mobile-toolbar-mode .app-content .att-info-bar .ant-space > .ant-space-item {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
  /* 「一键全勤 / 保存点名」单独占一行、靠右 —— 与上面的考勤信息分开，手指好点 */
  body.mobile-toolbar-mode .app-content .att-info-bar .att-info-actions {
    flex: 1 1 100% !important;
    justify-content: flex-end;
  }
  /* 每个学生：姓名一行、四个状态按钮一行等分铺满 */
  body.mobile-toolbar-mode .app-content .att-stu-row .att-stu-name {
    flex: 1 1 100% !important;
  }
  body.mobile-toolbar-mode .app-content .att-stu-row .att-stu-marks {
    flex: 1 1 100% !important;
    margin-left: 0 !important;
  }
  body.mobile-toolbar-mode .app-content .att-stu-row .att-stu-marks > .ant-space-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  body.mobile-toolbar-mode .app-content .att-stu-row .att-stu-marks .ant-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
  }
}

/* --------------------------------------------------------------------------
   首页 · 「今日请假 / 今日住宿」点开后的**个人详情**（2026-10-04 P7）
   --------------------------------------------------------------------------
   老师原话：「请假人数的地方要能点，点进去看每个人的住宿和就餐情况，还有请假的细节。」
   抽屉里一行一人（关键列），点任意一行就地展开这个人（请假 / 住宿两个名单共用同一套块）：
   📋 请假细节 / 🏠 住宿 / 🍚 就餐 / 👤 联系与在学 —— 桌面 2 列、手机 1 列。
   文字一律深色（不放品牌浅色做文字：绿底紫字是本项目的一级事故红线）。
   -------------------------------------------------------------------------- */
.tdd-person-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 4px 2px 8px;
}
.tdd-detail-block {
  background: #fbfbf9;
  border: 1px solid #ecebe4;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.tdd-detail-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}
.tdd-info-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.9;
}
.tdd-info-label {
  flex: 0 0 72px;
  color: #9a988f;
}
.tdd-info-value {
  flex: 1;
  min-width: 0;
  color: #33322c;
  word-break: break-all;
}
.tdd-detail-note {
  font-size: 12px;
  line-height: 1.8;
  color: #8a6d3b;
  background: #fdf8ef;
  border: 1px solid #f2deb6;
  border-radius: 8px;
  padding: 6px 8px;
}
@media (max-width: 768px) {
  .tdd-person-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .tdd-info-label {
    flex: 0 0 64px;
  }
}

/* 详情里的 Tag 必须能换行：antd 的 Tag 默认 white-space:nowrap + 固定行高，
   长时间段（如「⏸ 不计入就餐（请假暂停（2026-10-04 ~ 2026-10-05））」）会把手机端抽屉撑破
   —— 2026-10-04 探针实测溢出 49px（真机上就是「右边被切掉一截」）。 */
.tdd-person-detail .ant-tag {
  white-space: normal;
  height: auto;
  line-height: 1.6;
  padding: 1px 6px;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   软件版权页脚（BrandFooter · 2026-10-04 第十八轮）
   版权 + 备案号 + 软件名·版本，一行居中；浅底灰字、深底浅灰字。
   放在后台主内容区末尾 → 每个页面都能看到；登录页 / 家长端各一份。
   -------------------------------------------------------------------------- */
.brand-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.brand-footer--dark { border-top-color: rgba(255, 255, 255, 0.12); }
.brand-footer .brand-footer-sep { opacity: .45; }
.brand-footer .brand-footer-icp { font-size: 12px; line-height: 20px; }
.brand-footer .brand-footer-soft { opacity: .8; }
@media (max-width: 768px) {
  .brand-footer { font-size: 11px; gap: 4px; margin-top: 14px; padding-top: 8px; }
  .brand-footer .brand-footer-icp { font-size: 11px; }
}

/* ==========================================================================
   ㉒ 「报名管理 → 学生建档」工具栏 · 手机端「按钮常显」（2026-10-05 · P24-2）
   --------------------------------------------------------------------------
   这一排是建档页的全部入口：批量设预计报到时间 / 报到流转 / 退回（取消重复建档）/
   新增建档 / 批量导入建档。手机端 mobileToolbars 会把「≥2 行的按钮工具栏」折成
   「更多 N ▾」⇒ 老师直接找不到（点名页踩过同一个坑）。
   处理：页面侧给容器挂 data-mt-skip="1"（内外层都挂），这里再把它**铺开换行**。
   ========================================================================== */
@media (max-width: 768px) {
  body.mobile-toolbar-mode .app-content .enroll-toolbar-card,
  body.mobile-toolbar-mode .app-content .enroll-toolbar,
  body.mobile-toolbar-mode .app-content .enroll-toolbar .ant-space {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    overflow: visible !important;
  }
  body.mobile-toolbar-mode .app-content .enroll-toolbar > .ant-space-item {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   ㉓ 「住宿管理」数据统计模块 + 床位图标（2026-10-06 · P28）
   --------------------------------------------------------------------------
   老师口径：房间 总/已使用（含教师入住·值班）/可用（各房型剩几间）/停用；
   床位 总/已住/剩余。要「图表 + 数字」，而且**不增高**（原来 8 个 Statistic 占两行）。
   做法：一张紧凑卡 —— 数字块 + 一条堆叠条（房间）+ 一行各房型胶囊 + 一条床位使用率进度条。
   ========================================================================== */
.dorm-stats { display: flex; flex-direction: column; gap: 8px; }
.dorm-stats-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.dorm-stat-tile { min-width: 96px; line-height: 1.2; }
.dorm-stat-num { font-size: 22px; font-weight: 700; }
.dorm-stat-num .dorm-stat-unit { font-size: 12px; font-weight: 400; margin-left: 2px; color: #999; }
.dorm-stat-label { font-size: 12px; color: #8c8c8c; margin-top: 2px; }
.dorm-stats-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #f0f0f0; }
.dorm-stats-bar i { display: block; height: 100%; }
.dorm-stats-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #595959; }
.dorm-stats-types-label { color: #8c8c8c; }
.dorm-type-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 8px; border-radius: 10px; background: #f6f8fa; border: 1px solid #eef0f3;
}
.dorm-type-chip b { font-size: 13px; }
.dorm-stats-beds { align-items: flex-end; }
.dorm-bed-bar { flex: 1 1 200px; min-width: 160px; }
.dorm-bed-bar-label { font-size: 12px; color: #8c8c8c; }
.dorm-bed-bar-track { height: 8px; border-radius: 4px; background: #f0f0f0; overflow: hidden; margin-top: 3px; }
.dorm-bed-bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #69c0ff, #cf1322); }
@media (max-width: 768px) {
  .dorm-stat-num { font-size: 18px; }
  .dorm-stat-tile { min-width: 74px; }
  .dorm-stats-tiles { gap: 8px 16px; }
}

/* ==========================================================================
   学生管理 · 列头筛选 / 筛选条件条 / 餐别分布（2026-10-06 · P30）
   配色跟随系统主题色（当前「典雅紫」#7c5cfc；若在设置里换主题色，这里要同步）
   ========================================================================== */

/* --- 列头：列名 + 漏斗 --- */
.cf-head{display:inline-flex;align-items:center;gap:5px;max-width:100%;line-height:1.4}
.cf-head .cf-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-funnel{position:relative;display:inline-flex;align-items:center;cursor:pointer;flex:0 0 auto;
           padding:1px 3px;border-radius:4px;color:rgba(0,0,0,.25);font-size:12px;transition:color .15s,background .15s}
.cf-funnel:hover{background:#f0f0f0;color:#7c5cfc}
.cf-funnel.on{color:#7c5cfc;background:#f3efff}
.cf-funnel.disabled{cursor:not-allowed;opacity:.35}
.cf-funnel .cf-n{font-size:10px;font-weight:700;line-height:1;margin-left:1px}
.cf-funnel .cf-icon{display:inline-flex;align-items:center;gap:1px}

/* --- 筛选面板 --- */
.cf-panel{min-width:236px;max-width:296px}
.cf-bar{display:flex;align-items:center;gap:12px;margin:8px 0 4px;padding-bottom:6px;border-bottom:1px solid #f0f0f0}
.cf-link{cursor:pointer;color:#7c5cfc;font-size:12px}
.cf-link:hover{text-decoration:underline}
.cf-link.danger{color:#ff4d4f}
.cf-sp{flex:1}
.cf-tip{color:rgba(0,0,0,.35);font-size:11px}
.cf-opts{max-height:212px;overflow-y:auto;margin:0 -6px;padding:0 6px}
.cf-opt{display:flex;align-items:center;gap:8px;padding:3px 4px;border-radius:4px;cursor:pointer;font-size:13px;margin:0}
.cf-opt:hover{background:#f5f5f5}
.cf-opt .cf-opt-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-opt .cf-count{color:rgba(0,0,0,.45);font-size:11px;flex:0 0 auto}
.cf-opt.zero .cf-opt-label,.cf-opt.zero .cf-count{color:#c8c8c8}
.cf-noopt{padding:18px 0;text-align:center;color:rgba(0,0,0,.3);font-size:12px}
.cf-foot{display:flex;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px solid #f0f0f0}
/* ★ 2026-11-09：文本 / 数值两种面板（分数、排名、地址、备注这类高基数列没法勾选） */
.cf-field-tip{color:rgba(0,0,0,.45);font-size:11.5px;line-height:1.6;margin:6px 0 6px}
.cf-numrow{display:flex;align-items:center;gap:6px;margin:2px 0 0}
.cf-numdash{color:rgba(0,0,0,.35);font-size:12px}
.cf-numhint{margin-top:6px;font-size:11.5px;color:rgba(0,0,0,.4)}
.cf-numhint.bad{color:#ff4d4f}

/* --- 筛选条件条：一眼看到"筛了几个条件" --- */
.stu-filterbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px;
               padding:8px 12px;border-radius:8px;background:#f7f5ff;border:1px solid #ddd2ff}
.stu-filterbar .sfb-lead{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:#5a3fd6}
.stu-filterbar .sfb-hit{font-size:12px;color:rgba(0,0,0,.45)}
.stu-filterbar .sfb-hit b{color:#7c5cfc;font-size:14px;font-weight:600;margin:0 1px}
.stu-filterbar .sfb-clear{margin-left:auto;cursor:pointer;font-size:12.5px;color:#ff4d4f;
                          border:1px solid #ffccc7;background:#fff;border-radius:6px;padding:2px 10px}
.stu-filterbar .sfb-clear:hover{background:#fff1f0}
.stu-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #cbb8ff;color:#5a3fd6;
          border-radius:14px;padding:1px 6px 1px 10px;font-size:12.5px;line-height:19px;max-width:320px}
.stu-chip .sc-k{color:rgba(0,0,0,.45);flex:0 0 auto}
.stu-chip .sc-v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stu-chip .sc-x{flex:0 0 auto;width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;
                justify-content:center;cursor:pointer;background:#ece4ff;color:#5a3fd6;font-size:11px}
.stu-chip .sc-x:hover{background:#5a3fd6;color:#fff}

/* --- 餐别分布：筛完顺手给出 早/午/晚 各多少人 --- */
.stu-mealstat{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 12px;
              padding:7px 14px;border-radius:8px;background:#fafafa;border:1px solid #d9d9d9;
              font-size:12.5px;color:rgba(0,0,0,.55)}
.stu-mealstat .sms-lead{font-weight:600;color:rgba(0,0,0,.88)}
.stu-mealstat .sms-item b{color:#7c5cfc;font-size:15px;font-weight:600;margin:0 2px}
.stu-mealstat .sms-note{margin-left:auto;font-size:11.5px;color:rgba(0,0,0,.35)}

/* --- 手机端：筛选按钮 + 抽屉（不被工具栏折叠机制收走）--- */
.stu-mbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.stu-mbar .stu-msearch{flex:1;min-width:0}
.stu-mfilter-btn{position:relative;flex:0 0 auto}
.stu-mfilter-btn.on{border-color:#7c5cfc!important;color:#7c5cfc!important;background:#f3efff!important}
.stu-mfilter-btn .smb-n{display:inline-block;margin-left:5px;background:#7c5cfc;color:#fff;border-radius:9px;
                        padding:0 6px;font-size:11px;font-weight:600}
.stu-fdrawer .ant-drawer-body{padding:12px 16px}
.stu-fgroup{margin-bottom:14px}
.stu-fgroup .sfg-t{font-size:12px;color:rgba(0,0,0,.45);margin-bottom:7px}
.stu-fgroup .sfg-opts{display:flex;flex-wrap:wrap;gap:7px}
.stu-fopt{border:1px solid #d9d9d9;background:#fff;border-radius:15px;padding:5px 12px;font-size:13px;
          cursor:pointer;color:rgba(0,0,0,.88);line-height:1.5}
.stu-fopt .n{color:rgba(0,0,0,.35);font-size:11.5px;margin-left:4px}
.stu-fopt.on{background:#7c5cfc;border-color:#7c5cfc;color:#fff}
.stu-fopt.on .n{color:rgba(255,255,255,.85)}
.stu-fopt.zero{color:#c8c8c8}
.stu-fmeal{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 12px;margin-bottom:12px;
           border-radius:8px;background:#fafafa;border:1px solid #d9d9d9;font-size:12.5px;color:rgba(0,0,0,.55)}
.stu-fmeal b{color:#7c5cfc;font-size:14px}
@media (max-width: 768px) {
  /* 手机端：筛选按钮那一行常显（退出折叠机制） */
  body.mobile-toolbar-mode .app-content .stu-mbar,
  body.mobile-toolbar-mode .app-content .stu-mbar .ant-btn { display: inline-flex !important; }
}

/* ==========================================================================
   ⓔ 「列表页顶部工具栏」手机端常显（不被折进「更多 N ▾」）· 2026-10-06 P31
   --------------------------------------------------------------------------
   背景：顶部是「搜索框 + 6 个按钮」两层结构（Row > Col x2）。
   mobileToolbars 把「换到 ≥2 行的条状容器」收进「更多 N ▾」胶囊，
   而它看的是**外层 Row 自己** —— 只给里层 Space 挂 data-mt-skip 不管用：
   390px 实测外层 Row 被打 data-mt="over"、整个工具栏 Col 被 display:none、
   多出一个「更多 1 ▾」—— 老师在手机上**直接找不到任何按钮**。
   处理：页面侧给外层 Row + 两个 Col + 内层 Space **内外都挂** data-mt-skip="1"，
   并挂类名 `.list-topbar`；这里把它**铺开换行**（与 ⓒ 档案页同一口径）。
   适用：「学生管理（高中）」与「学生管理（小学·初中）」两页同一份结构。
   ========================================================================== */
@media (max-width: 768px) {
  body.mobile-toolbar-mode .app-content .list-topbar,
  body.mobile-toolbar-mode .app-content .list-topbar > .ant-col,
  body.mobile-toolbar-mode .app-content .list-topbar .page-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-start !important;
    overflow: visible !important;
  }
  body.mobile-toolbar-mode .app-content .list-topbar > .ant-col {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  body.mobile-toolbar-mode .app-content .list-topbar .page-toolbar { width: 100% !important; }
  body.mobile-toolbar-mode .app-content .list-topbar .page-toolbar > .ant-space-item {
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   【P33】学籍档案 · 学籍卡（StudentArchiveCard）
   --------------------------------------------------------------------------
   口径：届别（20XX届）+ 实时年级（随学年自动升；高中毕业后只显示届别）+ 就读轨迹时间轴。
   颜色跟随系统主题色（主色走变量，见 index.css 顶部 / SettingsPage 主题预设）。
   ========================================================================== */
.ac-wrap { font-size: 13px; }
.ac-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 14px; border-radius: 12px; background: #f7f5ff; border: 1px solid #e3dcff;
}
.ac-no { display: flex; align-items: baseline; gap: 6px; }
.ac-no-label { font-size: 12px; color: #888; }
.ac-no-val { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 600; color: #5a3fd6; letter-spacing: .5px; }
.ac-name { font-size: 18px; font-weight: 600; color: #222; }
.ac-sex { font-size: 12px; color: #888; margin-left: 6px; font-weight: 400; }
.ac-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.ac-sec-title {
  margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: #333;
  padding-left: 10px; border-left: 4px solid var(--color-primary-500, #7c5cfc);
}
.ac-timeline { display: flex; flex-direction: column; gap: 8px; }
.ac-tl-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; border: 1px solid #eee; border-radius: 10px; background: #fafafa;
}
.ac-tl-row.cur { border-color: #cbb8ff; background: #f3efff; }
.ac-tl-dot { color: var(--color-primary-500, #7c5cfc); font-size: 15px; }
.ac-tl-stage { width: 42px; font-weight: 600; color: #333; }
.ac-tl-years { width: 108px; color: #555; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.ac-tl-school { flex: 1 1 160px; color: #222; min-width: 120px; }
.ac-tl-mark { margin-left: auto; }
.ac-unknown { color: #aaa; }
.ac-admission {
  padding: 10px 12px; border-radius: 10px; background: #fffbe6; border: 1px solid #ffe58f; color: #333;
}
.ac-empty-line { color: #999; padding: 8px 2px; }
.ac-desc { margin-top: 4px; }
.ac-note { margin-top: 14px; font-size: 12px; color: #888; line-height: 1.8; }
.ac-foot { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 768px) {
  .ac-no-val { font-size: 15px; }
  .ac-name { font-size: 16px; }
  .ac-tags { margin-left: 0; }
  .ac-tl-years { width: auto; }
  .ac-tl-school { flex: 1 1 100%; }
}

/* ========== P33b：查重弹窗 + 学籍卡照片 + 小学初中"已迁走"提示 ========== */
.ac-photo { flex: 0 0 auto; margin-right: 12px; }
.stu-moved-hint {
  margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; font-size: 12.5px;
  background: #fffbe6; border: 1px solid #ffe58f; color: #7a5b00;
}
.dup-group { border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; margin-bottom: 12px; background: #fafafa; }
.dup-head { font-size: 13px; margin-bottom: 8px; }
.dup-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.dup-card {
  flex: 1 1 320px; min-width: 260px; display: block; cursor: pointer;
  border: 1px solid #e8e8e8; border-radius: 10px; padding: 10px 12px; background: #fff;
}
.dup-card.keep { border-color: #52c41a; background: #f6ffed; }
.dup-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.dup-row { display: flex; font-size: 12.5px; line-height: 1.9; }
.dup-row > span { flex: 0 0 76px; color: #888; }
.dup-row > b { font-weight: 500; color: #333; word-break: break-all; }
.dup-sub { display: flex; margin-top: 6px; font-size: 12.5px; }
.dup-sub > span { flex: 0 0 76px; color: #888; }
@media (max-width: 768px) {
  .dup-card { flex: 1 1 100%; }
}

/* ==========================================================================
   列表「列设置」（自定义显示哪些字段）2026-10-07
   四个列表页共用：学籍档案 / 在读学生 / 毕业生档案 / 退学档案
   配色跟随系统主题色（当前「典雅紫」#7c5cfc）
   ========================================================================== */
.colset-panel { min-width: 240px; max-width: 320px; }
.colset-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
               color: #5a3fd6; padding-bottom: 6px; border-bottom: 1px solid #f0f0f0; }
.colset-head .colset-count { margin-left: auto; font-weight: 500; color: rgba(0,0,0,.45); font-size: 12px; }
.colset-list { max-height: 320px; overflow-y: auto; margin: 4px -6px 0; padding: 0 6px; }
.colset-item { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 4px;
               cursor: pointer; font-size: 13px; }
.colset-item:hover { background: #f5f5f5; }
.colset-item .colset-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colset-item.locked { cursor: default; }
.colset-item.locked:hover { background: transparent; }
.colset-item.locked .colset-label { color: rgba(0,0,0,.45); }
.colset-item .colset-lock { margin: 0; font-size: 10px; line-height: 16px; padding: 0 4px;
                            color: rgba(0,0,0,.45); background: #fafafa; border-color: #e8e8e8; }
.colset-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.colset-tip { margin-top: 6px; font-size: 11px; line-height: 1.6; color: rgba(0,0,0,.45); }
.colset-tip b { color: #5a3fd6; }
/* 手机端底部抽屉：内容铺满，条目加大点击区（手指点得准） */
.colset-drawer .colset-panel { min-width: 0; max-width: none; }
.colset-drawer .colset-list { max-height: none; }
.colset-drawer .colset-item { padding: 9px 6px; font-size: 14px; }
.colset-drawer .colset-item .colset-label { white-space: normal; }
/* 手机端抽屉：操作区固定在 footer（不随内容滚动走），按钮永远看得见 */
.colset-drawer-foot .colset-foot { margin: 0; padding: 0; border-top: none; }
.colset-drawer-foot .colset-foot .ant-btn { flex: 1 1 auto; }
.colset-drawer-foot .colset-tip { margin-top: 8px; font-size: 12px; }

/* ==========================================================================
   请销假手续办理 · 记录表（2026-10-07）
   老师反馈「左右移动滑块不方便，需要重新设计」：抽屉加宽 + 列宽收紧 + 日期改上下两行。
   这里只给「两行日期」加样式（日期一行、时间一行灰色小字），并压小横向内边距再腾出空间。
   ========================================================================== */
.lh-dt2 { display: inline-flex; flex-direction: column; line-height: 1.25; }
.lh-dt2 > span:first-child { font-size: 12.5px; }
.lh-dt2 .lh-dt2-t { font-size: 11.5px; color: rgba(0, 0, 0, 0.45); }
/* 收紧格内横向内边距（每列各省 ~8px，13 列合计 ~100px）—— 只在请销假记录表里生效 */
.lh-table .ant-table-thead > tr > th,
.lh-table .ant-table-tbody > tr > td { padding-left: 6px !important; padding-right: 6px !important; }

/* ==========================================================================
   ♿ 手机端「无障碍与触控尺寸基线」（2026-10-07 · 依据手机端 UX 实测评审）
   --------------------------------------------------------------------------
   实测结论（390×844，19 个页面逐页量测，证据见 docs/手机端UX视觉一致性评审_20261007.md）：
     · 横向溢出 **19/19 页 = 0**、表格卡片化全生效 ⇒ 这块底子是好的，本段不碰布局；
     · 但**触控热区实测 146 处 < 44×44**、**字号 < 12px 实测 103 处** ⇒ 本段集中收口这两类。
   --------------------------------------------------------------------------
   ★ 尺寸基线（本段是唯一真源，别在别处再写临时值）：
       热区最小    44×44   （WCAG 2.5.8 Target Size (Minimum)，手指可靠命中下限）
       主按钮      36–40   次级钮 36   行内文字钮 32   胶囊 36
       正文字号    ≥12px   次要文字 ≥12px（**靠字重/字距区分主次，不靠"淡到看不见"**）
       圆角 3 档   卡片 12 / 内嵌块 8 / 胶囊 999
       间距 4 档   4 / 8 / 12 / 16（超出的一律回退到最近一档）
   ★ 配色基线（已在上文就地改掉，这里只记录口径）：
       文字紫    #6b4ce0（5.62:1 过 AA）—— `#7c5cfc` 仅用于图标 / 描边 / 底色
       次要灰    #6b6b85（5.16:1 过 AA）—— 不要再写 #999 / #9a9ab8 / rgba(0,0,0,.35)
   ========================================================================== */
@media (max-width: 768px) {
  /* ① 顶栏图标按钮撑到 44×44 -------------------------------------------------
     实测：菜单 / 修改密码 / 退出登录 三个 `size="small"` 图标按钮仅 **24×24**
     （App.jsx 三处；CSS 侧此前**完全没有**尺寸规则）。
     这是全站最高频的两个动作（开菜单 / 退出），必须撑满 —— 顶栏本身已 56px 高，放得下。 */
  /* ⚠️ 不要只写 `.ant-btn-sm` —— 实测顶栏里还有一个**不是 small** 的按钮（32×32 没被命中）。
     手机端顶栏按钮只显示图标（文字由 `{isMobile ? null : '修改密码'}` 隐藏）⇒ 全部按 44 撑满即可。 */
  .ant-layout-header .ant-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ② 提示条关闭按钮 12×13 → 约 44×44（透明外扩，视觉不变） -------------------
     实测：`MenuRelocateNotice` 的 ✕ 只有 **12×13**，而且它**19 页常驻**；
     更麻烦的是误触后会写 localStorage ⇒ **菜单说明永久不再出现**（只能清缓存）。
     ⇒ 用「透明 padding 外扩」把热区做大而**不改变视觉大小**。 */
  .ant-alert-close-icon {
    padding: 14px !important;
    top: 0 !important;
    right: 0 !important;
  }
  .ant-alert-close-icon .anticon-close {
    font-size: 12px;
  }

  /* ③ 输入框 / 选择器的「清除 ✕」与下拉箭头：热区过小 -------------------------
     实测 `ant-input-clear-icon` 12×12、`ant-picker-clear` 13×13 ⇒ 同样透明外扩。 */
  .ant-input-clear-icon,
  .ant-picker-clear,
  .ant-select-clear {
    padding: 12px !important;
    margin: 0 -6px 0 0 !important;
  }

  /* ④ 分页按钮 24×24 → 36（实测各列表页都有分页） ----------------------------
     ⚠️ 光写 `.ant-pagination-item` 不够 —— 实测量到的是内层的 **`.ant-pagination-item-link` 24×24**
     （第一版就漏了它，复测时被抓出来）。两层都要给尺寸。 */
  /* ⚠️ 必须带 !important：antd v5 用**运行时 CSS-in-JS** 注入样式，注入点在我方样式表**之后**
     ⇒ 同等特异性下它会赢。本仓既有规则普遍带 !important 就是这个原因。 */
  .ant-pagination .ant-pagination-item,
  .ant-pagination .ant-pagination-prev,
  .ant-pagination .ant-pagination-next,
  .ant-pagination .ant-pagination-item-link {
    min-width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
  }
  .ant-pagination .ant-pagination-item-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
  }

  /* ⑤ 页面工具栏按钮（不在 [data-mt] 折叠区里的那些）：32 → 36 ---------------
     实测：学生「学生数据管理」/ 教学点「新增教学点」/ 设置「保存外观设置」等主按钮高 32。 */
  .page-toolbar .ant-btn,
  .app-content > .ant-card .ant-card-extra .ant-btn {
    min-height: 36px !important;
  }

  /* ⑥ 小号开关：28×24 热区过小，撑高并外扩 -------------------------------- */
  .ant-switch.ant-switch-small {
    min-height: 24px !important;
    min-width: 40px !important;
  }

  /* ⑦ 表格单元格里的 Space：让它能收缩、能换行 -------------------------------
     实测（考试中心）：`.ant-table-cell` 是 `display:flex`，里面的 `.ant-space` 是 flex item；
     antd 给格子设了 `white-space: nowrap`，而 flex item 默认 `min-width: auto`
     ⇒ 它**既不收缩也不换行**，实测 396px 挤在 308px 的格子里 ⇒ 右侧内容被裁。
     ⇒ 放开 min-width 并允许换行，`flex-wrap: wrap` 这时才真的生效。 */
  .app-content .ant-table-cell .ant-space {
    min-width: 0 !important;
    white-space: normal !important;
    max-width: 100% !important;
  }
  .app-content .ant-table-cell .ant-space > .ant-space-item {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* ⑧ 页面内容区的主 / 次按钮：统一最小高度 36 -------------------------------
     ⚠️ **排除 `.ant-btn-link` 与 `.ant-btn-text`** —— 它们是「行内文字按钮 / 图标按钮」
     （如列表里可点的姓名、卡片里的图标钮）。WCAG 2.5.8 对**行内**目标有明确豁免，
     硬撑 44 反而会把文字行撑开、破坏列表密度（老师明确要过"一行一条、紧凑"）。
     ⇒ 只兜住真正的"操作按钮"（default / primary）。 */
  .app-content .ant-btn:not(.ant-btn-link):not(.ant-btn-text) {
    min-height: 36px !important;
  }

  /* ⑨ 「复制」小图标（用户与账户的微信绑定网址 / 口令）实测仅 13×15 ---------- */
  .app-content .ant-typography-copy {
    padding: 11px !important;
  }
  .app-content .ant-typography-copy .anticon-copy {
    font-size: 13px;
  }

  /* ⑩ 页面工具栏里的输入框 / 下拉 / 日期：与按钮同高（原来 24–26） ----------- */
  .page-toolbar .ant-input,
  .page-toolbar .ant-input-affix-wrapper,
  .page-toolbar .ant-select-single .ant-select-selector,
  .page-toolbar .ant-picker {
    min-height: 36px !important;
  }

  /* ⑪ 键盘焦点态：全文件此前 `focus-visible` 出现 **0 次**（WCAG 2.4.7 失败）----
     `.mr-card` 虽是 `role="button" tabIndex={0}` + `onKeyDown`（语义正确），
     但**没有任何焦点样式** ⇒ 键盘用户不知道自己在哪。这里补上可见焦点环。 */
  .mr-card:focus-visible,
  .mt-toggle:focus-visible,
  .mt-fit-toggle:focus-visible,
  .ant-btn:focus-visible,
  .ant-pagination-item > a:focus-visible,
  .colset-item:focus-visible {
    outline: 2px solid #6b4ce0 !important;
    outline-offset: 2px !important;
    border-radius: 6px;
  }
}

/* ==========================================================================
   ===== ㉑ 手机端壳层：底部导航 + 移动顶栏 + 聚合页（2026-10-09 手机端重构 · 第一批）=====
   背景（老师原话）：「手机端显示的架构、布局以及显示和用户体验感都不好，我需要重新调整
   手机端的整个应用的页面结构和显示及操作体验，让它更像一个真正的手机 APP，而不是照搬网页的
   布局和形式」。

   本段之前，手机端只是"给桌面页面打补丁"：没有底部导航（进任何功能先点左上角汉堡 →
   弹出桌面那份 8 组 20 页的抽屉）、20 个页面全平级、顶栏挤着 6 件事。
   本段之后，手机端有了**壳层**：底部 5 个 Tab（首页/学生/生活/教学/我的）+ 精简顶栏；
   桌面端一行不动（导航组件只在 App.jsx 的 isMobile 分支渲染，本段的规则也全在 768px 媒体查询里）。

   结构说明（为什么底栏不用 position:fixed）：
     内层 Layout 是**纵向 flex**：Header(56px) + Content(flex:1, overflow:auto) + 底栏(56px+安全区)。
     底栏是布局里的一个真实行 ⇒ 内容永远不会被浮层挡住，也**不需要**给 Content 补 padding-bottom，
     更不会在手机地址栏收起/展开时跟着 100vh 抖动（配合 ① 段的 100dvh）。
     ⚠️ 底栏不在 .app-content 里 ⇒ 不会被手机端工具栏折叠机制（utils/mobileToolbars.js，
        ROOT_SEL = '.app-content'）当成"工具栏"处理；另挂 data-mt-skip 作显式豁免。
   颜色口径：底栏选中色用 --primary（主题色，收敛在 App.jsx 一处）；
     ⚠️ 底栏是白底 + 主题色图标/文字 —— 不做绿底紫字（本项目一级事故红线）。
   ========================================================================== */
@media (max-width: 768px) {
  /* --- ㉑-1 底栏本体：5 等分，高 56px + 底部安全区（iPhone 全面屏的小黑条） --- */
  .mobile-bottom-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    height: 56px;
    box-sizing: content-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid #f0edf5;
    box-shadow: 0 -2px 12px rgba(26, 26, 46, 0.06);
    z-index: 20;
  }
  .mbn-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px 4px;
    border: 0;
    background: transparent;
    color: #7a7a92;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
  }
  .mbn-item .mbn-icon {
    display: block;
    font-size: 20px; /* 图标 ≈ 字号，别抢眼（本项目图标尺寸口径） */
    line-height: 1;
  }
  .mbn-item .mbn-label {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mbn-item.mbn-on {
    color: var(--primary, #7c5cfc);
    font-weight: 600;
  }
  .mbn-item:active {
    color: var(--primary, #7c5cfc);
  }
  .mbn-item.mbn-on .mbn-icon {
    transform: translateY(-1px);
  }

  /* --- ㉑-2 移动顶栏：菜单 + LOGO + 页名 … 通知 + 我的 --- */
  .app-mobile-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .app-mobile-head-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    flex: 0 0 auto;
  }
  /* 页名放最顶端、比正文大一档 —— 手机上没有页面内的 <h2>（⑭ 段隐藏），这里就是唯一的"我在哪" */
  .app-mobile-head-title {
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 头像（姓名首字）→ 「我的」 */
  .app-mobile-me {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary, #7c5cfc);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .app-mobile-me-on {
    box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.28);
  }
}

/* --- ㉑-3 聚合页（「我的」/「教学」）：手机上铺满，桌面端打开 #/mine 也读得清 --- */
.mhub {
  max-width: 760px;
}
.mhub-group {
  margin-bottom: 18px;
}
.mhub-group-name {
  margin: 0 0 8px 2px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8aa8;
}
.mhub-list {
  background: #ffffff;
  border: 1px solid #f0edf5;
  border-radius: 12px;
  overflow: hidden;
}
.mhub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #f5f3fa;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mhub-row:last-child {
  border-bottom: 0;
}
.mhub-row:active {
  background: #f7f5ff;
}
.mhub-row-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.1);
  color: #5a49b8; /* 深一档紫：过 AA（亮紫只做图形不做文字） */
  font-size: 17px; /* 图标 ≈ 字号（本项目图标尺寸口径） */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mhub-row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mhub-row-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}
.mhub-row-desc {
  font-size: 12px;
  color: #8a8aa8;
}
/* 「我的」页「消息中心」未读徽标（P185-4）—— 跟标题同一行，不换行不撑破 */
.mine-msg-badge {
  display: inline-block;
  min-width: 18px;
  margin-inline-start: 8px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}
.mhub-row-arrow {
  flex: 0 0 auto;
  color: #c8c4d8;
  font-size: 12px;
}
.mhub-row-danger .mhub-row-title {
  color: #c0392b;
}
.mhub-row-danger .mhub-row-icon {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}
.mhub-empty {
  padding: 24px 4px;
  font-size: 14px;
  color: #8a8aa8;
}
.mine-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #f0edf5;
  border-radius: 14px;
}
.mine-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary, #7c5cfc);
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mine-who {
  min-width: 0;
}
.mine-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}
.mine-sub {
  margin: 2px 0 6px;
  font-size: 12px;
  color: #8a8aa8;
}
.mine-roles {
  line-height: 1.6;
}
.mine-first {
  margin-bottom: 18px;
}
.mine-hint {
  margin: 4px 2px 0;
  font-size: 12px;
  line-height: 1.7;
  color: #a0a0b8;
}

/* ==========================================================================
   ===== ㉒ 手机端首页「工作台」 v2（2026-10-09 手机端重构 · 第二批 · 按老师视觉稿重排）
   --------------------------------------------------------------------------
   老师原话：「首页就按这样的感觉做，有些数据看板找个合适的入口，打开软件要简洁，
   看到关键的重要信息就行了」。

   结构：问候语 → 紫渐变「今天要做什么」大卡 → 今日数据 4 格 →
         快捷操作四宫格（值班模式）→ 看趋势（默认收起 = 数据看板的合适入口）。

   ⚠️ 全部规则都在 768px 媒体查询里，且组件只在 HomePage 的 isMobile 分支渲染
      ⇒ **桌面端一行不受影响**（桌面首页那 5 个分组由 verify-home-layout.cjs 守着）。
   ⚠️ 类名契约（verify-mobile-shell [F] 段 / probe-mobile-shell 七）：
      .mwb / .mwb-hero / .mwb-todo / .mwb-kpi / .mwb-quick / .mwb-more / .mwb-trend 不得改名。
   ⚠️ 红线：绿底紫字一级事故；本段紫卡上只用白字；数据卡用深灰字。
   ========================================================================== */
@media (max-width: 768px) {
  .mwb {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mwb-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
  }

  /* --- ㉒-0 问候语 --- */
  .mwb-greet { padding: 2px 4px 0; }
  .mwb-greet h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.2px;
  }
  .mwb-greet p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #9a9a9a;
  }

  /* --- ㉒-1 「今天要做什么」紫渐变大卡（顶栏同源紫 #7c5cfc 系） --- */
  .mwb-hero {
    background: linear-gradient(135deg, #6D4FF2 0%, #9B7BFF 100%);
    border-radius: 18px;
    padding: 14px 12px 12px;
    box-shadow: 0 6px 18px rgba(109, 79, 242, 0.28);
  }
  .mwb-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
    margin-bottom: 10px;
  }
  .mwb-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }
  .mwb-hero-badge {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 10px;
    border-radius: 12px;
  }

  .mwb-todos { display: flex; flex-direction: column; gap: 8px; }
  .mwb-todo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
  }
  .mwb-todo-go { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mwb-todo-go:active { background: rgba(255, 255, 255, 0.28); }
  .mwb-todo-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }
  .mwb-todo-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .mwb-todo-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mwb-todo-hint {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mwb-todo-btn {
    flex: 0 0 auto;
    background: #fff;
    color: #6D4FF2;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 14px;
  }
  .mwb-todo-value {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
  }
  .mwb-todo-done { opacity: 0.6; }
  .mwb-todo-done .mwb-todo-label { text-decoration: line-through; color: rgba(255, 255, 255, 0.75); }
  /* 「还有 N 项待办」展开按钮（默认只铺 5 行，打开软件要简洁） */
  .mwb-todo-more {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 9px 12px;
    text-align: center;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mwb-todo-more:active { background: rgba(255, 255, 255, 0.22); }

  /* 兜底胶囊（roleTodos 没数据时，在紫卡内）—— 白半透明底 + 白字 */
  .mwb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 2px 4px;
  }
  .mwb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 0;
  }
  .mwb-chip-go { cursor: pointer; }
  .mwb-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
  .mwb-chip-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
  .mwb-chip-value { font-size: 14px; font-weight: 600; color: #fff !important; }

  /* --- ㉒-2 今日数据（4 格可点数字） --- */
  .mwb-sec {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 4px 0;
  }
  .mwb-sec-title { font-size: 15px; font-weight: 700; color: #1e293b; }
  .mwb-sec-note { font-size: 11.5px; color: #9a9a9a; }
  .mwb-sec-more {
    margin-left: auto;
    font-size: 11.5px;
    color: #5A49B8;
    cursor: pointer;
  }
  .mwb-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .mwb-kpi {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mwb-kpi:active { background: #f8f7ff; }
  .mwb-kpi-label { font-size: 12px; color: #8a8f98; }
  .mwb-kpi-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #1e293b;
  }
  .mwb-kpi-value small {
    font-size: 12px;
    font-weight: 500;
    color: #9a9a9a;
    margin-left: 3px;
    letter-spacing: 0;
  }
  .mwb-kpi-foot { font-size: 11px; color: #a8adb5; }

  /* --- ㉒-3 快捷操作（值班模式四宫格） --- */
  .mwb-quickcard { padding: 12px 6px; }
  .mwb-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .mwb-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mwb-quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #EFECFE;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
  }
  .mwb-quick-item:active .mwb-quick-icon { background: #E2DCFB; }
  .mwb-quick-label { font-size: 12px; font-weight: 500; color: #333; }
  .mwb-quick-sub { font-size: 10.5px; color: #a8a8a8; }

  /* --- ㉒-4 看趋势（默认收起，图表不挤主任务） --- */
  .mwb-more {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #f0eee8;
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.05);
  }
  .mwb-more-title { font-size: 14.5px; font-weight: 600; color: #1e293b; }
  .mwb-more-sub { margin-left: auto; font-size: 12px; color: #9a9a9a; }
  .mwb-more-arrow { font-size: 11px; color: #b4b4c4; }
  .mwb-trend { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; }
  .mwb-trend-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
  }
  .mwb-trend-dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
  .mwb-trend-name { font-size: 13.5px; font-weight: 600; color: #333; }
  .mwb-trend-total { margin-left: auto; font-size: 13.5px; font-weight: 700; }
  .mwb-meal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f4f2f8;
  }
  .mwb-meal-row { display: flex; align-items: baseline; gap: 8px; }
  .mwb-meal-when { flex: 0 0 auto; width: 32px; font-size: 12.5px; color: #5f5e5a; }
  .mwb-meal-num { font-size: 18px; font-weight: 700; color: #1e293b; }
  .mwb-meal-detail { font-size: 11.5px; color: #9a9a9a; }
  .mwb-meal-foot { font-size: 11.5px; color: #b4b4c4; }

  /* --- ㉒-6 课后服务老师：手机端只有点名（2026-10-09 老师定案） ---
     老师原话：「只有课后服务身份（职务栏没有身份的老师），就是兼职的课后服务老师，
       他们所有人的手机页面打开就只需要显示点名功能即可」。
     所以这一屏只有：问候语 + 一张「今天要点名」卡（1 所学校 = 一个按钮直接进；
     多所学校 = 逐行列出）。没有数字看板、没有趋势图 —— 减少误点与困惑。 */
  .asw { display: flex; flex-direction: column; gap: 14px; }
  .asw-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 14px 14px;
    box-shadow: 0 2px 10px rgba(15, 33, 26, 0.06);
  }
  .asw-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #006838; /* 与「章节大标题」同一套品牌样式 */
  }
  .asw-tip { font-size: 14px; color: #6b7280; line-height: 1.7; padding: 6px 2px 2px; }
  .asw-tip-sub { margin-top: 8px; font-size: 12.5px; color: #9aa3af; }
  .asw-schools { display: flex; flex-direction: column; gap: 10px; }
  /* 学校按钮：整块可点（≥44px 触控区，手机端无障碍基线要求） */
  .asw-school {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid #e6efe9;
    border-radius: 12px;
    background: #f7fbf8;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
  }
  .asw-school:active { background: #eef7f1; border-color: #b9dfc8; }
  .asw-school-name { font-size: 16px; font-weight: 600; color: #14532d; }
  .asw-school-meta { font-size: 12.5px; color: #6b7280; }
  .asw-school-go { margin-left: auto; font-size: 12px; color: #9aa3af; }
  .asw-foot { font-size: 12.5px; color: #9aa3af; line-height: 1.7; padding: 0 4px 8px; }

  /* 点名页的「正在点名某某学校」提示条（课后服务老师从首页进来时显示） */
  .att-preset-tip {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f2f9f5;
    border: 1px solid #d8ecdf;
    font-size: 14px;
    color: #14532d;
  }
  .att-preset-tip-sub { font-size: 12.5px; color: #6b7280; }

  /* 点名记录里的「改动记录」（当天可反复改，这里显示谁在什么时候把谁从什么改成了什么） */
  .att-log {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e6e6e6;
    font-size: 12.5px;
  }
  .att-log-head { color: #8c8c8c; margin-bottom: 6px; }
  .att-log-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 3px 0; }
  .att-log-name { min-width: 60px; color: #333; font-weight: 600; }
  .att-log-flow { color: #595959; }
  .att-log-times { color: #d46b08; font-style: normal; margin-right: 4px; }
  .att-log-meta { margin-left: auto; color: #a8adb5; font-size: 12px; }
}

/* ==========================================================================
   ===== ㉓ 手机端「学生档案全屏页」+「生活页页签吸顶」（2026-10-09 第三批）====
   ① 学生档案（components/StudentDetailModal.jsx · className="stu-detail-modal"）：
      桌面弹窗 width=1000；手机上不要「浮在页面中间的宽弹窗」（小窗里还能滚，翻档案要两段手势），
      改成**占满全屏的详情页**：100vh 高、头部与底部操作条固定、中间正文独立滚动。
      选择器带 .stu-detail-modal 前缀 + !important ⇒ 精确覆盖 ⑥ 段的通用弹窗规则（top:8px / 8px 边距）。
   ② 生活管理（modules/LifeManagement/LifeManagementContent.jsx · className="life-tabs"）：
      页签栏吸顶 —— 点名/报餐列表往下翻时页签不跟着滚走（原来切页签要先滚回顶部）。
   ========================================================================== */
@media (max-width: 768px) {
  /* --- ㉓-1 学生档案：全屏 sheet --- */
  .stu-detail-modal.ant-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    top: 0 !important;
    padding-bottom: 0 !important;
  }
  .stu-detail-modal .ant-modal-content {
    height: 100vh;
    height: 100dvh;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
  }
  .stu-detail-modal .ant-modal-header {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 12px 44px 12px 14px !important;
    border-bottom: 1px solid #f0eee8;
  }
  .stu-detail-modal .ant-modal-title {
    font-size: 16px !important;
    line-height: 22px;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .stu-detail-modal .ant-modal-close {
    top: 10px !important;
    inset-inline-end: 8px !important;
  }
  .stu-detail-modal .ant-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 16px !important;
  }
  /* 底部固定操作条（关闭）——常驻拇指区，长档案翻到底也不用滚回顶部关 */
  .stu-detail-modal .ant-modal-footer {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #f0eee8;
    background: #fff;
  }
  .stu-detail-modal .ant-modal-footer .ant-btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
  }
  /* 照片卡在手机上独占一行：整卡居中、不要让图横铺满屏 */
  .stu-detail-modal .person-photo-card .ant-card-cover { display: flex; justify-content: center; }
  .stu-detail-modal .person-photo-card .ant-card-meta { text-align: center; }

  /* --- ㉓-2 生活管理页签吸顶 --- */
  .life-tabs > .ant-tabs-nav {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0 0 8px !important;
    padding: 2px 0 8px;
    background: #f5f7fa;
  }
}

/* ==========================================================================
   ===== ㉔ 手机端「住宿管理」：吸顶筛选条 + 一行一间紧凑房间行
        （2026-10-09 · 手机端重构第二批 · P185-1）
   --------------------------------------------------------------------------
   为什么改（**真机实测，不是目测**，390×844）：
     · 第一张房卡落在 **822px**（视口 844）⇒ 老师打开住宿管理**一眼看不到任何房间**；
       元凶是「工具栏 + 280px 高的统计块 + 图例卡」把首屏吃光。
     · 房间卡固定 156×114、每行 2 张 ⇒ 104 间要划 6,000+px；卡内字号被压到 10/11/12px
       （600+ 处）——「手机上字太小看不清」是本项目的老红线（见 P6-A 教训）。
   手机端做法（桌面端一个字节都没动，全部关在 `!isMobile` 分支与 max-width:768px 里）：
     ① 统计块只留 4 个房间数字，床位/房型/图例收进「床位与房型 ▾」（省 ~210px）；
     ② 区域 Segmented 换成可横滑的圆角 chips + 房号/住客姓名搜索 + 状态筛选（含计数）；
     ③ 房间列表改**一行一间**：房号 + 房型·铺位 + 状态胶囊 / 住客姓名胶囊，
        字号 ≥ 12px、行高 ~58px，扫一眼就能定位，点一下进同一个详情弹窗。
   维护要点：
     · 筛选条吸顶（sticky）必须**让开上面那层生活管理页签**（㉓-2 的 top:0），
       所以这里的 top 用元素实测高度（= .life-tabs 页签栏高）；改页签样式要一起量。
     · 一律按类名，**不要用结构选择器**（本项目踩过 `:last-child` 改错对象的坑）。
   ========================================================================== */
@media (max-width: 768px) {
  /* --- ㉔-0 工具栏卡：压缩内边距 + 按钮尺寸，给下面的房间列表腾位置 --- */
  .dorm-toolbar-card > .ant-card-body { padding: 12px 12px 10px; }
  .dorm-toolbar-card .ant-btn { height: 32px; padding: 0 10px; font-size: 13px; }
  .dorm-toolbar-card .ant-space { row-gap: 8px !important; }

  /* --- ㉔-1 统计块：4 个房间数字 + 展开开关 --- */
  .dorm-stats-tiles { gap: 10px 12px; }
  .dorm-stat-tile { min-width: 62px; }
  .dorm-stat-num { font-size: 20px; }
  .dorm-stats-toggle {
    align-self: flex-start;
    height: 30px;
    padding: 0 14px;
    border: 1px solid #d6e4ff;
    border-radius: 15px;
    background: #f0f5ff;
    color: #1677ff;
    font-size: 13px;
    line-height: 28px;
    cursor: pointer;
  }
  .dorm-stats-note { font-size: 12px; color: #8c8c8c; }
  .dorm-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
  .dorm-legend-item { display: inline-flex; align-items: center; gap: 4px; }
  .dorm-legend-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid transparent; display: inline-block; }

  /* --- ㉔-2 吸顶筛选条（让开生活管理页签栏；76px = .life-tabs 页签栏实测高） ---
     注意：这条是**第二层 sticky**（上面还有 ㉓-2 的页签栏），两层一起占 ~162px，
     所以这里刻意压到两行（区域 chips + 搜索/条数/状态筛选），别再往里加行。 */
  .dorm-mlist-bar {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 0 8px;
    margin: 0 0 8px;
    background: #f5f7fa;
  }
  .dorm-mchips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .dorm-mchips::-webkit-scrollbar { display: none; }
  .dorm-mchip {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 30px;
    white-space: nowrap;
    cursor: pointer;
  }
  .dorm-mchip.on { border-color: #1677ff; background: #1677ff; color: #fff; font-weight: 600; }
  .dorm-mtools { display: flex; align-items: center; gap: 8px; }
  .dorm-msearch { flex: 1 1 auto; min-width: 0; }
  .dorm-msearch .ant-input { font-size: 14px; }
  .dorm-mfilter { flex: 0 0 auto; min-width: 92px; }
  .dorm-mfilter .ant-select-selector { font-size: 13px; }
  .dorm-mlist-count { flex: 0 0 auto; font-size: 13px; color: #8c8c8c; white-space: nowrap; }
  .dorm-mlist-count b { color: #1677ff; font-size: 15px; }
  .dorm-mlist-hint { font-size: 12px; color: #389e0d; }

  /* --- ㉔-3 一行一间的房间行 --- */
  .dorm-mlist { display: flex; flex-direction: column; gap: 6px; }
  .dorm-mrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 8px 10px;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .dorm-mrow:active { background: #fafafa; }
  /* 左侧色条 = 房间类型（与桌面地图格子配色同源，后端 roomKind 给值） */
  .dorm-mrow[data-room-status="boy"] { border-left-color: #91caff; }
  .dorm-mrow[data-room-status="girl"] { border-left-color: #ffadd2; }
  .dorm-mrow[data-room-status="teacher"] { border-left-color: #d3adf7; }
  .dorm-mrow[data-room-status="mixed"] { border-left-color: #ffd591; }
  .dorm-mrow[data-room-status="duty"] { border-left-color: #e0b84c; }
  .dorm-mrow[data-room-status="empty"] { border-left-color: #b7eb8f; }
  .dorm-mrow[data-room-status="disabled"] { border-left-color: #e8e8e8; background: #fafafa; }
  .dorm-mrow-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 20px; }
  .dorm-mrow-line2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 19px; }
  .dorm-mrow-no { font-size: 16px; font-weight: 700; color: #262626; }
  .dorm-mrow-type { font-size: 13px; color: #8c8c8c; }
  .dorm-mrow-beds { font-size: 13px; color: #595959; }
  .dorm-mrow-tag {
    margin-left: auto;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    line-height: 19px;
    white-space: nowrap;
  }
  .dorm-mrow-tag-warn { margin-left: 0; border-color: #ffe58f; background: #fffbe6; color: #ad6800; }
  .dorm-mrow-name {
    padding: 1px 7px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #262626;
    font-size: 13px;
  }
  .dorm-mrow-more { font-size: 12px; color: #8c8c8c; }
  .dorm-mrow-empty { font-size: 13px; color: #bfbfbf; }
  .dorm-mrow-remark { font-size: 12px; color: #bfbfbf; }

  /* --- ㉔-4 手势配套：压掉浏览器原生下拉刷新（否则两套刷新一起触发） --- */
  .app-content { overscroll-behavior-y: contain; }
}

/* ==========================================================================
   ===== ㉕ 手机端手势指示器：下拉刷新 + 左缘侧滑返回
        （2026-10-09 · 手机端重构第三批 · P185-3）
   --------------------------------------------------------------------------
   · 判定真源在 utils/mobileGestureMath.js（纯函数，闸门 verify-mobile-gestures 真跑）；
   · 接线在 hooks/useMobileGestures.js（挂在滚动容器 .app-content 上，passive 监听不抢滚动）；
   · 下拉刷新只认「已到顶 + 往下拉 ≥72px」；侧滑返回只认「左缘 28px 起手 + 横向明显大于纵向」，
     且起手点落在横向可滚动容器（宽表格 / 楼层 chips）里时一律让位。
   · 这里只放两块**指示器**的样式（fixed 浮层，不参与布局）；
     「下拉刷新 = 内容区换 key 重挂载」这件事在 App.jsx（pageRefreshTick）。
   ========================================================================== */
@media (max-width: 768px) {
  .app-pull-indicator {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid #eee7ff;
    border-radius: 18px;
    background: #f7f4ff;
    color: #7c5cfc;
    font-size: 13px;
    line-height: 20px;
    z-index: 20;
    opacity: 0.85;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(124, 92, 252, 0.12);
  }
  .app-pull-indicator.ready { background: #7c5cfc; border-color: #7c5cfc; color: #fff; opacity: 1; }
  .app-pull-indicator.loading { opacity: 1; }
  .app-pull-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c5cfc;
    flex: 0 0 auto;
  }
  .app-pull-indicator.ready .app-pull-dot,
  .app-pull-indicator.loading .app-pull-dot { background: #fff; }
  .app-pull-indicator.loading .app-pull-dot { animation: app-pull-spin 0.9s linear infinite; }
  @keyframes app-pull-spin { to { transform: rotate(360deg); } }

  .app-edge-hint {
    position: fixed;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 30px;
    height: 56px;
    border-radius: 8px;
    background: rgba(124, 92, 252, 0.14);
    border: 1px solid rgba(124, 92, 252, 0.35);
    color: #7c5cfc;
    font-size: 20px;
    line-height: 54px;
    text-align: center;
    z-index: 20;
    pointer-events: none;
  }
}

/* ==========================================================================
   ===== ㉖ 手机端「平台落账记录」页签（2026-10-09 · P186）
   --------------------------------------------------------------------------
   为什么单独写一段：这个面板的筛选行里有 Segmented ×2 + RangePicker + 输入框 + 2 个按钮，
   正是「手机端工具栏自动折叠」（utils/mobileToolbars.js）最容易收进「更多 N ▾」的形态 ——
   收进去老师就找不到「本次新增」这个关键筛选了。
   做法与住宿管理（㉔）一致：
     ① JSX 上给工具栏容器与它的外层 Card **都**挂 data-mt-skip="1"（机制看的是外层容器）；
     ② 这里再显式铺开成两行 —— 宽控件（日期区间 / 搜索框）各占满一行，
        两个 Segmented 与两个按钮按 flex 换行排，触控目标不小于 32px。
   ⚠️ 不要用结构选择器（> div > div:last-child 这种）—— 本仓踩过「改版后 :last-child 变了、
      手机端整块消失而桌面完全正常」的事故，一律按类名。
   ========================================================================== */
@media (max-width: 768px) {
  .plg-toolbar .ant-space {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
  }
  /* 日期区间 / 搜索框 / 两个 Segmented：各占满一行，点得准也看得清 */
  .plg-toolbar .ant-space-item {
    flex: 1 1 100%;
    min-width: 0;
  }
  .plg-toolbar .ant-picker,
  .plg-toolbar .ant-input-affix-wrapper,
  .plg-toolbar .ant-segmented {
    width: 100% !important;
    font-size: 13px;
  }
  .plg-toolbar .ant-segmented-item-label {
    font-size: 13px;
    padding: 0 4px;
    line-height: 30px;
  }
  /* 两个按钮并排各占一半（刷新 / 导出），别再各占一整行 */
  .plg-toolbar .ant-space-item:nth-last-child(1),
  .plg-toolbar .ant-space-item:nth-last-child(2) {
    flex: 1 1 calc(50% - 4px);
  }
  .plg-toolbar .ant-btn {
    width: 100%;
    height: 32px;
  }
  /* 面板里的表格：手机端由全局「卡片化」（body.mobile-card-mode）接管，这里只补一处
     —— 卡片标题行里的「本次新增 / 未落账」标签不要被省略号吃掉。 */
  .plg-panel .ant-table-tbody > tr > td[data-mobile-title] .ant-tag {
    margin-inline-start: 6px;
  }
}

/* ============================================================
   ㉗ 打印设置面板（P193 · 2026-10-11）—— 老师要求「打印功能跟 WPS 一样」
   左右两栏：左=设置（打印机/份数/页码/双面/纸张/边距/缩放/颜色），右=实时预览。
   ⚠️ 手机端段**只用类名**选择器，绝不用结构选择器（`> div > div:last-child`）——
      历史上这样写过：桌面看着正常、手机段整段静默失效（PROJECT_NOTES 有这条教训）。
   ============================================================ */
.psm-wrap { display: flex; gap: 14px; align-items: flex-start; }
.psm-left { flex: 0 0 340px; min-width: 0; }
.psm-right { flex: 1 1 auto; min-width: 0; }
.psm-group { margin-bottom: 10px; }
.psm-group-title { font-size: 12px; color: #8c8c8c; margin: 0 0 6px; padding-left: 2px; }
.psm-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.psm-label { flex: 0 0 92px; font-size: 13px; color: #333333; }
.psm-tip { margin-left: 4px; color: #bfbfbf; font-size: 12px; }
.psm-ctl-box { flex: 1 1 auto; min-width: 0; }
.psm-ctl { width: 100%; }
.psm-num { width: 100%; }
.psm-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #595959; margin-bottom: 6px;
}
.psm-preview-box { height: 560px; border: 1px solid #e5e5ea; border-radius: 6px; background: #eef0f4; overflow: hidden; }
.psm-preview { width: 100%; height: 100%; border: 0; }
.psm-preview-foot { font-size: 12px; color: #8c8c8c; margin-top: 6px; }

@media (max-width: 768px) {
  /* 手机端：上下排列（设置在上、预览在下），控件一律整行 —— 不横向挤 */
  .psm-wrap,
  .psm-wrap.is-mobile { display: block; }
  .psm-left { width: 100%; flex: none; }
  .psm-right { margin-top: 12px; }
  .psm-row { flex-wrap: wrap; margin-bottom: 8px; }
  .psm-label { flex: 1 1 100%; margin-bottom: 2px; }
  .psm-ctl-box { flex: 1 1 100%; }
  .psm-num { width: 100%; }
  .psm-preview-box { height: 340px; }
}
/* 小学 / 初中批量修改：手机端用分步流程，不再把 2100px 宽表压进小屏。 */
@media (max-width: 768px) {
  .primary-batch-edit-modal.is-mobile {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(100dvh - 16px);
  }
  .primary-batch-edit-modal.is-mobile .ant-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
  }
  .primary-batch-edit-modal.is-mobile .ant-modal-header {
    flex: 0 0 auto;
    padding: 14px 16px 10px;
  }
  .primary-batch-edit-modal.is-mobile .ant-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 14px 14px !important;
  }
  .primary-batch-edit-modal.is-mobile .ant-modal-footer {
    flex: 0 0 auto;
    border-top: 1px solid #eeeaf7;
    background: #fff;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  }
  .pbm-mobile .ant-steps { margin: 4px 0 16px; }
  .pbm-mobile .ant-steps-item-title { font-size: 11px !important; }
  .pbm-step { display: flex; flex-direction: column; gap: 12px; }
  .pbm-step-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 15px; color: #29243a;
  }
  .pbm-students { display: flex; flex-direction: column; gap: 8px; }
  .pbm-student {
    min-height: 56px; padding: 9px 12px; border: 1px solid #e9e4f5; border-radius: 12px;
    display: flex; align-items: center; gap: 10px; background: #fff;
  }
  .pbm-student.on { border-color: #8a6de9; background: #f7f4ff; }
  .pbm-student > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .pbm-student small { color: #777087; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pbm-field-group > span { display: block; margin: 2px 0 7px; color: #777087; font-size: 12px; font-weight: 600; }
  .pbm-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pbm-field-grid button {
    min-height: 44px; padding: 8px; border: 1px solid #e2dcef; border-radius: 10px;
    background: #fff; color: #332d44; font-size: 14px; text-align: center;
  }
  .pbm-field-grid button.on { border-color: #7657dc; background: #eee9ff; color: #4f34b6; font-weight: 600; }
  .pbm-value-box { padding: 14px; border: 1px solid #e5dff2; border-radius: 12px; background: #faf8ff; }
  .pbm-value-box .ant-select-selector, .pbm-value-box .ant-input, .pbm-value-box .ant-input-number { min-height: 44px !important; }
  .pbm-preview { display: flex; flex-direction: column; gap: 8px; max-height: 48dvh; overflow-y: auto; }
  .pbm-preview > div { padding: 10px 12px; border: 1px solid #e9e4f5; border-radius: 10px; background: #fff; }
  .pbm-preview b, .pbm-preview span, .pbm-preview small { display: block; }
  .pbm-preview span { margin: 3px 0; color: #675c7d; font-size: 12px; }
  .pbm-preview small { color: #81798e; overflow-wrap: anywhere; }
  .pbm-preview em { color: #5d3bc6; font-style: normal; font-weight: 600; }
  .pbm-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pbm-footer .ant-btn { width: 100%; min-height: 44px; margin: 0 !important; white-space: normal; height: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   ★★ 2026-10-16（手机端补缺失）：学生管理顶部的「学籍一条线」入口
   ---------------------------------------------------------------
   为什么有它（老师反馈「手机端有的功能缺失」）：
     手机端底部「学生」Tab 落到「在读学生管理」，而「学籍档案 / 毕业生档案 /
     退学档案」也归在「学生」Tab 名下 —— 但原来只能靠正文里的弱链接或翻
     左上角菜单抽屉才能进（毕业生 / 退学连入口都没有）。这一排把三者补上。
   ⚠️ 只在手机端渲染（StudentManagement 里 isMobile 三元）⇒ 桌面端零影响；
      样式仍收在媒体查询里，与项目其余手机端样式同一口径。
   ⚠️ 配色：白底 + 主题色文字（var(--primary)），**不用绿底紫字**（那是红线）。
   ⚠️ 热区 44px：与既有手机端按钮一致（a11y 闸门会检查窄热区）。
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stu-archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
  }
  .stu-archive-nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #ddd6ee;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
  }
  .stu-archive-nav-item:active {
    background: #f2eeff;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ★★ 2026-10-16（手机端修遮挡）：固定底部操作条必须**让开底部导航**
   ---------------------------------------------------------------
   问题（老师反馈「手机端有的功能缺失」，真机实测确认）：
     集训的「收费与结算」与「报到核对」各有一条固定底部操作条，
     原样式 `position:fixed; left:0; right:0; bottom:0; z-index:20`；
     而手机端底部导航 `.mobile-bottom-nav` 也是 `z-index:20`、同样贴在屏底。
     ⇒ 两者 **top/bottom 完全相同（实测都是 787~844，高 57px）**，
       DOM 靠后的底栏把操作条的按钮盖住：
       在「生成并确认」「一键报到」按钮中心做 elementFromPoint，
       命中 null（clickable=false）—— **按钮存在但按不动**。
   修法：手机端把这两条**抬到导航之上**（bottom = 导航高 56px + 1px 上边框 + 安全区）。
   ⚠️ 不要用"提高 z-index"代替：那会反过来盖住底部导航，老师就切不了 Tab 了。
   ⚠️ 桌面端不受影响（桌面没有底部导航，这两条继续贴屏底）—— 所以收在媒体查询里。
   ⚠️ 内联样式优先级最高 ⇒ 必须 !important 才压得住 bottom。
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .camp-billbar,
  .camp-checkin-bar {
    bottom: calc(57px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: 10px !important;
  }
}
