/* 安途招聘运营后台 · 手机端自适应（仅窄屏生效，桌面端不受影响） */
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overscroll-behavior-y: contain; }

  .layout { display: block !important; }

  /* 侧栏改为抽屉 */
  .side {
    position: fixed !important; left: 0; top: 0; bottom: 0;
    width: 274px !important; height: 100vh; height: 100dvh;
    z-index: 2140; overflow-y: auto;
    transform: translateX(-102%);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 8px 0 28px rgba(15, 30, 60, .16);
  }
  body.nav-open .side { transform: none; }

  .main-wrap { width: 100% !important; min-width: 0 !important; }

  /* 顶栏紧凑 */
  .header {
    height: 52px !important; padding: 0 10px 0 14px !important;
    position: sticky; top: 0; z-index: 1200;
  }
  .header-left .crumb, .header-left .sep { display: none !important; }
  .header-left .page-title { font-size: 16px !important; }
  .header-right .today, .header-right .meta { display: none !important; }
  .header .user .avatar { width: 30px; height: 30px; font-size: 13px; }

  /* 内容区 */
  .main { padding: 10px 10px calc(86px + env(safe-area-inset-bottom)) !important; }
  .el-card { border-radius: 14px !important; }
  .el-card__body { padding: 13px !important; }

  /* 仪表盘统计卡：两列 */
  .stat-row { margin-left: -5px !important; margin-right: -5px !important; }
  .stat-row .el-col-6 { width: 50% !important; max-width: 50% !important; flex: 0 0 50% !important; }

  /* 表单筛选：自动换行、输入框撑满 */
  .el-form--inline { display: flex; flex-wrap: wrap; }
  .el-form--inline .el-form-item { margin: 0 8px 10px 0 !important; width: calc(50% - 8px); }
  .el-form--inline .el-form-item__content { width: 100%; }
  .el-form--inline .el-input, .el-form--inline .el-select, .el-form--inline .el-date-editor,
  .el-form--inline .el-cascader { width: 100% !important; }
  .el-form-indent .el-form-item { margin-bottom: 14px; }

  /* 表格：横向滚动，不再挤成一列 */
  .el-table { width: 100% !important; font-size: 12.5px; }
  .el-table__body-wrapper { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .el-table__body-wrapper .el-scrollbar { width: 100%; }
  .el-table__body-wrapper .el-scrollbar__wrap,
  .el-table__body-wrapper .el-scrollbar__wrap--hidden-default {
    overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .el-table table { min-width: 720px; }
  .el-table th, .el-table td { padding: 8px 7px !important; font-size: 12.5px !important; }


  /* 半栏卡片/表单：窄屏一律整行 */
  .el-row .el-col-12 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

  /* 概览描述表：不挤成竖排单字 */
  .el-descriptions__table { table-layout: auto !important; width: 100% !important; }
  .el-descriptions__cell { padding: 8px 10px !important; font-size: 12.5px !important; white-space: nowrap; }
  .el-descriptions__label { min-width: 88px; }

  /* 数据表格：保持最小宽度并允许横向滑动 */
  .el-table__header, .el-table__body, .el-table__footer { min-width: 780px !important; }
  /* 手机端取消“操作”列吸附，避免遮挡其它字段 */
  .el-table .el-table-fixed-column--right,
  .el-table .el-table-fixed-column--left {
    position: static !important; left: auto !important; right: auto !important;
    box-shadow: none !important; z-index: auto !important;
  }
  .el-table__fixed, .el-table__fixed-right { display: none !important; }
  .el-table__body-wrapper .el-scrollbar { width: 100%; }
  .el-table__body-wrapper .el-scrollbar__wrap,
  .el-table__body-wrapper .el-scrollbar__wrap--hidden-default {
    overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 工具栏：搜索/筛选/按钮自动换行，不再溢出卡片 */
  .el-space--horizontal { display: flex; flex-wrap: wrap; width: 100%; gap: 8px !important; }
  .el-space__item { width: calc(50% - 4px) !important; flex: 0 0 auto; }
  .el-space__item > .el-input, .el-space__item > .el-select, .el-space__item > .el-date-editor,
  .el-space__item > .el-cascader, .el-space__item .el-input, .el-space__item .el-select { width: 100% !important; }
  .el-space__item .el-button { width: 100%; }
  .el-row.is-justify-space-between { flex-wrap: wrap; row-gap: 8px; }
  .el-row { flex-wrap: wrap; }

  .el-button { padding: 8px 12px !important; }
  .el-button + .el-button { margin-left: 6px !important; }
  .el-pagination { justify-content: center; flex-wrap: wrap; row-gap: 8px; }

  .el-dialog { width: 93vw !important; max-width: 93vw; margin-top: 7vh !important; }
  .el-dialog__body { padding: 16px !important; }
  .el-drawer { width: 88vw !important; }
  .el-message-box { width: 88vw !important; }

  /* 登录页：隐藏大图区，表单占满屏 */
  .login { display: block !important; }
  .login .side { display: none !important; }
  .form-side {
    min-height: 100vh; min-height: 100dvh;
    justify-content: flex-start !important;
    padding: 54px 22px calc(34px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(160deg, #F2F9FF 0%, #EAF4FF 52%, #EDFBF5 100%) !important;
  }
  .form-side::after { width: 260px; height: 260px; right: -70px; bottom: -70px; opacity: .05; }
  .form-box { width: 100% !important; max-width: 100% !important; }
  .login .mobile-brand { display: block !important; text-align: center; margin: 0 0 26px; }
  .login .mobile-brand img { width: 176px; max-width: 72%; height: auto; }
  .form-box h2 { font-size: 24px !important; }
  .form-box .sub { font-size: 13px !important; }
  .form-box .el-button, .form-box button { width: 100%; }

  /* 悬赏入口上移，避让菜单按钮 */
  #bounty-entry { right: 14px !important; bottom: 96px !important; }
  #bounty-entry a { padding: 9px 13px !important; font-size: 12px !important; }
}

/* 遮罩与悬浮菜单按钮（外层不参与媒体查询，窄屏才显示） */
.m-mask {
  position: fixed; inset: 0; background: rgba(9, 22, 40, .42);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 2130;
}
body.nav-open .m-mask { opacity: 1; pointer-events: auto; }

.m-menu-btn {
  display: none; position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 50px; height: 50px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: linear-gradient(120deg, #2BD9A4 0%, #12A8E0 55%, #1870F8 100%);
  color: #fff; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(24, 112, 248, .30); z-index: 2160;
}
.m-menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .m-menu-btn { display: flex; } }

body.nav-open .m-menu-btn { opacity: 0; pointer-events: none; }

.m-tbl-hint { font-size: 11.5px; color: #8FA0B6; letter-spacing: .2px; padding: 0 2px 7px; }
