/* 铭普光磁 2027 届校园招聘 - 简约大气 共享样式 */

:root {
  --brand: #16245c;          /* 深海军蓝，主色 */
  --brand-2: #28407f;        /* 中蓝 */
  --brand-soft: #eef1f8;     /* 极浅蓝底 */
  --accent: #e8703a;         /* 暖橙 */
  --accent-dark: #cf5d27;
  --ink: #1c2230;            /* 正文深色 */
  --muted: #6c7686;          /* 次要文字 */
  --line: #ebecef;           /* 极细分隔线 */
  --bg: #f5f6f8;             /* 页面底色 */
  --surface: #ffffff;        /* 卡片白 */
  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --shadow-sm: 0 1px 3px rgba(20, 30, 60, 0.05);
  --shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ===== 顶部滚动进度条 ===== */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ===== 顶部主 KV 横幅（等比自适应，不裁剪不拉伸） ===== */
.kv-banner {
  width: 100%;
  line-height: 0;
  background: var(--brand-soft);
  overflow: hidden;
}

.kv-banner img {
  width: 100%;
  height: auto;          /* 保持原图比例，随网页宽度自适应缩放 */
  display: block;
  animation: kvIn 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes kvIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}

/* ===== 导航栏 ===== */
.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0 26px;
  height: 64px;
  line-height: 64px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 14px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: left 0.28s ease, right 0.28s ease;
}

.nav-links a:hover { color: var(--brand); }

.nav-links a:hover::after,
.nav-links a.active::after { left: 18px; right: 18px; }

.nav-links a.active { color: var(--brand); font-weight: 700; }

/* ===== 页面标题区 ===== */
.page-header {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.page-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

.page-subtitle {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
}

/* ===== 内容容器 ===== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto 72px;
  padding: 0 24px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px 52px;
  margin-bottom: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section:hover { box-shadow: var(--shadow); }

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 22px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head .eyebrow {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 2px;
}

.section-head h2 .accent { color: var(--accent); }

.lead {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.95;
  margin-bottom: 28px;
  max-width: 780px;
}

/* ===== 滚动入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== 长图海报（整图直接展示，自适应桌面与移动端） ===== */
.poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
}

