@font-face {
  font-family: "SiYuanSongTi";
  src: url("/static/assets/fonts/思源宋体.ttf?v=8c4619fa")
}

html {
  height: 100%;
}

body {
  font-size: 14px;
  padding-top: 78px;
  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;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 8px;
  line-height: 1.6;
}

.footer-nav a {
  color: #fff;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-icp {
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}

.footer-icp-link {
  display: inline;
  color: #fff;
  text-decoration: none;
  min-height: 32px;
  line-height: 1.6;
}

footer .footer-icp-link:hover,
footer .footer-icp-link:focus,
footer .footer-icp-link:active {
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.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;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: bold;
  font-family: "SiYuanSongTi", "MicrosoftYaHei", sans-serif;
  color: #5d4037;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

h1.title-bar {
  margin-top: 0;
}

.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: 76px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header-nav {
  flex: 1;
  min-width: 0;
  padding: 0 8px 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-mobile-switch {
  display: none;
}

.header-logo {
  flex-shrink: 0;
  height: 100%;
  padding: 12px 0;
  display: block;
}

.header-logo img {
  display: block;
  height: 100%;
  width: auto;
}

.header-nav > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav > ul > li {
  position: relative;
  font-family: "SiYuanSongTi", serif;
}

.header-nav > ul > li > a {
  display: block;
  line-height: 1.5;
  padding: 8px 13px;
  font-size: 18px;
  color: #3f2a1a;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-nav > ul > li > a:hover {
  background: rgba(121, 85, 72, 0.1);
  color: #2c1810;
}

.header-nav > ul > li > a:focus-visible {
  outline: 2px solid rgba(121, 85, 72, 0.45);
  outline-offset: 2px;
}

.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: calc(100% + 4px);
  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;
  align-items: center;
  flex-shrink: 0;
}

.header-user-menu {
  position: relative;
}

.header-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  margin: 0;
  padding: 8px 12px;
  min-height: 40px;
  border: 1px solid rgba(121, 85, 72, 0.35);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.92);
  color: #4e342e;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-user-trigger:hover,
.header-user-menu.is-open .header-user-trigger {
  border-color: #795548;
  background: #fff;
  box-shadow: 0 4px 12px rgba(121, 85, 72, 0.12);
}

.header-user-trigger.is-member {
  border-color: #c9a227;
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.95) 0%, rgba(255, 236, 179, 0.88) 100%);
}

.header-user-trigger.is-member:hover,
.header-user-menu.is-open .header-user-trigger.is-member {
  border-color: #a67c00;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.22);
}

.header-user-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.header-user-vip-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a227, #a67c00);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.header-user-name {
  font-family: "MicrosoftYaHei", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  max-width: 120px;
}

.header-user-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(78, 52, 46, 0.55);
  transition: transform 0.2s ease;
}

.header-user-menu.is-open .header-user-chevron {
  transform: rotate(180deg);
}

.header-user-dropdown {
  position: absolute;
  z-index: 500;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  padding: 6px 0;
  border: 1px solid rgba(121, 85, 72, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.14);
}

.header-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #4e342e;
  font-family: "MicrosoftYaHei", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.header-user-dropdown-item:hover {
  background: rgba(121, 85, 72, 0.08);
  color: #795548;
}

.header-user-dropdown-logout {
  margin-top: 4px;
  border-top: 1px solid rgba(121, 85, 72, 0.12);
  color: #6d4c41;
}

.header-user-guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 6px;
  font-family: "SiYuanSongTi", serif;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-user-btn--ghost {
  border: 1px solid rgba(121, 85, 72, 0.4);
  background: transparent;
  color: #5d4037;
}

.header-user-btn--ghost:hover {
  border-color: #795548;
  background: rgba(121, 85, 72, 0.06);
  color: #4e342e;
}

.header-user-btn--primary {
  border: 1px solid #795548;
  background: #795548;
  color: #fff;
}

