/* 工作经历页：中轴 zigzag 时间轴 + 软木板照片拼贴 + 项目详情弹窗 */
/* 页专用变量：度小满品牌珊瑚红、软木板底色（公司特定色，非全站 token） */
:root {
  --brand: #FB594D;
  --cork: #e9d6ac;
}

/* 容器：内容净宽对齐全站 1052px（calc 抵消 .container 的 1.5rem 内边距） */
.jobs-page {
  max-width: calc(var(--content-width) + 3rem);
}

/* ===== 三层页头：英文眉题 + 中文主标题 + 副标题，居中 ===== */
.jobs-page-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.jobs-title-en {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.jobs-page-header .page-title {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* 中文主标题两侧短实线（与教育背景页一致） */
.jobs-page-header .page-title::before,
.jobs-page-header .page-title::after {
  content: "";
  width: 56px;
  height: 3px;
  background: #000;
  display: inline-block;
  border-radius: 2px;
}

.jobs-page-header .page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===== 中轴时间轴：浅灰虚线竖线（降低黑色压迫感） ===== */
.jobs-timeline {
  position: relative;
}

.jobs-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background-image: linear-gradient(#c9c9c9 33%, transparent 0);
  background-size: 3px 14px;
}

/* 节点圆点：居中，压在时间轴上（黑边框 + 硬阴影，与全站手账风一致） */
.jobs-dot {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-black);
  background: var(--brand);
  color: #fff;
  box-shadow: 2px 2px 0 0 #000;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.jobs-dot--cta {
  background: var(--accent-yellow);
  color: #000;
}

/* ===== 时间轴节点行：左右分栏（图左文右） ===== */
.jobs-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

/* 软木板：照片贴在上面 */
.jobs-board {
  position: relative;
  background: var(--cork);
  border: var(--border-black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset);
  height: 460px;
  overflow: hidden;
}

/* 软木板颗粒纹理 */
.jobs-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px),
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 34px 34px, 17px 17px;
  background-position: 0 0, 8px 8px;
}

/* 拍立得照片：白框 + 胶带 + 手写标注，错落倾斜 */
.jobs-photo {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 2px solid #000;
  padding: 10px 10px 32px;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jobs-photo:hover {
  transform: translate(-2px, -2px) rotate(0deg) scale(1.04);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.85);
  z-index: 6;
}

.jobs-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid #000;
  border-radius: 2px;
}

.jobs-photo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  font-family: "Comic Sans MS", "PingFang SC", cursive;
}

/* 胶带：贴相纸顶部 */
.jobs-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 56px;
  height: 20px;
  background: rgba(255, 214, 90, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

/* 四张照片错落定位：四角分布 + 微旋转，形成随意拼贴感 */
.jobs-photo--1 {
  left: 5%;
  top: 5%;
  width: 38%;
  transform: rotate(-6deg);
}

.jobs-photo--2 {
  right: 5%;
  top: 8%;
  width: 38%;
  transform: rotate(4deg);
}

.jobs-photo--3 {
  left: 10%;
  bottom: 5%;
  width: 38%;
  transform: rotate(3deg);
}

.jobs-photo--4 {
  right: 10%;
  bottom: 8%;
  width: 38%;
  transform: rotate(-3deg);
}

/* ===== 右侧文字卡 ===== */
.jobs-card {
  background: var(--bg-card);
  border: var(--border-black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.jobs-card:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 #000;
}

/* 公司行：logo + 公司名 */
.jobs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.jobs-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.jobs-company {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* 部门 · 岗位 · 时间合并一行 */
.jobs-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.jobs-meta b {
  color: var(--text-primary);
  font-weight: 700;
}

.jobs-meta .sep {
  color: #ccc;
  margin: 0 6px;
}

/* 区块标签：色块前缀 + 加粗黑字（职责=珊瑚红、收获=黄） */
.jobs-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.jobs-section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand);
  border: 1.5px solid #000;
  display: inline-block;
  flex-shrink: 0;
}

.jobs-section-label--gain::before {
  background: var(--accent-yellow);
}

.jobs-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 实习收获：心得一句 + 柔和胶囊标签（每个词一种柔和色） */
.jobs-gain-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.jobs-gain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.jobs-gain-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
}

