/* 教育背景页：照片主导并列卡片 + 页头 */
/* 页头：居中，无标签无高亮，中文标题两侧短横线 */
.education-page .education-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* 标题英文装饰行：编号 + 英文，位于中文主标题上方 */
.edu-title-en {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.education-page .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;
}

/* 中文主标题两侧短实线 */
.education-page .page-title::before,
.education-page .page-title::after {
  content: "";
  width: 56px;
  height: 3px;
  background: #000;
  display: inline-block;
  border-radius: 2px;
}

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

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

/* 并列两卡：间距加大，卡片占满 1052px 内容宽 */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

/* 卡片：照片主导，图占上方 */
.edu-card {
  background: var(--bg-card);
  border: var(--border-black);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-offset);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* 校园图：真实图片 cover 裁剪，渐变仅作加载兜底 */
.edu-media {
  position: relative;
  aspect-ratio: 16 / 7;
  border-bottom: var(--border-black);
  overflow: hidden;
  background: linear-gradient(160deg, #d4f4dd 0%, #add8e6 50%, #fff8c4 100%);
}

.edu-media--warm {
  background: linear-gradient(160deg, #fff8c4 0%, #ffd700 50%, #d4f4dd 100%);
}

.edu-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 学校名标签：绿色实心色块，贴图片左下角（两卡统一绿色） */
.edu-name-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: var(--border-black);
  box-shadow: 2px 2px 0 0 #000;
  background: #df8b0d;
  color: #000;
}

/* 信息区：淡色降级，紧凑排列 */
.edu-body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 专业行：专业名靠左，成绩单下载按钮靠右，同行排布 */
.edu-major-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.edu-major {
  font-size: 1.05rem;
  font-weight: 700;
}

.edu-degree {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* 学位类型区分色：本科青蓝（技术）、二学位石绿（金融） */
.edu-degree--undergrad {
  color: #126d36;
  font-weight: 600;
}

.edu-degree--second {
  color: #3E7C8A;
  font-weight: 600;
}

/* 二学位说明 icon：绿色实心圆圈问号，点击弹出说明弹窗 */
.edu-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1.5px solid #000;
  background: #44c176;
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  vertical-align: 0px;
  transition: transform 0.15s;
}

.edu-help-icon:hover {
  transform: scale(1.12);
}

/* 二学位说明弹窗：居中卡片 + 半透明遮罩 */
.edu-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

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

.edu-modal-card {
  position: relative;
  width: 380px;
  max-width: 90vw;
  background: var(--bg-card);
  border: var(--border-black);
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 #000;
  padding: 22px 24px;
}

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

.edu-modal-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.edu-modal-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.edu-modal-body b {
  color: var(--text-primary);
}

.edu-modal-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a6fbf;
  text-decoration: underline;
}

.edu-modal-link:hover {
  color: #0d4f8f;
}

/* 信息流：时间 · 学制 · 绩点 · 排名合并一行，绩点/排名数值红色加粗强调 */
.edu-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

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

.edu-meta .edu-meta-strong {
  color: #c0392b;
}

.edu-courses {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 成绩单下载：朱砂印章（红底白字白图标，摆正无倾斜，静态无动效） */
.edu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #b84a3a;
  color: #fff;
  border: var(--border-black);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 #000;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.edu-btn .ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== 求学路径说明：以「为什么读金融二学位」为主线的连贯自述 ===== */
.edu-why {
  margin-top: 3.5rem;
}

/* 模块标题：黄色竖色块 + 深棕文字（区别于上下主标题的两侧横线） */
.edu-why-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.edu-why-bar {
  width: 10px;
  height: 1.6em;
  background: #ffd700;
  border: 2px solid #000;
  border-radius: 3px;
  flex-shrink: 0;
}

.edu-why-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #8a6d1a;
}

/* 引言：交代决定的时间点与动因 */
.edu-why-lead {
  font-size: 1rem;
  color: #222;
  line-height: 2;
  margin-bottom: 1.1rem;
}

.edu-why-lead b {
  font-weight: 800;
}

/* 关键词高亮：黄底强调职业锚点 */
.edu-why-kw {
  background: rgba(255, 215, 0, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #5c4a08;
}

/* 因素块：黑色圆编号 + 加粗小标题 + 金色圆点子点 */
.edu-why-factor {
  margin-bottom: 1.2rem;
}

.edu-why-factor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.edu-why-factor-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.edu-why-factor-title {
  font-weight: 800;
  font-size: 1rem;
}

.edu-why-factor-list {
  list-style: none;
  padding-left: 36px;
}

.edu-why-factor-list li {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0.4rem;
  padding-left: 16px;
}

.edu-why-factor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd700;
  border: 1px solid #000;
}

/* 收束结论：黄底 + 左侧竖线，点明「利大于弊」 */
.edu-why-close {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #8a6d1a;
  font-weight: 700;
  line-height: 1.9;
  padding: 0.8rem 1rem;
  background: rgba(255, 215, 0, 0.14);
  border-left: 4px solid #b8912a;
  border-radius: 0 8px 8px 0;
}

/* 结尾注释：居中 + 两侧细线，弱化的自我交代（柔灰，视觉权重低于结论块） */
.edu-why-note {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.84rem;
  color: #8a8a8a;
  font-weight: 600;
  text-align: center;
  line-height: 1.7;
}

.edu-why-note::before,
.edu-why-note::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #c9c2ad;
  flex-shrink: 0;
}

/* 移动端：单列 + 标题缩号 + 缩短横线 */
@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .education-page .page-title {
    font-size: 2.2rem;
    gap: 12px;
  }

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

  .edu-why-factor-list {
    padding-left: 24px;
  }
}
