/* 65易 招聘页样式：hero 搜索 + 左列表右侧栏，沿用原站版式 */

/* ---------- 徽章 ---------- */
.badge {
  display: inline-block; padding: 2px 9px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border-radius: 3px; white-space: nowrap;
}
.badge-fast     { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge-official { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand); }
.badge-type     { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border-soft); }

/* ---------- Hero + 搜索 ---------- */
.hero {
  /* 由 logo 红向下加深，同一色相不换色系，避免出现橘调 */
  background: linear-gradient(168deg, #e30c0b 0%, #c00908 46%, #8f0706 100%);
  padding: 40px 0 34px;
  text-align: center;
  color: #fff;
}
.hero h1 {
  margin: 0 0 8px; font-size: 27px; font-weight: 700;
  letter-spacing: -.01em; color: #fff; text-wrap: balance;
}
.hero p {
  /* 不设 max-width：ch 按西文字符宽度计算，中文字宽约为其两倍，
     限制宽度会让这行副标题在桌面端被迫折行。窄屏再让它自然换行。 */
  margin: 0 auto 22px;
  color: rgba(255,255,255,.9); font-size: 14.5px; line-height: 1.7;
  white-space: nowrap;
}
@media (max-width: 780px) {
  .hero p { white-space: normal; font-size: 13.5px; }
}

/* ---------- Hero 下方的岗位地图 ---------- */
.heromap { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.heromap .wrap { padding-top: 12px; padding-bottom: 12px; }
.mapbox {
  height: 300px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
@media (max-width: 620px) { .mapbox { height: 220px; } }
.map-note {
  margin: 8px 0 0; font-size: 12px; color: var(--text-faint);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.leaflet-popup-content { margin: 10px 12px; font: inherit; font-size: 13px; line-height: 1.6; }
.mp-title { font-weight: 600; display: block; margin-bottom: 3px; }
.mp-sal { color: var(--brand); font-weight: 600; }

.searchbar {
  display: flex; gap: 0; max-width: 760px; margin: 0 auto;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
.searchbar input[type="text"] {
  flex: 1; min-width: 0; border: 0; border-right: 1px solid #e6e6e6;
  padding: 15px 16px; font: inherit; font-size: 15px; color: #222; background: #fff;
}
.searchbar input::placeholder { color: #9aa0a6; }
.searchbar input:focus { outline: 0; background: #fffdfd; }
.searchbar button {
  flex: none; border: 0; padding: 0 32px;
  background: var(--brand); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.searchbar button:hover { background: var(--brand-dark); }
@media (max-width: 620px) {
  .hero { padding: 36px 0 34px; }
  .hero h1 { font-size: 23px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar input[type="text"] { flex: 1 0 100%; border-right: 0; border-bottom: 1px solid #e6e6e6; }
  .searchbar button { flex: 1 0 100%; padding: 14px; }
}

/* ---------- 主体：左内容 右侧栏 ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 24px; } }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 0 14px;
}
.sec-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.sec-head a { font-size: 14px; }

/* ---------- 行式工作卡片（对齐原站列表样式） ---------- */
.jlist { display: flex; flex-direction: column; gap: 10px; }
.jrow {
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.jrow:hover { box-shadow: var(--shadow); border-color: var(--brand); }

.jrow-logo {
  width: 48px; height: 48px; border-radius: 4px; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.jrow-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jrow-body { min-width: 0; }
.jrow-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.jrow-title a { color: var(--text); }
.jrow-title a:hover { color: var(--brand); text-decoration: none; }
.jrow-sub { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.jrow-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.jrow-right { text-align: right; white-space: nowrap; }
.jrow-salary { font-size: 15px; font-weight: 700; color: var(--brand); }
.jrow-date { margin-top: 4px; font-size: 12px; color: var(--text-faint); }
@media (max-width: 560px) {
  .jrow { grid-template-columns: 40px minmax(0,1fr); }
  .jrow-logo { width: 40px; height: 40px; font-size: 15px; }
  .jrow-right { grid-column: 2; text-align: left; margin-top: 4px; }
  .jrow-date { display: inline; margin-left: 10px; }
}

.chip {
  font-size: 12px; padding: 1px 8px; border-radius: 3px;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border-soft);
}

/* ---------- 侧栏组件 ---------- */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 18px; margin-bottom: 18px;
}
.widget-title {
  margin: 0 0 14px; padding-bottom: 10px; font-size: 16px; font-weight: 700;
  border-bottom: 2px solid var(--brand); display: inline-block;
}
.wjob { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.wjob:last-child { border-bottom: 0; padding-bottom: 0; }
.wjob-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.wjob-title a { color: var(--text); }
.wjob-title a:hover { color: var(--brand); text-decoration: none; }
.wjob-meta { font-size: 12px; color: var(--text-faint); }
.wjob-salary { color: var(--brand); font-weight: 600; }

.widget-cta { background: var(--brand-soft); border-color: var(--brand); text-align: center; }
.widget-cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.widget-cta .btn { width: 100%; }

.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.taglist a {
  font-size: 13px; padding: 4px 10px; border-radius: 3px;
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border-soft);
}
.taglist a:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ---------- 工作详情页 ---------- */
.jhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.jsalary { font-size: 22px; font-weight: 700; color: var(--brand); }
.jcompany { margin: 0 0 20px; color: var(--text-muted); font-size: 15px; }

.factgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border-soft);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  margin-bottom: 22px;
}
.fact { background: var(--surface); padding: 12px 14px; }
.fact .k { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 3px; }
.fact .v { font-size: 14px; font-weight: 600; }

.src { margin-top: 26px; font-size: 13px; color: var(--text-faint); }

/* ---------- 联系方式 ---------- */
.contact-card .k { min-width: 44px; }
.copy {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 3px; padding: 4px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.copy:hover { border-color: var(--brand); }
.copy-hint { font-size: 12px; color: var(--text-faint); }
.copy.done .copy-hint { color: var(--fast); }
.wa {
  margin-left: 8px; font-size: 13px; padding: 2px 8px; border-radius: 3px;
  background: var(--fast-soft); color: var(--fast);
}
.wa:hover { text-decoration: none; opacity: .85; }
.warn {
  margin: 14px 0 0; padding: 10px 12px;
  background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 3px;
  font-size: 13px; line-height: 1.6; color: var(--text-muted);
}

/* ---------- 列表页 ---------- */
.listnote {
  margin: 0 0 18px; padding: 12px 14px;
  background: var(--bg-alt); border-radius: 4px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}
.pager { margin-top: 26px; display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 14px; }
.pager a { padding: 7px 16px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); }
.pager a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pg-cur { color: var(--text-faint); }

/* ---------- 首页频道入口 ---------- */
.chrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 30px; }
@media (max-width: 700px) { .chrow { grid-template-columns: 1fr; } }

.chcard {
  display: grid; grid-template-rows: auto auto 1fr auto;
  padding: 22px 24px; min-height: 168px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.chcard:hover {
  text-decoration: none; border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(227,12,11,.10); transform: translateY(-2px);
}
.chcard-top {
  /* 标签靠右，与卡片左侧的标题形成对角平衡 */
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-bottom: 12px; min-height: 22px;
}
.chcard h2 {
  margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.chcard p {
  margin: 0 0 16px; color: var(--text-muted);
  font-size: 13.5px; line-height: 1.75;
}
.chcard-foot {
  display: flex; align-items: baseline; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.chcount { font-size: 22px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.chunit { font-size: 13px; color: var(--text-faint); }
.chgo { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------- 搜索结果页 ---------- */
.sresult { margin-bottom: 16px; font-size: 14px; color: var(--text-muted); }
.sempty { padding: 40px 20px; text-align: center; color: var(--text-faint); }

/* ---------- 左右布局的两列 ---------- */
.lmain { min-width: 0; }
/* 侧栏不做 sticky。它包含公司信息、联系方式、广告、推荐工作和 CTA，
   总高度通常超过视口；sticky 会把顶部钉住，底部那截永远滚不到，
   用户得一直翻到粘性容器结束才看得全。正常文档流反而没有这个问题。 */
.lside { position: static; }

/* ---------- MCF 公司介绍中英对照 ---------- */
.intro-en { color: var(--text-muted); font-size: 14px; }
.intro-zh {
  padding-left: 12px; border-left: 2px solid var(--border);
  color: var(--text); font-size: 14px;
}

/* ---------- 侧栏筛选器 ---------- */
.filter .widget-title { margin-bottom: 12px; }
.filter .widget-title.mt { margin-top: 20px; }
.fld { display: block; margin-bottom: 10px; }
.fld input, .fld select {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px;
  -webkit-appearance: none; appearance: none;
}
.fld select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
                    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 34px;
}
.fld input:focus, .fld select:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.fgroup { margin: 16px 0 18px; }
.flabel { display: block; font-size: 13px; color: var(--text-faint); margin-bottom: 8px; }
.fradio { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.fradio input { accent-color: var(--brand); margin: 0; }
.filter .btn { width: 100%; }

/* ---------- 地图页 ---------- */
.nearby-head { margin-top: 28px; }
/* 用类而不是 #jobmap 控制高度：ID 选择器优先级过高，
   会盖掉后面为站点页写的规则，导致两个页面的地图高度改不动。 */
/* 地图是入口不是全部：压低高度，让下面的地铁站分类和岗位列表进首屏 */
.mapbox--full { height: 260px; }
@media (max-width: 620px) { .mapbox--full { height: 190px; } }

/* ---------- 工作语言标签 ----------
   两类岗位的沟通语言差别很大，求职者投递前必须一眼看到，
   所以做得比普通 chip 显眼一级。 */
.langtag {
  display: inline-block; padding: 2px 9px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  border-radius: 3px; white-space: nowrap;
  background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid var(--brand);
}
.langtag--fast { background: var(--bg-alt); color: var(--text); border-color: var(--text-faint); }
.jhead .langtag { font-size: 13px; padding: 4px 11px; }

/* ---------- 导航图标 ---------- */
.nav-near { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.nav-near .navicon { color: var(--brand); flex: none; }
.nav-near:hover .navicon { animation: pin-bounce .6s ease; }
@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  35%      { transform: translateY(-3px); }
  70%      { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { .nav-near:hover .navicon { animation: none; } }

/* ---------- 地铁站分类 ---------- */
.mrtbox { margin-top: 30px; }
.mrtgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.mrtgrid a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 13px; border-radius: 4px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.mrtgrid a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.mrtgrid b { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.mrtgrid a:hover b { color: var(--brand); }

/* ---------- 地图图例 ---------- */
.maplegend { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.lg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.lg i { width: 10px; height: 10px; border-radius: 99px; display: block; border: 1px solid #fff; }
.mp-mrt { color: var(--text-faint); font-size: 12px; }

/* ---------- 地铁线路分组 ---------- */
.mrtline { margin-bottom: 18px; padding-left: 12px; border-left: 3px solid var(--line, var(--border)); }
.mrtline-name {
  margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--line, var(--text));
}

/* ---------- 地铁站分类标题与悬停 ---------- */
.mrt-h1 { margin: 22px 0 14px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.mrtline-name { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--line, var(--text)); }
/* 悬停时边框与文字跟随所在线路的官方配色 */
.mrtline .mrtgrid a:hover {
  border-color: var(--line, var(--brand));
  color: var(--line, var(--brand));
  box-shadow: inset 0 0 0 1px var(--line, var(--brand));
}
.mrtline .mrtgrid a:hover b { color: var(--line, var(--brand)); }

/* 徽章内的小图标 */
.badge .bicon { vertical-align: -2px; margin-right: 4px; }

/* ---------- 公司介绍（英语/华语 各自折叠） ---------- */
.cintro { margin: 0 0 26px; }
.cintro h2 {
  margin: 0 0 12px; font-size: 17px; font-weight: 700;
  padding-left: 11px; border-left: 3px solid var(--brand); line-height: 1.4;
}
.cfold { display: flex; flex-direction: column; gap: 8px; }
.cdet {
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface); overflow: hidden;
}
.cdet summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 14px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  list-style: none;
}
.cdet summary::-webkit-details-marker { display: none; }
.cdet summary:hover { background: var(--bg-alt); }
.cdet summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cdet-a { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.cdet-a::after { content: " ▾"; }
.cdet[open] .cdet-a::after { content: " ▴"; }
.cdet[open] summary { border-bottom: 1px solid var(--border-soft); }
.cdet-b {
  padding: 13px 14px 15px; font-size: 14px; line-height: 1.8; color: var(--text-muted);
}
.intro-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-faint); }

/* 公司页地址 */
.caddr { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); }
.caddr .k {
  display: inline-block; min-width: 40px; color: var(--text-faint);
  font-size: 12px; margin-right: 6px;
}

/* ---------- 地铁站页侧栏的线路标签 ---------- */
.lchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lchip {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 3px;
  color: var(--line); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--line) 8%, transparent);
}

/* ---------- 地铁站页：顶部地图 + 侧栏站点内链 ---------- */
/* 站点页的地图是辅助信息，压低高度，让下面的岗位列表能进首屏 */
.stmapbox { margin-bottom: 18px; }
.mapbox--station { height: 200px; }
@media (max-width: 620px) { .mapbox--station { height: 150px; } }

.stlist { display: flex; flex-direction: column; }
.stlink {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 2px; border-bottom: 1px solid var(--border-soft);
  font-size: 14px; color: var(--text);
}
.stlink:last-child { border-bottom: 0; }
.stlink:hover { color: var(--brand); text-decoration: none; }
.stdot {
  width: 9px; height: 9px; border-radius: 99px; flex: none;
  background: var(--line, var(--border));
}
.stname { flex: 1; min-width: 0; }
.stlink b { font-size: 12px; font-weight: 600; color: var(--text-faint); }
.stlink:hover b { color: var(--brand); }
.listnote .lchip { margin-left: 6px; }
