/* ============================================================
   一份好工作 · 企业官网 · 设计系统
   简约大气 / 深海军蓝 + 琥珀金
   ============================================================ */

:root {
  --primary: #16324f;
  --primary-2: #1f4766;
  --primary-dark: #0e2238;
  --accent: #e6a23c;
  --accent-strong: #d18a1f;
  --accent-soft: #f7ead0;
  --ink: #1f2937;
  --ink-soft: #5b6472;
  --ink-faint: #8b93a1;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #eef3f8;
  --line: #e7eaf0;
  --ok: #1e9e6a;
  --danger: #d64545;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, .05), 0 2px 8px rgba(16, 35, 63, .05);
  --shadow-md: 0 4px 16px rgba(16, 35, 63, .08), 0 12px 32px rgba(16, 35, 63, .08);
  --shadow-lg: 0 12px 40px rgba(16, 35, 63, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--primary); letter-spacing: .5px; }
/* 企业 logo：深蓝圆角方环 + 橙色圆点（色值取自企业 logo 原图 #24235a / #ff7803） */
.brand .logo-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand .logo-mark svg { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .18s; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: all .18s; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #4a2c04; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230, 162, 60, .4); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-tint); }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Hero（浅色版，参照品牌 UI 卡片浅蓝 #dde5fd） ---------- */
.hero { position: relative; overflow: hidden; color: var(--primary-dark); }
.hero-inner { padding: 88px 0 104px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  background: rgba(230, 162, 60, .16); border: 1px solid rgba(209, 138, 31, .4);
  color: var(--accent-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: .5px; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero p.lead { font-size: 19px; color: #46536b; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 60px; flex-wrap: wrap; }
.stat b { font-size: 34px; font-weight: 800; color: var(--primary-dark); display: block; }
.stat b span { color: var(--accent-strong); }
.stat span { font-size: 14px; color: #5b6880; }
.stat-note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: #6b7689; max-width: 640px; }

/* 搜索框（浅色版：白底深字） */
.searchbar { display: flex; gap: 10px; margin-top: 38px; max-width: 640px; }
.searchbar input {
  flex: 1; padding: 15px 20px; border-radius: 12px; border: 1px solid #c7d4ef;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 16px; outline: none;
  box-shadow: 0 2px 10px rgba(36, 35, 90, .06);
}
.searchbar input::placeholder { color: var(--ink-faint); }
.searchbar input:focus { background: #fff; border-color: var(--accent); }

/* ---------- 区块 ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: 36px; font-weight: 800; color: var(--primary); letter-spacing: .3px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--accent-strong); text-transform: uppercase; margin-bottom: 12px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 职位卡片 ---------- */
.job-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: all .2s;
}
.job-card:hover { border-color: #c9d4e2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.job-title a:hover { color: var(--primary); }
.job-company { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-tint); color: var(--primary-2); font-weight: 500;
}
.tag.salary { background: var(--accent-soft); color: #9a6412; font-weight: 600; }
.tag.source { background: #eef5ee; color: #2c7a52; }
.job-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 13.5px; color: var(--ink-faint); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 6px 6px 6px 0; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--accent); font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; color: var(--primary); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 套餐 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #4a2c04; font-size: 12.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; color: var(--primary); }
.plan .price { margin: 18px 0 6px; }
.plan .price b { font-size: 42px; font-weight: 800; color: var(--primary); }
.plan .price b small { font-size: 16px; font-weight: 600; }
.plan .price span { color: var(--ink-faint); font-size: 14px; }
.plan .desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 6px 0 26px; flex: 1; }
.plan ul li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-soft); font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.plan ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }

/* ---------- 表单 ---------- */
.form-card { max-width: 460px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); transition: border-color .18s, background .18s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-2); background: #fff; }
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.form-error { background: #fdecec; color: var(--danger); font-size: 13.5px; padding: 10px 14px; border-radius: 9px; margin-bottom: 16px; display: none; }
.form-success { background: #e9f7f0; color: var(--ok); font-size: 13.5px; padding: 10px 14px; border-radius: 9px; margin-bottom: 16px; display: none; }
.form-foot { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 18px; }
.form-foot a { color: var(--primary); font-weight: 600; }

/* tabs */
.tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tabs button { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 9px; font-weight: 600; color: var(--ink-soft); font-size: 14.5px; transition: all .18s; }
.tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---------- 页脚 ---------- */
.footer { background: var(--primary-dark); color: rgba(255, 255, 255, .72); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255, 255, 255, .62); transition: color .18s; }
.footer a:hover { color: var(--accent); }
.footer .brand { color: #fff; }
/* 页脚深色背景：logo 双臂随 currentColor 反白，橙点保持品牌色 */
.footer .about-txt { font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-disclaimer { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, .55); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 通用 ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.muted { color: var(--ink-soft); }
.page-hero { background: linear-gradient(135deg, #eaf0fc 0%, #dde5fd 60%, #cfdcfb 100%); color: var(--primary-dark); padding: 72px 0; border-bottom: 1px solid #d5def3; }
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero p { color: #46536b; margin-top: 12px; font-size: 17px; max-width: 680px; }

/* 通知 toast */
#toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px); background: var(--primary-dark); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* loading spinner */
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading-block { text-align: center; color: var(--ink-faint); padding: 40px 0; font-size: 14.5px; }

/* empty state */
.empty { text-align: center; color: var(--ink-faint); padding: 48px 0; }
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- 底部标签栏（移动端） ---------- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, .97); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(16, 35, 63, .06);
}
.tabbar-inner { display: flex; max-width: 560px; margin: 0 auto; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0; color: var(--ink-faint); font-size: 11px; font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a .ti { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.tabbar a .ti svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a.active .ti { color: var(--accent-strong); }

/* 私信聊天输入栏固定 dock */
.chat-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(16, 35, 63, .08);
}
.chat-dock .chat-dock-inner { display: flex; gap: 8px; max-width: 860px; margin: 0 auto; }
.chat-dock input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg-soft); outline: none; font-size: 16px; min-width: 0;
}
.chat-dock input:focus { border-color: var(--primary-2); background: #fff; }
.chat-dock .btn { border-radius: 22px; padding: 11px 22px; flex: none; }
body.has-chat-dock { padding-bottom: 72px; }
body.has-chat-dock .footer { display: none; }
body.has-chat-dock .tabbar { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 60px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    align-items: flex-start; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: 10px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0 72px; }
  .hero h1 { font-size: 34px; }
  .hero h1 br { display: none; }
  .hero-stats { gap: 28px; }
  .stat b { font-size: 26px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 28px; }
  .section-head { margin-bottom: 36px; }
  .page-hero h1 { font-size: 30px; }
  .searchbar { flex-direction: column; }
  .form-card { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap:28px; }

  /* 移动端增强：底部标签栏 */
  .tabbar { display: block; }
  body.has-tabbar { padding-bottom: 64px; }
  body.has-tabbar .footer { padding-bottom: 84px; }

  /* 移动端触控优化 */
  .btn { padding: 12px 18px; }
  .card { padding: 22px 20px; }
  .job-card { padding: 18px 18px; }
  .container { padding: 0 16px; }
  input, select, textarea { font-size: 16px; } /* 避免 iOS 聚焦自动缩放 */

  /* 顶部导航：手机端更紧凑，登录/会员按钮不换行溢出 */
  .nav-inner { gap: 12px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13.5px; }

  /* 页面 hero 区块手机端压缩 */
  .page-hero { padding: 30px 0 !important; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 15px; }

  /* 触控反馈：点击不闪蓝、有轻微按压反馈 */
  a, button, .card, .job-card { -webkit-tap-highlight-color: transparent; }
  .btn:active, .tabbar a:active { transform: scale(.97); }

  /* 卡片网格更紧凑 */
  .grid-2 { gap: 14px; }
  .section { padding: 44px 0; }

  /* 发帖 / 回复表单按钮区触控优化 */
  .composer-actions { gap: 10px !important; }
  .composer-actions .btn { flex: 1; }

  /* 论坛分类栏：横向滚动、隐藏滚动条 */
  .cat-scroll { margin-right: -16px; padding-right: 16px; }
  .cat-scroll::-webkit-scrollbar { display: none; }
  .cat-scroll { scrollbar-width: none; }
  .cat-scroll .btn { flex: none; white-space: nowrap; }

  /* 帖子详情标题在手机上适度缩小 */
  .post-title { font-size: 22px !important; }

  /* 论坛发帖按钮：手机端醒目 */
  .nav-actions .btn, .btn-primary { white-space: nowrap; }
}

/* 职位大厅筛选面板移动端折叠 */
.filter-toggle { display: none; }
@media (max-width: 720px) {
  .filter-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg-soft); color: var(--primary); font-weight: 600; font-size: 14px;
  }
  .filter-bar { display: none; }
  .filter-bar.open { display: flex; flex-direction: column; gap: 14px; background: var(--bg-soft); padding: 16px; border-radius: 14px; }
  .filter-bar.open .filter-item { width: 100%; }
  .filter-bar.open .filter-item select, .filter-bar.open .filter-item input { width: 100%; }
}

/* ---------- 网友提交信息源 ---------- */
.ssub-form { display: flex; flex-direction: column; gap: 12px; }
.ssub-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ssub-row input { flex: 2 1 320px; }
.ssub-row input + input { flex: 1 1 200px; }
.ssub-form input { padding: 12px 14px; border: 1px solid #d8dfeb; border-radius: 10px; font-size: 15px; background: #fff; color: var(--ink); }
.ssub-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45, 106, 213, .12); }
.ssub-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ssub-tip { font-size: 13px; color: #6b7689; }
.ssub-result { padding: 12px 14px; border-radius: 10px; font-size: 14.5px; line-height: 1.75; }
.ssub-result.ok { background: #eaf7ef; color: #17663f; }
.ssub-result.no { background: #fdecec; color: #8c2b2b; }
.ssub-item { padding: 14px 16px; border: 1px solid #e6eaf2; border-radius: 12px; margin-bottom: 12px; background: #fff; }
.ssub-item-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.ssub-item-top a { font-weight: 600; color: var(--primary-dark); word-break: break-all; }
.ssub-item-url { font-size: 13px; color: #6b7689; word-break: break-all; margin-top: 4px; }
.ssub-item-res { font-size: 13.5px; color: #46536b; margin-top: 6px; }
.ssub-item-time { font-size: 12.5px; color: #98a2b3; margin-top: 6px; }
.ssub-badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ssub-badge.ok { background: #e6f6ec; color: #1e9e6a; }
.ssub-badge.no { background: #fdecec; color: #c0392b; }
.ssub-badge.wait { background: #f2f4f8; color: #6b7689; }
.ssub-badge.branch { background: #fff3e5; color: #d97706; }
.branch-tag { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: #fff3e5; color: #d97706; margin-left: 4px; }
.ssub-item-sub { font-size: 12.5px; color: #8a94a6; margin-top: 3px; word-break: break-all; }

.footer-icp { margin-top: 12px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .45); }
.footer-icp a { color: rgba(255, 255, 255, .58); text-decoration: none; }
.footer-icp a:hover { color: #ff7803; text-decoration: underline; }
