/* BESCORE — 招聘页：职位列表和职位详情。页面由 tools/gen_job.py 生成；页头、目录、正文沿用 legal.css。 */

/* ---------- 列表页：职位 ---------- */
.jobs__list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.jobrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; column-gap: clamp(28px, 4vw, 64px); row-gap: 12px; align-items: center; padding: clamp(28px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease); }
.jobrow::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.jobrow:hover::before { transform: scaleX(1); }
.jobrow:hover { padding-left: 14px; padding-right: 14px; }
.jobrow__dept { grid-column: 1; grid-row: 1; align-self: end; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.jobrow__title { grid-column: 1; grid-row: 2; align-self: start; font-size: clamp(27px, 2.9vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; }
.jobrow__sum { grid-column: 2; grid-row: 1 / span 2; font-size: 17.5px; line-height: 1.55; color: var(--muted); }
.jobrow__go { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.jobrow__go svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.jobrow:hover .jobrow__go { background: var(--text); border-color: var(--text); color: #fff; }
.jobrow:hover .jobrow__go svg { transform: translateX(4px); }
.jobs__note { margin: 26px 0 0; font-size: 15.5px; }

/* ---------- 列表页：公司照片 ---------- */
.jobpics { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; height: clamp(240px, 27vw, 420px); }
.jobpics figure { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.jobpics img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 0.9s var(--ease); }
.jobpics figure:hover img { transform: scale(1.04); }
.jobpics figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(0deg, rgba(3, 8, 10, 0.78) 0%, rgba(3, 8, 10, 0) 46%); }
.jobpics figcaption { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.3; }
.jobin__more { margin: 30px 0 0; }

/* ---------- 列表页：怎么投递 ---------- */
.jobhow { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.jobhow .h2 { margin-top: 18px; }
.jobhow__text p { margin: 0 0 20px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.jobhow__text p:first-child { font-size: 22px; line-height: 1.5; color: var(--text); }
.jobhow__text p:last-child { margin-bottom: 0; font-size: 16px; }
.jobhow__text a { color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 职位详情 ---------- */
.jobhead__back { margin: 0 0 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.jobhead__back a { color: var(--ink-muted); transition: color 0.3s; }
.jobhead__back a:hover { color: var(--glow); }
.jobhead .lhead__title { font-size: clamp(38px, 4.8vw, 72px); }
.jobtext__list { counter-reset: jobn; margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.ltext .jobtext__list li { counter-increment: jobn; padding-left: 52px; }
.ltext .jobtext__list li::before { content: counter(jobn, decimal-leading-zero); left: 0; top: 4px; width: auto; height: auto; border-radius: 0; background: none; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: 0.08em; color: var(--teal); }
.jobtext__list li b { display: block; margin-bottom: 4px; font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.jobtext ul li b { font-weight: 600; color: var(--text); }
.ltext .jobtext__cta { margin-top: 22px; }
.ltext a.btn { color: #fff; text-decoration: none; }

/* 中文原文：折叠着，点开看 */
.jobtext [lang="zh"], .ltoc [lang="zh"] { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.jobcn { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); }
.jobcn summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16.5px; font-weight: 500; cursor: pointer; list-style: none; }
.jobcn summary::-webkit-details-marker { display: none; }
.jobcn summary::after { content: "+"; flex: 0 0 auto; font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--teal); }
.jobcn[open] summary::after { content: "–"; }
.jobcn__body { padding: 0 22px 26px; }
.ltext .jobcn h3 { margin-top: 26px; font-size: 18px; }
.ltext .jobcn h3:first-child { margin-top: 6px; }
.ltext .jobcn h4 { margin: 22px 0 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
.ltext .jobcn p { margin-top: 8px; font-size: 15.5px; line-height: 1.8; }

@media (max-width: 900px) {
  .jobrow { grid-template-columns: 1fr; row-gap: 10px; }
  .jobrow__dept, .jobrow__title, .jobrow__sum, .jobrow__go { grid-column: 1; grid-row: auto; }
  .jobrow__sum { margin-top: 4px; }
  .jobrow__go { justify-self: start; margin-top: 12px; }
  .jobrow:hover { padding-left: 0; padding-right: 0; }
  .jobhow { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .jobpics { height: auto; grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
  .jobpics figure { border-radius: 14px; }
  .jobpics figure:first-child { grid-column: 1 / -1; grid-row: span 1; }
  .jobpics figcaption { left: 12px; right: 12px; bottom: 10px; font-size: 13px; }
}
@media (max-width: 640px) {
  .jobrow__sum { font-size: 16px; }
  .jobhow__text p { font-size: 17px; }
  .jobhow__text p:first-child { font-size: 19px; }
  .ltext .jobtext__list li { padding-left: 38px; }
  .jobcn summary { padding: 16px 18px; font-size: 15.5px; }
  .jobcn__body { padding: 0 18px 22px; }
}
