/* ========== 基础样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
}

#app,
.job-recruitment-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[v-cloak] {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ========== 头部样式 ========== */
.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========== 导航栏样式 ========== */
.site-nav {
  background-color: #0052D9;
  width: 100%;
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-item {
  padding: 0.625rem 1.5rem;
  color: white;
  font-size: clamp(0.875rem, 1vw, 1rem);
  cursor: pointer;
}

.nav-item.active {
  background-color: #0046BE;
}

/* ========== 主内容区域样式 ========== */
.site-main {
  background-color: #F5F7FA;
  flex: 1;
}

.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ========== 页脚样式 ========== */
.site-footer {
  background-color: #0052D9;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.site-footer p {
  margin: 0;
}

/* ========== 搜索组件样式 ========== */
.search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.25rem;
  border: 1px solid #dcdfe6;
  border-radius: 0.25rem 0 0 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23909399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
}

.search-button {
  padding: 0.5rem 1.25rem;
  background-color: #0052D9;
  color: white;
  border: none;
  border-radius: 0 0.25rem 0.25rem 0;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* 高级搜搜 */
.advanced-search-button {
  padding: 0.5rem 1rem;
  background-color: white;
  color: #333;
  border: 1px solid #dcdfe6;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}

.filter-container {
  width: 100%;
  background-color: white;
  border: 1px solid #dcdfe6;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.filter-item {
  margin-bottom: 1rem;
  display: flex;
}

.filter-item:last-child {
  display: flex;
}

.filter-title {
  display: flex;
  white-space: nowrap;
  padding: 0.40rem 0.75rem;
  font-size: 1rem;
  color: #000000;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.filter-option {
  padding: 0.40rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  color: #606266;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-option:hover {
  background-color: #f5f7fa;
  color: #0052D9;
}

.filter-option.active {
  background-color: #e6f7ff;
  color: #0052D9;
  font-weight: 500;
}

/* ========== 顶部容器样式 ========== */
.top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  height: 400px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1%;
  /* 包含内边距和边框在宽度内 */
}

.login-area {
  width: 19%;
  margin-right: 1%;
  height: 100%;
  overflow: hidden;
}

.middle-container {
  width: 61%;
  margin-right: 0.8%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* =========swiper样式========= */
.swiper-container {
  width: 100%;
  height: 68%;
}

/* Swiper的slide设置 */
.swiper-slide {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit:cover;
}

.middle-container .middle-second-container {
  width: 100%;
  height: 32%;
  
}

.middle-container .middle-second-container img {
  width: 100%;
  height: 100%;
  margin-top: 1.6%;
}

.right-container {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-one {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 34%;
}

.right-two {
  margin-top: 4%;
  width: 100%;
  height: 34%;
}



.right-three {
  width: 100%;
  height: 32%;
}

.right-three img {
  width: 100%;
  height: 100%;
  margin-top: 5%;
}

/* ========== 劳动力人员列表样式 ========== */
.job-listings {
  margin-bottom: 2rem;
}

.job-listings h3 {
  text-align: center;
  font-size: 1.6rem;
  color:#2188e0;
  font-family: "Microsoft YaHei";
  margin: 1%;
}

/* 底部装饰线 */
.job-listings h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #7ab6ff; /* 深色调装饰线 */
  transition: width 0.3s ease;
  margin: 1% auto;
}

.job-listings h3:hover::after {
  width: 100px; /*  hover时装饰线变长，增强交互感 */
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

@media (max-width: 992px) {
  .job-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .job-grid {
    grid-template-columns: 1fr;
  }
}

.job-item {
  display: flex;
  background-color: white;
  border: 1px solid #e4e7ed;
  padding: 1rem 1.5rem;
}

.profile-photo {
  flex-shrink: 0;
  margin-right: 1rem;
  width: 6rem;
  height: 7.5rem;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-details {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex-grow: 1;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.applicant-name {
  font-weight: 550;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: #303133;
}

.interview-tag {
  color: #FF7043;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 550;
}

.education-info {
  position: relative;
  width: 100%;
  display: flex;
  color: #909399;
}

.job-type {
  font-size: 0.785rem;
}

.major {
  font-size: 0.785rem;
}

.divider {
  display: flex;
  align-items: center;
  content: '';
  width: 100%;
  border-top: #e0e0e0 1px solid;
}

.job-meta {
  font-size: 0.875rem;
  color: #909399;
}

.job-type-experience {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.no-data {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  height: 40vh;
}

.no-content {
  content: '';
  color: transparent;
  /* 文本透明 */
  background-color: aliceblue;
  /* 显式设置背景色 */
}

.no-content-image {
  width: 6vh;
  height: 6vh;
  opacity: 0;
  background-color: aliceblue;
}

/* ========== 分页样式 ========== */
.pagination-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2%;
}

.load-more {
  display: flex;
  padding: 1.2% 10%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* ========== 政策列表样式 ========== */
.news-container {
  padding: 1% 5% 2% 5%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-container h6{
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  font-family: "Microsoft YaHei";
  margin-bottom: 3%;
}

.news-container h6::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #7ab6ff; /* 深色调装饰线 */
  transition: width 0.3s ease;
  margin: 0 auto;
}

.news-container h6:hover::after {
  width: 100px;
}

.news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eaeaeae7;
  box-sizing: border-box;
}

.news-item:last-child {
  border-bottom: none;
}


.news-image {
  width: 3vh;
  height: 3vh;
  object-fit: cover;
}

.news-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin-bottom: 1%;
}

.news-title {
  font-size: 0.775rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1%;
}

.news-description {
  display: -webkit-box;
  font-size: 13px;
  color: #666;
  margin: 0 0 10px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-date {
  font-size: 0.775rem;
  color: #999;
  display: flex;
  align-items: center;
}

.date-icon {
  display: inline-flex;
  margin-right: 5px;
}


/* ========== 政策详情页样式 ========== */
.policy-details-container {
  background-color: #ffffff;
  width: 100%;
  padding: 10% 9% 2% 10%;
}

.policy-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3% 0 4% 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.policy-head span:first-child {
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
}

.policy-head span:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.policy-head span:last-child svg {
  margin-right: 5px;
}

.policy-content {
  line-height: 1.8;
  color: #333;
}

.policy-content p,
.policy-content ul,
.policy-content ol {
  margin-bottom: 1em;
}

.policy-content strong {
  font-weight: bold;
}

.policy-content ul,
.policy-content ol {
  padding-left: 1.5em;
}



/* 热门企业区域 */
.hot-enterprises {
  width: 100%;
  text-align: center;
}

.hot-enterprises h3 {
  font-size: 1.6rem;
  color:#2188e0;
  font-family: "Microsoft YaHei";
  margin: 1%;
  
}
/* 底部装饰线 */
.hot-enterprises h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #7ab6ff; /* 深色调装饰线 */
  transition: width 0.3s ease;
  margin: 1% auto;
}


.hot-enterprises h3:hover::after {
  width: 100px; /*  hover时装饰线变长，增强交互感 */
}

.enterprise-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(80px, 1fr));
  gap: 1%;
}

.enterprise-item {
  border: 1px solid #dcdfe6;
  overflow: hidden;
  margin-bottom: 1.5%;
}

.enterprise-item img {
  width: 100%;
  height: auto;
  display: block;
}