body {
  background: url(../images/bg.png) top center / contain repeat-y #f6f8fa;
  color: #63606c;
  font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", "microsoft yahei", Arial,
    sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: #63606c;
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #000;
}

button {
  border: 0;
  cursor: pointer;
  outline: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.body-wrapper {
  display: flex;
  flex-direction: column;
}

.container {
  margin: auto;
  max-width: 1200px;
  width: 100%;
}

/** -------------------- Header -------------------- **/
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header .logo {
  background: url(https://imgsg99.com/wkyl/wkyl_logo_app.png) center / contain
    no-repeat;
  display: inline-block;
  height: 50px;
  width: 200px;
}

.header .btns-wrapper {
  display: flex;
}

.header .btn-round {
  background-color: #fff;
  border-radius: 20px;
  color: #b3bac6;
  display: flex;
  padding: 3px 10px;
}

.header .btn-round:not(:last-child) {
  margin-right: 10px;
}

.header .btn-round:hover {
  color: #63606c;
}

/** -------------------- Sidebar -------------------- **/
.sidebar {
  position: fixed;
  right: 10px;
  top: 15%;
  width: 80px;
}

.sidebar a {
  display: block;
}

.sidebar a:not(:last-child) {
  margin-bottom: 10px;
}

.sidebar img {
  width: 100%;
}

/** -------------------- Content -------------------- **/
.content {
  min-height: calc(100vh - 70px - 40px); /* minus header & footer height */
  padding: 10px 0;
}

.main-row {
  display: flex;
  margin-bottom: 10px;
}

.main-row-title {
  background-image: linear-gradient(#ebe4d6, #e4c092);
  border-bottom: 3px solid #63606c;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  margin-right: 10px;
  padding: 20px 0;
  width: 200px;
}

.main-row-title img {
  margin-bottom: 10px;
}

.main-row-content {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 200px - 10px);
}

.main-row-content a {
  background-color: #fefeff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: calc(100% / 6);
  padding: 10px;
}

.main-row-content a img {
  margin-right: 5px;
}

/** ------- Membersite ------- **/
.main-row.membersite .main-row-content a {
  align-items: unset;
  flex-basis: calc((100% / 6) - 2px);
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.main-row.membersite .main-row-content a:not(:last-child) {
  margin-right: 2px;
}

.main-row.membersite .main-row-content a .seconds {
  display: flex;
  justify-content: flex-end;
}

.main-row.membersite .main-row-content a .seconds.fastest {
  color: #ff0000;
}

.main-row.membersite .main-row-content a .seconds.done {
  color: #006a38;
}

.main-row.membersite .main-row-content a .seconds div:nth-child(2) {
  margin-left: auto;
}

.main-row.membersite .main-row-content a .line-num {
  text-align: center;
}

.main-row.membersite .main-row-content a .speed img {
  margin-right: 0;
  width: 13px;
}

/** ------- 线路辅助 ------- **/
.main-row.help .main-row-content a {
  background-color: transparent;
  flex-basis: 50%;
  padding: 0;
}

.main-row.help .main-row-content a img {
  margin-right: unset;
  width: 100%;
}

.main-row.help .main-row-content a:nth-child(odd) img {
  padding-right: 10px;
}

.main-row.help .main-row-content a:nth-child(1) img,
.main-row.help .main-row-content a:nth-child(2) img {
  margin-bottom: 10px;
}

/** -------------------- Footer -------------------- **/
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: auto;
  text-align: center;
}

/** -------------------- Mobile view -------------------- **/
@media screen and (max-width: 767px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    height: 100px;
    padding: 10px;
  }

  .header .logo {
    width: 150px;
  }

  .sidebar {
    display: flex;
    align-items: flex-end;
    position: absolute;
    top: 15px;
    width: 60px;
  }

  .sidebar a:not(:last-child) {
    margin-bottom: 0;
    margin-right: 3px;
  }

  .content {
    padding: 10px;
  }

  .main-row {
    flex-direction: column;
  }

  .main-row-title {
    border-bottom: 0;
    flex-direction: row;
    margin-bottom: 10px;
    margin-right: 0;
    padding: 10px 0;
    width: 100%;
  }

  .main-row-title img {
    margin-bottom: 0;
    margin-right: 5px;
  }

  .main-row-content {
    width: 100%;
  }

  .main-row-content a {
    flex-basis: calc(100% / 2);
  }

  .main-row-content a img {
    margin-right: 5px;
  }

  .main-row.membersite .main-row-content a {
    flex-basis: calc((100% / 2) - 2px);
    margin-bottom: 2px;
  }

  .main-row.help .main-row-content a {
    flex-basis: 100%;
  }

  .main-row.help .main-row-content a {
    flex-basis: 100%;
  }
  .main-row.help .main-row-content a img {
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
  }
}
