@font-face {
  font-family: "SiYuanSongTi";
  src: url("/static/assets/fonts/思源宋体.ttf")
}

html {
  height: 100%;
}

body {
  font-size: 14px;
  padding-top: 88px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "MicrosoftYaHei";
  color: #3E3E3E;
  background-color: #ddd3c6;
  text-rendering: optimizeLegibility;
  background:
    repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 4px),
    linear-gradient(to bottom,
      #ddd3c6,
      #e4d6b9);
  background-blend-mode: normal;
  background-attachment: fixed;
}

a {
  color: #333;
}

a:hover {
  color: #795548;
}

.container {
  width: 1300px;
  margin: 0 auto;
}

header {
  width: 100%;
  /* background: #eee7df; */
  background: rgb(173, 142, 106, 0.6);
  backdrop-filter: blur(4px);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 300;
  border-bottom: solid 2px #795548;
  box-shadow: 0 0 4px rgb(121, 85, 72, 0.4);
  background-image: url("/static/assets/images/h-bg.png");
}

footer {
  background: #666;
  color: #fff;
  padding: 16px 0;
}

.text-center {
  text-align: center;
}

.title-bar {
  font-size: 16px;
  font-weight: bold;
  padding: 0 16px;
  line-height: 46px;
  position: relative;
  background: #936857;
  color: #fff;
  font-family: "SiYuanSongTi";
  display: flex;
  justify-content: space-between;
  padding-left: 20px;
  background-image: url("/static/assets/images/title-b.png");
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.title-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 9px;
  height: 46px;
  background-image: url("/static/assets/images/title-b-b.png");
}

.title-bar-action {
  font-size: 14px;
  color: #ddd;
  cursor: pointer;
}

.title-bar-action:hover {
  color: #fff;
}

.breadcrumb-nav {
  padding: 16px 0;
  font-family: "SiYuanSongTi";
}

.breadcrumb-nav span,
.breadcrumb-nav a {
  color: #857a7a;
  margin-right: 8px;
  font-size: 12px;
}

.breadcrumb-nav a:hover {
  color: #795548;
}

