/* 智慧办公平台 —— 手机端适配（只在小屏生效，桌面样式不受影响）
   放在容器 /usr/share/nginx/html/m-mobile.css，由 index.html 引入 */

/* 手机端品牌条：桌面隐藏（登录页左侧本来就是品牌区） */
.m-brand { display: none; }

@media only screen and (max-width: 767px) {
  /* ---- 登录页：原来是左右两栏，手机上一栏被挤出去、卡片只露一半 ---- */
  .login-page { display: block !important; height: auto !important; min-height: 100vh !important;
                width: 100% !important; overflow: visible !important;
                background: linear-gradient(135deg, #1a73e8, #0d47a1) !important; }
  .login-left { display: none !important; }
  .login-right { width: 100% !important; min-height: 100vh !important; background: transparent !important;
                 display: flex !important; flex-direction: column !important; align-items: center !important;
                 justify-content: flex-start !important; box-sizing: border-box !important; padding: 0 0 24px !important; }
  .m-brand { display: block !important; width: 100%; box-sizing: border-box; padding: 26px 20px 0; color: #fff; text-align: center; }
  .m-brand h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: 1px; }
  .m-brand p { margin: 6px 0 0; font-size: 12px; opacity: .85; }
  .login-box { width: calc(100% - 24px) !important; max-width: 460px !important; margin: 16px 12px 0 !important;
               padding: 22px 18px !important; box-sizing: border-box !important; }
  .login-box h2 { font-size: 20px !important; }
  .default-tip, .pwd-tip { font-size: 12px !important; }
  .el-button--large { height: 42px !important; }

  /* ---- 其它页面：宽元素不撑破屏幕 ---- */
  .page-container { padding: 12px 12px 76px !important; }
  .el-dialog { width: 92% !important; margin-top: 8vh !important; }
  .el-message-box { width: 88% !important; }
  .el-pagination { flex-wrap: wrap !important; row-gap: 6px; }
  img, video { max-width: 100%; }
  /* 通讯录等列表页的顶部按钮条：手机上换行，别把页面撑宽 */
  .panel-header { flex-wrap: wrap !important; row-gap: 8px; }
  .header-right { flex-wrap: wrap !important; width: 100% !important; justify-content: flex-start !important; }
}

/* ---- 扫码登录块（桌面、手机都显示，在账号密码表单上方） ---- */
.m-qr { text-align: center; padding: 2px 0 8px; }
.m-qr-title { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 10px; }
.m-qr-frame { display: inline-block; padding: 8px; border: 1px solid #dcdfe6; border-radius: 8px; background: #fff; }
.m-qr-frame img { display: block; width: 150px; height: 150px; }
.m-qr-tip { margin-top: 8px; font-size: 12px; color: #909399; line-height: 16px; }
.m-qr-tip.is-error { color: #e6a23c; }
.m-qr-sep { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; color: #c0c4cc; font-size: 12px; }
.m-qr-sep::before, .m-qr-sep::after { content: ''; flex: 1; height: 1px; background: #ebeef5; }
.m-download-btn { width: 100%; margin-top: 10px; }

/* 下载 APP 弹窗 */
.m-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999; padding: 16px;
           background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; }
.m-modal-box { width: 100%; max-width: 360px; padding: 22px 20px; background: #fff; border-radius: 12px; text-align: center; }
.m-modal-box h3 { margin: 0 0 14px; font-size: 16px; color: #303133; }
.m-modal-box img { width: 200px; height: 200px; border: 1px solid #eee; border-radius: 8px; }
.m-modal-box p { margin: 10px 0 0; font-size: 12px; color: #909399; word-break: break-all; }
.m-modal-box a { color: #409eff; font-size: 13px; }
.m-modal-box button { margin-top: 16px; width: 100%; padding: 10px; border: none; border-radius: 6px;
                      background: #409eff; color: #fff; font-size: 14px; }
