.history-wrapper {
  background: rgba(0, 26, 96, 0.8);
  padding: 5rem 5px;
}

.history-content {
  max-width: 1043px;
  margin: 0 auto;
  text-align: center;
  margin-top: 4rem;
}

.history-content p {
  text-indent: 2em;
}

.project-summary-cards {
  display: flex;
  justify-content: space-between;
}

.orange-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff7817;
}

.card-title-the-title {
  flex: 1;
  text-align: center;
}

.card {
  background: #001a60;
  width: 289px;
  transition: 0.3s;
}

.card-image {
  overflow: hidden;
}

.card img {
  display: block;
  transition: 0.3s;
}

/*
.card:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.card:hover img {
  transform: scale(1.1);
}
*/

.card-title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 36px;
}

.card-body {
  padding: 1em 1em 2em 1em;
}

.card-content {
  font-size: 14px;
}

.card-content p {
  /* 减少一些空白 */
  margin-bottom: 0;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  max-width: 85%;
  margin: 0 auto;
}

.stories {
  display: flex;
}

.story {
  font-size: 14px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 1em;
  background: url("../../imgs/1x/story-blue-bg.jpg") no-repeat center / cover;
  max-width: 40em;
}

.story.right {
  background-image: url("../../imgs/1x/story-orange-bg.jpg");
}

.story p {
  text-indent: 2em;
}

.story.left h2 {
  text-align: right;
}

.story.right h2 {
  text-align: center;
}

.story:nth-of-type(2) {
  align-items: flex-start;
}

.line {
  width: 2px;
  background-color: #fff;
  height: 3em;
  margin: 1em 0;
}

.timeline {
  margin: 100px 0;
  position: relative;
  height: 100vh;
}

.planet {
  display: flex;
  position: absolute;
}

.planet .star-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-right: 2px;
}

.planet .star {
  width: 20px;
  height: 20px;
  -webkit-animation: star-blink 1.5s infinite;
          animation: star-blink 1.5s infinite;
}

@-webkit-keyframes star-blink {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes star-blink {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.y1992 .star {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
}
.y1999 .star {
  -webkit-animation-delay: 0.6s;
          animation-delay: 0.6s;
  -webkit-animation-duration: 1.3s;
          animation-duration: 1.3s;
}
.y2005 .star {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
  -webkit-animation-duration: 0.8s;
          animation-duration: 0.8s;
}
.y2013 .star {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
  -webkit-animation-duration: 1.4s;
          animation-duration: 1.4s;
}
.y2015 .star {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
  -webkit-animation-duration: 1.2s;
          animation-duration: 1.2s;
}
.y2018 .star {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}

.planet .year {
  font-size: 1.75rem;
}
.planet .unit {
  font-size: 1rem;
}
.planet .desc {
  display: none;
  font-size: 14px;
  max-width: 13em;
}

.y1992 {
  left: 2%;
  top: 40%;
}

.y1999 {
  left: 20%;
  top: 15%;
}

.y2005 {
  left: 30%;
  top: 65%;
}

.y2013 {
  left: 40%;
  top: 27%;
}

.y2015 {
  left: 60%;
  top: 55%;
}

.y2018 {
  left: 70%;
  top: 18%;
}

.behind {
  position: absolute;
  right: 5%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.behind:hover .hand {
  -webkit-animation: enlarge 1s infinite;
          animation: enlarge 1s infinite;
}

@-webkit-keyframes enlarge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes enlarge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.behind:hover p {
  text-decoration: underline;
}

.behind p {
  margin: 0;
  color: #ff7817;
  transform: rotate(-18deg);
}

.earth {
  /* opacity: 0.6; */
  position: absolute;
  right: 0;
  bottom: -20vh;
  max-width: 30vw;
  z-index: -1;
}

/* 手机 */

@media screen and (max-width: 768px) {
  .history-wrapper {
    padding: 1rem 5px;
  }
  .history-content {
    margin-top: 1rem;
  }
  .timeline {
    height: unset;
    margin: 50px 0;
  }

  .planet {
    position: relative;
    margin-left: 1em;
  }

  .y1992,
  .y1999,
  .y2005,
  .y2013,
  .y2015,
  .y2018 {
    left: 0;
    top: 0;
  }

  .earth {
    display: none;
  }

  .project-summary-cards {
    flex-wrap: wrap;
  }

  .project-summary-cards .card {
    flex: 0 0 calc(50% - 10px);
    margin: 5px;
  }

  .project-summary-cards .card .card-title {
    margin-bottom: 0.5rem;
  }

  .orange-dot {
    display: none;
  }

  .card-body {
    padding: 0.5rem 0.5rem;
  }

  .card-title-the-title {
    text-align: center;
    /* 确保至少两行 https://stackoverflow.com/a/11152294/2999892 */
    font-size: 14px;
    line-height: 1.5em;
    min-height: 3em;
  }

  .card-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  .project-summary-cards {
    margin-top: -50px;
  }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .modal-content {
    display: block !important;
  }
  .story {
    display: block;
  }
  .line {
    display: none;
  }
  .story.right h2 {
    text-align: left !important;
  }
}

.summary-title {
  padding-top: 100px;
}

.triple-down-arrow {
  text-align: center;
  margin: 50px 0  
}

@media only screen and (max-width: 800px) {
  .summary-title {
    padding-top: 50px;
  }

  .triple-down-arrow {
    margin: 30px 0;
  }

  #summary .brief {
    margin-top: 40px !important;
  }
}

/* xcy 2021-07-28T10:58:14+08:00 */
@media (max-width: 800px) {
  /* 取消 is-center */
  .modal.is-center {
    justify-content: unset;
    align-items: unset;
  }

  .modal {
    position: relative;
  }

  .modal-content {
    position: absolute;
    left: 5%;
    width: 90%;
    top: 5%;
    height: 90%;
  }

  .line {
    display: none;
  }

  /* TODO 重写弹窗，不要再改了，不如重写 */
  .behind {
    display: none;
  }
}
