/* ===== 页面外壳（透明背景，跟随主题底色）
   写法与 ArchCompetition 的 .ac-archive__shell 完全一致：
   max-width 是上限而非定宽 —— 主题容器更窄时自动跟随主题；主题无容器时自己 1240px 居中。 */
.ajb-archive {
  background: transparent !important;
}

.ajb-archive__shell {
  container-type: inline-size;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.ajb-archive__shell,
.ajb-archive__shell * {
  box-sizing: border-box;
}

.ajb-wrap {
  width: 100%;
  color: #171717;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ===== 轮播 Banner（固定 21:9，图片 cover 裁剪填充，防主题 img 样式干扰） ===== */
.ajb-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #efe9e2;
  aspect-ratio: 21 / 9 !important;
  height: auto;
}

.ajb-banner-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ajb-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.33, 0.9, 0.35, 1);
  will-change: transform;
}

.ajb-banner-track.ajb-no-anim {
  transition: none;
}

.ajb-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: block;
  text-decoration: none;
}

.ajb-slide img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.ajb-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 54px 32px 26px;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 0%, rgba(23, 23, 23, 0.62) 100%);
  color: #ffffff;
  pointer-events: none;
}

.ajb-slide-cap h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ajb-slide-cap p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}

.ajb-banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #171717;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.ajb-banner-btn:hover {
  background: #ffffff;
}

.ajb-banner-prev { left: 14px; }
.ajb-banner-next { right: 14px; }

.ajb-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.ajb-banner-dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, width 0.25s ease;
}

.ajb-banner-dot.is-active {
  background: #ffffff;
  width: 22px;
  border-radius: 999px;
}

.ajb-banner.is-single .ajb-banner-btn,
.ajb-banner.is-single .ajb-banner-dots {
  display: none;
}

/* ===== 标签栏 + 搜索 ===== */
.ajb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 22px 0 24px;
}

.ajb-tagbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.ajb-tag-btn {
  border: 1px solid #d9cdbf;
  background: #ffffff;
  color: #4a4136;
  font-size: 14px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ajb-tag-btn:hover {
  border-color: #171717;
  color: #171717;
}

.ajb-tag-btn.is-active {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}

.ajb-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
}

.ajb-search input {
  height: 42px;
  width: 220px;
  border: 1px solid #d9cdbf;
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  color: #171717;
  outline: none;
}

.ajb-search input:focus {
  border-color: #171717;
}

.ajb-search-btn {
  height: 42px;
  border: 1px solid #171717;
  border-radius: 0 999px 999px 0;
  background: #171717;
  color: #ffffff;
  font-size: 14px;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ajb-search-btn:hover {
  background: #3a332c;
}

/* ===== 招聘卡片（3:4 竖版，比例强制生效） ===== */
.ajb-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ajb-c {
  background: #f8f1e9;
  border: none;
  border-radius: 18px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4 !important;
  min-height: 0 !important;
  max-height: none;
  overflow: hidden;
}

.ajb-c:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.ajb-q {
  display: block;
  line-height: 0;
  margin: 0 0 14px;
}

.ajb-q svg {
  width: 40px;
  height: 40px;
  display: block;
}

.ajb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ajb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ajb-tag {
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  border: none;
  border-radius: 999px;
  background: #efe4d8;
  color: #6f6254;
  white-space: nowrap;
}

.ajb-c h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.ajb-o2 {
  font-size: 13px;
  color: #333;
  font-weight: 600;
}

.ajb-o2-link {
  text-decoration: none;
}

.ajb-o2-link:hover {
  text-decoration: underline;
}

.ajb-ln {
  height: 1px;
  background: #d9cdbf;
  margin: 10px 0 12px;
}

.ajb-m {
  margin: 0 0 10px;
  font-size: 13px;
}

.ajb-r {
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  color: #222;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.ajb-ri {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 0 0 5px;
}

.ajb-dot {
  color: #8b7d6f;
  line-height: 1.6;
}

.ajb-more {
  display: inline-block;
  margin: 2px 0 10px;
  font-size: 12px;
  color: #6f6254;
  text-decoration: none;
}

.ajb-more:hover {
  color: #53483c;
}

.ajb-a {
  display: flex;
  gap: 12px;
  border-top: 1px solid #e1d6c8;
  margin-top: 12px;
  padding-top: 12px;
  justify-content: flex-start;
}

.ajb-meta {
  font-size: 12px;
  color: #5b5148;
  border-bottom: 1px solid #b8aa98;
  padding-bottom: 1px;
  line-height: 1.2;
}

.ajb-e {
  padding: 30px;
  background: transparent;
  border: 1px dashed #666;
  grid-column: 1 / -1;
}

.ajb-load {
  text-align: center;
  padding: 16px 0 6px;
  color: #7b6e5f;
  font-size: 13px;
}

.ajb-load.is-loading .ajb-load-t {
  opacity: 0.65;
}

.ajb-load.is-done {
  color: #9b9083;
}

.ajb-sentinel {
  height: 2px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .ajb-g {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .ajb-archive__shell {
    padding: 24px 16px 64px;
  }

  .ajb-banner {
    border-radius: 14px;
  }

  .ajb-slide-cap {
    padding: 40px 18px 20px;
  }

  .ajb-slide-cap h2 {
    font-size: 20px;
  }

  .ajb-toolbar {
    margin: 16px 0 18px;
    gap: 12px;
  }

  .ajb-tagbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .ajb-tagbar::-webkit-scrollbar {
    display: none;
  }

  .ajb-search {
    width: 100%;
  }

  .ajb-search input {
    flex: 1;
    width: auto;
  }

  .ajb-g {
    grid-template-columns: 1fr;
  }

  .ajb-c {
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }

  .ajb-r {
    -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 92%, transparent 100%);
  }
}
