/* jobs.css - 招聘模块样式 */

/* 招聘模块样式 */
.jobs-section {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题区域 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-left {
  flex: 1;
  min-width: 300px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #1e293b;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* 搜索框 */
.job-search-form {
  width: 100%;
  max-width: 400px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 50px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 1rem;
  color: #475569;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #3b82f6;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #2563eb;
  transform: translateY(-50%) scale(1.05);
}

.search-btn svg {
  stroke: white;
}

/* 主内容布局 */
.jobs-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* 侧边栏 */
.jobs-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.sidebar-block {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #f1f5f9;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #1e293b;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

/* 热门职位 */
.hot-jobs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-job-item {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.hot-job-item:hover {
  background: white;
  border-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hot-job-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.urgent-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 5px;
}

.hot-job-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
}

.hot-job-info .salary {
  color: #3b82f6;
  font-weight: 500;
}

/* 筛选表单 */
.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 10px 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.filter-option:hover {
  background: #f8fafc;
  padding-left: 8px;
  padding-right: 8px;
}

.filter-option input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.filter-option span {
  font-size: 0.9rem;
  color: #64748b;
  flex: 1;
}

.filter-option:hover span {
  color: #475569;
}

.filter-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.reset-btn {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

/* 主内容区域 */
.jobs-main {
  min-height: 500px;
}

/* 筛选标签 */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #475569;
}

.remove-tag {
  color: #94a3b8;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.remove-tag:hover {
  background: #e2e8f0;
  color: #64748b;
}

/* 职位统计 */
.jobs-count {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.jobs-count p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.jobs-count strong {
  color: #3b82f6;
  font-weight: 600;
}

/* 职位列表 */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.job-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.job-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.job-title a:hover {
  color: #3b82f6;
}

.job-badges {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 10px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.hot-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.urgent-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* 职位基本信息 */
.job-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.info-item svg {
  flex-shrink: 0;
  stroke: #94a3b8;
}

/* 职位详情 */
.job-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item .label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.detail-item .value {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

.detail-item .salary {
  color: #3b82f6;
  font-weight: 600;
}

/* 职位描述 */
.job-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 15px 0;
  flex: 1;
}

/* 职位底部 */
.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.publish-time {
  font-size: 0.85rem;
  color: #94a3b8;
}

.apply-btn {
  padding: 8px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.apply-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
  stroke: #cbd5e1;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #475569;
}

.empty-state p {
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  color: #94a3b8;
}

.reset-link {
  display: inline-block;
  padding: 8px 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.reset-link:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px 0 20px 0;
  flex-wrap: wrap;
}

.page-prev,
.page-next {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  min-width: 100px;
  justify-content: center;
}

.page-prev:hover,
.page-next:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.page-numbers {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #e2e8f0;
}

.page-number:hover {
  background: #f8fafc;
  color: #3b82f6;
  border-color: #cbd5e1;
}

.page-number.active {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .jobs-container {
    grid-template-columns: 1fr;
  }
  
  .jobs-sidebar {
    position: static;
  }
  
  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .jobs-section {
    padding: 50px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-left {
    min-width: 100%;
  }
  
  .job-search-form {
    max-width: 100%;
  }
  
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  
  .job-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .job-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  
  .page-prev,
  .page-next {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .search-input {
    font-size: 0.9rem;
    padding: 10px 15px;
    padding-right: 45px;
  }
  
  .job-card {
    padding: 15px;
  }
  
  .job-title {
    font-size: 1.1rem;
  }
  
  .job-footer {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .apply-btn {
    text-align: center;
  }
}