* {
  margin: 0;
  padding: 0;
}

html {
  transition: background-color 0.3s ease;
}

body {
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  text-align: center;
}

p {
  margin: 20px 0;
}

ul,
ol {
  list-style: none;
}

/* Fonts */
@font-face {
  font-family: "icomoon";
  src: url("../fonts/icomoon.ttf?mrs7x8") format("truetype"),
    url("../fonts/icomoon.woff?mrs7x8") format("woff"),
    url("../fonts/icomoon.svg?mrs7x8#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"],
[class*=" icon-"] {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-map-pin:before {
  content: "\e902";
}
.icon-moon:before {
  content: "\e900";
}
.icon-sun:before {
  content: "\e901";
}
.icon-quotes-left:before {
  content: "\e977";
}
.icon-quotes-right:before {
  content: "\e978";
}

/* Animation */
.animate-slide-in-down,
.animate-slide-in-up {
  position: relative;
  opacity: 0;
}

.animate-slide-in-down {
  top: -10px;
}

.animate-slide-in-up {
  bottom: -10px;
}

.no-js .animate-slide-in-down,
.no-js .animate-slide-in-up {
  opacity: 1;
}

.no-js .animate-slide-in-down {
  top: 0;
}

.no-js .animate-slide-in-up {
  bottom: 0;
}

.animate-slide-in-left {
  left: -100%;
}
.no-js .animate-slide-in-left {
  left: 0;
}

.animate-slide-in-right {
  right: -100%;
}
.no-js .animate-slide-in-right {
  right: 0;
}

/* Headline */
.body-content {
  max-width: 780px;
  margin: 100px auto 200px auto;
  position: relative;
}

@media (max-width: 767px) {
  .body-content {
    margin-top: 50px;
  }
}

/* Quote */
.quote {
  position: relative;
  overflow: hidden;
  margin: 40px 20px;
}

.quote-line {
  display: block;
  position: relative;
  height: 1px;
  transition: all 0.3s ease;
}

.quote cite::before {
  content: "-";
  padding: 0 5px;
}

.quote-icon {
  position: absolute;
}

.quote-icon.animate-slide-in-down,
.quote-icon.animate-slide-in-up {
  opacity: 0;
}
.no-js .quote-icon.animate-slide-in-down,
.no-js .quote-icon.animate-slide-in-up {
  opacity: 1;
}

.quote-icon-start {
  left: 0;
}
.quote-icon-start.animate-slide-in-down {
  top: -10px;
}
.no-js .quote-icon-start.animate-slide-in-down {
  top: 0;
}

.quote-icon-end {
  right: 0;
}
.quote-icon-end.animate-slide-in-up {
  bottom: -10px;
}
.no-js .quote-icon-end.animate-slide-in-up {
  bottom: 0;
}

.quote-content {
  margin: 30px auto 0;
}

.quote-author {
  margin: 10px auto 30px;
}

/* Links */
.links {
  margin-top: 40px;
  font-size: 14px;
}

.links a {
  display: inline-block;
  position: relative;
  margin-left: 10px;
  text-decoration: none;
  border-bottom: 1px dotted;
  transition: border 0.3s ease, color 0.3s ease;
}

.links a:hover {
  border-bottom: 1px solid;
}

.links a:active {
  top: 1px !important;
}

.links a:first-child {
  margin-left: 0;
}

/* LIGHT MODE */
html {
  background-color: white;
}
body {
  color: #333;
}
::selection {
  background: #222;
  color: white;
}
h1 {
  color: #222;
}
.quote {
  color: #666;
}
.quote-icon {
  color: #ccc;
}
.quote-line {
  background: #eee;
}
a {
  color: #333;
}
.links a {
  border-bottom-color: #999;
}
.links a:hover {
  border-bottom-color: #333;
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  html {
    background: #121621;
  }
  body {
    color: #6c7486;
  }
  ::selection {
    background: #222;
    color: #99a3ba;
  }
  h1 {
    color: #e4ecfa;
  }
  .quote {
    color: #6c7486;
  }
  .quote-icon {
    color: #3f4656;
  }
  .quote-line {
    background: #242836;
  }
  a {
    color: #99a3ba;
  }
  .links a {
    border-bottom-color: #6c7486;
  }
  .links a:hover {
    color: #e4ecfa;
    border-bottom-color: #99a3ba;
  }
}

.bottom-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  margin: 0 auto 50px auto;
  color: #6c7486;
  align-items: center;
  justify-content: center;
}

.location-icon {
  font-size: 14px;
}

.location-text {
  margin-left: 6px;
  margin-right: 6px;
  font-size: 13px;
}

.beian {
  margin-left: 6px;
  margin-right: 6px;
  font-size: 13px;
}
