:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#17263a;background:#f5f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:860px;margin:auto;padding:32px 24px 20px}header{display:flex;align-items:center;gap:12px;font-size:14px;color:#526279}.mark{display:grid;place-items:center;width:37px;height:37px;background:#225bea;color:white;border-radius:11px;font-weight:700;font-size:19px}.badge{margin-left:auto;border:1px solid #dbe2ed;padding:6px 12px;border-radius:20px}section{max-width:600px;margin:64px auto 40px}.eyebrow{font-size:13px;color:#225bea;font-weight:650;letter-spacing:1px}h1{font-size:clamp(27px,5vw,40px);line-height:1.3;letter-spacing:-1px;margin:18px 0}.intro{font-size:16px;line-height:1.85;color:#627086}.card{margin-top:32px;padding:28px;background:#fff;border:1px solid #e0e6ef;border-radius:20px;box-shadow:0 8px 32px #10274806}h2{font-size:20px;margin:0 0 12px}p{line-height:1.85;color:#526279;font-size:14px}button{display:block;cursor:pointer;width:100%;padding:14px 18px;border:0;border-radius:10px;color:white;background:#225bea;font:inherit;font-size:15px;font-weight:600;margin:18px 0}button:disabled{background:#a8b6cc;cursor:wait}button:hover:not(:disabled){background:#194dd2}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #8db2ff;outline-offset:3px}input{display:block;width:100%;border:1px solid #d1dbe8;border-radius:10px;background:#fcfdff;color:#17263a;padding:13px;margin:10px 0;font:inherit}#code{font-size:25px;letter-spacing:6px}label{font-size:14px;font-weight:600}a{color:#225bea;font-size:14px}.fine,footer{font-size:12px;color:#7c8899}footer{text-align:center;padding:22px}#qr{display:block;width:236px;height:236px;object-fit:contain;margin:25px auto}#feedback{color:#225bea;overflow-wrap:anywhere}#desktop-actions{border-top:1px solid #eef1f6;padding-top:24px;margin-top:24px}#phone-link{font-size:12px}#code-form{margin-top:26px}#status{color:#17263a;font-size:16px;font-weight:600;text-align:center}#operator-card{display:flex;gap:12px;align-items:center;border-top:1px solid #edf0f5;padding-top:20px;margin-top:22px}.operator-avatar{display:grid;place-items:center;background:#e5f5ed;color:#16855a;border-radius:50%;width:44px;height:44px;font-size:19px}#operator-card strong{display:block;font-size:14px;font-weight:600}#operator-card div span{display:block;margin-top:3px;color:#7c8899;font-size:12px}.secondary{background:#eef2f7;color:#526279;font-size:13px}.secondary:hover:not(:disabled){background:#e2e8f0}

/* ============================================================
   手机端落地页：按「扫码辅助验证」原图 1:1 复刻
   原图 589px 截图 ↔ 393px CSS 视口，换算系数 393/589
   ============================================================ */
