/* ============================================
   全方向招聘网站 · 样式
   响应式：PC 网格布局 / 移动端单列
   ============================================ */

:root {
  --brand: #2f5fe0;
  --brand-2: #4f7bff;
  --brand-soft: #eef3ff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #161e2e;
  --sub: #6b7385;
  --muted: #98a0b3;
  --line: #e8ecf4;
  --shadow-sm: 0 1px 2px rgba(18, 28, 58, .04), 0 6px 20px rgba(18, 28, 58, .05);
  --shadow-md: 0 2px 6px rgba(18, 28, 58, .05), 0 12px 34px rgba(18, 28, 58, .08);
  --shadow-lg: 0 20px 60px rgba(18, 28, 58, .14);
  --radius: 16px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { cursor: pointer; text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(232, 236, 244, .9);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(18, 28, 58, .07); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-box { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.brand-tx { display: flex; flex-direction: column; justify-content: center; }
.brand-cn { font-size: 18px; font-weight: 800; letter-spacing: .8px; line-height: 1.15; color: var(--text); }
.brand-en { font-size: 10px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.2; }
.nav-title { font-size: 17px; font-weight: 700; letter-spacing: .6px; color: var(--text); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14px;
  color: var(--sub);
  padding: 8px 14px;
  border-radius: 9px;
  transition: .16s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(150deg, #2f5fe0 0%, #4470f2 48%, #6d8ffb 100%);
  color: #fff;
  padding: 68px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -180px;
  top: -260px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 65%);
  pointer-events: none;
}
.hero-h1 {
  margin: 0;
  font-size: clamp(32px, 4.9vw, 50px);
  font-weight: 800;
  letter-spacing: 4px;
  text-indent: 4px;
  position: relative;
}
.hero-sub {
  margin: 18px 0 0;
  font-size: clamp(14px, 1.7vw, 16.5px);
  line-height: 1.85;
  color: rgba(255, 255, 255, .93);
  position: relative;
}
.hero-sub b { font-weight: 700; color: #fff; }
.hero-facts { display: flex; gap: 52px; margin-top: 34px; position: relative; }
.hf b { display: block; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.2; }
.hf span { font-size: 13px; color: rgba(255, 255, 255, .84); }

/* ============ 筛选 ============ */
.filter-sec { margin-top: -52px; position: relative; z-index: 10; }
.filter-row {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 48px;
  padding: 0 16px;
  background: #f7f9fc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: .16s;
}
.search-box:focus-within { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(79, 123, 255, .1); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: var(--text);
  font-family: inherit;
}
.search-box input::placeholder { color: #a8b0c2; }
.search-clear {
  display: none;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: #dfe4ee;
  color: #7a8299;
  font-size: 15px;
  flex: 0 0 auto;
}
.search-clear.show { display: block; }

.select-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  height: 48px;
  padding: 4px 14px;
  background: #f7f9fc;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: .16s;
}
.select-box:hover { border-color: #c7d3f5; }
.select-box.active { border-color: var(--brand-2); background: var(--brand-soft); }
.select-box label { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; line-height: 1.2; }
.select-box select {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  width: 100%;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%2398a0b3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}
.select-box.active select { color: var(--brand); }

.result-line {
  padding: 18px 4px 0;
  font-size: 13.5px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-line b { color: var(--brand); font-weight: 700; font-size: 15px; }
.reset-link { margin-left: auto; color: var(--brand); font-weight: 600; font-size: 13px; }
.reset-link:hover { text-decoration: underline; }

/* ============ 岗位列表 ============ */
.list-sec { padding: 22px 0 40px; }
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.job {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  border: 1.5px solid rgba(232, 236, 244, .95);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: .2s cubic-bezier(.2, .8, .3, 1);
  display: flex;
  flex-direction: column;
}
.job:hover {
  transform: translateY(-3px);
  border-color: #cfdaf9;
  box-shadow: var(--shadow-md);
}
.job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.job-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: .2s;
  margin-top: 2px;
}
.job:hover .job-arrow { background: var(--brand); color: #fff; transform: translateX(3px); }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 7px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.tag-sec-1 { background: #eef1ff; color: #3b57c4; }
.tag-sec-2 { background: #e8f6f0; color: #1f8a63; }
.tag-dir { background: #f4f6fb; color: #7a8299; }
.job-desc {
  margin-top: 15px;
  font-size: 13.5px;
  color: #5c6479;
  line-height: 1.72;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.job-foot .go { color: var(--brand); font-weight: 600; }

/* 空状态 */
.empty { padding: 100px 20px; text-align: center; }
.empty-icon { font-size: 48px; opacity: .45; }
.empty-t { font-size: 16px; color: var(--sub); margin-top: 16px; font-weight: 600; }
.empty-s { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.btn-empty {
  margin-top: 24px;
  padding: 10px 30px;
  font-size: 14px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 24px;
  font-weight: 600;
  transition: .16s;
}
.btn-empty:hover { background: #dde6ff; }

/* ============ 通用区块标题 ============ */
.sec-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  line-height: 1.3;
}

/* ============ 投递说明 ============ */
.apply-sec { padding: 0 0 60px; }
.apply-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
}
.apply-lb { font-size: 12.5px; color: var(--muted); }
.apply-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 19px;
  font-weight: 700;
  color: var(--brand);
  word-break: break-all;
}
.apply-mail:hover { text-decoration: underline; }
.apply-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn-copy {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  transition: .16s;
}
.btn-copy:hover { background: #254ec4; }
.btn-copy.ghost { background: var(--brand-soft); color: var(--brand); }
.btn-copy.ghost:hover { background: #dde6ff; }
.apply-tips { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); padding-left: 36px; }
.apply-tips li {
  font-size: 13.5px;
  color: #4a5268;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
.apply-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}
.apply-tips li:last-child { margin-bottom: 0; }
.apply-tips b { color: #1f2941; font-weight: 650; }

/* ============ 页脚 ============ */
.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  text-align: center;
}
.foot p { margin: 0; font-size: 13px; color: var(--muted); }
.foot-sub { margin-top: 7px !important; }

/* ============ 详情页 ============ */
.detail-hero {
  background: linear-gradient(150deg, #2f5fe0 0%, #4b76f4 55%, #7b98fb 100%);
  color: #fff;
  padding: 26px 0 54px;
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: '';
  position: absolute;
  right: -200px;
  top: -280px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
  pointer-events: none;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  padding: 7px 14px 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .13);
  transition: .16s;
  position: relative;
  z-index: 2;
}
.back-link:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.dh-co {
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  letter-spacing: 2px;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}
.dh-name {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.dh-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; position: relative; z-index: 2; }
.dh-tags .tag {
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 8px;
}

.detail-wrap { padding: 34px 24px 60px; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.sec {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(232, 236, 244, .95);
  margin-bottom: 20px;
  overflow: hidden;
}
.sec-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
}
.sec-h .bar { width: 4px; height: 17px; border-radius: 2px; background: var(--brand); flex: 0 0 auto; }
.sec-h .t { font-size: 17px; font-weight: 700; flex: 1; letter-spacing: .3px; }
.sec-h .arw {
  width: 9px;
  height: 9px;
  border-right: 2.2px solid var(--muted);
  border-bottom: 2.2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s;
  flex: 0 0 auto;
}
.sec.open .sec-h .arw { transform: rotate(225deg) translate(-2px, -2px); }
.sec-c { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sec.open .sec-c { max-height: 8000px; }
.sec-inner { padding: 0 28px 28px; }

.sub-t {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #2b3550;
  margin: 22px 0 13px;
}
.sub-t:first-child { margin-top: 0; }
.sub-t .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
  margin-right: 9px;
}
.para { font-size: 14.5px; line-height: 1.9; color: #4a5268; margin: 0; }
.li { display: flex; align-items: flex-start; margin-bottom: 11px; }
.li .bullet {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  margin-right: 12px;
}
.li .txt { flex: 1; font-size: 14.5px; line-height: 1.85; color: #4a5268; }
.li .txt b, .para b { color: #1f2941; font-weight: 650; }

/* 侧栏 */
.detail-side { position: sticky; top: 84px; }
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 24px;
}
.side-lb { font-size: 12.5px; color: var(--muted); }
.side-mail {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  word-break: break-all;
  line-height: 1.5;
}
.side-mail:hover { text-decoration: underline; }
.btn-primary {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f5fe0, #4d78f5);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .5px;
  box-shadow: 0 8px 22px rgba(47, 95, 224, .3);
  transition: .16s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 95, 224, .38); }
.btn-line {
  width: 100%;
  height: 42px;
  margin-top: 9px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  color: #3b57c4;
  font-size: 13.5px;
  font-weight: 600;
  transition: .16s;
}
.btn-line:hover { background: var(--brand-soft); border-color: #cfdaf9; }
.side-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #fff8ec;
  border: 1px solid #ffe6bd;
  font-size: 12.5px;
  color: #8a6420;
  line-height: 1.7;
}
.side-note b { color: #7a5510; }

/* ============ 悬浮按钮（右下角，垂直排列） ============
   仅窄屏详情页显示：回到顶部 / 分享。邮件投递走底部栏 */
.fab-group {
  position: fixed;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));  /* 抬高，避开底部栏 */
  z-index: 95;
  display: none;                 /* 默认隐藏，仅详情页由 JS 开启 */
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
body.show-fab .fab-group { display: flex; }

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .97);
  color: #3b57c4;
  border: 1.5px solid #dde4f2;
  box-shadow: 0 8px 22px rgba(22, 30, 46, .16);
  transition: transform .16s, box-shadow .16s, background .16s;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(.92); background: var(--brand-soft); }
.fab svg { flex: 0 0 auto; }

/* 回到顶部按钮：滚动到一定位置才出现 */
.fab#fabTop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .22s, visibility .22s, transform .22s, background .16s;
}
body.show-top-btn .fab#fabTop { opacity: 1; visibility: visible; transform: translateY(0); }

/* 页面底部给悬浮按钮 + 底部栏留出空间 */
body.has-fab .detail-wrap { padding-bottom: 200px; }

/* ============ 移动端底部栏（仅窄屏详情页） ============ */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 96;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
body.show-mobile-bar .mobile-bar { display: flex; }

.mb-info { flex: 1; min-width: 0; }
.mb-lb { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.mb-mail {
  font-size: 13.5px;
  font-weight: 700;
  color: #2b3550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #2f5fe0, #4d78f5);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(47, 95, 224, .32);
  -webkit-tap-highlight-color: transparent;
}
.mb-btn:active { transform: scale(.97); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  z-index: 200;
  background: rgba(24, 30, 46, .9);
  color: #fff;
  padding: 14px 26px;
  border-radius: 13px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
  backdrop-filter: blur(6px);
  max-width: 84vw;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-side .side-card { display: none; }
  .apply-card { grid-template-columns: 1fr; gap: 26px; }
  .apply-tips { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .job-grid { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 80px; }
  .hero-facts { gap: 34px; }
  .detail-wrap { padding: 24px 20px 60px; }
  /* 底部栏（~64px）+ 悬浮按钮组（~130px）都在时，留足空间避免压住页脚 */
  body.has-fab .detail-wrap { padding-bottom: 200px; }
  .sec-h { padding: 19px 22px; }
  .sec-inner { padding: 0 22px 24px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .filter-row { flex-direction: column; padding: 14px; gap: 10px; }
  .select-box { min-width: 0; width: 100%; }
  .job { padding: 20px 20px 17px; }
  .job-name { font-size: 17.5px; }
  .apply-card { padding: 22px 20px; }
  .apply-mail { font-size: 17px; }
  .sec-title { font-size: 19px; }
  .nav-title { font-size: 16px; }
  .dh-tags .tag { font-size: 11.5px; padding: 5px 11px; }
}

/* 打印友好 */
@media print {
  .nav, .fab-group, .mobile-bar, .filter-sec, .detail-side, .foot { display: none !important; }
  .sec-c { max-height: none !important; }
  body { background: #fff; }
}
