body {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------------header----------------------- */
header {
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background-color: white;
}

header>div {
  flex: 1;
}

/* 小于750px不显示 */
@media screen and (max-width: 750px) {
  #canvas {
    display: none;
  }
}

/* 搜索 */
.search .search-set {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.search .search-set .btn {
  padding: 5px 10px;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

.search .search-input {
  height: 40px;
  max-width: 500px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid #ccc;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  overflow: hidden;
}

.search .search-input input {
  height: 100%;
  flex: 1;
  outline: none;
  border: none;
  background: none;
  padding: 0 10px;
}

.search .search-input button {
  height: 100%;
  width: 90px;
  outline: none;
  background: blue;
  color: white;
  text-align: center;
  border: none;
  line-height: 30px;
  cursor: pointer;
}

/* 翻译结果 */
#transBox {
  display: none;
  padding-top: 10px;
}

/* 锚 */
#anchor {
  margin: 0;
  padding-top: 10px;
}

#anchor a {
  margin-right: 10px;
}

/* ---------------------main----------------------- */
.main {
  padding: 10px;
  -ms-overflow-style: none;
  /* IE 10+ */
  scrollbar-width: none;
  /* Firefox */
}

.main::-webkit-scrollbar {
  display: none;
  /* Chrome Safari */
}

.nav-box {
  scroll-margin-top: 190px;
}

/* 导航 */
nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

nav a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: 25px;
  margin-bottom: 25px;
  height: 50px;
}

nav a img {
  height: inherit;
  border: none;
}

nav a img:not(:only-child) {
  margin-right: 10px;
}

nav a span {
  font-size: 25px;
}

/* footer */
footer {
  text-align: center;
  padding: 0;
  margin: 0;
}

footer a {
  white-space: nowrap;
}