/* 技能标签循环配色（宁多勿少，9 色循环：粉/蓝/黄/绿/紫/橙/青/玫红/灰蓝） */
.jobs-gain-tag:nth-child(1) { background: #ffe5f1; color: #8a2b4b; }
.jobs-gain-tag:nth-child(2) { background: #d4edff; color: #1b4d6b; }
.jobs-gain-tag:nth-child(3) { background: #fff8c4; color: #6b5b00; }
.jobs-gain-tag:nth-child(4) { background: #d4f4dd; color: #1c5a34; }
.jobs-gain-tag:nth-child(5) { background: #e8e0ff; color: #5a3fa8; }
.jobs-gain-tag:nth-child(6) { background: #ffe0cc; color: #a84a1a; }
.jobs-gain-tag:nth-child(7) { background: #ccf4f0; color: #1a6e68; }
.jobs-gain-tag:nth-child(8) { background: #ffd9e8; color: #a82a5e; }
.jobs-gain-tag:nth-child(9) { background: #e0e8f0; color: #3a4a5a; }

/* 查看项目详情按钮：品牌珊瑚红实底，紧跟收获标签（固定间距，不推底、不占满宽） */
.jobs-expand-btn {
  margin-top: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--brand);
  color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #000;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.jobs-expand-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.jobs-expand-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 #000;
  background: #e84b3f;
}

.jobs-expand-btn:hover svg {
  transform: translateX(3px);
}

/* ===== CTA 收尾节点：居中全宽 ===== */
.jobs-cta {
  position: relative;
  text-align: center;
  padding-top: 56px;
  margin-bottom: 40px;
}

.jobs-cta .jobs-dot {
  top: 16px;
}

.jobs-cta-card {
  display: inline-block;
  background: var(--bg-card);
  border: var(--border-black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset);
  padding: 34px 40px;
  max-width: 460px;
}

.jobs-cta-big {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.jobs-cta-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== 项目详情弹窗 ===== */
.jobs-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.jobs-modal-mask.open {
  opacity: 1;
  visibility: visible;
}

.jobs-modal-card {
  position: relative;
  width: 760px;
  max-width: 94vw;
  max-height: 88vh;
  background: #fff;
  border: var(--border-black);
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 #000;
  padding: 24px 28px;
  overflow-y: auto;
}

.jobs-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
}

.jobs-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #7a7875ca;
}

.jobs-projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jobs-project {
  background: #fffdf5;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 2px 2px 0 0 #000;
}

.jobs-project-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.jobs-project-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.jobs-project-status {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid #000;
  white-space: nowrap;
}

.jobs-project-status--live {
  background: var(--accent-green);
}

.jobs-project-status--plan {
  background: var(--accent-yellow);
}

/* 一句话价值主张：四叶草绿底 + 深绿左侧色条，无黑框（导读 + 成果） */
.jobs-value-prop {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.7;
  color: #1c5a34;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #e3f7ec;
  border-left: 4px solid #44c176;
  border-radius: 10px;
}

/* 数字内联强调（红色，用在价值主张与叙事文本中） */
.jobs-num {
  color: #c0392b;
  font-weight: 700;
}

/* 三段叙事流：问题 → 目标 → 方案 */
.jobs-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jobs-story-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
}

/* 阶段标签：问题/目标/方案 三种色 */
.jobs-story-stage {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1.5px solid #000;
  box-shadow: 1px 1px 0 0 #000;
  line-height: 1.4;
  margin-top: -1px;
}

.jobs-story-stage--problem { background: #e84b3f; }
.jobs-story-stage--goal { background: #f0a500; }
.jobs-story-stage--solution { background: #3E7C8A; }

.jobs-story-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.jobs-story-text b {
  color: var(--text-primary);
}

/* 方案段：职责拆成 01/02/03 三张分点小卡 */
.jobs-step-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jobs-step-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1.5px solid #000;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 1px 1px 0 0 #000;
}

.jobs-step-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: #3E7C8A;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  border: 1.5px solid #000;
  margin-top: 2px;
}

.jobs-step-body b {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.jobs-step-body p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 2px;
}

/* 拓展阅读：引导语（石绿，弱化说明）+ 链接（蓝色，可点击） */
.jobs-project-ref {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.jobs-project-ref-text {
  color: #3E7C8A;
  font-weight: 500;
}

.jobs-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a6fbf;
  text-decoration: underline;
}

.jobs-project-link:hover {
  color: #0d4f8f;
}

/* ===== 照片 lightbox 放大 ===== */
.jobs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.jobs-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.jobs-lightbox-frame {
  position: relative;
  width: 420px;
  max-width: 88vw;
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 18px 18px 54px;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.85);
  transform: rotate(-2deg) scale(0.92);
  transition: transform 0.18s;
}

.jobs-lightbox.open .jobs-lightbox-frame {
  transform: rotate(0deg) scale(1);
}

.jobs-lightbox-frame .jobs-tape {
  top: -14px;
  width: 76px;
  height: 26px;
}

.jobs-lightbox-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid #000;
  border-radius: 2px;
}

.jobs-lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  font-family: "Comic Sans MS", "PingFang SC", cursive;
}

.jobs-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.5);
}

/* 移动端：单列堆叠，时间轴移到左侧，照片在上、文字在下 */
@media (max-width: 768px) {
  .jobs-page-header .page-title {
    font-size: 2.2rem;
    gap: 12px;
  }

  .jobs-page-header .page-title::before,
  .jobs-page-header .page-title::after {
    width: 24px;
  }

  .jobs-timeline::before {
    left: 19px;
  }

  .jobs-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 46px;
  }

  .jobs-dot {
    left: 19px;
    top: 20px;
  }

  .jobs-board {
    height: 300px;
    order: 1;
  }

  .jobs-card {
    order: 2;
  }

  .jobs-cta {
    padding-left: 46px;
  }

  .jobs-cta .jobs-dot {
    left: 19px;
  }

  .jobs-story-item {
    grid-template-columns: 64px 1fr;
    gap: 10px;
  }
}
