/* 招聘页面样式 */

/* 通用部分 */
.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-light {
  background-color: #f8f9fa;
}

/* 页面标题部分 */
/* .page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/recruitment-banner.jpg");
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  text-align: center;
} */

.page-title {
  font-size: 3rem;
  margin-bottom: 15px;
}

.breadcrumb {
  font-size: 1rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

/* 介绍部分 */
.recruitment-intro {
  padding: 70px 0;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

/* 员工福利部分 */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-bottom: 20px;
}

.benefit-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.benefit-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #333;
}

.benefit-card p {
  color: #666;
}

/* 职位列表部分 */
.jobs-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  margin: 0 10px 10px 0;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.job-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.job-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid var(--primary-color);
}

.job-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.job-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #333;
}

.job-tag {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.job-tag.pharmacy {
  background-color: #2196f3;
}

.job-tag.management {
  background-color: #ff9800;
}

.job-details {
  padding: 25px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.job-meta span {
  margin-right: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #666;
  font-size: 0.95rem;
}

.job-meta span i {
  margin-right: 8px;
  color: var(--primary-color);
}

.job-description h4 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: #333;
}

.job-description ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.job-description li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #555;
}

.job-salary {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e74c3c;
  margin: 20px 0;
}

.job-salary i {
  margin-right: 8px;
}

.apply-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  width: 100%;
  font-weight: 500;
}

.apply-btn:hover {
  background-color: var(--primary-color-dark, #388e3c);
}

/* 应聘流程部分 */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 50px;
}

.process-step {
  width: 220px;
  margin: 0 20px 40px;
  text-align: center;
  position: relative;
}

.step-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.step-icon i {
  font-size: 2.2rem;
  color: white;
}

.step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color, #ff9800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 3;
}

.process-step h3 {
  margin: 15px 0;
  font-size: 1.3rem;
  color: #333;
}

.process-step p {
  color: #666;
  line-height: 1.5;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 50px 0;
}

.modal-content {
  position: relative;
  background-color: white;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #333;
}

#modalJobTitle {
  margin: 20px 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* 表单样式 */
.application-form .form-group {
  margin-bottom: 25px;
}

.application-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-tip {
  font-size: 0.85rem;
  color: #777;
  margin-top: 5px;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-weight: 500;
}

.submit-btn:hover {
  background-color: var(--primary-color-dark, #388e3c);
}

/* 动画效果 */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left {
  transform: translateX(-30px);
}

.animate-fade-right {
  transform: translateX(30px);
}

.animate-fade-up.visible,
.animate-fade-left.visible,
.animate-fade-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 40px 0;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .process-step {
    width: 160px;
    margin: 0 10px 30px;
  }

  .step-icon {
    width: 70px;
    height: 70px;
  }

  .step-icon i {
    font-size: 1.8rem;
  }

  .modal-content {
    padding: 25px;
    margin: 0 15px;
  }
}

@media (max-width: 576px) {
  .benefit-card,
  .job-item {
    padding: 15px;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .job-tag {
    font-size: 0.8rem;
  }

  .job-meta {
    flex-direction: column;
    gap: 8px;
  }

  .job-meta span {
    margin-right: 0;
  }

  .process-steps {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    width: 100%;
    max-width: 250px;
  }
}
