*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #292929;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(44px + var(--safe-top, env(safe-area-inset-top, 0px)));
  padding: var(--safe-top, env(safe-area-inset-top, 0px)) 12px 0;
  background: #fff;
  border-bottom: 0.5px solid #eee;
}

.navbar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.navbar__title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  line-height: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__placeholder {
  width: 44px;
  flex-shrink: 0;
}

/* 页面内容 */
.page {
  padding: 12px 12px 24px;
}

/* Banner */
.banner {
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #4da6ff 0%, #2b6de5 55%, #1a52c7 100%);
  color: #fff;
}

.banner__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.banner__subtitle {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 4px;
}

.banner__desc {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.4;
}

/* 岗位卡片 */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.job-card:active {
  background: #fafafa;
}

.job-card__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.job-card__tag {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #2684ff;
  background: #e8f2ff;
  border-radius: 4px;
  line-height: 16px;
  margin-top: 2px;
}

.job-card__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: #292929;
  min-width: 0;
}

.job-card__salary {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2684ff;
  line-height: 22px;
}

.job-card__meta {
  font-size: 13px;
  color: #999;
  line-height: 18px;
  margin-bottom: 8px;
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.job-card__benefit {
  padding: 2px 8px;
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
  border-radius: 4px;
  line-height: 18px;
}

.job-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 0.5px solid #f0f0f0;
}

.job-card__company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.job-card__logo {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 0.5px solid #eee;
  background: #fafafa;
  object-fit: cover;
}

.job-card__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #bbb;
}

.job-card__company-info {
  min-width: 0;
}

.job-card__company-name {
  font-size: 13px;
  color: #333;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card__company-scale {
  font-size: 11px;
  color: #999;
  line-height: 16px;
  margin-top: 2px;
}

.job-card__location {
  flex-shrink: 0;
  font-size: 12px;
  color: #999;
  line-height: 18px;
  margin-left: 8px;
}

/* 加载更多 */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 8px;
  min-height: 52px;
}

.load-more__text {
  font-size: 13px;
  color: #999;
}

.load-more__text.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid #ddd;
  border-top-color: #2684ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-more.is-hidden {
  display: none;
}
