/* 众仁OFFER · 官网门户 原生样式 */
:root {
  --red: #D9272C;
  --red-dark: #B71C21;
  --red-light: #FDECEC;
  --gold: #F5A623;
  --title: #1F2329;
  --text: #4E5969;
  --muted: #86909C;
  --border: #E5E6EB;
  --bg: #F5F6F7;
  --card: #FFFFFF;
  --green: #00B42A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部导航 ===== */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.nav-bar { display: flex; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; font-size: 22px; font-weight: 800; color: var(--red); margin-right: 40px; }
.logo .badge { background: var(--red); color: #fff; border-radius: 6px; padding: 2px 8px; margin-right: 6px; font-size: 16px; }
.logo .sub { color: var(--title); font-weight: 700; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { color: var(--title); font-size: 15px; padding: 8px 14px; border-radius: 6px; font-weight: 500; }
.main-nav a:hover { color: var(--red); background: var(--red-light); }
.main-nav a.active { color: var(--red); font-weight: 700; }
.nav-actions { display: flex; gap: 10px; }
.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-size: 14px; cursor: pointer; border: 1px solid transparent; font-weight: 500; }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red-light); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-gray { background: #E5E6EB; color: var(--muted); cursor: not-allowed; }

/* ===== 登录态用户菜单 ===== */
.user-menu { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #D9272C; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.user-name { color: var(--title); font-size: 14px; font-weight: 500; }
.user-drop { display: none; position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); min-width: 140px; z-index: 50; overflow: hidden; }
.user-menu:hover .user-drop { display: block; }
.user-drop a { display: block; padding: 10px 16px; color: var(--text); font-size: 14px; }
.user-drop a:hover { background: var(--red-light); color: var(--red); }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #D9272C 0%, #B71C21 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: 30px; margin-bottom: 8px; }
.hero p { opacity: .9; margin-bottom: 24px; }
.search-box { display: flex; background: #fff; border-radius: 8px; padding: 6px; max-width: 760px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.search-box input { flex: 1; border: 0; outline: 0; padding: 0 14px; font-size: 15px; height: 44px; }
.search-box select { border: 0; border-left: 1px solid var(--border); outline: 0; padding: 0 10px; height: 44px; color: var(--text); background: #fff; }
.search-box button { width: 130px; height: 44px; border: 0; background: var(--red); color: #fff; border-radius: 6px; font-size: 16px; cursor: pointer; }
.hot-words { margin-top: 14px; font-size: 13px; }
.hot-words a { color: #ffe3e3; margin-right: 16px; }
.hot-words a:hover { color: #fff; text-decoration: underline; }

/* ===== 统计 ===== */
.stats { background: #fff; margin-top: -28px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; padding: 24px 0; position: relative; }
.stat-item { flex: 1; text-align: center; }
.stat-item .num { font-size: 30px; font-weight: 800; color: var(--red); }
.stat-item .label { color: var(--muted); margin-top: 4px; }

/* ===== 通用区块 ===== */
.section { background: #fff; border-radius: 8px; padding: 24px; margin-top: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.section-title { font-size: 18px; font-weight: 700; color: var(--title); margin-bottom: 16px; display: flex; align-items: center; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--red); border-radius: 2px; margin-right: 8px; }
.section-title .more { margin-left: auto; font-size: 13px; font-weight: 400; }

/* 批次入口 */
.batch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.batch-card { border: 1px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; transition: .15s; }
.batch-card:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(217,39,44,.12); }
.batch-card .t { font-size: 16px; font-weight: 700; color: var(--title); }
.batch-card .c { color: var(--red); font-size: 13px; margin-top: 6px; }

/* 名企墙 */
.company-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.company-tile { border: 1px solid var(--border); border-radius: 8px; padding: 18px 10px; text-align: center; transition: .15s; }
.company-tile:hover { border-color: var(--red); }
.company-tile .logo-char { width: 44px; height: 44px; border-radius: 8px; background: var(--red-light); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 20px; }
.company-tile .name { font-size: 13px; color: var(--title); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-tile .cnt { font-size: 12px; color: var(--muted); }

/* 行业专区 */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.industry-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.industry-card:hover { border-color: var(--red); background: var(--red-light); }
.industry-card .n { color: var(--title); font-weight: 500; }
.industry-card .c { color: var(--red); font-size: 13px; }

/* 职位列表 */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; display: flex; align-items: flex-start; gap: 16px; transition: .15s; }
.job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #f0c4c6; }
.job-card .body { flex: 1; }
.job-card .title { font-size: 16px; font-weight: 700; color: var(--title); }
.job-card .company { color: var(--text); margin-top: 4px; }
.job-card .excerpt { color: var(--muted); font-size: 13px; margin-top: 6px; }
.tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.tag.red { background: var(--red-light); color: var(--red); border-color: #f3c9cb; }
.tag.gold { background: #FFF6E8; color: #B96A0A; border-color: #F5D9A8; }
.job-card .meta { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.job-card .meta .city { color: var(--title); font-weight: 500; }

/* 布局：列表页侧栏 */
.list-layout { display: flex; gap: 20px; margin: 20px 0; align-items: flex-start; }
.filter-side { width: 240px; background: #fff; border-radius: 8px; padding: 16px; flex-shrink: 0; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { font-size: 14px; color: var(--title); margin-bottom: 8px; font-weight: 700; }
.filter-group a { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text); font-size: 13px; }
.filter-group a:hover, .filter-group a.on { color: var(--red); }
.filter-group a .n { color: var(--muted); }
.filter-group a.on .n { color: var(--red); }
.list-main { flex: 1; min-width: 0; }
.list-toolbar { background: #fff; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.list-toolbar input[type=text] { flex: 1; height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 12px; outline: 0; }
.list-toolbar select { height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; }

/* 分页 */
.pagination-wrap { margin: 20px 0; display: flex; justify-content: center; }
.pagination { display: flex; gap: 6px; list-style: none; }
.pagination li a, .pagination li span, .pagination .page-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: #fff; font-size: 13px; }
.pagination li.active span, .pagination li.active a, .pagination .page-item.active .page-link { background: var(--red); color: #fff; border-color: var(--red); }
.pagination li.disabled span, .pagination .page-item.disabled .page-link { color: #c0c4cc; background:#fff; }
.pagination .page-item { list-style: none; }

/* 详情页 */
.detail-head { background: #fff; border-radius: 8px; padding: 24px; }
.detail-head h1 { font-size: 22px; color: var(--title); }
.detail-head .sub { color: var(--text); margin-top: 8px; }
.detail-actions { margin-top: 16px; display: flex; gap: 12px; }
.detail-body { display: flex; gap: 20px; margin: 20px 0; align-items: flex-start; }
.detail-main { flex: 1; }
.detail-side { width: 300px; flex-shrink: 0; }
.panel { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.panel h3 { font-size: 16px; color: var(--title); margin-bottom: 12px; }
.positions-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-item { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; color: var(--title); }
.remark-text { white-space: pre-wrap; color: var(--text); }
.company-logo-big { width: 60px; height: 60px; border-radius: 8px; background: var(--red-light); color: var(--red); font-weight: 800; font-size: 26px; display: flex; align-items: center; justify-content: center; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; }
.footer-links a { color: var(--muted); margin-left: 16px; }
.page-title-bar { background: #fff; border-radius: 8px; padding: 20px 24px; margin-top: 20px; }
.page-title-bar h1 { font-size: 20px; color: var(--title); }
.page-title-bar p { color: var(--muted); margin-top: 4px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

@media (max-width: 900px) {
  .list-layout { flex-direction: column; }
  .filter-side { width: 100%; }
  .company-wall, .batch-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body { flex-direction: column; }
  .detail-side { width: 100%; }
  .main-nav { display: none; }
}
