/* ============ 通讯录 APP：极简白底 ============ */
.contacts-app{position:absolute;inset:var(--status-h,51px) 0 0;z-index:16;background:#fff;display:flex;flex-direction:column;min-height:0}
.contacts-app[hidden]{display:none}
.ct-screen{flex:1;min-height:0;display:flex;flex-direction:column}

/* 顶部导航：与微信极简风统一 */
.ct-navbar{height:47px;flex:0 0 47px;background:#fff;border-bottom:1px solid #ededed;display:flex;align-items:center;justify-content:space-between;padding:0 16px;position:relative}
.ct-navbar h2{margin:0;font-size:17px;font-weight:600;letter-spacing:.5px;color:#191919}
.ct-back,.ct-add,.ct-save{width:44px;height:44px;display:grid;place-items:center;padding:0;background:none;color:#191919;flex:0 0 44px}
.ct-back svg{width:22px;height:22px;stroke-width:2}
.ct-add svg{width:24px;height:24px;stroke-width:1.8}
.ct-save{font-size:15px;color:#07c160;font-weight:500}

/* 角色列表 */
.ct-list{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;background:#fff;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;gap:12px;align-content:start;padding:14px}
.ct-list::-webkit-scrollbar{display:none}
.ct-empty{grid-column:1/-1;padding:90px 24px;text-align:center;color:#b6b6b6;font-size:13px;line-height:2}
.ct-empty b{display:block;font-size:15px;color:#9a9a9a;font-weight:500;margin-bottom:4px}
/* 角色卡片：两列网格，圆形头像居中 */
.ct-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 8px 14px;background:#fff;border:1px solid #eef0f3;border-radius:14px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.025)}
.ct-card:active{background:#f7f9fc}
.ct-card-ava{width:62px;height:62px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#eef2f7;border:1px solid #eceff3;margin-bottom:9px}
.ct-card-ava img{width:100%;height:100%;object-fit:cover;display:block}
.ct-card-ava span{font-size:25px;color:#8aa0bd}
.ct-card-name{font-size:14px;color:#191919;font-weight:500;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-card-region{font-size:10px;color:#6b94d1;background:#edf4ff;border-radius:8px;padding:2px 7px;margin-top:6px}
.ct-card-sign{font-size:11px;color:#8a8a8a;margin-top:6px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-card-wxid{font-size:10px;color:#b6b6b6;margin-top:4px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 详情 / 编辑覆盖层 */
.ct-detail{position:absolute;inset:0;z-index:2;background:#fff;display:flex;flex-direction:column;min-height:0}
.ct-detail[hidden]{display:none}
.ct-form{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding:22px 20px 40px}
.ct-form::-webkit-scrollbar{display:none}

/* 居中圆形头像 */
.ct-avatar{display:block;width:88px;height:88px;margin:6px auto 0;border-radius:50%;overflow:hidden;background:#eef2f7;border:1px solid #e6ebf1;position:relative;cursor:pointer;padding:0}
.ct-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ct-ava-ph{position:absolute;inset:0;display:grid;place-items:center;font-size:34px;color:#9db0c9;font-weight:300}
.ct-ava-tip{text-align:center;color:#b0b0b0;font-size:11px;margin:10px 0 24px}

/* 表单字段：标签 + 下划线输入 */
.ct-field{display:block;margin:0 0 20px}
.ct-field>span{display:block;font-size:12px;color:#8a8a8a;margin-bottom:7px}
.ct-field>span i{color:#f06a6a;font-style:normal}
.ct-field input,.ct-field textarea{display:block;width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #e4e4e4;border-radius:0;background:transparent;padding:8px 2px;font-size:15px;color:#191919;outline:none;resize:none;font-family:inherit}
.ct-field input:focus,.ct-field textarea:focus{border-bottom-color:#07c160}
.ct-field input::placeholder,.ct-field textarea::placeholder{color:#c4c4c4}
.ct-field textarea{line-height:1.6}

/* 微信号行：输入 + 换一个 + 复制 */
.ct-wxid-row{display:flex;align-items:center;gap:8px}
.ct-wxid-row input{flex:1;min-width:0}
.ct-mini{flex:0 0 auto;padding:7px 10px;border:1px solid #dedede;background:#fff;color:#4a4a4a;font-size:12px;border-radius:6px;cursor:pointer}
.ct-mini:active{background:#f2f2f2}
#ctCopyWxid{border-color:#07c160;color:#07c160}

/* 删除 */
.ct-delete{display:block;width:100%;margin-top:30px;padding:12px;border:0;background:#fff;color:#e05a5a;font-size:14px;border-radius:8px;cursor:pointer}
.ct-delete:active{background:#fff2f2}
.ct-delete[hidden]{display:none}