/* 电脑端：海报等比缩小并居中，避免长图铺满整屏显得过大 */
@media (min-width: 901px) {
  .poster {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .kv-banner img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== SVG 图标卡片（Tesla 风格：图标 + 标题 + 描述） ===== */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.icon-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #dfe3ef;
}

.icon-card .ico {
  width: 48px;
  height: 48px;
  color: var(--brand);
  margin-bottom: 20px;
}

.icon-card .ico svg { width: 100%; height: 100%; stroke-width: 1.6; }

.icon-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.icon-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

/* ===== 数据概览 ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 36px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stat .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.stat .cap { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ===== 荣誉标签 ===== */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 40px;
  font-size: 14px;
  color: var(--brand);
  background: var(--surface);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.chip:hover { border-color: var(--brand); transform: translateY(-2px); }

/* ===== 福利保障卡片（图标 + 标题 + 描述） ===== */
.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.benefit {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #dfe3ef; }

.benefit .ico {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin: 0 auto 16px;
}

.benefit .ico svg { width: 100%; height: 100%; stroke-width: 1.6; }

.benefit h3 { font-size: 17px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.benefit p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ===== 职级阶梯 ===== */
.ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 8px;
}

.step {
  flex: 1;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step .lv {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.step .age { font-weight: 800; color: var(--accent); font-size: 16px; }
.step .role { font-size: 15px; color: var(--ink); margin-top: 4px; font-weight: 600; }
.step .tenure { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ===== 视频区块（不使用主 KV 做封面） ===== */
.video-wrap {
  position: relative;
  width: 100%;
  margin: 22px 0 6px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 112, 58, 0.14), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(22, 36, 92, 0.35), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 2;
}

/* ===== 投递简历按钮 ===== */
.apply-bar { text-align: center; margin-top: 40px; }

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 46px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 40px;
  box-shadow: 0 8px 22px rgba(232, 112, 58, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-apply:hover {
  transform: translateY(-3px);
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(232, 112, 58, 0.42);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(232, 112, 58, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-sm:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(232, 112, 58, 0.38);
}

/* ===== 招聘岗位页 ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 14px; color: var(--muted); font-weight: 500; }

.filter-group select,
.filter-group input {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  min-width: 150px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(40, 64, 127, 0.12);
}

.result-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--accent); font-size: 20px; margin: 0 4px; }

.btn-reset {
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover { border-color: var(--brand-2); color: var(--brand); }

.jobs-list { display: flex; flex-direction: column; gap: 18px; }

/* ===== 岗位卡片（默认折叠：标题+标签+投递按钮常驻，点击展开职责要求） ===== */
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.job-card:hover { box-shadow: var(--shadow); border-color: #dfe3ef; transform: translateY(-2px); }

.job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.job-head-info { flex: 1; min-width: 0; cursor: pointer; }

.job-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.job-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border: 1px solid transparent;
}

.job-tag.hot      { background: #fdeee6; color: var(--accent-dark); }
.job-tag.tag-track { background: #fff5ed; color: var(--accent-dark); border-color: #f6dcce; }

/* 卡片右侧操作区：展开/收起 + 投递按钮 */
.job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 展开/收起详情按钮（次级描边样式） */
.job-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #dde3f0;
  border-radius: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.job-toggle:hover { background: #e3e9f6; }
.job-toggle .chev {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.3s ease;
}
.job-card.open .job-toggle .chev { transform: rotate(180deg); }

/* 卡片内投递简历按钮 */
.job-card .btn-apply {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(232, 112, 58, 0.28);
}

/* 岗位详情：默认折叠 */
.job-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  border-top: 1px solid transparent;
  background: #fafbfd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  transition: max-height 0.42s ease, padding 0.42s ease, border-color 0.3s ease;
}

/* 展开态 */
.job-card.open .job-body {
  max-height: 1800px;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
  overflow: visible;
}

.job-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  letter-spacing: 1px;
}

.job-ol {
  padding-left: 22px;
  margin: 0;
  counter-reset: job;
}
.job-ol li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.95;
  margin-bottom: 6px;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { font-size: 46px; margin-bottom: 14px; opacity: 0.55; }

/* ===== 校招流程页：横向图标流 ===== */
.process-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  text-align: center;
}

.process-head::before,
.process-head::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.process-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

.process-head .sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 6px;
}

.flow-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 24px;
}

.flow-item {
  flex: 1;
  text-align: center;
  position: relative;
  min-width: 0;
}

.flow-item:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -14px;
  top: 28px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}

.flow-box {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(232, 112, 58, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-box svg { width: 36px; height: 36px; stroke-width: 1.8; }

.flow-item:hover .flow-box {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 14px 32px rgba(232, 112, 58, 0.40);
}

.flow-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  padding: 0 4px;
}

.note {
  font-size: 14px;
  color: var(--ink);
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 14px;
}

/* 校招城市 */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.city-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.city-card h4 { color: var(--brand); font-size: 17px; margin-bottom: 12px; }
.city-card ul { padding-left: 18px; }
.city-card li { font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.6; }

/* 联系我们 */
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
}

.contact h3 { font-size: 22px; margin-bottom: 20px; color: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.ci { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 14px 18px; }
.ci .k { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.ci .v { color: #fff; font-size: 16px; font-weight: 600; margin-top: 4px; }
.ci.full { grid-column: 1 / -1; }

/* ===== 页脚 ===== */
.footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
}

.footer p { margin-bottom: 6px; }

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(20, 30, 60, 0.25);
  opacity: 0;
  transform: translateY(14px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 250;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-2); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .page-title { font-size: 30px; }
  .section { padding: 30px 22px; }
  .icon-card-grid,
  .stat-row,
  .benefit-row,
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .job-body { grid-template-columns: 1fr; gap: 20px; }
  .ladder .step { min-width: 140px; }
}

@media (max-width: 560px) {
  .nav-links a { padding: 0 12px; font-size: 14px; height: 56px; line-height: 56px; }
  .nav-links a::after { bottom: 10px; }
  .page-header { padding: 44px 20px 28px; }
  .section-head h2 { font-size: 24px; }
  .process-head h2 { font-size: 22px; }
  .process-head::before, .process-head::after { max-width: 60px; }
  .icon-card-grid,
  .stat-row,
  .benefit-row,
  .city-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group { width: 100%; }
  .filter-group select, .filter-group input { flex: 1; width: 100%; }
  .result-count { margin-left: 0; text-align: center; }
  .job-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 18px 14px;
  }
  .job-title { font-size: 18px; }
  .job-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .job-toggle { justify-content: center; }
  .job-card .btn-apply { width: 100%; justify-content: center; }
  .job-body { padding-left: 18px; padding-right: 18px; }
  .job-card.open .job-body { padding: 16px 18px 20px; }
  .kv-banner img { animation-duration: 0.7s; }
}
