.recruitment-hero{ padding: calc(var(--header-height) + 80px + 24px) 0 16px; background: var(--bg-white); border-bottom:1px solid var(--border-light) }
.recruitment-title{ font-size: 32px; font-weight: 800; }
.recruitment-subtitle{ color: var(--text-secondary); margin-top: 6px }
.recruitment-hero .container{ display:flex; align-items:center; justify-content:space-between }

.filter-bar{ display:flex; gap:12px; padding:16px 0; }
.filter-btn{ display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid var(--border-light); border-radius:10px; background:#fff; cursor:pointer }
.filter-btn .icon{ width:16px; height:16px }
/* 让筛选图标使用站点主色 */
.filter-btn svg{ color: var(--primary-color); }

.selection-drawer{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; z-index:1200 }
.selection-drawer.show{ display:block }
/* 居中弹窗 */
.selection-panel{ position:absolute; left:50%; top:50%; transform: translate(-50%,-50%); background:#fff; border-radius:12px; box-shadow: var(--shadow-large); width: min(720px, 92vw); max-height: 80vh; overflow: auto }
.selection-header{ padding:12px 16px; border-bottom:1px solid var(--border-light); font-weight:700 }
.selection-body{ display:flex; min-height:50vh }
.level-one{ width:50%; background:var(--bg-gray); overflow:auto; padding:8px 0 }
.level-two{ width:50%; background:#fff; overflow:auto; padding:8px 0 }
.selection-item{ padding:10px 16px; cursor:pointer; transition: all 0.2s ease; }
.selection-item.active{ background:#fff; color:var(--primary-color); font-weight: 500; }
.selection-item:hover{ background: rgba(18,96,255,0.05); }
.selection-item.selected{ background: var(--primary-color); color: #fff; font-weight: 500; }
.selection-footer{ padding:16px 20px; border-top:1px solid var(--border-light); display:flex; gap:12px; justify-content:flex-end; }

.filters-panel{ position:fixed; inset:0; background: rgba(0,0,0,.45); display:none; z-index:1200; }
.filters-panel.show{ display:block }
/* 居中白色内容框 */
.filters-content{ background:#fff; border-radius:12px; box-shadow: var(--shadow-large); width: min(720px, 92vw); max-height: 80vh; overflow: auto; padding: 16px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.filters-group{ border-top: 10px solid var(--bg-gray); padding: 12px 0 }
.filters-title{ font-weight:700; margin-bottom:10px }
.filters-tags{ display:flex; gap:10px; flex-wrap:wrap }
.tag{ padding:6px 12px; border:1px solid var(--border-light); border-radius:999px; cursor:pointer }
.tag.active{ background: var(--primary-color); border-color: var(--primary-color); color:#fff }
.filters-actions{ display:flex; gap:12px; justify-content: flex-end; padding: 12px 0 24px }

.recruit-list{ display:flex; flex-direction:column; gap:12px; padding: 12px 0 }
.recruit-card{ background:#fff; border:1px solid var(--border-light); border-radius:12px; padding:16px; box-shadow: var(--shadow-light) }
.recruit-card .rc-row{ display:flex; justify-content:space-between; align-items:center }
.recruit-card .rc-title{ font-size:18px; font-weight:700; max-width:60%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.recruit-card .rc-salary{ color:#ff6e30; font-weight:700 }
.recruit-card .rc-desc{ color: var(--text-secondary); margin-top:8px; max-height: 88px; overflow:hidden }
.recruit-card .rc-meta{ display:flex; gap:16px; margin-top:10px; color: var(--text-secondary) }
.list-actions{ text-align:center; padding: 8px 0 24px }
/* 查看按钮（轻量） */
.btn-view{ display:inline-flex; align-items:center; gap:6px; height:32px; padding: 0 10px; border: 1px solid var(--primary-color); background:#fff; color: var(--primary-color); border-radius:6px; cursor:pointer; }
.btn-view:hover{ background: rgba(18,96,255,0.06); }
.btn-view svg{ width:16px; height:16px; }

/* 加载更多按钮 - 与招标大厅保持一致 */
#btnLoadMore{
  padding: 12px 32px;
  background: #ff6d31;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  min-width: 120px;
}
#btnLoadMore:hover:not(:disabled){ background:#e55a2b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,109,49,.3) }
#btnLoadMore:disabled{ background:#ccc; cursor:not-allowed; transform:none; box-shadow:none }
#btnLoadMore.error{ background:#ff4757; animation: shake .5s ease-in-out }
#btnLoadMore.error:hover{ background:#ff3742 }
@keyframes shake{ 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* 详情弹窗 */
.recruit-detail-modal{ position: fixed; inset: 0; z-index: 1300; display: none; }
.recruit-detail-modal.show{ display: block; }
.recruit-detail-overlay{ position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.recruit-detail-content{ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 12px; width: min(860px, 92vw); max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.recruit-detail-header{ display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 1; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.recruit-detail-header h3{ margin: 0; font-size: 18px; }
.recruit-detail-close{ border: none; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #999; }
.recruit-detail-close:hover{ color: #333; }
.recruit-detail-body{ padding: 16px 20px; overflow: auto; }
.recruit-detail-row{ display: flex; align-items: center; gap: 8px; margin: 6px 0; color: var(--text-secondary); }
.recruit-detail-title{ font-weight: 700; font-size: 18px; color: #222; margin: 0 0 6px; }
.recruit-detail-salary{ color: #ff6e30; font-weight: 700; }
.recruit-detail-section{ border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 10px; }
.recruit-detail-actions{ text-align:center; padding-bottom: 8px; }
.btn-call{ min-width: 200px; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; line-height: 1; border-radius: 20px; text-align: center; }
/* 公司信息头 */
.recruit-detail-head{ display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.recruit-detail-head-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.recruit-detail-company{ display:flex; align-items:center; gap:12px; margin-bottom: 6px; }
.recruit-detail-avatar{ width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #f3f5f7; border: 1px solid #eee; }
.recruit-detail-meta{ display:flex; gap:14px; color: var(--text-secondary); font-size: 13px; margin: 6px 0; }
.recruit-detail-topline{ display:flex; align-items:center; justify-content: space-between; gap: 12px; }

@media (max-width: 768px){
  /* 1. 缩小页面距离头部的距离 */
  .recruitment-hero{ padding: calc(var(--header-height) + 40px + 16px) 0 12px; }
  .recruitment-title{ font-size: 24px; }
  .recruitment-subtitle{ font-size: 14px; }
  
  /* 2. 缩小发布我的招聘按钮 */
  .recruitment-hero .container{ 
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  #btnPublishRecruit{ 
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-width: auto !important;
    white-space: nowrap;
  }
  
  /* 3. 缩小查看详情弹窗中的用户名称字体 */
  .recruit-detail-content{ width: 94vw; }
  .recruit-detail-title{ font-size: 15px; }
  .recruit-detail-avatar{ width: 40px; height: 40px; }
}

@media (max-width: 768px){
  .selection-body{ min-height: 60vh }
}

/* 发布招聘弹窗样式 */
/* Publish modal container: below header, header remains top-most */
.publish-recruit-modal{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; z-index:9000; padding-top: calc(var(--header-height, 80px) + 120px); padding-bottom: 20px; overflow:auto; }
.publish-recruit-modal.show{ display:flex; align-items:flex-start; justify-content:center; }

/* Publish modal content: use normal flow inside flex container */
.publish-recruit-content{ position:relative; left:auto; top:auto; transform:none; background:#fff; border-radius:14px; box-shadow:0 20px 40px rgba(0,0,0,.18); width:min(800px,94vw); display:flex; flex-direction:column; overflow:hidden; max-height: calc(100vh - var(--header-height, 80px) - 140px); }

.publish-recruit-header{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; z-index:1; }
.publish-recruit-header h3{ margin:0; font-size:18px; }
.publish-recruit-close{ background:transparent; border:0; font-size:20px; cursor:pointer; line-height:1; padding:4px 8px; transition:background .2s ease,color .2s ease; }
.publish-recruit-close:hover{ background:#f0f0f0; color:#333; }
.publish-recruit-body{ padding:20px; overflow-y:auto; -webkit-overflow-scrolling: touch; width:100%; }
.publish-recruit-body .form-group{ margin-bottom:16px; }

/* 发布招聘表单两列布局 */
.publish-recruit-form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px 20px; width:100%; }
.publish-recruit-form-grid .form-group{ margin-bottom:0; }
.publish-recruit-form-grid .form-group:last-child{ grid-column: 1 / -1; }
.publish-recruit-form-grid .form-group:nth-last-child(2){ grid-column: 1 / -1; }
.form-group label{ display:block; font-weight:600; color:var(--text-primary); margin-bottom:6px; font-size:14px; }
.form-input{ width:100%; padding:10px 12px; border:1px solid var(--border-light); border-radius:6px; font-size:14px; transition:border-color .2s ease; }
.form-input:focus{ outline:none; border-color:var(--primary-color); }
.form-select{ width:100%; padding:10px 12px; border:1px solid var(--border-light); border-radius:6px; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:space-between; font-size:14px; transition:border-color .2s ease; }
.form-select:hover{ border-color:var(--primary-color); }
.form-select-native{ width:100%; padding:10px 12px; border:1px solid var(--border-light); border-radius:6px; font-size:14px; background:#fff; appearance:none; -webkit-appearance: none; -moz-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, calc(100% - 2.4em) 50%; background-size: 6px 6px, 6px 6px, 1px 60%; background-repeat: no-repeat }
.form-select-native:focus{ outline:none; border-color: var(--primary-color) }
.form-textarea{ width:100%; padding:10px 12px; border:1px solid var(--border-light); border-radius:6px; font-size:14px; min-height:80px; resize:vertical; transition:border-color .2s ease; }
.form-textarea:focus{ outline:none; border-color:var(--primary-color); }
.form-actions{ display:flex; gap:12px; justify-content:flex-end; margin-top:20px; padding-top:16px; border-top:1px solid var(--border-light); }

/* Two-per-row layout for selection fields on larger screens */
@media (min-width: 769px){
  #publishRecruitForm{ display:flex; flex-wrap:wrap; gap:12px 16px }
  #publishRecruitForm .form-group{ flex: 1 1 100% }
  #publishRecruitForm .form-group:has(#btnRecruitPosition),
  #publishRecruitForm .form-group:has(#btnRecruitType),
  #publishRecruitForm .form-group:has(#btnRecruitFeature),
  #publishRecruitForm .form-group:has(#btnRecruitLanguage),
  #publishRecruitForm .form-group:has(#btnRecruitWorkplace){ flex: 1 1 calc(50% - 16px) }
  #publishRecruitForm .form-actions{ flex: 1 1 100%; justify-content: flex-end }
}

@media (max-width: 768px){
  .publish-recruit-modal{ padding-top: calc(var(--header-height, 80px) + 100px); }
  .publish-recruit-content{ width: 94vw; max-height: calc(100vh - var(--header-height, 80px) - 120px); }
  .publish-recruit-form-grid{ grid-template-columns: 1fr; gap: 16px; }
  .publish-recruit-form-grid .form-group:last-child{ grid-column: 1; }
  .publish-recruit-form-grid .form-group:nth-last-child(2){ grid-column: 1; }
}

/* 开通招聘功能弹窗 */
.enable-recruit-modal{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; z-index:9000; padding-top: calc(var(--header-height, 80px) + 120px); padding-bottom:20px; overflow:auto }
.enable-recruit-modal.show{ display:flex; align-items:flex-start; justify-content:center }
.enable-recruit-content{ position:relative; background:#fff; border-radius:14px; box-shadow:0 20px 40px rgba(0,0,0,.18); width:min(680px,92vw); max-height: calc(100vh - var(--header-height, 80px) - 140px); display:flex; flex-direction:column; overflow:hidden }
.enable-recruit-header{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; z-index:1 }
.enable-recruit-close{ background:transparent; border:0; font-size:20px; cursor:pointer; line-height:1; padding:4px 8px }
.enable-recruit-body{ padding:20px; overflow:auto; display:flex; flex-direction:column; gap:16px }
.enable-recruit-tip{ margin:0; color:#666; line-height:1.6 }
.enable-recruit-plans{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px }
.enable-recruit-plan{ border:1px solid #eee; border-radius:10px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease }
.enable-recruit-plan:hover{ border-color: var(--primary-color); box-shadow: 0 6px 18px rgba(0,0,0,.06) }
.enable-recruit-plan.selected{ border-color: var(--primary-color); background: rgba(255,109,49,.06) }
.enable-recruit-plan .plan-title{ font-weight:600 }
.enable-recruit-plan .plan-price{ color:var(--primary-color) }
/* 弹窗底部按钮区域 */
.enable-recruit-body .form-actions{ display:flex; justify-content:flex-end; gap:12px; padding-top:8px }
@media (max-width: 768px){
  .enable-recruit-modal{ padding-top: calc(var(--header-height, 80px) + 100px) }
  .enable-recruit-content{ width:94vw; max-height: calc(100vh - var(--header-height, 80px) - 120px) }
  .enable-recruit-plans{ grid-template-columns: 1fr }
}

/* Publish select panel */
.publish-select-panel{ position:fixed; left:50%; top:50%; transform: translate(-50%,-50%); background:#fff; border-radius:12px; box-shadow: var(--shadow-large, 0 20px 40px rgba(0,0,0,.18)); width:min(720px, 92vw); max-height:80vh; display:none; flex-direction:column; overflow:hidden; z-index:9500 }
.publish-select-panel.show{ display:flex }
.psp-header{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--border-light, #eee); background:#fff; position:sticky; top:0; z-index:1 }
.psp-header h4{ margin:0; font-size:16px }
.psp-close{ background:transparent; border:0; font-size:20px; cursor:pointer; padding:4px 8px }
.psp-body{ display:grid; grid-template-columns: 1fr 1fr; gap:0; min-height: 240px; max-height: calc(80vh - 120px); overflow:hidden }
.psp-col{ overflow:auto; -webkit-overflow-scrolling:touch; border-right:1px solid var(--border-light, #eee) }
.psp-col:last-child{ border-right:0 }
.psp-item{ padding:10px 14px; cursor:pointer; transition: background .15s ease }
.psp-item:hover{ background:#f7f8fa }
.psp-item.active{ background:#fff; color: var(--primary-color); font-weight:600 }
.psp-item.selected{ background: var(--primary-color); color:#fff }
.psp-actions{ padding:12px 16px; display:flex; justify-content:flex-end; gap:10px; border-top:1px solid var(--border-light, #eee) }


