/* ============================================================
   禾众猎头官网 — 极简视觉规范
   原则：黑白灰为主 + 单一强调色；细线替代阴影；大留白；
        统一 1200 栅格；层级靠字号与留白，不靠装饰。
   ============================================================ */

:root {
  /* —— 中性色 —— */
  --ink: #0E1013;          /* 标题 / 主文字 */
  --text: #3B424E;         /* 正文 */
  --muted: #767E8C;        /* 次级文字 */
  --faint: #A6ACB8;        /* 弱化文字 */
  --line: #EDEEF1;         /* 分隔线 */
  --line-2: #DFE2E8;       /* 描边（卡片 / 输入框） */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-chip: #F5F6F8;      /* 极浅底 */

  /* —— 强调色（全局唯一） —— */
  --accent: #2456E6;
  --accent-hover: #1B45B8;
  --accent-soft: #EFF3FF;
  --ok: #10B981;
  --ok-soft: #E8F7F0;

  /* —— 字体 —— */
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;

  /* —— 栅格与圆角 —— */
  --maxw: 1200px;
  --pad: 40px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ============ 通用布局 ============ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.sec-title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 10px;
}
.sec-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 380px;
  text-align: right;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #262A31; }
.btn-secondary { background: #FFFFFF; border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.link-arrow:hover { color: var(--accent-hover); }

/* ============ 导航栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { line-height: 0; }
.logo-text-col { display: flex; flex-direction: column; gap: 1px; }
.logo-cn { font-size: 17px; line-height: 1.2; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.logo-en { font-size: 8.5px; line-height: 1.2; font-weight: 600; color: var(--faint); letter-spacing: 0.16em; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link-active { color: var(--ink); }

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.header-cta:hover { background: #262A31; }

/* ============ 首屏 Hero ============ */
.hero { padding: 96px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero-badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); display: block;
}

.hero-headline {
  margin-top: 26px;
  font-size: 46px;
  line-height: 1.26;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 20px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text);
}

