/* ============================================================
   招贤纳士网 · 分站导航 H5 样式
   暖橙红主题 · 简洁大方 · 移动端优先 · 480px 居中容器
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #F0472B;
  --primary-deep: #D63A22;
  --orange: #FF7A29;
  --orange-light: #FFF3ED;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text: #1F2126;
  --text-sub: #8A8E99;
  --line: #F1F2F4;
  --pill-bg: #F4F5F7;
  --hero-gradient: linear-gradient(135deg, #FF9448 0%, #F5542E 52%, #E2361C 100%);
  --tag-gradient: linear-gradient(135deg, #FF8A3D, #F0472B);
  --header-shadow: 0 2px 12px rgba(240, 71, 43, .07);
  --card-shadow: 0 2px 14px rgba(28, 38, 58, .05);
  --card-border: #F2F3F5;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --radius-card: 16px;
  --radius-tag: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #E9EBEE;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(28, 38, 58, .08);
  position: relative;
}

/* ---------------- 吸顶头部（白底 + 居中 Logo） ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--header-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ---------------- 橙红渐变头图 + 搜索 ---------------- */
.hero {
  background: var(--hero-gradient);
  padding: 24px 16px 34px;
  position: relative;
  overflow: hidden;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-deco-1 {
  top: -54px;
  right: -48px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

.hero-deco-2 {
  bottom: -70px;
  left: -44px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 60% 60%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.hero-badge svg {
  width: 13px;
  height: 13px;
}

.hero-title {
  margin-top: 14px;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}

.hero-count {
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.5px;
  text-shadow: 0 2px 10px rgba(150, 20, 0, .18);
}

.hero-title-text {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
}

.hero-sub {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  margin-top: 9px;
  letter-spacing: .3px;
}

.search-box {
  margin-top: 18px;
  background: #FFFFFF;
  border-radius: 999px;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 16px;
  box-shadow: 0 8px 22px rgba(150, 26, 8, .16);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  padding: 0 10px;
  min-width: 0;
  font-family: inherit;
}

#searchInput::placeholder {
  color: #B0B4BD;
}

#searchInput::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  border: none;
  background: #D7DAE0;
  color: #FFFFFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.search-clear svg {
  width: 11px;
  height: 11px;
}

/* 头图底部柔和波浪过渡 */
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 22px;
  z-index: 1;
  display: block;
}

.hero-wave path {
  fill: var(--bg);
}

/* ---------------- 分类胶囊快速导航 ---------------- */
.cat-nav {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.cat-nav::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  border: none;
  background: var(--pill-bg);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1;
  padding: 10px 15px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .22s var(--ease);
  font-family: inherit;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--tag-gradient);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(240, 71, 43, .3);
}

/* ---------------- 分类区块 ---------------- */
.cat-list {
  padding: 16px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 16px 14px 17px;
  scroll-margin-top: 108px;
  animation: fadeUp .4s var(--ease) both;
}

.cat-card.hidden-by-search {
  display: none;
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF4ED, #FFE7DC);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon svg {
  width: 18px;
  height: 18px;
}

.cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  letter-spacing: .2px;
}

.cat-count {
  font-size: 11px;
  color: var(--primary);
  background: var(--orange-light);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 标签两列 */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tag-link {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FAFAFB;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  padding: 0 10px 0 12px;
  height: 42px;
  font-size: 13.5px;
  color: #33373F;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .18s var(--ease), background .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.tag-link .tag-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-link .tag-arrow {
  width: 14px;
  height: 14px;
  color: #C9CCD3;
  flex-shrink: 0;
  transition: transform .18s var(--ease), color .18s var(--ease);
}

.tag-link:hover {
  border-color: #FFD8C9;
  background: var(--orange-light);
  box-shadow: 0 3px 10px rgba(240, 71, 43, .08);
}

.tag-link:hover .tag-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

.tag-link:active {
  transform: scale(.97);
  background: var(--orange-light);
  border-color: #FFD2C4;
}

.tag-link:active .tag-arrow {
  color: var(--primary-deep);
}

.tag-link.match-hidden {
  display: none;
}

.tag-link mark {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

/* ---------------- 空状态 ---------------- */
.empty-state {
  text-align: center;
  padding: 60px 24px 44px;
  color: var(--text-sub);
}

.empty-state svg {
  width: 60px;
  height: 60px;
  color: #D6D9DF;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  font-weight: 600;
  color: #4A4E57;
}

.empty-state span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}

/* ---------------- 底部 ---------------- */
.site-footer {
  margin: 20px 12px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 20px 14px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 80px;
  background: #FAFAFB;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  color: #33373F;
  font-size: 12.5px;
  font-weight: 500;
  transition: transform .18s var(--ease), background .18s var(--ease),
    border-color .18s var(--ease);
}

.footer-link .footer-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--orange-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link .footer-ico svg {
  width: 18px;
  height: 18px;
}

.footer-link:hover {
  background: var(--orange-light);
  border-color: #FFD8C9;
}

.footer-link:active {
  transform: scale(.96);
}

.hotline {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--tag-gradient);
  background-size: 160% 100%;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 999px;
  height: 50px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(240, 71, 43, .28);
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.hotline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hotline svg {
  width: 19px;
  height: 19px;
}

.hotline strong {
  font-size: 17px;
  letter-spacing: .6px;
  font-weight: 700;
}

.hotline:active {
  transform: scale(.98);
  box-shadow: 0 4px 12px rgba(240, 71, 43, .26);
}

.copyright {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  color: #AEB2BB;
  line-height: 1.7;
}

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed;
  right: calc(50% - 240px + 14px);
  bottom: 92px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, .95);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(28, 38, 58, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

.back-top:active {
  transform: scale(.9);
}

@media (max-width: 480px) {
  .back-top {
    right: 14px;
  }
}

/* ---------------- 动效 ---------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cat-card {
    animation: none;
  }
}
