* {
  box-sizing: border-box;
}

body {
  background-color: #f9f3bb;
}

.top * {
  transition: all 0.3s ease;
}

.top {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 50px;
  margin: 0px auto;
  background-color: #fff;
  background-image: linear-gradient(to bottom, #fcf8d3 0%, #fcf8d0 35% 65%, #f7f3c0 97%, #fcf0ee 100%);
  box-shadow: 0px 1px 1px rgba(230,210,170,0.5);
  z-index: 10010;
  opacity: 0.95;
}

.nav-brand {
  position: fixed;
  top: 0px;
  left: 5px;
  z-index: 10030;
}

.nav-brand a {
  text-decoration: none;
}

.nav-brand-icon {
  display: inline-block;
  background-image: url("../images/lotus.svg");
  background-size: 28px 28px;
  background-position: center center;
  background-repeat: no-repeat;
  height: 50px;
  width: 42px; /* 可以通过这里来调节图标的左右边距 */
  float: left;
}

.nav-brand-text {
  display: inline-block;
  line-height: 50px;
  float: left;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #b73;
}

.nav-button-container {
  position: fixed;
  top: 0px;
  right: 0px;
  z-index: 10090;
}

.nav-button {
  display: inline-block;
  width: 50px;
  height: 50px;
  /* float: right; */
  position: relative;
  /*background-color: #fff;*/
  z-index: 10100;
}

.nav-button .hamburger,
.nav-button::before,
.nav-button::after
{
  position: absolute;
  height: 3px;
  background-color: #c96;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-button::before {
  content: "";
  top: 33%;
}

.nav-button::after {
  content: "";
  top: 67%;
}

.nav-button.clicked .hamburger {
  transform-origin: center;
  background-color: rgba(0,0,0,0);
}

.nav-button.clicked::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-button.clicked::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}



/* 顶部主菜单 */
.nav-menu {
  display: hidden;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  bottom: 0;
  overflow: hidden;
  white-space: nowrap;
  background-color: #fff;
  background-image: linear-gradient(to bottom, #fcf7ee 0%, #f7f0d8 35% 65%, #f7f3c7 90%, #fcf7cc 100%);
  z-index: 10020;
  padding-top: 50px;
  overflow: auto;
}

.nav-menu ul {
  width: 100%;
  display: block;
}

.nav-menu ul li {
  display: block;
  text-align: center;
  height: 60px;
  line-height: 60px;
  font-size: 16px;
  font-weight: normal;
  transition: all 1s ease;
}

.nav-menu ul li:first-child {
  margin-top: 10px;
}

.nav-menu ul li a {
  display: block;
  letter-spacing: 0.2em;
  color: #963;
  text-shadow: 0.2px 0.2px 0.3px #d93;
  text-decoration: none;
  transition: all 0.7s ease-in-out;
}

.nav-menu ul li:hover {
  background-color: #fffc77;
  background-image: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.1) 100%);
}

/* 搜索控件 */
.nav-menu ul li.top-search-container {
  padding: 25px 0px 25px 0px;
  height: auto;
}

.top-search {
  position: relative;
  margin: auto;
  width: 300px;
  max-width: 100%;
}

.top-search form {
  margin: 0;
}

.top-search-text {
  width: 100%;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  letter-spacing: 0.05em;
  padding: 5px 55px 5px 1em;
  margin: 0px;
  border: 1px solid rgba(200,160,100,0.3);
  border-radius: 18px;
  color: #963;
}

.top-search-text::placeholder {
  color: #ec8;
}

.top-search-submit {
  background: url("../images/search2.png") no-repeat center center;
  /* 如果有可能，使用SVG图标，来自 https://icons.getbootstrap.com/icons/search/ */
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(160,120,50)" class="bi bi-search" viewBox="0 0 16 16"> <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/> </svg>');
  border: none;
  position: absolute;
  right: 8px;
  top: 0px;
  width: 40px;
  height: 60px;
  background-size: 20px 20px;
  background-position: center center;
  z-index: 21;
}


/* 简繁体转换按钮 */
.simp-trad-toggler {
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}


.simp-trad-container {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 10080;
}

.simp-trad-container div {
  position: relative;
}

#simp-trad-toggler {
  position: absolute;
  top: 0px;
  right: 60px;
  z-index: 2000;
  padding: 4px 12px;
  font-size: 13.5px;
  letter-spacing: 0.07em;
  color: #963;
  background-color: rgba(255, 239, 150, 0.5);
  background-image: linear-gradient(to bottom,
  	rgba(255,255,255,0.1) 0%,
  	rgba(255,255,255,0.25) 40%,
  	rgba(255,255,255,0.20) 88%,
  	rgba(238,238,238,0.20) 100%);
  border: none;
  border-radius: 0px 0px 6px 6px;
  box-shadow: 1px 1px 2px rgba(180,170,150,0.3);
  text-decoration: none;
  transition: all 0.5s ease;
}

#simp-trad-toggler:hover {
  color: #fff;
  background-color: #c60;
  box-shadow: 1px 1px 2px rgba(150,150,150,0.5);
}

#simp-trad-toggler:active,
#simp-trad-toggler:focus {
  color: #620;
  background-color: #fd3;
  box-shadow: 1px 1px 3px rgba(250,200,200,0.5);
}


.top-margin {
  margin-top: 50px;
}
