
  :root{
    --bg:#f3f4f8;
    --panel:#fff;
    --line:#e8eaf0;
    --ink:#1f2329;
    --muted:#8b93a7;
    --primary:#646cff;
    --primary-soft:#eef0ff;
    --sidebar-w:220px;
    --radius:10px;
    --shadow:0 8px 28px rgba(31,35,41,.12);
    font-family:"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  }
  *{box-sizing:border-box}
  html,body{margin:0;height:100%;background:var(--bg);color:var(--ink)}
  button,input,select,textarea{font:inherit}
  a{color:inherit;text-decoration:none}

  .admin{display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);min-height:100vh}
  .sidebar{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line)}
  .brand{display:flex;align-items:center;gap:10px;height:56px;padding:0 18px;border-bottom:1px solid var(--line);font-weight:700}
  .brand-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#fff;background:linear-gradient(135deg,#7c83ff,#646cff);font-size:14px;font-weight:800}
  .menu{padding:12px 10px;display:grid;gap:4px}
  .menu-item,.menu-sub,.menu-group-label{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#4e5969;cursor:pointer;text-align:left}
  .menu-item:hover,.menu-sub:hover,.menu-group-label:hover{background:#f7f8fc}
  .menu-item.active,.menu-sub.active{color:var(--primary);background:var(--primary-soft);font-weight:600}
  .menu-ico,.menu-item > svg{width:18px;height:18px;flex-shrink:0;display:block}
  .menu-group-label{justify-content:space-between}
  .menu-subs{display:grid;gap:2px;padding:0 0 6px 8px}
  .menu-sub{padding-left:28px;font-size:13px}
  .chev{width:10px;height:10px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);opacity:.55}
  .menu-group.open .chev{transform:rotate(-135deg)}

  .main{display:flex;flex-direction:column;min-width:0;min-height:100vh}
  .topbar{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 18px;background:#fff;border-bottom:1px solid var(--line)}
  .crumbs{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;flex-wrap:wrap}
  .crumbs b{color:var(--ink);font-weight:600}
  .crumbs a{color:var(--primary)}
  .top-actions{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}
  .back-link{color:var(--primary);font-weight:600}
  .avatar{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:999px}
  .avatar i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--primary-soft);color:var(--primary);font-style:normal;font-weight:700}

  .content{padding:16px;display:grid;gap:16px}
  .card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
  .card-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
  .card-hd h2{margin:0;font-size:16px;font-weight:650}
  .card-hd .sub{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:400}
  .card-bd{padding:16px}

  .search-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
  .field{display:grid;gap:6px}
  .field label{color:#646a77;font-size:12px}
  .field input,.field select,.field textarea{
    width:100%;min-height:34px;padding:6px 10px;border:1px solid #d9dde7;border-radius:6px;background:#fff;color:var(--ink);outline:none
  }
  .field textarea{min-height:96px;resize:vertical;line-height:1.5}
  .field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15)}
  .search-actions{display:flex;align-items:end;gap:8px;grid-column:1/-1;justify-content:flex-end;padding-top:4px}

  .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 14px;border:1px solid transparent;border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;font-size:13px}
  .btn-primary{background:var(--primary);color:#fff}
  .btn-ghost{border-color:#d9dde7;background:#fff}
  .btn-sm{min-height:28px;padding:0 10px;font-size:12px}
  .btn-op{
    min-height:28px;padding:0 10px;border:1px solid #c9d4ff;border-radius:4px;
    background:#fff;color:var(--primary);font-size:12px;cursor:pointer;white-space:nowrap
  }
  .btn-op:hover{background:var(--primary-soft)}
  .btn-op.is-key{border-color:var(--primary);background:var(--primary-soft);font-weight:650}
  .btn-link{border:0;background:transparent;color:var(--primary);padding:0 4px;min-height:auto;cursor:pointer}

  .table-wrap{overflow:auto}
  table{width:100%;border-collapse:collapse;font-size:13px}
  th,td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}
  th{color:#646a77;font-weight:600;background:#fafbff;white-space:nowrap}
  tr:hover td{background:#fafbff}
  .face{
    width:48px;height:48px;border-radius:50%;margin:0 auto;
    display:grid;place-items:center;color:#fff;font-weight:700;font-size:16px;
    background:linear-gradient(135deg,#7c83ff,#646cff);
  }
  .tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
  .tag-ok{color:#1f9a5a;background:#e5f8ee}
  .tag-ban{color:#c4564a;background:#fdeceb}
  .tag-mute{color:#b45309;background:#fff7ed}
  .tag-yes{color:#0e6efd;background:#e8f1ff}
  .tag-no{color:#86909c;background:#f2f3f5}
  .ops{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}

  .drawer-mask{position:fixed;inset:0;background:rgba(15,23,42,.35);opacity:0;pointer-events:none;transition:.2s;z-index:40}
  .drawer-mask.open{opacity:1;pointer-events:auto}
  .drawer,.modal{
    position:fixed;z-index:50;background:#fff;box-shadow:var(--shadow);
  }
  .drawer{
    top:0;right:0;display:flex;flex-direction:column;
    width:min(520px,100vw);height:100vh;
    transform:translateX(100%);transition:transform .22s ease
  }
  .drawer.open{transform:translateX(0)}
  .modal{
    top:50%;left:50%;width:min(560px,92vw);max-height:86vh;
    display:none;flex-direction:column;border-radius:12px;
    transform:translate(-50%,-50%)
  }
  .modal.open{display:flex}
  .drawer-hd,.modal-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 18px;border-bottom:1px solid var(--line)}
  .drawer-hd h3,.modal-hd h3{margin:0;font-size:16px}
  .drawer-hd .sub,.modal-hd .sub{margin:2px 0 0;color:var(--muted);font-size:12px;font-weight:400}
  .drawer-bd,.modal-bd{flex:1;min-height:0;overflow:auto;padding:14px 16px 24px;display:grid;gap:12px;align-content:start}
  .drawer-ft,.modal-ft{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fff}
  .dyn-item{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbff}
  .dyn-item h4{margin:0 0 6px;font-size:14px}
  .dyn-item p{margin:0;color:#4e5969;font-size:13px;line-height:1.55}
  .dyn-meta{margin-top:8px;color:var(--muted);font-size:12px}
  .type-picks{display:flex;gap:10px}
  .type-pick{
    flex:1;min-height:72px;display:grid;place-items:center;gap:4px;
    border:1px dashed #c9d4ff;border-radius:10px;background:#f7f8ff;cursor:pointer;color:#4e5969;font-size:13px
  }
  .type-pick.on{border-style:solid;border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:650}
  .media-box{
    min-height:88px;display:grid;place-items:center;border:1px dashed #d9dde7;border-radius:8px;
    background:#fafbff;color:var(--muted);font-size:13px;cursor:pointer
  }
  .switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}
  .switch{position:relative;width:40px;height:22px;border-radius:999px;background:#d9dde7;cursor:pointer;border:0}
  .switch.on{background:var(--primary)}
  .switch::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.15s}
  .switch.on::after{left:20px}

  .toast{position:fixed;left:50%;bottom:36px;z-index:80;padding:10px 14px;border-radius:8px;color:#fff;background:rgba(21,33,52,.9);font-size:13px;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:.18s}
  .toast.show{transform:translate(-50%,0);opacity:1}

  @media(max-width:1100px){
    .search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin{grid-template-columns:72px minmax(0,1fr)}
    .brand span,.menu-item span,.menu-group-label span,.menu-sub{display:none}
  }


/* recovered patch */
.home-hero{padding:28px 24px;background:linear-gradient(135deg,#f7f8ff,#fff);border-radius:var(--radius)}
.home-hero h1{margin:0 0 8px;font-size:22px}
.home-hero p{margin:0;color:var(--muted)}
.quick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.quick{display:grid;gap:6px;padding:16px;border-radius:var(--radius);background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.quick b{font-size:14px}
.quick span{color:var(--muted);font-size:12px}
.footer{margin-top:auto;padding:14px;color:var(--muted);font-size:12px;text-align:center}

/* 联系人列表（对照 /cpmanage/contactlist） */
.card-contact .card-hd-contact{
  min-height:56px;padding:0 24px;margin:0 0 -1px;
  border-bottom:1px solid rgba(5,5,5,.06);box-sizing:border-box;
}
.card-contact .card-hd-contact h2{font-size:16px;font-weight:600;line-height:1.57}
.card-bd-contact{padding:12px 16px !important;overflow:auto}
.contact-table{
  width:100% !important;min-width:100% !important;table-layout:fixed !important;
}
.contact-table th,.contact-table td{
  text-align:center;padding:8px !important;font-size:14px;
  overflow:hidden;text-overflow:ellipsis;
}
.contact-table th{font-weight:600;background:#fafafa;color:rgba(0,0,0,.88)}
.contact-table th.sticky-ops,.contact-table td.sticky-ops{
  width:150px;min-width:150px;max-width:150px;
}
.contact-table td.ops .ops-ghost-row{gap:8px;font-size:14px}
.contact-table td.ops .btn-sm{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;height:28px;padding:0 7px;border-radius:4px;font-size:14px;line-height:22px;
}
.pager-contact{justify-content:flex-end;padding:12px 0 0}
.table-placeholder td{
  padding:32px 8px !important;border-bottom:0 !important;background:#fff !important;
}
.ant-empty{margin:0 auto;text-align:center;color:rgba(0,0,0,.25);font-size:14px;line-height:1.57}
.ant-empty-image{height:40px;margin-bottom:8px;display:flex;justify-content:center}
.ant-empty-description{color:rgba(0,0,0,.25)}
.contact-form .req-label{display:inline-flex;align-items:center}
.contact-form .input-number-wrap{position:relative}
.contact-form .input-number-wrap input{
  width:100%;box-sizing:border-box;min-height:32px;padding:4px 11px;
  border:1px solid #d9d9d9;border-radius:6px;font-size:14px;outline:none;
}
.contact-form .input-number-wrap input:focus{
  border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15);
}
.contact-form .field input{
  width:100%;box-sizing:border-box;
}

/* 员工列表（对照 /cpmanage/memberList） */
.card-employee .card-hd-employee{
  min-height:56px;padding:0 24px;margin:0 0 -1px;
  border-bottom:1px solid rgba(5,5,5,.06);box-sizing:border-box;
}
.card-employee .card-hd-employee h2{font-size:16px;font-weight:600;line-height:1.57}
.card-bd-employee{padding:12px 16px !important;overflow:auto}
.employee-table{
  width:100% !important;min-width:1200px !important;table-layout:fixed !important;
}
.employee-table th,.employee-table td{
  text-align:center;padding:8px !important;font-size:14px;
  overflow:hidden;text-overflow:ellipsis;
}
.employee-table th{font-weight:600;background:#fafafa;color:rgba(0,0,0,.88)}
.employee-table th[data-col="0"],.employee-table td[data-col="0"]{width:64px;min-width:64px}
.emp-avatar{
  width:60px !important;height:60px !important;border-radius:0;overflow:hidden;vertical-align:middle;
}
.emp-avatar-img{display:block;width:60px;height:60px;object-fit:cover;background:#eef0f5}
.emp-avatar .preview-mask{font-size:12px}
.pager-employee{justify-content:flex-end;padding:12px 0 0;gap:8px;align-items:center}

/* 联系人列表（对照 /cpmanage/contactlist） */
.card-contact .card-hd-contact{
  min-height:56px;padding:0 24px;margin:0 0 -1px;
  border-bottom:1px solid rgba(5,5,5,.06);box-sizing:border-box;
}
.card-contact .card-hd-contact h2{font-size:16px;font-weight:600;line-height:1.57}
.card-bd-contact{padding:12px 16px !important;overflow:auto}
.contact-table{
  width:100% !important;min-width:100% !important;table-layout:fixed !important;
}
.contact-table th,.contact-table td{
  text-align:center;padding:8px !important;font-size:14px;
  overflow:hidden;text-overflow:ellipsis;
}
.contact-table th{font-weight:600;background:#fafafa;color:rgba(0,0,0,.88)}
.contact-table th.sticky-ops,.contact-table td.sticky-ops{
  width:150px;min-width:150px;max-width:150px;
}
.contact-table td.ops .ops-ghost-row{gap:8px;font-size:14px}
.contact-table td.ops .btn-sm{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;height:28px;padding:0 7px;border-radius:4px;font-size:14px;line-height:22px;
}
.pager-contact{justify-content:flex-end;padding:12px 0 0}
.table-placeholder td{
  padding:32px 8px !important;border-bottom:0 !important;background:#fff !important;
}
.ant-empty{margin:0 auto;text-align:center;color:rgba(0,0,0,.25);font-size:14px;line-height:1.57}
.ant-empty-image{height:40px;margin-bottom:8px;display:flex;justify-content:center}
.ant-empty-description{color:rgba(0,0,0,.25)}
.contact-form .req-label{display:inline-flex;align-items:center}
.contact-form .input-number-wrap{position:relative}
.contact-form .input-number-wrap input{
  width:100%;box-sizing:border-box;min-height:32px;padding:4px 11px;
  border:1px solid #d9d9d9;border-radius:6px;font-size:14px;outline:none;
}
.contact-form .input-number-wrap input:focus{
  border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15);
}
.contact-form .field input{
  width:100%;box-sizing:border-box;
}

/* 员工列表（对照 /cpmanage/memberList） */
.card-employee .card-hd-employee{
  min-height:56px;padding:0 24px;margin:0 0 -1px;
  border-bottom:1px solid rgba(5,5,5,.06);box-sizing:border-box;
}
.card-employee .card-hd-employee h2{font-size:16px;font-weight:600;line-height:1.57}
.card-bd-employee{padding:12px 16px !important;overflow:auto}
.employee-table{
  width:100% !important;min-width:1200px !important;table-layout:fixed !important;
}
.employee-table th,.employee-table td{
  text-align:center;padding:8px !important;font-size:14px;
  overflow:hidden;text-overflow:ellipsis;
}
.employee-table th{font-weight:600;background:#fafafa;color:rgba(0,0,0,.88)}
.employee-table th[data-col="0"],.employee-table td[data-col="0"]{width:64px;min-width:64px}
.emp-avatar{
  width:60px !important;height:60px !important;border-radius:0;overflow:hidden;vertical-align:middle;
}
.emp-avatar-img{display:block;width:60px;height:60px;object-fit:cover;background:#eef0f5}
.emp-avatar .preview-mask{font-size:12px}
.pager-employee{justify-content:flex-end;padding:12px 0 0;gap:8px;align-items:center}

/* recovered patch */
.mgr-title{margin:0 0 8px;font-size:14px;font-weight:500;line-height:1.57;color:rgba(0,0,0,.88)}
.mgr-cur{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 8px;font-size:12px;color:#999;line-height:1.5;
}
/* 对照线上 ant-select show-search · 设置管家 */
.mgr-select{position:relative;width:100%}
.mgr-select-selector{
  position:relative;display:flex;align-items:center;min-height:32px;padding:0 30px 0 11px;
  border:1px solid #d9d9d9;border-radius:6px;background:#fff;cursor:text;box-sizing:border-box;
}
.mgr-select.open .mgr-select-selector,.mgr-select-selector:focus-within{
  border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15);
}
.mgr-select-search{
  position:absolute;inset:0 30px 0 11px;width:auto;min-width:0;border:0;outline:none;
  background:transparent;font-size:14px;line-height:30px;padding:0;z-index:2;
}
.mgr-select-item,.mgr-select-placeholder{
  position:relative;z-index:1;font-size:14px;line-height:30px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;
}
.mgr-select-item{color:rgba(0,0,0,.88)}
.mgr-select-placeholder{color:rgba(0,0,0,.25)}
.mgr-select-item[hidden],.mgr-select-placeholder[hidden]{display:none !important}
.mgr-select-arrow{
  position:absolute;right:11px;top:50%;transform:translateY(-50%);
  color:rgba(0,0,0,.25);font-size:12px;line-height:1;pointer-events:none;
}
.mgr-select-dropdown{
  max-height:256px;overflow:auto;padding:4px 0;background:#fff;border-radius:8px;
  box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);
  box-sizing:border-box;
}
/* portal 到 body，避免被 .modal-bd overflow 裁切（对照 ant-select dropdown） */
.mgr-select-dropdown-portal{position:fixed;z-index:1200}
.mgr-select-dropdown[hidden]{display:none !important}
.mgr-select-option{
  display:block;width:100%;border:0;background:transparent;text-align:left;
  padding:5px 12px;min-height:32px;font-size:14px;line-height:22px;color:rgba(0,0,0,.88);cursor:pointer;
}
.mgr-select-option:hover,.mgr-select-option.active{background:#f5f5f5}
.mgr-select-option.active{font-weight:600;background:var(--primary-soft);color:var(--primary)}
.mgr-select-empty{padding:12px;text-align:center;color:rgba(0,0,0,.25);font-size:14px}
.btn-danger-outline{
  background:transparent;color:#f5222d;border-color:#f5222d;box-shadow:none;
}
.btn-danger-outline:hover{background:#fff1f0;color:#ff4d4f;border-color:#ff4d4f}

/* recovered patch */
.more-menu{display:grid;gap:0;min-width:128px;padding:4px;background:#fff;border:1px solid #e8eaf0;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12)}
body > .more-menu{z-index:1000}
.more-item{
  border:0;background:transparent;text-align:left;padding:5px 12px;border-radius:4px;
  cursor:pointer;font-size:14px;color:rgba(0,0,0,.88);line-height:22px;
}
.more-item:hover{background:rgba(0,0,0,.04)}
.more-divider{height:1px;margin:4px 0;background:#f0f0f0}
.upload-box{display:flex;align-items:flex-start;gap:12px}
.upload-thumb{
  position:relative;width:104px;height:104px;border:1px dashed #d9d9d9;border-radius:8px;
  overflow:hidden;background:#fafafa;
}
.upload-thumb .avatar-ph{width:100%;height:100%;border-radius:0}
.upload-thumb .upload-actions{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;
  background:rgba(0,0,0,.45);opacity:0;transition:opacity .15s;color:#fff;
}
.upload-thumb:hover .upload-actions{opacity:1}
.upload-thumb .upload-actions button{
  border:0;background:transparent;color:#fff;cursor:pointer;padding:4px;font-size:14px;
}
.req{color:var(--danger);margin-right:4px}

/* recovered patch */
.ops{display:flex;flex-wrap:nowrap;gap:10px;align-items:center;white-space:nowrap}
.ops .btn-primary.btn-sm{margin:0}
.more-trigger{display:inline-flex;align-items:center;gap:4px;border-color:#d9d9d9;color:rgba(0,0,0,.88);background:#fff}
.more-trigger .caret{font-size:10px;opacity:.7;transform:scaleY(.9)}

/* recovered patch */
.avatar-preview{
  position:relative;display:inline-block;width:40px;height:40px;padding:0;border:0;border-radius:6px;
  overflow:hidden;cursor:pointer;background:transparent;vertical-align:middle;
}
.avatar-preview .avatar-ph{width:40px;height:40px;display:block}
.avatar-ph.tone-a{background:linear-gradient(135deg,#7c83ff,#646cff)}
.avatar-ph.tone-b{background:linear-gradient(135deg,#69b1ff,#1677ff)}
.avatar-ph.tone-c{background:linear-gradient(135deg,#95de64,#52c41a)}
.avatar-ph.tone-d{background:linear-gradient(135deg,#ffc069,#fa8c16)}
.preview-mask{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:4px;
  background:rgba(0,0,0,.45);color:#fff;font-size:12px;opacity:0;transition:opacity .15s;
}
.avatar-preview:hover .preview-mask{opacity:1}
.preview-link{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:13px;padding:0}
.eye-ico{display:inline-block;width:12px;height:12px;border:1.5px solid currentColor;border-radius:50%;position:relative}
.eye-ico::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:currentColor}

/* recovered patch */
:root{
  /* 对照线上 master.cqwqjl.com：主色 #646cff，内容区 #f7fafc */
  --bg:#f7fafc;--panel:#fff;--line:#e8eaf0;--ink:rgba(0,0,0,.88);--muted:#8b93a7;
  --primary:#646cff;--primary-soft:#eef0ff;--green:#1f9a5a;--green-soft:#e5f8ee;
  --danger:#f53f3f;--sidebar-w:220px;--radius:8px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","PingFang SC","Microsoft YaHei",sans-serif;
}

/* recovered patch */
.col-settings-wrap,.more-wrap{position:relative;display:inline-flex}
.col-settings-panel,.more-menu{
  position:absolute;top:calc(100% + 6px);right:0;z-index:40;min-width:180px;padding:8px;
  background:#fff;border:1px solid #e8eaf0;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);
}
.col-settings-panel[hidden],.more-menu[hidden],.drawer[hidden],.drawer-mask[hidden],.toast[hidden]{display:none !important}
.col-settings-panel.ant-like{display:grid;gap:2px;max-height:360px;overflow:auto;min-width:200px;padding:10px 8px}

/* recovered patch */
.card{background:var(--panel);border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,.03);min-width:0;max-width:100%}
.card-hd{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}
.card-hd-tools-only{justify-content:flex-end;padding-bottom:8px}
.card-hd h2{margin:0;font-size:16px;font-weight:650}
.card-bd{padding:0 16px 16px;min-width:0;max-width:100%;overflow:hidden}
/* 横向滚动只发生在表格容器内，不撑开整页 */
.table-wrap{
  width:100%;max-width:100%;min-width:0;
  overflow-x:auto;overflow-y:hidden;cursor:grab;border:1px solid #f0f0f0;border-radius:6px;
  -webkit-overflow-scrolling:touch;
}
.table-wrap.dragging{cursor:grabbing;user-select:none}
.table-wrap table{width:max-content;min-width:max(100%,1800px);border-collapse:collapse;font-size:14px}
.user-table{min-width:2200px !important}

/* recovered patch */
/* align-content:start — 避免 flex:1 撑高后 grid 把「搜索」卡行拉高留白（对照线上 collapse 高度） */
.content{padding:12px 16px 16px;display:grid;gap:12px;flex:1;min-width:0;max-width:100%;overflow-x:hidden;align-content:start;align-items:stretch}

/* recovered patch */
.main{display:flex;flex-direction:column;min-width:0;max-width:100%;min-height:100vh;overflow-x:hidden;background:var(--bg)}

/* recovered patch */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;width:100%;overflow-x:hidden;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}

.admin{display:grid;grid-template-columns:var(--sidebar-w) minmax(0,1fr);min-height:100vh;width:100%;max-width:100%;overflow-x:hidden}

/* recovered patch */
.toast{
  position:fixed;left:50%;bottom:40px;z-index:80;transform:translate(-50%,12px);
  padding:10px 16px;border-radius:8px;background:rgba(21,33,52,.92);color:#fff;font-size:13px;
  opacity:0;pointer-events:none;transition:.18s;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---- 更多：弹窗 / 宽抽屉 ---- */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;opacity:0;transition:.2s;pointer-events:none}
.modal-mask.open{opacity:1;pointer-events:auto}
.modal{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-46%);z-index:100;
  width:min(520px,92vw);max-height:min(86vh,720px);display:flex;flex-direction:column;
  background:#fff;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.18);
  opacity:0;pointer-events:none;transition:.2s;
}
.modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%)}
.modal.modal-sm{width:min(420px,92vw)}
.modal.modal-lg{width:min(720px,94vw)}
.modal.modal-xl{width:min(840px,96vw);max-height:min(90vh,820px)}
.modal[hidden],.modal-mask[hidden],.drawer.drawer-wide[hidden]{display:none !important}
.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f0f0f0}
.modal-hd h3{margin:0;font-size:16px;font-weight:600}
.modal-bd{flex:1;overflow:auto;padding:20px}
.modal-ft{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #f0f0f0}
.drawer.drawer-wide{width:min(560px,100vw)}
.drawer.drawer-xl{width:min(720px,100vw)}

.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.choice-card{
  display:grid;gap:8px;place-items:center;padding:28px 16px;border:1px solid #e8eaf0;
  border-radius:10px;background:#fafbff;cursor:pointer;text-align:center;transition:.15s;
}
.choice-card:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}
.choice-card b{font-size:15px}
.choice-card span{font-size:12px;color:var(--muted)}
.choice-ico{font-size:28px;line-height:1}

.seg-tabs{display:flex;gap:0;border-bottom:1px solid #f0f0f0;margin:0 0 16px}
.seg-tab{
  position:relative;padding:10px 16px;border:0;background:transparent;cursor:pointer;
  color:rgba(0,0,0,.65);font-size:14px;
}
.seg-tab.active{color:var(--primary);font-weight:600}
.seg-tab.active::after{
  content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:2px;background:var(--primary);border-radius:1px;
}

.feed-list{display:grid;gap:12px}
.feed-card{padding:14px;border:1px solid #f0f0f0;border-radius:8px;background:#fff}
.feed-card .feed-meta{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:var(--muted);font-size:12px}
.feed-card .feed-tag{display:inline-flex;height:20px;padding:0 8px;border-radius:4px;background:#eef0ff;color:var(--primary);font-size:12px}
.feed-card .feed-title{margin:0 0 6px;font-size:14px;font-weight:600}
.feed-card .feed-body{margin:0;color:rgba(0,0,0,.65);font-size:13px;line-height:1.5}
.feed-empty{padding:40px 0;text-align:center;color:var(--muted);font-size:13px}

/* 对照线上「代发需求」灰底卡片表单 */
.demand-sheet{
  background:#f5f6f8;margin:0 -24px -20px;padding:12px 14px 26px;overflow:hidden;
}
.demand-card{
  background:#fff;border-radius:12px;margin-bottom:11px;padding:15px 15px 16px;
}
.demand-hd{
  display:flex;align-items:center;font-size:14px;font-weight:600;margin-bottom:10px;color:#1c2430;
}
.demand-hd-sub{margin:13px 0 10px}
.demand-req{color:#e5533d;font-weight:600;margin-left:.35em}
.demand-opt{color:#a3abb8;font-size:11.5px;font-weight:400;margin-left:.4em}
.demand-count{color:#a3abb8;font-size:11.5px;font-weight:400;margin-left:auto}
.demand-chips{display:flex;flex-wrap:wrap;gap:8px}
.demand-chip{
  border:1px solid transparent;border-radius:20px;background:#f3f5f9;color:#5a6472;
  cursor:pointer;font-size:13.5px;font-weight:400;padding:8px 16px;font-family:inherit;
}
.demand-chip.active{
  background:#eaf1ff;border-color:#bcd2fb;color:#2f6ae0;font-weight:600;
}
.demand-input{
  display:block;width:100%;box-sizing:border-box;border:1px solid #e6eaf1;border-radius:10px;
  background:#fff;color:#1c2430;font-family:inherit;font-size:14.5px;line-height:1.7;
  outline:none;padding:11px 13px;resize:none;
}
.demand-input[hidden],.demand-company[hidden]{display:none !important}
.demand-input:focus{border-color:#2f6ae0;box-shadow:0 0 0 2px rgba(47,106,224,.12)}
.demand-input-lg{min-height:96px}
.demand-tip{margin:8px 0 0;color:#a3abb8;font-size:11.5px;line-height:1.65}
.demand-upload{
  display:block;width:100%;box-sizing:border-box;border:1.5px dashed #d3dae5;border-radius:10px;
  background:#fafbfd;color:#8b94a3;cursor:pointer;font-size:13.5px;padding:18px;text-align:center;font-family:inherit;
}
.demand-upload b{color:#2f6ae0;font-weight:600}
.demand-upload:hover{border-color:#2f6ae0}
.demand-company{
  display:flex;align-items:center;gap:4px;font-size:14.5px;font-weight:600;color:#1c2430;
}
.demand-company svg{width:16px;height:16px;flex-shrink:0}
.demand-link{
  display:inline-block;margin-top:8px;border:0;background:transparent;padding:0;cursor:pointer;
  color:#2f6ae0;font-size:11.5px;line-height:1.65;font-family:inherit;
}
.demand-submit{
  display:block;width:100%;margin-top:4px;border:0;border-radius:12px;padding:14px;
  background:#2f6ae0;color:#fff;cursor:pointer;font-family:inherit;font-size:16px;font-weight:600;
}
.demand-submit:hover{filter:brightness(1.05)}

.coop-chips{display:flex;flex-wrap:wrap;gap:8px}
.coop-chip{
  height:32px;padding:0 14px;border:1px solid #d9d9d9;border-radius:16px;background:#fff;
  cursor:pointer;font-size:13px;
}
.coop-chip.active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.form-stack{display:grid;gap:24px}
.form-stack .field{grid-template-columns:1fr;gap:8px}
.form-stack .field label{text-align:left;font-size:14px;color:rgba(0,0,0,.88)}
.form-stack .field label::after{content:none}
.form-stack .field input,.form-stack .field select{
  min-height:32px;padding:4px 11px;border-radius:6px;border:1px solid #d9d9d9;font-size:14px
}
.form-stack textarea{
  width:100%;min-height:96px;padding:8px 11px;border:1px solid #d9d9d9;border-radius:6px;
  resize:vertical;outline:none;font:inherit;
}
.form-stack textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15)}
.char-count{text-align:right;color:var(--muted);font-size:12px}
.hint{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.upload-dashed{
  display:grid;place-items:center;gap:6px;min-height:88px;border:1px dashed #d9d9d9;
  border-radius:8px;background:#fafafa;color:var(--muted);font-size:13px;cursor:pointer;
}
.upload-dashed:hover{border-color:var(--primary);color:var(--primary)}
.field-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.linkish{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:13px;padding:0}

/* ---- 更多：弹窗 / 宽抽屉 ---- */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:90;opacity:0;transition:.2s;pointer-events:none}
.modal-mask.open{opacity:1;pointer-events:auto}
.modal{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-46%);z-index:100;
  width:min(520px,92vw);max-height:min(86vh,720px);display:flex;flex-direction:column;
  background:#fff;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.18);
  opacity:0;pointer-events:none;transition:.2s;
}
.modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%)}
.modal.modal-sm{width:min(420px,92vw)}
.modal.modal-lg{width:min(720px,94vw)}
.modal.modal-xl{width:min(840px,96vw);max-height:min(90vh,820px)}
.modal[hidden],.modal-mask[hidden],.drawer.drawer-wide[hidden]{display:none !important}
.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f0f0f0}
.modal-hd h3{margin:0;font-size:16px;font-weight:600}
.modal-bd{flex:1;overflow:auto;padding:20px}
.modal-ft{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #f0f0f0}
.drawer.drawer-wide{width:min(560px,100vw)}
.drawer.drawer-xl{width:min(720px,100vw)}

.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.choice-card{
  display:grid;gap:8px;place-items:center;padding:28px 16px;border:1px solid #e8eaf0;
  border-radius:10px;background:#fafbff;cursor:pointer;text-align:center;transition:.15s;
}
.choice-card:hover{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}
.choice-card b{font-size:15px}
.choice-card span{font-size:12px;color:var(--muted)}
.choice-ico{font-size:28px;line-height:1}

.seg-tabs{display:flex;gap:0;border-bottom:1px solid #f0f0f0;margin:0 0 16px}
.seg-tab{
  position:relative;padding:10px 16px;border:0;background:transparent;cursor:pointer;
  color:rgba(0,0,0,.65);font-size:14px;
}
.seg-tab.active{color:var(--primary);font-weight:600}
.seg-tab.active::after{
  content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:2px;background:var(--primary);border-radius:1px;
}

.feed-list{display:grid;gap:12px}
.feed-card{padding:14px;border:1px solid #f0f0f0;border-radius:8px;background:#fff}
.feed-card .feed-meta{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:var(--muted);font-size:12px}
.feed-card .feed-tag{display:inline-flex;height:20px;padding:0 8px;border-radius:4px;background:#eef0ff;color:var(--primary);font-size:12px}
.feed-card .feed-title{margin:0 0 6px;font-size:14px;font-weight:600}
.feed-card .feed-body{margin:0;color:rgba(0,0,0,.65);font-size:13px;line-height:1.5}
.feed-empty{padding:40px 0;text-align:center;color:var(--muted);font-size:13px}

/* 对照线上「代发需求」灰底卡片表单 */
.demand-sheet{
  background:#f5f6f8;margin:0 -24px -20px;padding:12px 14px 26px;overflow:hidden;
}
.demand-card{
  background:#fff;border-radius:12px;margin-bottom:11px;padding:15px 15px 16px;
}
.demand-hd{
  display:flex;align-items:center;font-size:14px;font-weight:600;margin-bottom:10px;color:#1c2430;
}
.demand-hd-sub{margin:13px 0 10px}
.demand-req{color:#e5533d;font-weight:600;margin-left:.35em}
.demand-opt{color:#a3abb8;font-size:11.5px;font-weight:400;margin-left:.4em}
.demand-count{color:#a3abb8;font-size:11.5px;font-weight:400;margin-left:auto}
.demand-chips{display:flex;flex-wrap:wrap;gap:8px}
.demand-chip{
  border:1px solid transparent;border-radius:20px;background:#f3f5f9;color:#5a6472;
  cursor:pointer;font-size:13.5px;font-weight:400;padding:8px 16px;font-family:inherit;
}
.demand-chip.active{
  background:#eaf1ff;border-color:#bcd2fb;color:#2f6ae0;font-weight:600;
}
.demand-input{
  display:block;width:100%;box-sizing:border-box;border:1px solid #e6eaf1;border-radius:10px;
  background:#fff;color:#1c2430;font-family:inherit;font-size:14.5px;line-height:1.7;
  outline:none;padding:11px 13px;resize:none;
}
.demand-input[hidden],.demand-company[hidden]{display:none !important}
.demand-input:focus{border-color:#2f6ae0;box-shadow:0 0 0 2px rgba(47,106,224,.12)}
.demand-input-lg{min-height:96px}
.demand-tip{margin:8px 0 0;color:#a3abb8;font-size:11.5px;line-height:1.65}
.demand-upload{
  display:block;width:100%;box-sizing:border-box;border:1.5px dashed #d3dae5;border-radius:10px;
  background:#fafbfd;color:#8b94a3;cursor:pointer;font-size:13.5px;padding:18px;text-align:center;font-family:inherit;
}
.demand-upload b{color:#2f6ae0;font-weight:600}
.demand-upload:hover{border-color:#2f6ae0}
.demand-company{
  display:flex;align-items:center;gap:4px;font-size:14.5px;font-weight:600;color:#1c2430;
}
.demand-company svg{width:16px;height:16px;flex-shrink:0}
.demand-link{
  display:inline-block;margin-top:8px;border:0;background:transparent;padding:0;cursor:pointer;
  color:#2f6ae0;font-size:11.5px;line-height:1.65;font-family:inherit;
}
.demand-submit{
  display:block;width:100%;margin-top:4px;border:0;border-radius:12px;padding:14px;
  background:#2f6ae0;color:#fff;cursor:pointer;font-family:inherit;font-size:16px;font-weight:600;
}
.demand-submit:hover{filter:brightness(1.05)}

.coop-chips{display:flex;flex-wrap:wrap;gap:8px}
.coop-chip{
  height:32px;padding:0 14px;border:1px solid #d9d9d9;border-radius:16px;background:#fff;
  cursor:pointer;font-size:13px;
}
.coop-chip.active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}
.form-stack{display:grid;gap:24px}
.form-stack .field{grid-template-columns:1fr;gap:8px}
.form-stack .field label{text-align:left;font-size:14px;color:rgba(0,0,0,.88)}
.form-stack .field label::after{content:none}
.form-stack .field input,.form-stack .field select{
  min-height:32px;padding:4px 11px;border-radius:6px;border:1px solid #d9d9d9;font-size:14px
}
.form-stack textarea{
  width:100%;min-height:96px;padding:8px 11px;border:1px solid #d9d9d9;border-radius:6px;
  resize:vertical;outline:none;font:inherit;
}
.form-stack textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15)}
.char-count{text-align:right;color:var(--muted);font-size:12px}
.hint{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.upload-dashed{
  display:grid;place-items:center;gap:6px;min-height:88px;border:1px dashed #d9d9d9;
  border-radius:8px;background:#fafafa;color:var(--muted);font-size:13px;cursor:pointer;
}
.upload-dashed:hover{border-color:var(--primary);color:var(--primary)}
.field-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.linkish{border:0;background:transparent;color:var(--primary);cursor:pointer;font-size:13px;padding:0}

/* recovered patch */
.modal-hd h3{margin:0;font-size:16px;font-weight:600;line-height:1.5;color:rgba(0,0,0,.88);white-space:pre-line}

/* recovered patch */
.dyn-more{
  width:14px;height:14px;flex-shrink:0;border:0;padding:0;background:transparent;cursor:pointer;position:relative;z-index:1;
  background-image:url("data:image/svg+xml,%3Csvg width='18' height='4' viewBox='0 0 18 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H2.01M9 2H9.01M16 2H16.01' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:14px 4px;
}
.dyn-user.is-menu-open .dyn-more{
  background-image:url("data:image/svg+xml,%3Csvg width='18' height='4' viewBox='0 0 18 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2H2.01M9 2H9.01M16 2H16.01' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* 对照线上：黑色气泡菜单 删除/置顶/编辑 */
.dyn-pop-mask{position:fixed;inset:0;z-index:20;background:transparent}
.dyn-pop{
  position:absolute;right:0;top:20px;z-index:30;min-width:80px;
  border-radius:8px;background:#000;transform:translateX(4px);
  box-shadow:0 6px 16px rgba(0,0,0,.2);
}
.dyn-pop::before{
  content:"";position:absolute;right:12px;top:-5px;width:8px;height:8px;background:#000;
  transform:rotate(45deg);
}
.dyn-pop-body{padding:4px 0}
.dyn-pop-item{
  display:block;width:100%;border:0;background:transparent;cursor:pointer;
  padding:8px 16px;font-size:11px;line-height:1.4;color:#fff;text-align:center;white-space:nowrap;
}
.dyn-pop-item:hover{background:#333}
.dyn-pop-sep{height:1px;margin:0 16px;background:#434343}
.phone-end{text-align:center;color:#999;font-size:12px;padding:12px 0}

/* recovered patch */
.phone-empty{padding:48px 0;text-align:center;color:#999;font-size:12px}

/* 对照线上「代发动态」手机框表单 */
.phone-screen.post-phone{padding-top:20px}
.phone-scroll.post-scroll{padding:0 16px}
.post-choice{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:100%;gap:16px;padding-top:120px;box-sizing:border-box;
}
.post-choice-btn{
  width:200px;height:60px;border:0;border-radius:16px;background:#000;color:#fff;
  font-size:16px;font-weight:500;cursor:pointer;
}
.post-choice-btn:hover{opacity:.9}
.post-label{font-size:12px;font-weight:500;color:#6c6c6c;margin:0 0 12px}
.post-target{
  display:flex;align-items:center;height:44px;padding:6px;margin-bottom:12px;box-sizing:border-box;
  background:#f6f6f6;border-radius:12px;
}
.post-target-item{
  flex:1;height:32px;border:0;border-radius:12px;background:transparent;cursor:pointer;
  font-size:12px;font-weight:500;line-height:32px;color:#6c6c6c;text-align:center;
}
.post-target-item.active{background:#fff;color:#000}
.post-hint{font-size:12px;color:#999;margin:0 0 8px}
.post-upload-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.post-upload-tile{
  width:72px;height:72px;border:1px dashed #d9d9d9;border-radius:8px;background:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  cursor:pointer;color:#999;font-size:12px;padding:0;
}
.post-upload-tile .plus{font-size:14px;line-height:1;color:rgba(0,0,0,.45)}
.post-title-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.post-title-row input{
  flex:1;min-width:0;border:0;outline:none;background:transparent;
  font-size:14px;font-weight:700;color:#000;padding:0;height:auto;
}
.post-count{font-size:12px;color:#999;white-space:nowrap;flex-shrink:0}
.post-body{
  width:100%;min-height:200px;border:0;outline:none;resize:none;background:transparent;
  font-size:14px;font-weight:700;color:#000;padding:0;margin:0 0 8px;box-sizing:border-box;
  font-family:inherit;
}
.post-body-count{display:flex;justify-content:flex-end;font-size:12px;color:#999;margin-bottom:12px}
.post-divider{height:1px;background:#eee;margin:12px 0}
.post-tag-box{
  display:flex;align-items:center;gap:8px;background:#f9f9f9;border-radius:12px;
  padding:8px 12px;margin-top:12px;
}
.post-tag-box .tag-main{flex:1;min-width:0}
.post-tag-box .tag-label{font-size:12px;font-weight:500;color:#6c6c6c}
.post-tag-box .tag-input-row{display:flex;align-items:center;margin-top:4px}
.post-tag-box .hash{font-size:14px;font-weight:700;color:#000}
.post-tag-box input{
  flex:1;min-width:0;margin-left:8px;border:0;outline:none;background:transparent;
  font-size:14px;font-weight:700;color:#000;padding:0;height:auto;
}
.post-tag-add{
  width:90px;height:40px;border:0;border-radius:12px;flex-shrink:0;cursor:pointer;
  background:#cecece;color:#fff;font-size:14px;font-weight:700;line-height:40px;text-align:center;padding:0;
}
.post-tag-add.is-ready{background:#1677ff}
.post-ai-row{
  display:flex;align-items:center;justify-content:space-between;height:44px;
  background:#f9f9f9;border-radius:12px;padding:0 12px;margin-top:12px;font-size:12px;
}
.post-switch{
  position:relative;width:36px;height:20px;border-radius:10px;background:#ccc;cursor:pointer;flex-shrink:0;border:0;padding:0;
}
.post-switch::after{
  content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .2s;
}
.post-switch.on{background:#1677ff}
.post-switch.on::after{left:18px}
.post-note{font-size:12px;color:#6c6c6c;margin:12px 0 0}
.post-submit{
  display:block;width:100%;height:44px;margin:20px 0 16px;border:0;border-radius:12px;
  background:#cecece;color:#fff;font-size:14px;font-weight:700;line-height:44px;text-align:center;cursor:pointer;padding:0;
}
.post-submit.is-ready{background:#1677ff}
.post-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.post-chip{
  display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px;border-radius:14px;
  background:#f0f5ff;color:#1677ff;font-size:12px;
}
.post-chip button{border:0;background:transparent;color:#999;cursor:pointer;padding:0;font-size:12px;line-height:1}

/* 旧 seg（其它弹层若仍用） */

/* recovered patch */
.modal.modal-sm,.modal.modal-lg{width:520px}
/* 代发需求：可滚但不显示滚动条（表单高于视口） */
.modal.modal-demand{width:420px;max-height:calc(100vh - 24px);overflow:hidden}
.modal.modal-demand .modal-bd{
  overflow:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;
}
.modal.modal-demand .modal-bd::-webkit-scrollbar{display:none;width:0;height:0}
.modal.modal-xl{width:420px}
.modal[hidden],.modal-mask[hidden],.drawer[hidden],.drawer-mask[hidden]{display:none !important}
.modal-hd{
  display:flex;align-items:flex-start;justify-content:space-between;flex:0 0 auto;
  gap:12px;padding:0;margin:0 0 8px;border:0;
}
.modal-hd h3{margin:0;font-size:16px;font-weight:600;line-height:1.5;color:rgba(0,0,0,.88);white-space:pre-line}
.modal.modal-flush-title .modal-hd h3{white-space:normal;font-size:inherit;font-weight:inherit;line-height:inherit}
.demand-title{display:grid;gap:2px}
.demand-title-main{font-size:16px;font-weight:600;color:rgba(0,0,0,.88);line-height:1.4}
.demand-title-sub{font-size:12px;font-weight:400;color:rgb(139,147,167);line-height:1.4}

/* recovered patch */
.tag{display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:4px;font-size:12px;font-weight:400;line-height:20px;border:1px solid transparent;white-space:nowrap}
.tag-ok{color:#52c41a;background:#f6ffed;border-color:#b7eb8f} /* ant-tag-success */
.tag-off{color:#86909c;background:#f2f3f5;border-color:#d9d9d9}
.tag-on{color:#0e6efd;background:#e8f1ff;border-color:#91caff}
.tag-warn{color:#d48806;background:#fff7e6;border-color:#ffe58f}
.tag-blue{color:#0958d9;background:#e6f4ff;border-color:#91caff} /* ant-tag-blue 合作类型 */
.tag-processing{color:#646cff;background:#f0f3ff;border-color:#dee3ff} /* 需求状态·正常 */
.tag-error{color:#f5222d;background:#fff1f0;border-color:#ffa39e} /* 已删除 */
.btn-danger-link{color:#f5222d !important}
.btn-danger-link:hover{color:#ff4d4f !important}
.col-center{text-align:center !important}
.demand-title{font-weight:600;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ellipsis-text{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar-sm{display:inline-block;width:40px;height:40px;border-radius:50%;object-fit:cover;vertical-align:middle;background:#f2f3f5}
/* 对照线上：table-layout:fixed + width:100%，宽屏铺满卡片，窄屏横向滚动 */
.demand-table,.response-table{
  width:100% !important;
  min-width:1200px !important;
  table-layout:fixed !important;
}
.demand-table th,.demand-table td,
.response-table th,.response-table td{
  text-align:center;overflow:hidden;text-overflow:ellipsis;
  padding:8px !important; /* 对照线上 ant-table-cell */
  height:45px;box-sizing:border-box;
}
.demand-table td[data-col="1"],.response-table td[data-col="1"],.response-table td[data-col="5"]{text-align:left}
.demand-table th[data-col="0"],.demand-table td[data-col="0"]{width:4%}
.demand-table th[data-col="1"],.demand-table td[data-col="1"]{width:22%}
.demand-table th[data-col="2"],.demand-table td[data-col="2"]{width:8%}
.demand-table th[data-col="3"],.demand-table td[data-col="3"]{width:15%}
.demand-table th[data-col="4"],.demand-table td[data-col="4"]{width:7%}
.demand-table th[data-col="5"],.demand-table td[data-col="5"]{width:11%}
.demand-table th[data-col="6"],.demand-table td[data-col="6"]{width:7%}
.demand-table th[data-col="7"],.demand-table td[data-col="7"]{width:7%}
.demand-table th[data-col="8"],.demand-table td[data-col="8"]{width:6%}
.demand-table th[data-col="9"],.demand-table td[data-col="9"]{width:13%}
.response-table th[data-col="0"],.response-table td[data-col="0"]{width:5%}
.response-table th[data-col="1"],.response-table td[data-col="1"]{width:20%}
.response-table th[data-col="2"],.response-table td[data-col="2"]{width:10%}
.response-table th[data-col="3"],.response-table td[data-col="3"]{width:16%}
.response-table th[data-col="4"],.response-table td[data-col="4"]{width:7%}
.response-table th[data-col="5"],.response-table td[data-col="5"]{width:14%}
.response-table th[data-col="6"],.response-table td[data-col="6"]{width:12%}
.response-table th[data-col="7"],.response-table td[data-col="7"]{width:8%}
.response-table th[data-col="8"],.response-table td[data-col="8"]{width:8%}
/* 操作列对照线上：td 仍是 table-cell；按钮 inline-flex 紧挨（gap=0）、pad 2×7 */
.demand-table th.sticky-ops,.demand-table td.sticky-ops,
.demand-table th[data-col="9"],.demand-table td[data-col="9"],
.demand-table td.ops,
.response-table th.sticky-ops,.response-table td.sticky-ops,
.response-table th[data-col="8"],.response-table td[data-col="8"],
.response-table td.ops{
  padding:8px !important;
  box-shadow:none !important;
  text-align:center !important;
  white-space:nowrap;
  vertical-align:middle;
  /* 覆盖通用 .ops{display:flex;gap:10px}，避免破坏表格单元格 */
  display:table-cell !important;
  gap:0 !important;
  font-size:0; /* 去掉按钮间 HTML 空白缝 */
}
.demand-table td.ops .btn-link.btn-sm,
.response-table td.ops .btn-link.btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  min-height:28px;
  height:28px;
  padding:2px 7px;
  margin:0;
  border:1px solid transparent;
  border-radius:4px;
  font-size:14px;
  font-weight:400;
  line-height:22px;
}
.demand-table td.ops .btn-link.btn-sm:hover,
.response-table td.ops .btn-link.btn-sm:hover{background:rgba(0,0,0,.04)}
.demand-table td.ops .btn-danger-link:hover,
.response-table td.ops .btn-danger-link:hover{background:rgba(245,34,45,.06);color:#ff4d4f !important}
.search-body-flush{padding:16px}
.search-actions-inline{grid-column:auto;justify-content:flex-end;align-self:center;padding-top:0;gap:12px}

/* recovered patch */
.drawer.drawer-wide,.drawer.drawer-xl{width:min(720px,100vw)}
.drawer.drawer-demand{width:min(560px,100vw)}
/* 企业列表：编辑名片 640 / 管理资质·标识 960 */
.drawer.drawer-card{width:min(640px,100vw)}
.drawer.drawer-qual{width:min(960px,100vw)}

/* 企业列表表格列宽（对照线上 ant-table colgroup @1920）
 * 序号≈31 · 多数列 min 120 · 荣誉 160 · 操作≈535 · 表宽≈2297 */
.enterprise-table{
  /* 31+120×13+160+535 = 2286；与线上表宽≈2297（含滚动条占位）接近 */
  width:2286px !important;
  min-width:2286px !important;
  table-layout:fixed !important;
}
.enterprise-table th,.enterprise-table td{
  padding:8px !important;
  vertical-align:middle;
  box-sizing:border-box;
  overflow:hidden;
  text-overflow:ellipsis;
}
.enterprise-table th[data-col="0"],.enterprise-table td[data-col="0"]{
  width:31px;min-width:31px;max-width:31px;padding:8px 0 !important;
}
.enterprise-table th[data-col="1"],.enterprise-table td[data-col="1"],
.enterprise-table th[data-col="2"],.enterprise-table td[data-col="2"],
.enterprise-table th[data-col="3"],.enterprise-table td[data-col="3"],
.enterprise-table th[data-col="4"],.enterprise-table td[data-col="4"],
.enterprise-table th[data-col="5"],.enterprise-table td[data-col="5"],
.enterprise-table th[data-col="6"],.enterprise-table td[data-col="6"],
.enterprise-table th[data-col="7"],.enterprise-table td[data-col="7"],
.enterprise-table th[data-col="8"],.enterprise-table td[data-col="8"],
.enterprise-table th[data-col="9"],.enterprise-table td[data-col="9"],
.enterprise-table th[data-col="10"],.enterprise-table td[data-col="10"],
.enterprise-table th[data-col="11"],.enterprise-table td[data-col="11"],
.enterprise-table th[data-col="13"],.enterprise-table td[data-col="13"],
.enterprise-table th[data-col="14"],.enterprise-table td[data-col="14"]{
  width:120px;min-width:120px;
}
.enterprise-table th[data-col="12"],.enterprise-table td[data-col="12"]{width:160px;min-width:160px}
.enterprise-table th[data-col="15"],.enterprise-table td[data-col="15"],
.enterprise-table th.sticky-ops,.enterprise-table td.sticky-ops{width:535px;min-width:535px}
/* 名称/地址/荣誉/管家：窄列内换行（对照线上单元格内容） */
.enterprise-table td[data-col="2"],
.enterprise-table td[data-col="7"],
.enterprise-table td[data-col="12"],
.enterprise-table td[data-col="14"]{
  white-space:normal !important;
  word-break:break-word;
  overflow:visible;
  text-overflow:unset;
}
.enterprise-table .logo-ph{width:60px;height:60px;border-radius:4px}
.enterprise-table .avatar-preview{width:60px;height:60px;position:relative;overflow:hidden;border-radius:4px;padding:0;border:0;background:#f5f5f5}
.enterprise-table .avatar-preview .avatar-ph{width:60px;height:60px}
.enterprise-table .avatar-preview img.logo-img{
  display:block;width:60px;height:60px;object-fit:cover;border-radius:4px
}
.multi-lines{display:grid;gap:2px;line-height:1.45;white-space:normal}
.enterprise-table th.sticky-ops,.enterprise-table td.sticky-ops,
.enterprise-table td.ops{
  padding:8px !important;
  box-shadow:-6px 0 8px rgba(0,0,0,.04);
  text-align:center !important;
  white-space:nowrap;
  vertical-align:middle;
  display:table-cell !important;
  gap:0 !important;
  font-size:0;
  overflow:visible;
}
.ops-ghost-row{
  display:inline-flex;flex-wrap:nowrap;align-items:center;gap:0;font-size:0;
}
.enterprise-table td.ops .btn-primary-outline.btn-sm{
  display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;
  min-height:28px;height:28px;padding:2px 7px;margin:0;
  border-radius:4px;font-size:14px;font-weight:400;line-height:22px;
}

/* 编辑名片 / 资质标识 表单块 */
.card-ver{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.card-ver > span{font-size:13px;color:#666;font-weight:500;flex:0 0 auto}
.radio-btns{display:inline-flex;border:1px solid #d9d9d9;border-radius:6px;overflow:hidden}
.radio-btns label{
  display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 15px;
  font-size:14px;color:rgba(0,0,0,.88);cursor:pointer;border-right:1px solid #d9d9d9;background:#fff;margin:0;
}
.radio-btns label:last-child{border-right:0}
.radio-btns label:has(input:checked){color:#fff;background:var(--primary);border-color:var(--primary)}
.radio-btns input{position:absolute;opacity:0;pointer-events:none}
.drawer-tabs{display:flex;gap:0;border-bottom:1px solid #f0f0f0;margin:0 0 8px}
.drawer-tab{
  position:relative;padding:12px 0;margin:0 16px 0 0;border:0;background:transparent;
  font-size:14px;color:rgba(0,0,0,.88);cursor:pointer;
}
.drawer-tab.active{color:var(--primary);font-weight:500}
.drawer-tab.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--primary);
}
.drawer-pane[hidden]{display:none !important}
.upload-row{display:flex;gap:12px;flex-wrap:wrap}
.upload-slot{
  width:104px;height:104px;border:1px dashed #d9d9d9;border-radius:8px;background:#fafafa;
  display:grid;place-items:center;color:rgba(0,0,0,.45);font-size:12px;text-align:center;gap:4px;
}
.upload-slot .plus{font-size:22px;line-height:1;color:rgba(0,0,0,.45)}
.field-extra{margin-top:4px;font-size:12px;color:rgba(0,0,0,.45);line-height:1.5}
.rich-stub{
  border:1px solid #ccc;border-radius:0;min-height:160px;background:#fff;
}
.rich-stub-bar{
  display:flex;flex-wrap:wrap;gap:2px;padding:4px 8px;border-bottom:1px solid #ccc;
  color:rgba(0,0,0,.45);font-size:12px;background:#fafafa;
}
.rich-stub-bar span{padding:2px 6px;border-radius:2px}
.rich-stub-body{padding:12px;min-height:120px;line-height:1.6;color:rgba(0,0,0,.88);white-space:pre-wrap}
.qual-block{margin-bottom:24px}
.qual-block h4{margin:0 0 12px;font-size:14px;font-weight:500;color:rgba(0,0,0,.88)}
.qual-block + .qual-block{border-top:1px solid #e8e8e8;padding-top:24px;margin-top:0}
.qual-checks{display:grid;gap:10px}
.qual-checks label{
  display:flex;align-items:flex-start;gap:8px;margin:0;font-size:14px;line-height:1.5;
  color:rgba(0,0,0,.88);cursor:pointer;
}
.qual-checks input{margin-top:3px;flex:0 0 auto}
.addr-title{margin:0 0 8px;font-size:14px;font-weight:500;color:rgba(0,0,0,.88)}
.addr-title + input{width:100%;box-sizing:border-box}
.mgr-title{margin:0 0 8px;font-size:14px;font-weight:500;color:rgba(0,0,0,.88)}
.mgr-cur{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 8px;font-size:12px;color:#999;
}
.btn-danger-outline{
  background:transparent;color:#ff4d4f;border-color:#ff4d4f;box-shadow:none;
}
.btn-danger-outline:hover{background:#fff1f0}
.btn-dashed{
  background:#fff;border:1px dashed #d9d9d9;color:rgba(0,0,0,.88);border-radius:6px;
  min-height:32px;padding:4px 15px;cursor:pointer;font-size:14px;
}
.btn-dashed:hover{color:var(--primary);border-color:var(--primary)}
.btn-dashed .plus{margin-right:2px}

/* 编辑名片 · 企业相册（基础/升级共用网格，提示文案随版本切换） */
.album-tip{font-size:13px;color:#999;margin-bottom:16px}
.album-grid{display:flex;flex-wrap:wrap;gap:8px}
.album-item{
  width:102px;height:102px;border-radius:8px;overflow:hidden;position:relative;
  background:linear-gradient(135deg,#dfe3ee,#c8cfde);
}
.album-item.tone-a{background:linear-gradient(135deg,#7c83ff,#646cff)}
.album-item.tone-b{background:linear-gradient(135deg,#69b1ff,#1677ff)}
.album-item.tone-c{background:linear-gradient(135deg,#95de64,#52c41a)}
.album-item.tone-d{background:linear-gradient(135deg,#ffc069,#fa8c16)}
.album-actions{
  position:absolute;right:6px;bottom:6px;display:flex;gap:6px;align-items:center;z-index:1;
}
.album-actions span{
  background:rgba(0,0,0,.45);color:#fff;font-size:11px;padding:4px 10px;border-radius:10px;cursor:pointer;user-select:none;
}
.album-actions .album-x{
  width:24px;height:24px;padding:0;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:500;line-height:1;
}
.album-add{width:102px;height:102px;border-radius:8px}

/* 基础版本 · 菜单模块 */
.menu-mod-hd{display:flex;justify-content:flex-end;margin-bottom:16px}
.menu-mod-empty{text-align:center;color:#999;padding:40px;font-size:14px}

/* 升级版本 · 树形菜单 */
.tree-menu-hd{display:flex;justify-content:flex-end;margin-bottom:16px}
.tree-menu-list{border:1px solid #f0f0f0;border-radius:8px;overflow:hidden}
.tree-row{
  display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid #f0f0f0;background:#fff;gap:0;
}
.tree-row:last-child{border-bottom:0}
.tree-row.child{padding-left:44px;background:#fafafa}
.tree-caret{margin-right:8px;color:#666;font-size:12px;user-select:none;cursor:pointer;width:14px;flex:0 0 auto}
.tree-caret.spacer{cursor:default}
.tree-tag{
  display:inline-block;padding:0 6px;font-size:10px;color:#fff;border-radius:4px;margin-right:6px;
  line-height:18px;flex:0 0 auto;
}
.tree-tag.tag-box{background:#999}
.tree-tag.tag-page{background:#1677ff}
.tree-name{flex:1;font-size:14px;color:#1677ff;cursor:pointer;min-width:0}
.tree-ops{display:flex;gap:2px;margin-left:8px;flex:0 0 auto}
.tree-ops button{
  border:0;background:transparent;color:rgba(0,0,0,.88);font-size:14px;padding:0 7px;height:24px;
  border-radius:4px;cursor:pointer;line-height:24px;
}
.tree-ops button:hover{background:rgba(0,0,0,.04)}
.tree-ops button.danger{color:#ff4d4f}
.tree-ops button.danger:hover{background:rgba(255,77,79,.06)}
.tree-row.is-disabled{opacity:.45}
.tree-row.is-disabled .tree-name{color:rgba(0,0,0,.45);text-decoration:line-through}
.menu-mod-list{border:1px solid #f0f0f0;border-radius:8px;overflow:hidden}
.tree-ops button:disabled{opacity:.35;cursor:not-allowed}
.basic-row .tree-name{color:rgba(0,0,0,.88)}

.drawer.drawer-demand{width:min(560px,100vw)}
/* 企业列表：编辑名片 640 / 管理资质·标识 960 */
.drawer.drawer-card{width:min(640px,100vw)}
.drawer.drawer-qual{width:min(960px,100vw)}

/* 企业列表表格列宽（对照线上 ant-table colgroup @1920）
 * 序号≈31 · 多数列 min 120 · 荣誉 160 · 操作≈535 · 表宽≈2297 */
.enterprise-table{
  /* 31+120×13+160+535 = 2286；与线上表宽≈2297（含滚动条占位）接近 */
  width:2286px !important;
  min-width:2286px !important;
  table-layout:fixed !important;
}
.enterprise-table th,.enterprise-table td{
  padding:8px !important;
  vertical-align:middle;
  box-sizing:border-box;
  overflow:hidden;
  text-overflow:ellipsis;
}
.enterprise-table th[data-col="0"],.enterprise-table td[data-col="0"]{
  width:31px;min-width:31px;max-width:31px;padding:8px 0 !important;
}
.enterprise-table th[data-col="1"],.enterprise-table td[data-col="1"],
.enterprise-table th[data-col="2"],.enterprise-table td[data-col="2"],
.enterprise-table th[data-col="3"],.enterprise-table td[data-col="3"],
.enterprise-table th[data-col="4"],.enterprise-table td[data-col="4"],
.enterprise-table th[data-col="5"],.enterprise-table td[data-col="5"],
.enterprise-table th[data-col="6"],.enterprise-table td[data-col="6"],
.enterprise-table th[data-col="7"],.enterprise-table td[data-col="7"],
.enterprise-table th[data-col="8"],.enterprise-table td[data-col="8"],
.enterprise-table th[data-col="9"],.enterprise-table td[data-col="9"],
.enterprise-table th[data-col="10"],.enterprise-table td[data-col="10"],
.enterprise-table th[data-col="11"],.enterprise-table td[data-col="11"],
.enterprise-table th[data-col="13"],.enterprise-table td[data-col="13"],
.enterprise-table th[data-col="14"],.enterprise-table td[data-col="14"]{
  width:120px;min-width:120px;
}
.enterprise-table th[data-col="12"],.enterprise-table td[data-col="12"]{width:160px;min-width:160px}
.enterprise-table th[data-col="15"],.enterprise-table td[data-col="15"],
.enterprise-table th.sticky-ops,.enterprise-table td.sticky-ops{width:535px;min-width:535px}
/* 名称/地址/荣誉/管家：窄列内换行（对照线上单元格内容） */
.enterprise-table td[data-col="2"],
.enterprise-table td[data-col="7"],
.enterprise-table td[data-col="12"],
.enterprise-table td[data-col="14"]{
  white-space:normal !important;
  word-break:break-word;
  overflow:visible;
  text-overflow:unset;
}
.enterprise-table .logo-ph{width:60px;height:60px;border-radius:4px}
.enterprise-table .avatar-preview{width:60px;height:60px;position:relative;overflow:hidden;border-radius:4px;padding:0;border:0;background:#f5f5f5}
.enterprise-table .avatar-preview .avatar-ph{width:60px;height:60px}
.enterprise-table .avatar-preview img.logo-img{
  display:block;width:60px;height:60px;object-fit:cover;border-radius:4px
}
.multi-lines{display:grid;gap:2px;line-height:1.45;white-space:normal}
.enterprise-table th.sticky-ops,.enterprise-table td.sticky-ops,
.enterprise-table td.ops{
  padding:8px !important;
  box-shadow:-6px 0 8px rgba(0,0,0,.04);
  text-align:center !important;
  white-space:nowrap;
  vertical-align:middle;
  display:table-cell !important;
  gap:0 !important;
  font-size:0;
  overflow:visible;
}
.ops-ghost-row{
  display:inline-flex;flex-wrap:nowrap;align-items:center;gap:0;font-size:0;
}
.enterprise-table td.ops .btn-primary-outline.btn-sm{
  display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;
  min-height:28px;height:28px;padding:2px 7px;margin:0;
  border-radius:4px;font-size:14px;font-weight:400;line-height:22px;
}

/* 编辑名片 / 资质标识 表单块 */
.card-ver{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.card-ver > span{font-size:13px;color:#666;font-weight:500;flex:0 0 auto}
.radio-btns{display:inline-flex;border:1px solid #d9d9d9;border-radius:6px;overflow:hidden}
.radio-btns label{
  display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 15px;
  font-size:14px;color:rgba(0,0,0,.88);cursor:pointer;border-right:1px solid #d9d9d9;background:#fff;margin:0;
}
.radio-btns label:last-child{border-right:0}
.radio-btns label:has(input:checked){color:#fff;background:var(--primary);border-color:var(--primary)}
.radio-btns input{position:absolute;opacity:0;pointer-events:none}
.drawer-tabs{display:flex;gap:0;border-bottom:1px solid #f0f0f0;margin:0 0 8px}
.drawer-tab{
  position:relative;padding:12px 0;margin:0 16px 0 0;border:0;background:transparent;
  font-size:14px;color:rgba(0,0,0,.88);cursor:pointer;
}
.drawer-tab.active{color:var(--primary);font-weight:500}
.drawer-tab.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--primary);
}
.drawer-pane[hidden]{display:none !important}
.upload-row{display:flex;gap:12px;flex-wrap:wrap}
.upload-slot{
  width:104px;height:104px;border:1px dashed #d9d9d9;border-radius:8px;background:#fafafa;
  display:grid;place-items:center;color:rgba(0,0,0,.45);font-size:12px;text-align:center;gap:4px;
}
.upload-slot .plus{font-size:22px;line-height:1;color:rgba(0,0,0,.45)}
.field-extra{margin-top:4px;font-size:12px;color:rgba(0,0,0,.45);line-height:1.5}
.rich-stub{
  border:1px solid #ccc;border-radius:0;min-height:160px;background:#fff;
}
.rich-stub-bar{
  display:flex;flex-wrap:wrap;gap:2px;padding:4px 8px;border-bottom:1px solid #ccc;
  color:rgba(0,0,0,.45);font-size:12px;background:#fafafa;
}
.rich-stub-bar span{padding:2px 6px;border-radius:2px}
.rich-stub-body{padding:12px;min-height:120px;line-height:1.6;color:rgba(0,0,0,.88);white-space:pre-wrap}
.qual-block{margin-bottom:24px}
.qual-block h4{margin:0 0 12px;font-size:14px;font-weight:500;color:rgba(0,0,0,.88)}
.qual-block + .qual-block{border-top:1px solid #e8e8e8;padding-top:24px;margin-top:0}
.qual-checks{display:grid;gap:10px}
.qual-checks label{
  display:flex;align-items:flex-start;gap:8px;margin:0;font-size:14px;line-height:1.5;
  color:rgba(0,0,0,.88);cursor:pointer;
}
.qual-checks input{margin-top:3px;flex:0 0 auto}
.addr-title{margin:0 0 8px;font-size:14px;font-weight:500;color:rgba(0,0,0,.88)}
.addr-title + input{width:100%;box-sizing:border-box}
.mgr-title{margin:0 0 8px;font-size:14px;font-weight:500;line-height:1.57;color:rgba(0,0,0,.88)}
.mgr-cur{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 8px;font-size:12px;color:#999;line-height:1.5;
}
/* 对照线上 ant-select show-search · 设置管家 */
.mgr-select{position:relative;width:100%}
.mgr-select-selector{
  position:relative;display:flex;align-items:center;min-height:32px;padding:0 30px 0 11px;
  border:1px solid #d9d9d9;border-radius:6px;background:#fff;cursor:text;box-sizing:border-box;
}
.mgr-select.open .mgr-select-selector,.mgr-select-selector:focus-within{
  border-color:var(--primary);box-shadow:0 0 0 2px rgba(100,108,255,.15);
}
.mgr-select-search{
  position:absolute;inset:0 30px 0 11px;width:auto;min-width:0;border:0;outline:none;
  background:transparent;font-size:14px;line-height:30px;padding:0;z-index:2;
}
.mgr-select-item,.mgr-select-placeholder{
  position:relative;z-index:1;font-size:14px;line-height:30px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;
}
.mgr-select-item{color:rgba(0,0,0,.88)}
.mgr-select-placeholder{color:rgba(0,0,0,.25)}
.mgr-select-item[hidden],.mgr-select-placeholder[hidden]{display:none !important}
.mgr-select-arrow{
  position:absolute;right:11px;top:50%;transform:translateY(-50%);
  color:rgba(0,0,0,.25);font-size:12px;line-height:1;pointer-events:none;
}
.mgr-select-dropdown{
  max-height:256px;overflow:auto;padding:4px 0;background:#fff;border-radius:8px;
  box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05);
  box-sizing:border-box;
}
/* portal 到 body，避免被 .modal-bd overflow 裁切（对照 ant-select dropdown） */
.mgr-select-dropdown-portal{position:fixed;z-index:1200}
.mgr-select-dropdown[hidden]{display:none !important}
.mgr-select-option{
  display:block;width:100%;border:0;background:transparent;text-align:left;
  padding:5px 12px;min-height:32px;font-size:14px;line-height:22px;color:rgba(0,0,0,.88);cursor:pointer;
}
.mgr-select-option:hover,.mgr-select-option.active{background:#f5f5f5}
.mgr-select-option.active{font-weight:600;background:var(--primary-soft);color:var(--primary)}
.mgr-select-empty{padding:12px;text-align:center;color:rgba(0,0,0,.25);font-size:14px}
.btn-danger-outline{
  background:transparent;color:#f5222d;border-color:#f5222d;box-shadow:none;
}
.btn-danger-outline:hover{background:#fff1f0;color:#ff4d4f;border-color:#ff4d4f}
.btn-dashed{
  background:#fff;border:1px dashed #d9d9d9;color:rgba(0,0,0,.88);border-radius:6px;
  min-height:32px;padding:4px 15px;cursor:pointer;font-size:14px;
}
.btn-dashed:hover{color:var(--primary);border-color:var(--primary)}
.btn-dashed .plus{margin-right:2px}

/* 编辑名片 · 企业相册（基础/升级共用网格，提示文案随版本切换） */
.album-tip{font-size:13px;color:#999;margin-bottom:16px}
.album-grid{display:flex;flex-wrap:wrap;gap:8px}
.album-item{
  width:102px;height:102px;border-radius:8px;overflow:hidden;position:relative;
  background:linear-gradient(135deg,#dfe3ee,#c8cfde);
}
.album-item.tone-a{background:linear-gradient(135deg,#7c83ff,#646cff)}
.album-item.tone-b{background:linear-gradient(135deg,#69b1ff,#1677ff)}
.album-item.tone-c{background:linear-gradient(135deg,#95de64,#52c41a)}
.album-item.tone-d{background:linear-gradient(135deg,#ffc069,#fa8c16)}
.album-actions{
  position:absolute;right:6px;bottom:6px;display:flex;gap:6px;align-items:center;z-index:1;
}
.album-actions span{
  background:rgba(0,0,0,.45);color:#fff;font-size:11px;padding:4px 10px;border-radius:10px;cursor:pointer;user-select:none;
}
.album-actions .album-x{
  width:24px;height:24px;padding:0;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:500;line-height:1;
}
.album-add{width:102px;height:102px;border-radius:8px}

/* 基础版本 · 菜单模块 */
.menu-mod-hd{display:flex;justify-content:flex-end;margin-bottom:16px}
.menu-mod-empty{text-align:center;color:#999;padding:40px;font-size:14px}

/* 升级版本 · 树形菜单 */
.tree-menu-hd{display:flex;justify-content:flex-end;margin-bottom:16px}
.tree-menu-list{border:1px solid #f0f0f0;border-radius:8px;overflow:hidden}
.tree-row{
  display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid #f0f0f0;background:#fff;gap:0;
}
.tree-row:last-child{border-bottom:0}
.tree-row.child{padding-left:44px;background:#fafafa}
.tree-caret{margin-right:8px;color:#666;font-size:12px;user-select:none;cursor:pointer;width:14px;flex:0 0 auto}
.tree-caret.spacer{cursor:default}
.tree-tag{
  display:inline-block;padding:0 6px;font-size:10px;color:#fff;border-radius:4px;margin-right:6px;
  line-height:18px;flex:0 0 auto;
}
.tree-tag.tag-box{background:#999}
.tree-tag.tag-page{background:#1677ff}
.tree-name{flex:1;font-size:14px;color:#1677ff;cursor:pointer;min-width:0}
.tree-ops{display:flex;gap:2px;margin-left:8px;flex:0 0 auto}
.tree-ops button{
  border:0;background:transparent;color:rgba(0,0,0,.88);font-size:14px;padding:0 7px;height:24px;
  border-radius:4px;cursor:pointer;line-height:24px;
}
.tree-ops button:hover{background:rgba(0,0,0,.04)}
.tree-ops button.danger{color:#ff4d4f}
.tree-ops button.danger:hover{background:rgba(255,77,79,.06)}

/* recovered patch */
.desc-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;border:1px solid #f0f0f0}
.desc-table th,.desc-table td{border:1px solid #f0f0f0;padding:8px 16px;vertical-align:top;line-height:1.5714}
.desc-table th{width:22%;background:#fafafa;color:rgba(0,0,0,.88);font-weight:400;text-align:start;white-space:nowrap}
/* 覆盖全局 td{white-space:nowrap}，企业名称等长文本自动换行（对照线上） */
.desc-table td{
  color:rgba(0,0,0,.88);
  white-space:normal !important;
  word-break:break-word;
  overflow-wrap:break-word;
}

/* recovered patch */
/* 搜索区：贴近 Ant Design Pro QueryFilter / ant-collapse */
.search-card{background:#fff;border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,.03);min-width:0;max-width:100%}
.search-toggle{
  display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;border:0;background:transparent;
  color:#1f2329;font-size:14px;font-weight:600;cursor:pointer;text-align:left;
}
/* 对照线上 ant-collapse-header：字重 400、右箭头展开旋转 90° */
.search-toggle.ant-like{
  font-weight:400;color:rgba(0,0,0,.88);gap:12px;align-items:center;min-height:46px;box-sizing:border-box;
}
.search-toggle-text{line-height:22px}
.search-arrow{
  flex:0 0 auto;width:12px;height:12px;display:inline-block;
  background:currentColor;
  /* chevron-right via mask */
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896'%3E%3Cpath fill='black' d='M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896'%3E%3Cpath fill='black' d='M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform:rotate(90deg);transition:transform .2s;opacity:.88;
}
.search-card.collapsed .search-arrow{transform:rotate(0deg)}
.search-icon{width:16px;height:16px;display:block;flex:0 0 auto}
.search-card.collapsed .search-body{display:none}
.search-body{padding:0 16px 16px}
.search-body-collapse{padding:4px 16px 24px} /* 对照线上 content-box */
.search-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px;align-items:start}
.search-grid-tight{gap:16px 16px} /* 对照线上 row-gap 16 + col pad 8*2 */

/* recovered patch */
.modal.modal-demand{width:420px;max-height:none;overflow:hidden}
.modal.modal-demand .modal-bd{overflow:visible;scrollbar-width:none;-ms-overflow-style:none}
.modal.modal-demand .modal-bd::-webkit-scrollbar{display:none;width:0;height:0}
.demand-sheet{overflow:hidden}

/* recovered patch */
.demand-table th[data-col="9"],.demand-table td[data-col="9"]{width:13%}
/* 操作列对照线上：td 仍是 table-cell；按钮 inline-flex 紧挨（gap=0）、pad 2×7 */
.demand-table th.sticky-ops,.demand-table td.sticky-ops,
.demand-table th[data-col="9"],.demand-table td[data-col="9"],
.demand-table td.ops{
  padding:8px !important;
  box-shadow:none !important;
  text-align:center !important;
  white-space:nowrap;
  vertical-align:middle;
  /* 覆盖通用 .ops{display:flex;gap:10px}，避免破坏表格单元格 */
  display:table-cell !important;
  gap:0 !important;
  font-size:0; /* 去掉按钮间 HTML 空白缝 */
}
.demand-table td.ops .btn-link.btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  min-height:28px;
  height:28px;
  padding:2px 7px;
  margin:0;
  border:1px solid transparent;
  border-radius:4px;
  font-size:14px;
  font-weight:400;
  line-height:22px;
}
.demand-table td.ops .btn-link.btn-sm:hover{background:rgba(0,0,0,.04)}
.demand-table td.ops .btn-danger-link:hover{background:rgba(245,34,45,.06);color:#ff4d4f !important}
.search-body-flush{padding:16px}
.search-actions-inline{grid-column:auto;justify-content:flex-end;align-self:center;padding-top:0;gap:12px}

/* recovered patch */
.demand-table{
  width:100% !important;
  min-width:1200px !important;
  table-layout:fixed !important;
}
.demand-table th,.demand-table td{
  text-align:center;overflow:hidden;text-overflow:ellipsis;
  padding:8px !important; /* 对照线上 ant-table-cell */
  height:45px;box-sizing:border-box;
}