/* ============================================================
 * 企飞人才网 ｜ 沟通中心 chat.html（会员↔企业 即时沟通）
 * 作用域 .ct- 前缀，不覆盖全局导航
 * ============================================================ */
.ct-shell{display:flex;height:calc(100vh - 132px);min-height:520px;background:#fff;border:1px solid #e6edf4;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(13,60,117,.06)}
.ct-list{width:320px;flex-shrink:0;border-right:1px solid #eef2f7;display:flex;flex-direction:column;background:#fafcfe}
.ct-list .ct-lhead{padding:16px 18px;border-bottom:1px solid #eef2f7;font-size:16px;font-weight:700;color:#16324f;display:flex;justify-content:space-between;align-items:center}
.ct-list .ct-lhead .me{font-size:12px;color:#8a96a3;font-weight:400}
.ct-search{padding:12px 14px;border-bottom:1px solid #eef2f7}
.ct-search input{width:100%;padding:9px 12px;border:1px solid #dfe6ee;border-radius:9px;font-size:13.5px;font-family:inherit;background:#fff;outline:none}
.ct-items{flex:1;overflow:auto}
.ct-item{display:flex;gap:12px;padding:14px 16px;cursor:pointer;border-bottom:1px solid #f1f5f9;position:relative;transition:.12s}
.ct-item:hover{background:#eef5fc}
.ct-item.on{background:#e3f0fb}
.ct-item .av{width:46px;height:46px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;background:linear-gradient(135deg,#1a5c9e,#0fae9e)}
.ct-item .av.ent{background:linear-gradient(135deg,#0d3c75,#1a5c9e)}
.ct-item .av.serv{background:linear-gradient(135deg,#0f7a5f,#16a085)}
.ct-item .bd{flex:1;min-width:0}
.ct-item .nm{font-size:14.5px;font-weight:700;color:#223;display:flex;align-items:center;gap:6px}
.ct-item .nm .badge{font-size:10px;background:#0d3c75;color:#fff;padding:1px 6px;border-radius:6px;font-weight:500}
.ct-item .nm .badge.ent{background:#c79a3a}
.ct-item .pr{font-size:12px;color:#8a96a3;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-item .lt{font-size:12.5px;color:#667;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-item .tm{position:absolute;top:14px;right:14px;font-size:11px;color:#aab4bf}
.ct-item .un{position:absolute;bottom:14px;right:14px;background:#e8632a;color:#fff;font-size:11px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 5px;font-weight:700}

.ct-main{flex:1;display:flex;flex-direction:column;min-width:0}
.ct-mhead{padding:14px 20px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;background:#fff}
.ct-mhead .who{font-size:16px;font-weight:700;color:#16324f}
.ct-mhead .who small{font-size:12px;color:#8a96a3;font-weight:400;margin-left:8px}
.ct-mhead .ctx{font-size:12px;color:#1a5c9e}
.ct-mhead .ctx a{color:#1a5c9e;text-decoration:none}
.ct-msgs{flex:1;overflow:auto;padding:20px;background:#f7fafd;display:flex;flex-direction:column;gap:14px}
.ct-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#aab4bf;gap:10px}
.ct-empty .big{font-size:46px}
.ct-row{display:flex;gap:10px;max-width:74%}
.ct-row.mine{margin-left:auto;flex-direction:row-reverse}
.ct-row .avs{width:38px;height:38px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#1a5c9e,#0fae9e)}
.ct-row.mine .avs{background:linear-gradient(135deg,#0d3c75,#1a5c9e)}
.ct-bubble{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:11px 15px;font-size:14px;line-height:1.65;color:#334;box-shadow:0 3px 12px rgba(13,60,117,.07);word-break:break-word}
.ct-row.mine .ct-bubble{background:linear-gradient(135deg,#144a82,#1a5c9e);color:#fff;border-color:transparent}
.ct-row:not(.mine) .ct-bubble{border-top-left-radius:4px}
.ct-row.mine .ct-bubble{border-top-right-radius:4px}
.ct-time{font-size:10.5px;color:#94a3b8;margin-top:4px;text-align:center}

/* 邀约 / 薪资 卡片（居中） */
.ct-card{width:78%;max-width:420px;margin:0 auto;background:#fff;border:1px solid #d8e8f6;border-radius:14px;overflow:hidden;box-shadow:0 4px 14px rgba(13,60,117,.06)}
.ct-card .hd{background:linear-gradient(135deg,#1a5c9e,#0fae9e);color:#fff;padding:10px 16px;font-size:14px;font-weight:700;display:flex;align-items:center;gap:8px}
.ct-card.invite .hd{background:linear-gradient(135deg,#0d3c75,#1a5c9e)}
.ct-card .bd2{padding:14px 16px}
.ct-card .bd2 .ln{font-size:13.5px;color:#445;margin:4px 0;display:flex;gap:8px}
.ct-card .bd2 .ln b{color:#1a5c9e;font-weight:600;min-width:54px}
.ct-card .bd2 .note{font-size:13px;color:#556;line-height:1.6;margin-top:8px;background:#f6f9fd;padding:8px 10px;border-radius:8px}
.ct-card .acts2{display:flex;gap:10px;padding:0 16px 14px}
.ct-card .acts2 button{flex:1;border:none;border-radius:8px;padding:9px;font-size:13px;cursor:pointer;font-family:inherit;font-weight:600}
.ct-card .acts2 .ok{background:#0fae9e;color:#fff}
.ct-card .acts2 .ok:hover{background:#0c9a8e}
.ct-card .acts2 .no{background:#f0f3f6;color:#667}
.ct-salary-amt{font-size:24px;font-weight:800;color:#e8632a;text-align:center;margin:6px 0}
.ct-salary-amt small{font-size:13px;color:#8a96a3;font-weight:500}

.ct-input{border-top:1px solid #eef2f7;background:#fff;padding:12px 16px}
.ct-quick{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.ct-quick button{border:1px solid #cfe6ff;background:#f1f8ff;color:#1a5c9e;font-size:12.5px;padding:7px 12px;border-radius:18px;cursor:pointer;font-family:inherit}
.ct-quick button:hover{background:#e3f0fb}
.ct-quick button.sal{border-color:#ffe0c2;background:#fff5ec;color:#d9772f}
.ct-quick button.res{border-color:#d6ecd8;background:#f1faf2;color:#2f9e54}
.ct-write{display:flex;gap:10px;align-items:flex-end}
.ct-write textarea{flex:1;resize:none;height:76px;max-height:160px;padding:13px 14px;border:1px solid #dfe6ee;border-radius:10px;font-size:14.5px;font-family:inherit;outline:none;line-height:1.55}
.ct-write textarea:focus{border-color:#1a5c9e}
.ct-send{background:#0fae9e;color:#fff;border:none;border-radius:10px;padding:0 26px;height:76px;font-size:15.5px;font-weight:700;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;min-width:90px;letter-spacing:2px}
.ct-send:hover{background:#0c9a8e}
.ct-send:disabled{background:#b9d8d4;cursor:not-allowed}

/* 弹层（邀约/薪资表单） */
.ct-pop{position:fixed;inset:0;background:rgba(0,0,0,.4);display:none;align-items:center;justify-content:center;z-index:1000}
.ct-pop.show{display:flex}
.ct-pop .box{background:#fff;border-radius:16px;width:420px;max-width:92vw;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.ct-pop .box h3{margin:0 0 16px;font-size:18px;color:#16324f}
.ct-pop .fld{margin-bottom:13px}
.ct-pop label{display:block;font-size:13px;color:#556;margin-bottom:6px}
.ct-pop input,.ct-pop textarea{width:100%;padding:10px 12px;border:1px solid #dfe6ee;border-radius:9px;font-size:14px;font-family:inherit;outline:none;box-sizing:border-box}
.ct-pop .row2{display:flex;gap:10px}
.ct-pop .row2>div{flex:1}
.ct-pop .popacts{display:flex;gap:10px;margin-top:8px}
.ct-pop .popacts button{flex:1;border:none;border-radius:9px;padding:11px;font-size:14px;cursor:pointer;font-family:inherit;font-weight:600}
.ct-pop .popacts .send{background:#0fae9e;color:#fff}
.ct-pop .popacts .cancel{background:#f0f3f6;color:#667}

.ct-login{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#7a8794;text-align:center}
.ct-login .big{font-size:50px}
.ct-login a{background:#1a5c9e;color:#fff;padding:11px 26px;border-radius:10px;text-decoration:none;font-weight:600}

@media (max-width:760px){
  .ct-shell{height:calc(100vh - 120px);flex-direction:column}
  .ct-list{width:100%;height:38%;border-right:none;border-bottom:1px solid #eef2f7}
  .ct-main{height:62%}
  .ct-row{max-width:88%}
}