.header-wrap {
  height: 88px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.header-nav {
  flex: 1;
  padding: 0 32px;
  height: 100%;
}

.header-mobile-switch {
  display: none;
}

.header-logo {
  height: 100%;
  padding: 24px 0;
  display: block;
}

.header-nav>ul {
  display: flex;
  width: 100%;
  height: 100%;
}

.header-nav>ul>li {
  position: relative;
  font-family: "SiYuanSongTi";
}

.header-nav>ul>li>a {
  line-height: 88px;
  padding: 0 32px;
  display: block;
  font-size: 20px;
}

.header-nav>ul>li:hover>a {
  background: #795548;
  color: #fff;
}

.header-nav .header-nav-sub {
  position: absolute;
  z-index: 200;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  width: 240px;
  display: none;
  top: 62px;
  left: 0;
}

.header-nav .header-nav-sub a {
  display: block;
  border-left: solid 4px transparent;
  line-height: 48px;
  padding: 0 28px;
}

.header-nav .header-nav-sub a:hover {
  border-left: solid 4px #795548;
  background: rgba(121, 85, 72, 0.2);
  color: #000;
}

.header-nav>ul>li:hover .header-nav-sub {
  display: block;
}

.header-user {
  display: flex;
  gap: 8px;
  align-items: center;
}

.layui-layer {
  border-radius: 4px !important;
}

.alert-tips .layui-layer-content {
  background-color: #2e8ded !important;
}

.alert-tips i.layui-layer-TipsL,
.alert-tips i.layui-layer-TipsR {
  border-bottom-color: #2e8ded !important;
}

.login-modal-wrap {
  padding: 16px;
}

.login-modal-form {
  padding-top: 0;
}

.login-modal-formitem {
  display: flex;
  align-items: center;
  margin-top: 16px;
}

.login-modal-label {
  width: 85px;
  height: 42px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  background: #eee;
  text-align: center;
  line-height: 40px;
  border: solid 1px #e2e2e2;
}

.login-modal-input {
  flex: 1;
  border: solid 1px #e2e2e2;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 42px;
  padding: 0 8px;
}

.login-modal-submit {
  width: 100%;
  border-radius: 4px;
  border: 0;
  height: 42px;
  margin-top: 16px;
  background: #795548;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-modal-register {
  text-align: right;
  margin-top: 8px;
}

.form .form-item {
  margin-top: 16px;
  display: flex;
  align-items: center;
}

.form .form-captcha {
  height: 38px;
  border: solid 1px #eee;
  margin-left: 8px;
  cursor: pointer;
}

.form .form-item:first-child {
  margin-top: 0;
}

.form .form-item-label {
  width: 85px;
  text-align: right;
}

.form .form-item-content {
  flex: 1;
}

.form .form-item-content input,
.form .form-item-content select {
  width: 100%;
}

.form .form-item-button {
  width: 100%;
  border-radius: 4px;
  border: 0;
  height: 38px;
  background: #2e8ded;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.iframe-border {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.bv {
  display: flex;
}

.bv-left {
  flex: 3;
}

.bv-right {
  flex: 1;
  background: #fff;
  margin-left: 16px;
}

.bv-list {
  display: block;
}

.bv-list-li {
  padding: 8px 16px;
  border-bottom: solid 1px #ebe2d0;
  position: relative;
  background: #f5efe2;
}

.bv-list-li a {
  display: block;
}

.bv-list-li:first-child {
  border-top: solid 1px #ebe2d0;
}

.bv-list-li:hover {
  background: #ebe2d0;
}

.bv-list-author {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  display: block;
}

.bv-pagination {
  display: flex;
  margin: 16px 0;
  justify-content: end;
  align-items: center;
}

.bv-pagination a {
  display: inline-block;
  min-width: 32px;
  height: 32px;
  border: solid 1px #e2e2e2;
  line-height: 30px;
  text-align: center;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #666;
  background: #fff;
  padding: 0 4px;
}

.bv-pagination a:hover {
  background: rgba(121, 85, 72, 0.8);
  color: #fff;
}

.bv-pagination a.active {
  background: #795548;
  color: #fff;
}

.search-input {
  display: flex;
  gap: 8px;
  padding: 16px;
  align-items: center;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.search-input .search-input-sort {
  font-size: 13px;
  display: block;
  word-break: keep-all;
}

.search-input .search-input-sort.active,
.search-input .search-input-sort:hover {
  color: #795548;
}


.search-input button {
  font-family: "SiYuanSongTi";
}

.mobile-menu {
  display: none;
}

/* layui style */
.layui-btn {
  background-color: #795548;
}

/* layui style */

@media (max-width: 1400px) {
  .container {
    width: 1000px;
  }
}

@media (max-width: 1100px) {
  .container {
    width: 750px;
  }

  .header-nav > ul > li > a {
    font-size: 18px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 13px;
  }

  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .bv-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-user,
  .header-nav {
    display: none;
  }

  .header-mobile-switch {
    display: block;
    font-size: 32px;
    padding: 4px 8px;
    color: #333;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    width: 70%;
    left: 100%;
    top: 0;
    bottom: 0;
    height: 100%;
    overflow-y: auto;
    background: #eee;
    padding: 16px;
    z-index: 9999;
    background: rgb(173, 142, 106, 0.6);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 4px rgb(121, 85, 72, 0.4);
  }

  .mobile-menu .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "SiYuanSongTi";
    font-size: 16px;
  }

  .mobile-menu .mobile-menu-nav a {
    display: block;
    padding: 8px 0;
  }

  .mobile-menu hr {
    border-color: #666 !important;
  }

  .book-detail-recommend {
    display: none;
  }

  .book-detail-main {
    margin-right: 0 !important;
  }

  .download-list-li {
    width: 100% !important;
  }

  .register-page .w-460,
  .login-page .w-460 {
    width: 100%;
  }

  .layui-layer {
    max-width: 80% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}