.hero-cta-row { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

/* —— 右侧岗位面板 —— */
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #FFFFFF;
  overflow: hidden;
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.hero-panel-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-panel-tag { font-size: 12px; color: var(--faint); }

.job-list { display: flex; flex-direction: column; }
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.job-item:last-child { border-bottom: none; }
.job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.job-meta { font-size: 12.5px; color: var(--faint); }
.job-days {
  font-family: "Inter", var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.hero-panel-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-panel-foot .chip-num {
  font-family: "Inter", var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hero-image {
  display: none;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-chip);
  min-height: 180px;
}
.hero-image img { display: block; width: 100%; height: 190px; object-fit: cover; }

/* ============ 专注赛道 ============ */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.track-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: border-color 0.2s ease;
}
.track-card:hover { border-color: #C7CBD4; }
.track-index {
  font-family: "Inter", var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.track-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.track-desc { font-size: 14.5px; line-height: 1.78; color: var(--text); }
.track-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.track-foot {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
  line-height: 1.7;
}

/* ============ 数据战绩 ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stat-card {
  padding: 32px 8px 32px 32px;
  border-left: 1px solid var(--line);
}
.stat-card:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: "Inter", var(--font-sans);
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num-unit { display: flex; align-items: baseline; gap: 4px; }
.stat-num-unit .unit { font-family: var(--font-sans); font-size: 17px; font-weight: 500; }
.stat-label { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ============ 成功案例 ============ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.case-card[data-track="green"]::before { background: var(--ok); }
.case-card:hover {
  border-color: #C7CBD4;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgba(14, 16, 19, 0.4);
}
.case-card:hover::before { transform: scaleX(1); }

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.case-tag.tag-green { background: var(--ok-soft); color: #0B7A4B; }
.case-scale { font-size: 11.5px; color: var(--faint); letter-spacing: 0.02em; }

.case-main { flex: 1; padding: 18px 24px 0; }
.case-company { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.case-title {
  margin-top: 6px;
  font-size: 18px; line-height: 1.45;
  font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.case-desc { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--text); }

.case-foot {
  margin-top: 22px;
  padding: 14px 24px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.case-metrics { display: flex; }
.metric { flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 10px; }
.metric + .metric { padding-left: 14px; border-left: 1px solid var(--line-2); }
.metric-num {
  font-family: "Inter", var(--font-sans);
  font-size: 17px; font-weight: 600;
  color: var(--ink); line-height: 1.2;
  letter-spacing: -0.01em;
}
.metric-label { font-size: 11.5px; color: var(--muted); }
.case-ic { flex-shrink: 0; }

/* ============ 客户口碑 ============ */
.testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.quote-icon { flex-shrink: 0; color: var(--line-2); }
.testi-quote { font-size: 15px; line-height: 1.8; color: var(--text); }
.testi-attr { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-chip); color: var(--muted);
  font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.avatar-green { background: var(--ok-soft); color: #0B7A4B; }
.testi-info { display: flex; flex-direction: column; gap: 1px; }
.testi-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.testi-role { font-size: 12.5px; color: var(--muted); }

/* ============ 公司墙 ============ */
.logo-section { padding: 0 0 104px; }
.logo-wall-label {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  margin-bottom: 32px;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 76px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
  overflow: hidden;
}
.logo-box:hover { background: var(--bg-soft); }
.logo-mark-sm {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-chip); color: var(--muted);
  font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.logo-img {
  max-width: 74%;
  max-height: 34px;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.logo-box-img:hover .logo-img { transform: scale(1.05); }
.logo-wordmark {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}
.logo-box:hover .logo-wordmark { color: var(--ink); }
.logo-name {
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-box:hover .logo-name { color: var(--ink); }

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  background: #FFFFFF;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}
.brand-col { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.brand-logo-row { display: flex; align-items: center; gap: 10px; line-height: 0; }
.brand-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.brand-tagline { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.contact-col { display: flex; flex-direction: column; gap: 6px; }
.contact-item { font-size: 13.5px; line-height: 1.7; color: var(--text); }

.link-cols { display: flex; gap: 72px; }
.link-col { display: flex; flex-direction: column; gap: 12px; }
.link-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); }
.link-item { font-size: 13.5px; color: var(--text); transition: color 0.2s ease; width: fit-content; }
.link-item:hover { color: var(--ink); }

.footer-bottom { margin-top: 56px; }
.footer-divider { height: 1px; background: var(--line); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}
.footer-legal { font-size: 12.5px; color: var(--faint); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 38px; }
  .hero-sub { max-width: 640px; }
  .hero-panel { max-width: 560px; }
  .track-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: 24px 8px 24px 24px; border-top: 1px solid var(--line); }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-top: none; }
  .stat-card:nth-child(3) { border-left: none; padding-left: 0; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .footer-top { flex-direction: column; gap: 48px; }
  .link-cols { gap: 56px; }
}

@media (max-width: 768px) {
  :root { --pad: 22px; }
  .main-nav { display: none; }
  .section { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .sec-title { font-size: 25px; }
  .sec-note { text-align: left; max-width: none; }
  .hero { padding: 64px 0 56px; }
  .hero-headline { font-size: 31px; line-height: 1.32; }
  .hero-sub { font-size: 15px; }
  .hero-cta-row .btn { width: 100%; }
  .track-card { padding: 28px; }
  .case-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-card { padding: 20px 0; border-left: none; border-top: 1px solid var(--line); }
  .stat-card:first-child { border-top: none; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-section { padding-bottom: 72px; }
  .link-cols { flex-wrap: wrap; gap: 32px 48px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   招聘需求提交弹窗
   ============================================================ */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lead-modal[hidden], [hidden] { display: none; }

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 19, 0.45);
}

.lead-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.lead-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lead-close:hover { background: var(--bg-chip); }

.lead-head { padding-right: 40px; }
.lead-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; }
.lead-title { margin-top: 8px; font-size: 23px; line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.lead-sub { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

.lead-form { margin-top: 26px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field-full { margin-top: 16px; }
.lead-field > span { font-size: 13px; font-weight: 500; color: var(--text); }
.lead-field em { font-style: normal; color: #D92D20; margin-left: 2px; }

.lead-field input,
.lead-field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-field input { height: 42px; }
.lead-field textarea { resize: vertical; min-height: 92px; }
.lead-field input::placeholder,
.lead-field textarea::placeholder { color: var(--faint); }
.lead-field input:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.1);
}
.lead-field input.is-invalid,
.lead-field textarea.is-invalid {
  border-color: #D92D20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

/* 蜜罐字段：仅机器人会填写 */
.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-error {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #B42318;
  background: #FEF3F2;
  border: 1px solid #FEE4E2;
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.lead-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.lead-actions .btn { height: 44px; padding: 0 24px; font-size: 14.5px; }
.lead-note { font-size: 12px; color: var(--faint); }

.lead-success { text-align: center; padding: 24px 8px 8px; }
.lead-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ok-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.lead-success-title { font-size: 19px; font-weight: 600; color: var(--ink); }
.lead-success-text { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 8px auto 22px; max-width: 400px; }
.lead-success-close { height: 42px; padding: 0 24px; font-size: 14px; }

body.lead-open { overflow: hidden; }

@media (max-width: 768px) {
  .lead-card { padding: 24px; }
  .lead-grid { grid-template-columns: 1fr; gap: 14px; }
  .lead-title { font-size: 20px; }
  .lead-actions .btn { width: 100%; }
  .lead-note { width: 100%; text-align: center; }
}