.phone-page{background:#f5f6f8}
.phone-page main{max-width:100%;padding:0}
.phone-page section{margin:0;max-width:none}
.phone-page .eyebrow{display:none}
/* 手机端不显示电脑端 header，蓝色卡片直接贴顶，与原图一致 */
.phone-page header{display:none}

/* 蓝色主卡片：#4a8bf1 → #4185e8 → #3575e1，178° 纵向
   原图蓝卡 356px 宽，视口 390 时两侧各留 17px，圆角 14px 清晰可见 */
.phone-page #session{
  width:356px;max-width:calc(100% - 32px);margin:0 auto;padding:36px 24px 20px;
  background:linear-gradient(178deg,#4a8bf1 0%,#4185e8 46%,#3575e1 100%);
  border-radius:14px;display:flex;flex-direction:column;align-items:center;
}
.phone-page h1{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:.5px;color:#fff;text-align:center;margin:0}
.phone-page #session-purpose{font-size:14px;line-height:1.6;color:rgba(255,255,255,.94);text-align:center;max-width:250px;margin:15px auto 0}
.phone-page #role-label{display:none}

/* 卡片改透明，让蓝色渐变透上来；宽度跟随蓝卡内容区 */
.phone-page #session>.card{margin-top:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;width:100%;max-width:308px}

/* 状态文字按原图副标题样式（等待中 / 请扫码 / 已过期等） */
.phone-page #status{font-size:14px;line-height:1.6;font-weight:400;color:rgba(255,255,255,.94);text-align:center;max-width:250px;margin:15px auto 0}
/* 二维码出现后，状态行让位给二维码，避免与副标题重复 */
.phone-page #status.has-qr{display:none}
.phone-page .fine{display:none}

/* 二维码白色卡片：原图白卡 226×220（接近正方），二维码黑区 181 居中
   视觉白边 = padding 14 + 图片静区 8.5 ≈ 22.5，与原图一致 */
.phone-page .qr-card{
  width:226px;margin:22px auto 0;padding:11px 14px;background:#fff;border-radius:12px;
  box-shadow:0 2px 10px rgba(20,60,140,.10);line-height:0;flex:0 0 auto;
}
.phone-page #qr{display:block;width:198px;height:198px;object-fit:contain;margin:0}
.phone-page #qr-note{display:none}

/* 客服信息块：rgba(255,255,255,.18) 半透明
   原图信息块 314 宽（蓝卡 356 − 左右各 21），内容区 308 故左右各外扩 3 */
.phone-page .info{
  margin-top:36px;align-self:stretch;margin-left:-3px;margin-right:-3px;
  padding:16px 0 14px 15px;background:rgba(255,255,255,.18);border-radius:12px;
  display:flex;align-items:flex-start;gap:15px;
}
.phone-page .avatar{flex:0 0 80px;width:80px;height:83px;align-self:flex-start;overflow:hidden;background:transparent;border-radius:8px}
.phone-page .avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:translateZ(0)}
.phone-page .info-main{flex:1;min-width:0;padding-top:0}
.phone-page .row{position:relative;display:flex;align-items:flex-start;gap:8px;height:13px;font-size:13px;line-height:13px;color:#fff}
.phone-page .row+.row{margin-top:15px}
.phone-page .row .name{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phone-page .check{position:absolute;right:15px;top:-2px;width:16px;height:16px;border-radius:50%;background:#fff}
.phone-page .check::after{content:"";position:absolute;left:4.5px;top:2.5px;width:4.5px;height:8px;border:solid #3f7fe9;border-width:0 2px 2px 0;transform:rotate(43deg)}
.phone-page .badge-verified{display:inline-block;margin-right:37px;padding:0 5px;border-radius:3px;background:#2fb87a;color:#fff;font-size:11px;line-height:12px;vertical-align:0;white-space:nowrap}

/* 验证码表单：白底蓝字按钮，融入蓝色主卡片 */
.phone-page #code-form{margin-top:24px;width:100%}
.phone-page #code-form label{color:rgba(255,255,255,.9);font-size:13px;font-weight:500}
.phone-page #code{background:rgba(255,255,255,.94);border:0;color:#17263a;font-size:22px;letter-spacing:4px;text-align:center;border-radius:10px}
.phone-page #code-form button{background:#fff;color:#2f6fd0;border-radius:10px;font-weight:600}
.phone-page #code-form button:hover:not(:disabled){background:#f0f5ff}
.phone-page #feedback{color:#fff;font-size:13px;text-align:center;margin-top:12px}

/* 二维码下方固定入口按钮：提示管理员扫码后在此填短信验证码 */
#code-entry{display:none}
.phone-page #code-entry:not([hidden]){
  display:block;width:100%;max-width:308px;margin:18px auto 0;padding:13px 16px;
  background:#fff;color:#2f6fd0;border:0;border-radius:10px;
  font:600 14px/1.5 system-ui;text-align:center;cursor:pointer;
}
.phone-page #code-entry:active{background:#eef4ff}

/* 更换密钥按钮：原图无此元素，默认隐藏；需更换时访问 /phone?rebind=1 */
.phone-page #rebind{display:none}

/* 底部企业微信 logo：原图 logo 顶距蓝卡底约 30，下方留白后收尾 */
.phone-page .brand{padding:30px 0 30px;display:flex;justify-content:center}
.phone-page .brand img{display:block;width:177px;height:auto}

/* 自动进入失败时的降级表单也沿用主色 */
.phone-page #phone-setup{
  width:356px;max-width:calc(100% - 32px);margin:0 auto;padding:36px 24px 30px;
  background:linear-gradient(178deg,#4a8bf1 0%,#4185e8 46%,#3575e1 100%);border-radius:14px;
}
.phone-page #phone-setup .card{margin-top:20px;padding:24px;background:#fff;border:0;border-radius:14px;box-shadow:0 2px 10px rgba(20,60,140,.10)}
.phone-page #phone-setup h1{font-size:23px}
.phone-page #phone-setup .eyebrow{display:block;color:rgba(255,255,255,.85)}
.phone-page footer{display:none}

@media(max-width:560px){
  main{padding:22px 18px}
  h1{letter-spacing:0}
  /* 手机端蓝卡保持 356 设计宽度，仅在小屏时两侧留白收窄，
     不再覆盖 max-width:100%（那会让蓝卡满屏、圆角与内部排版全乱） */
  .phone-page #session{max-width:calc(100% - 24px)}
  .phone-page #session>.card{max-width:100%}
}
