/* ==========================================================================
   景德镇直聘 - 浏览记录
   依赖 resume.css 的配色变量与左侧栏/顶栏骨架
   ========================================================================== */

.hs-inner{max-width:940px;}

/* ---------------- 标签条（与卡片连成一体的页签） ---------------- */
.hs-tabs{
  display:flex;align-items:flex-end;gap:3px;
  position:relative;z-index:2;margin-bottom:-1px;
}
.hs-tab{
  height:34px;padding:0 16px;
  border:0;border-radius:3px 3px 0 0;
  background:#f6f8fa;color:#5f6b7a;
  font-size:13px;font-family:inherit;line-height:34px;
  cursor:pointer;transition:background .15s,color .15s;
}
.hs-tab:hover{color:var(--blue);background:#f2f6fd;}
.hs-tab.on{
  background:#fff;color:var(--blue);font-weight:700;
  box-shadow:0 1px 0 #fff;
}
.hs-tab .num{
  margin-left:4px;font-weight:400;font-size:12px;color:#a2abb8;
}

/* ---------------- 卡片 ---------------- */
.hs-card{
  position:relative;background:#fff;border-radius:0 3px 3px 3px;
  box-shadow:0 0 0 1px #eef1f5, 0 1px 3px rgba(16,28,44,.03);
  min-height:calc(100vh - 138px);
  display:flex;flex-direction:column;
}
.hs-body{flex:1;min-height:0;display:flex;flex-direction:column;}

/* ---------------- 空态 ---------------- */
.hs-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;padding:60px 0;color:#b7bdc7;font-size:13px;
}
.hs-empty svg{width:96px;height:72px;}
.hs-empty p{margin:0;}

