/* ===== page about-history (compiled from Vue SCSS) ===== */
@charset "UTF-8";
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-baseline {
  align-items: baseline;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.d-block {
  display: block;
}

.overflow-hidden {
  overflow: hidden;
}

.border-top {
  border-top: 1px solid #d9e5e0;
}

.action-btn {
  transition: all 0.3s ease;
}
.action-btn:hover, .action-btn:focus {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}
.action-btn:active {
  background-color: #0b6b5a;
  color: #ffffff;
  border-color: #0b6b5a;
  transform: scale(0.96) translateY(2px);
}

.history-layout {
  position: relative;
  justify-content: flex-start;
}

/* 年份导航侧边栏 */
.year-nav {
  width: 100%;
}
.year-nav .year-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.year-nav .year-list .year-item {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}
.year-nav .year-list .year-item.active {
  background-color: rgba(11, 107, 90, 0.1);
}
.year-nav .year-list .year-item:hover:not(.active) {
  background-color: #f7faf9;
}

/* 时间线布局 */
.timeline-container {
  flex: 1;
  min-width: 0;
}

.timeline-wrap {
  position: relative;
  padding: 0;
  /* 中间的竖线 */
}
.timeline-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #eaf6f2;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 40px;
}
.timeline-item.left-side {
  left: 0;
  padding-right: 40px;
}
.timeline-item.left-side .timeline-dot {
  right: -8px; /* 16px 的一半*/
}
.timeline-item.right-side {
  left: 50%;
  padding-left: 40px;
}
.timeline-item.right-side .timeline-dot {
  left: -8px;
}
.timeline-item .timeline-dot {
  position: absolute;
  top: 24px;
  width: 16px;
  height: 16px;
  background-color: #0b6b5a;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #eaf6f2;
  z-index: 2;
}
.timeline-item .image-wrapper {
  height: 180px;
  max-height: 240px;
}

/* 响应式：移动端统一单侧排列 */
/* Reverted from utilities.scss */
.py-8 {
  padding-top: 48px;
  padding-bottom: 80px;
}

.mb-4 {
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: #66736e;
}

.text-sm {
  font-size: 14px;
}

.line-height-lg {
  line-height: 1.8;
}

.border-bottom {
  border-bottom: 1px solid #d9e5e0;
}

.cursor-pointer {
  cursor: pointer;
}

.hover-primary {
  transition: color 0.3s;
}
.hover-primary:hover {
  color: #0b6b5a;
}

.p-6 {
  padding: 48px;
}

.mb-10 {
  margin-bottom: 40px;
}

.mb-2 {
  margin-bottom: 12px;
}

.text-primary {
  color: #0b6b5a;
}

.max-w-1200 {
  max-width: 1200px;
  margin: 0 auto;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.py-10 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-4 {
  padding: 24px;
}

.mb-3 {
  margin-bottom: 16px;
}

.font-weight-bold {
  font-weight: bold;
}

.max-w-800 {
  max-width: 800px;
}

.bg-light {
  background-color: #f7faf9;
}

.border {
  border: 1px solid #d9e5e0;
}

.rounded {
  border-radius: 8px;
}

.flex-1 {
  flex: 1;
}

.gap-8 {
  gap: 80px;
}

.w-full {
  width: 100%;
}

.hover-up {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(11, 107, 90, 0.08);
}

.mt-6 {
  margin-top: 48px;
}

.ml-2 {
  margin-left: 12px;
}

.pb-2 {
  padding-bottom: 12px;
}

.pt-4 {
  padding-top: 24px;
}

/* Reverted responsive */
@media (min-width: 1200px) {
  .year-nav {
    width: 200px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
  }
}
@media (min-width: 1200px) {
  .year-nav .sticky-box {
    position: sticky;
    top: 100px; /* 避开顶部主导航*/
    pointer-events: auto;
  }
}
@media (min-width: 1200px) {
  .timeline-container {
    max-width: 760px;
    margin: 0 auto;
    margin-left: 240px; /* 留出侧边栏的空间 (200px + gap) */
  }
}
@media (max-width: 1199px) {
  .timeline-wrap::before {
    left: 20px;
    transform: none;
  }
}
@media (max-width: 1199px) {
  .hidden-mobile {
    display: none;
  }
  .timeline-item {
    width: 100%;
  }
  .timeline-item.left-side, .timeline-item.right-side {
    left: 0;
    padding-left: 60px;
    padding-right: 0;
  }
  .timeline-item.left-side .timeline-dot, .timeline-item.right-side .timeline-dot {
    left: 13px; /* 20px (线位置) - 8px (圆点一半) + 1px微调*/
    right: auto;
  }
}