.header-user-btn--primary:hover {
  border-color: #6d4c41;
  background: #6d4c41;
  color: #fff;
}

.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-links {
  margin: 8px 0 0;
  text-align: right;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.login-modal-links a,
.login-modal-register a {
  color: #999;
  font-size: 14px;
}

.login-modal-forgot {
  margin-right: 12px;
  white-space: nowrap;
}

.login-modal-register {
  display: inline;
}

.login-modal-register a {
  white-space: nowrap;
}

.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-content.email-code-row input {
  width: auto;
  flex: 1;
  min-width: 140px;
}

.forgot-password-tip {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.email-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forgot-code-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #795548;
  border-radius: 2px;
  background: #fff;
  color: #795548;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
}

.forgot-code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.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";
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.category-filter-item {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  border: solid 1px #e2e2e2;
  border-radius: 4px;
  color: #666;
  background: #f5efe2;
  white-space: nowrap;
  cursor: pointer;
}

.category-filter-item:hover {
  background: #ebe2d0;
  color: #795548;
}

.category-filter-item.active {
  background: #795548;
  color: #fff;
  border-color: #795548;
}

.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-wrap {
    height: 72px;
  }

  .header-logo {
    padding: 14px 0;
  }

  .header-nav {
    padding: 0 4px 0 8px;
  }

  .header-nav > ul {
    flex-wrap: nowrap;
    gap: 2px 0;
  }

  .header-nav > ul > li > a {
    font-size: 16px;
    padding: 7px 9px;
  }

  .header-user {
    flex-shrink: 0;
  }

  .header-user-trigger {
    max-width: 180px;
  }

  .header-user-name {
    max-width: 96px;
    font-size: 13px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 13px;
    padding-top: 74px;
  }

  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .bv-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-heading {
    font-size: 18px;
  }

  .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;
    min-height: 32px;
  }

  .mobile-menu-user {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
    font-family: "SiYuanSongTi", serif;
    font-size: 16px;
  }

  .mobile-menu-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid rgba(121, 85, 72, 0.35);
    border-radius: 10px;
    background: rgba(255, 252, 247, 0.85);
    color: #333;
    text-decoration: none;
  }

  .mobile-menu-user-chip.is-member {
    border-color: #c9a227;
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.95) 0%, rgba(255, 236, 179, 0.88) 100%);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.15);
  }

  .mobile-menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .mobile-menu-user-hint {
    font-size: 12px;
    color: rgba(78, 52, 46, 0.65);
    line-height: 1.4;
  }

  .mobile-menu-logout {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    min-height: 32px;
    border: 0;
    background: transparent;
    color: #333;
    font-family: "SiYuanSongTi", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu-logout:hover {
    color: #795548;
  }

  .mobile-menu-user-link {
    display: block;
    padding: 8px 0;
    min-height: 36px;
    color: #333;
    font-family: "SiYuanSongTi", serif;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .mobile-menu-user-link:hover {
    color: #795548;
  }

  .mobile-menu-user-guest {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-user-guest .header-user-btn {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }

  .mobile-menu-user .header-user-name {
    max-width: none;
    font-size: 16px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .mobile-menu .mobile-menu-group {
    display: block;
    padding: 8px 0 4px;
    color: #999;
    font-size: 14px;
  }

  .mobile-menu .mobile-menu-sub {
    padding-left: 16px !important;
  }

  .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%;
  }

  .email-code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form .form-item-content.email-code-row input,
  .email-code-row .forgot-code-btn {
    width: 100%;
    min-width: 0;
  }

}

.member-discount-action-btn.has-member-discount-badge {
  position: relative;
  overflow: visible;
}

.member-discount-corner-badge {
  position: absolute;
  top: -7px;
  right: -4px;
  z-index: 2;
  padding: 1px 6px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  color: #8a7340;
  background: #f2ead8;
  border: 1px solid #d8ccb0;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 800px) {
  .member-discount-corner-badge {
    font-size: 9px;
    top: -6px;
    right: -3px;
  }
}