/* ---------------- 表格 ---------------- */
.hs-table{width:100%;}
.hs-tr{
  display:grid;
  align-items:center;gap:10px;padding:0 18px;min-height:46px;
  border-bottom:1px solid #f6f7f9;font-size:13px;color:var(--txt2);
}
.hs-tr:last-child{border-bottom:0;}
.hs-th{
  min-height:36px;background:#fafbfc;font-size:12px;color:var(--txt3);
  border-bottom:1px solid var(--line2);
}
.hs-tr.hs-th:hover{background:#fafbfc;}
.hs-tr:hover{background:#fafcff;}

/* 企业页：企业｜行业｜规模｜城市｜在招职位｜浏览时间 */
.hs-table.cmp .hs-tr{
  grid-template-columns:minmax(0,2.4fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,.85fr) 92px 118px;
}
/* 职位页：职位｜公司｜区域｜薪资｜浏览时间｜操作 */
.hs-table.job .hs-tr{
  grid-template-columns:minmax(0,2.3fr) minmax(0,2.1fr) minmax(0,1fr) minmax(0,1.5fr) 118px 76px;
}

.hs-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 企业名 + logo */
.hs-cmp{display:flex;align-items:center;gap:9px;min-width:0;}
.hs-logo{
  flex:none;width:26px;height:26px;border-radius:3px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:#f2f5fa;border:1px solid #eef1f6;
  font-size:12px;color:#9aa5b4;
}
.hs-logo img{width:100%;height:100%;object-fit:cover;display:block;}
.hs-cname{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--txt);
}
.hs-tr:hover .hs-cname{color:var(--blue);}

/* 职位名 + 标签 */
.hs-job{display:flex;align-items:center;min-width:0;color:var(--txt);}
.hs-job .jt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hs-job:hover{color:var(--blue);}
.hs-tag{
  flex:none;display:inline-block;margin-left:5px;padding:0 3px;border-radius:2px;
  font-size:11px;line-height:15px;vertical-align:1px;white-space:nowrap;
  border:1px solid #f7b39b;color:var(--orange);
}
.hs-tag.blue{border-color:#bcd7fb;color:var(--blue);}

.hs-money{color:var(--orange);font-weight:700;}
.hs-time{color:var(--txt3);font-size:12px;}
.hs-jobs{color:var(--txt3);font-size:12px;}
.hs-jobs b{color:var(--blue);font-weight:700;}
.hs-ops{text-align:right;font-size:12px;}
.hs-ops a{color:var(--txt3);white-space:nowrap;}
.hs-ops a:hover{color:var(--blue);}

/* ---------------- 分页 ---------------- */
.hs-pager{
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:18px 12px 22px;border-top:1px solid #f6f7f9;
}
.hs-pager button{
  min-width:30px;height:28px;padding:0 9px;border:1px solid var(--line);
  border-radius:2px;background:#fff;color:var(--txt2);font-size:12px;
  font-family:inherit;cursor:pointer;
}
.hs-pager button:hover:not(:disabled){border-color:#9fc4f5;color:var(--blue);}
.hs-pager button.on{
  background:var(--blue);border-color:var(--blue);color:#fff;cursor:default;
}
.hs-pager button:disabled{color:#c3cad4;cursor:default;background:#fafbfc;}
.hs-pager .pg-info{margin-left:8px;font-size:12px;color:var(--txt3);}

/* ---------------- 未登录引导 ---------------- */
.hs-gate{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:96px 20px;background:#fff;border-radius:3px;
  box-shadow:0 0 0 1px #eef1f5;
  min-height:calc(100vh - 138px);
}
.hs-gate h3{margin:0;font-size:16px;color:var(--txt);}
.hs-gate p{margin:0;font-size:13px;color:var(--txt3);}
.hs-gate .btns{margin-top:6px;display:flex;gap:10px;}

/* ---------------- 窄屏 ---------------- */
@media (max-width:1180px){
  .hs-tr{padding:0 14px;}
}
@media (max-width:900px){
  /* 企业页：收起「规模」「城市」 */
  .hs-table.cmp .hs-tr{
    grid-template-columns:minmax(0,2.2fr) minmax(0,1.4fr) 84px 110px;
  }
  .hs-table.cmp .hs-col-scale,
  .hs-table.cmp .hs-col-city{display:none;}
  /* 职位页：收窄时间与操作列，把宽度让给薪资，避免「6000-9000元/月」被截 */
  .hs-table.job .hs-tr{
    grid-template-columns:minmax(0,2fr) minmax(0,1.8fr) minmax(0,.9fr) minmax(0,1.7fr) 100px 60px;
    gap:8px;
  }
}
@media (max-width:700px){
  .hs-inner{max-width:100%;}
  .hs-tab{height:32px;line-height:32px;padding:0 12px;font-size:12px;}
  .hs-card{min-height:calc(100vh - 126px);}
  .hs-empty{padding:48px 0;min-height:calc(100vh - 230px);}
  .hs-empty svg{width:70px;height:54px;}

  /* 手机端改为多行卡片，薪资/区域不再被藏掉 */
  .hs-th{display:none;}
  .hs-tr{
    row-gap:4px;column-gap:12px;
    padding:11px 14px;min-height:0;
  }

  /* 企业：企业名+浏览时间 / 行业+在招
     列定义必须与 ≤900 规则同特异性，否则会被上面的四列规则覆盖 */
  .hs-table.cmp .hs-tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"main time" "sub jobs";
  }
  .hs-table.cmp .hs-tr > *:nth-child(1){grid-area:main;}
  .hs-table.cmp .hs-tr > *:nth-child(2){grid-area:sub;font-size:12px;color:var(--txt3);}
  .hs-table.cmp .hs-tr > *:nth-child(3),
  .hs-table.cmp .hs-tr > *:nth-child(4){display:none;}
  .hs-table.cmp .hs-tr > *:nth-child(5){grid-area:jobs;justify-self:end;}
  .hs-table.cmp .hs-tr > *:nth-child(6){grid-area:time;align-self:start;}

  /* 职位：职位+薪资 / 公司+时间 / 区域+查看 */
  .hs-table.job .hs-tr{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"main money" "sub time" "area ops";
  }
  .hs-table.job .hs-tr > *:nth-child(1){grid-area:main;}
  .hs-table.job .hs-tr > *:nth-child(2){grid-area:sub;font-size:12px;color:var(--txt3);}
  .hs-table.job .hs-tr > *:nth-child(3){grid-area:area;font-size:12px;color:var(--txt3);}
  .hs-table.job .hs-tr > *:nth-child(4){grid-area:money;align-self:start;text-align:right;}
  .hs-table.job .hs-tr > *:nth-child(5){grid-area:time;text-align:right;}
  .hs-table.job .hs-tr > *:nth-child(6){grid-area:ops;}

  .hs-logo{width:22px;height:22px;}
  .hs-pager{padding:14px 8px 18px;gap:4px;}
  .hs-pager .pg-info{display:none;}
}
