/* 当前文件只补充政策制度页面，头部和横幅继续复用服务大厅样式。 */
.policy-content {
  /* 正文筛选区域在桌面端距二级栏目底部 60px。 */
  margin-top: 40px;
  padding-bottom: 90px;
}

/* 分类筛选从设计稿 y=855 开始，底部分隔线位于 y=930。 */
.policy-filters {
  display: flex;
  height: 100px;
  padding: 24px 0 25px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}

.policy-filters a {
  display: grid;
  height: 50px;
  padding: 0 20px;
  place-items: center;
  border-radius: 6px;
  font-size: 18px;
  line-height: 30px;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.policy-filters a.is-active,
.policy-filters a:hover,
.policy-filters a:focus-visible {
  color: var(--primary);
  background: #eaf7ff;
}

/* 列表首项与筛选线保持 59px 间距，条目间距对应设计稿的 140px 节奏。 */
.policy-list {
  display: grid;
  margin-top: 59px;
  row-gap: 40px;
}

.policy-item {
  display: grid;
  width: 1680px;
  height: 100px;
  margin: 0;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
}

.policy-item time {
  display: block;
  width: 60px;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.policy-item time strong,
.policy-item time span {
  display: block;
  font-weight: 400;
  line-height: 30px;
}

.policy-item time strong {
  color: #000000;
  font-size: 24px;
}

.policy-item time span {
  font-size: 14px;
}

/* 默认态复用招聘公告的 Figma 胶囊与右侧线条资源，保证制度条目外形一致。 */
.policy-item > a {
  position: relative;
  display: flex;
  height: 100px;
  padding: 0 40px 0 46px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* 左侧 6px 由伪元素绘制，背景从其右侧开始铺设。 */
  background:
    url("../img/figma/recruitment-list-pattern.png") right center / 900px 100px no-repeat,
    url("../img/figma/recruitment-list-item.svg") 6px 0 / calc(100% - 6px) 100% no-repeat;
  font-size: 18px;
  line-height: 30px;
  transition: color .2s ease, background-image .2s ease;
}

.policy-item > a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
  content: "";
}

.policy-item > a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-item em {
  display: flex;
  visibility: hidden;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  opacity: 0;
  font-size: 14px;
  font-style: normal;
  transition: opacity .2s ease;
}

.policy-item em i {
  display: block;
  width: 8px;
  height: 14px;
  background: url("../img/figma/recruitment-list-arrow-white.png") center / contain no-repeat;
  font-size: 0;
  font-style: normal;
  line-height: 14px;
}

/* 激活态复用招聘公告的蓝色胶囊资源，文本与详情入口同时切换为白色。 */
.is-pc .policy-item.is-highlighted > a,
.is-pc .policy-item > a:hover,
.is-pc .policy-item > a:focus-visible {
  color: #ffffff;
  background: url("../img/figma/recruitment-list-item-active.svg") 6px 0 / calc(100% - 6px) 100% no-repeat;
}

.is-pc .policy-item.is-highlighted em,
.is-pc .policy-item > a:hover em,
.is-pc .policy-item > a:focus-visible em {
  visibility: visible;
  opacity: 1;
}

/* 分页与 Figma 保持一行展示，页码使用圆形选中状态。 */
.pagination {
  display: flex;
  width: 690px;
  height: 36px;
  margin: 60px 0 0 495px;
  align-items: center;
  font-size: 16px;
  line-height: 30px;
}

.page-previous,
.page-next {
  flex: 0 0 48px;
  width: 48px;
  white-space: nowrap;
}

.page-previous.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

.page-numbers {
  display: flex;
  width: 252px;
  height: 36px;
  margin-left: 25px;
  align-items: center;
}

.page-numbers a,
.page-numbers span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
}

.page-numbers a.is-active {
  color: #ffffff;
  background: var(--primary);
}

.page-numbers a:not(.is-active):hover,
.page-numbers a:not(.is-active):focus-visible {
  color: var(--primary);
  background: #f1f6fa;
}

.page-next {
  margin-left: 40px;
}

.pagination-divider {
  width: 1px;
  height: 20px;
  margin-left: 40px;
  background: var(--line);
}

.page-jump {
  display: flex;
  height: 36px;
  margin-left: 39px;
  align-items: center;
  white-space: nowrap;
}

.page-jump label {
  width: 48px;
}

.page-jump input {
  width: 80px;
  height: 36px;
  margin-left: 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 36px;
  outline: none;
  color: var(--text);
  background: #ffffff;
  font: inherit;
  text-align: center;
  appearance: textfield;
}

.page-jump input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 92, 145, .12);
}

.page-jump span {
  margin-left: 10px;
}

/* 手机端隐藏桌面横幅，分类、列表和分页按纵向自然流排列。 */
.is-mobile .policy-content {
  /* 手机端正文筛选区域同样距二级栏目底部 60px。 */
  margin-top: 40px;
  padding-bottom: 40px;
}

.is-mobile .policy-filters {
  height: auto;
  padding: 18px 0;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}

.is-mobile .policy-filters::-webkit-scrollbar {
  display: none;
}

.is-mobile .policy-filters a {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 14px;
}

.is-mobile .policy-list {
  margin-top: 24px;
  row-gap: 14px;
}

.is-mobile .policy-item {
  display: block;
  width: 100%;
  height: auto;
}

.is-mobile .policy-item time {
  display: flex;
  width: auto;
  margin-bottom: 6px;
  align-items: baseline;
  gap: 8px;
  text-align: left;
}

.is-mobile .policy-item time strong,
.is-mobile .policy-item time span {
  display: inline;
}

.is-mobile .policy-item time strong {
  font-size: 20px;
  line-height: 26px;
}

.is-mobile .policy-item time span {
  font-size: 13px;
  line-height: 22px;
}

.is-mobile .policy-item > a {
  min-height: 72px;
  height: auto;
  padding: 14px 16px 14px 22px;
  /* 手机端保持原有纵向布局，只保留浅灰默认背景。 */
  border-radius: 0 0 8px 0;
  background: #f7f7f7;
  font-size: 15px;
  line-height: 24px;
}

.is-mobile .policy-item > a > span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.is-mobile .policy-item em {
  display: none;
}

/* 手机端左侧蓝线与招聘列表保持相同的 4px 宽度。 */
.is-mobile .policy-item > a::before {
  width: 4px;
}

.is-mobile .pagination {
  width: 100%;
  height: auto;
  margin: 32px 0 0;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 16px;
  font-size: 14px;
}

.is-mobile .page-previous,
.is-mobile .page-next {
  flex-basis: auto;
  width: auto;
}

.is-mobile .page-numbers {
  width: auto;
  height: 32px;
  margin-left: 8px;
}

.is-mobile .page-numbers a,
.is-mobile .page-numbers span {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
}

.is-mobile .page-next {
  margin-left: 8px;
}

.is-mobile .pagination-divider {
  display: none;
}

.is-mobile .page-jump {
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

.is-mobile .page-jump input {
  width: 72px;
}
