
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #1d253d 0%, #2a354c 100%);
  color: #f1f4fa;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}
header {
  background: rgba(22,32,64,0.98);
  padding: 28px 0 15px 0;
  text-align: center;
  color: #b6d2ff;
  font-size: 2.2rem;
  border-bottom: 2px solid #223058;
  margin-bottom: 0;
  text-shadow: 0 2px 18px #1631666a;
  letter-spacing: .5px;
  position: relative;
  z-index: 2;
}
.timeline-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  height: 64vh;
  min-height: 420px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.timeline-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #42a8e8 0%, #7cd6fa 70%, #5ec2b7 100%);
  border-radius: 6px;
  z-index: 0;
  box-shadow: 0 2px 16px #3e65c43f;
}
.timeline-block {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 16vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeinblock 1s forwards;
}
.timeline-block.top {
  justify-content: flex-end;
  top: 0;
  animation-name: fadeinblock;
}
.timeline-block.bottom {
  justify-content: flex-start;
  bottom: 0;
  animation-name: fadeinblockup;
}
@keyframes fadeinblock {
  to { opacity: 1; transform: none;}
}
@keyframes fadeinblockup {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: none;}
}
.timeline-block .block-content {
  background: linear-gradient(120deg, #203d54 70%, #4bb8f5 120%);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px #3562ac23, 0 1.5px 8px #001a;
  border: 2px solid #36b9e4a0;
  padding: 14px 12px 12px 14px;
  text-align: left;
  min-width: 0;
  max-width: 210px;
  width: 96%;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .98rem;
  line-height: 1.21;
  transition: box-shadow 0.18s, border-color 0.16s, transform 0.18s;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: 0.01em;
  position: relative;
}
.timeline-block:last-child .block-content {
  background: linear-gradient(120deg, #276f56 65%, #80e8c2 120%);
  border-color: #84f7bc;
  color: #fff;
}
.block-content strong {
  font-size: 1.07em;
  color: #d0f5ff;
  font-weight: 700;
}
.timeline-dot {
  width: 29px;
  height: 29px;
  background: linear-gradient(120deg, #47c7ff 40%, #57ffe0 100%);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 9px #18509137, 0 0px 7px #22e7fd26;
  z-index: 4;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  position: relative;
}
.timeline-block:hover .block-content {
  box-shadow: 0 7px 21px #7cc5f488, 0 4px 18px #78c5fc44;
  border-color: #fff;
  transform: scale(1.045);
}
.timeline-block:hover .timeline-dot {
  border-color: #b3fcf9;
  box-shadow: 0 0 0 12px #81e0ff27, 0 0 12px #fff5;
  transform: scale(1.11);
}
.timeline-connector {
  width: 3px;
  height: 49px;
  background: linear-gradient(to bottom, #b8e3ff 0%, #79c4ff 100%);
  margin: 0 auto;
  z-index: 1;
  border-radius: 2px;
  animation: connectorgrow 1s;
}
.timeline-block.bottom .timeline-connector {
  background: linear-gradient(to top, #b8e3ff 0%, #79c4ff 100%);
}
@keyframes connectorgrow {
  from { height: 0; }
  to { height: 49px; }
}
.year-label {
  font-size: 1.02rem;
  font-weight: bold;
  color: #ffeccc;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}
.icon {
  font-size: 1.19em;
  margin-right: 5px;
}
.back-home-btn {
  position: fixed;
  left: 22px;
  top: 22px;
  background: linear-gradient(120deg,#6ec3ff 40%,#839fff 100%);
  color: #fff;
  font-size: 1.01rem;
  padding: 8px 18px 8px 10px;
  border-radius: 30px;
  box-shadow: 0 2px 9px #2c56a880;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0.97;
}
.back-home-btn:hover, .back-home-btn:focus {
  background: linear-gradient(120deg,#839fff 20%,#62c2fd 80%);
  color: #e3f4ff;
}
@media (max-width: 1200px) {
  .timeline-flex { max-width: 99vw; min-width: 0; }
  .timeline-block { max-width: 95vw; }
  .timeline-block .block-content { min-width: 80px; width: 97%; font-size: .9rem;}
}
