/* 注册字体 latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #333;
  color: #222;
  overflow-x: hidden;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  background-color: #fafafa;
  transform-origin: top left;
  transition: padding 0.3s linear;
  width: 100vw;
  min-height: 100vh;
  padding: 50px;
}

.container.show {
  padding-left: 250px;
}

.circle-container {
  z-index: 1001;
  position: fixed;
  top: -100px;
  left: -100px;
  transition: transform 0.5s linear;
}

.circle-container.show-nav {
  transform: rotate(-90deg);
}

.circle {
  background-color: #ff7979;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  position: relative;
  transition: transform 0.3s linear;
}

.circle button {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100px;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #fff;
}

.circle button:focus {
  outline: none;
}

.circle button#open {
  left: 60%;
}

.circle button#close {
  top: 60%;
  transform: rotate(90deg);
  transform-origin: top left;
}



nav {
  height: 100vh;
  width: 200px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  background-color: #333;
  transition: transform 0.3s linear;
  transform: translateX(-200px);
}

nav ul {
  position: absolute;
  left: 0;
  bottom: 40px;
  list-style-type: none;
  padding-left: 30px;
}

nav ul li {
  text-transform: uppercase;
  color: #fff;
  margin: 40px 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease-in;
}

nav ul li i {
  font-size: 20px;
  margin-right: 10px;
}

nav ul li+li {
  margin-left: 15px;
  transform: translateX(-150%);
}

nav ul li+li+li {
  margin-left: 30px;
  transform: translateX(-200%);
}

nav li.active,
nav li.active a {
  color: #FF7979;
  font-weight: bold;
}

nav a {
  color: #fafafa;
  text-decoration: none;
  transition: all 0.5s;
}

nav a:hover {
  color: #FF7979;
  font-weight: bold;
}

.nav-container.show {
  transform: translateX(0);
}

.nav-container.show li {
  transform: translateX(0);
  transition-delay: 0.3s;
}

@keyframes show {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.content {
  display: none;
  opacity: 0;
  max-width: 1000px;
  margin: 50px auto;
}

.content.imgs {
  margin: 0 auto;
  max-width: initial;
}

.content.show {
  display: block;
  animation: show 0.5s linear 0.2s forwards;
}

.content img {
  max-width: 100%;
}

.content h1 {
  margin: 0;
}

.content h3 {
  margin-bottom: 0;
}

.content small {
  margin-bottom: 1em;
  color: #555;
  font-style: italic;
  display: inline-block;
}

.content p {
  color: #333;
  line-height: 1.5;
}

/* 图片 */
.imgs-container {
  display: flex;
  width: 100%;
}

.panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: calc(100vh - 120px);
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  flex: 0.5;
  margin: 10px;
  position: relative;
  -webkit-transition: all 700ms ease-in;
}

.panel h3 {
  font-size: 24px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
}

.panel.active {
  flex: 5;
}

.panel.active h3 {
  opacity: 1;
  transition: opacity 0.3s ease-in 0.4s;
}


.footer {
  color: #99a2aa;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .container {
    width: 100vw;
  }

  .panel:nth-of-type(4),
  .panel:nth-of-type(5) {
    display: none;
  }
}