* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2f7;
  color: #1f2733;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  overflow: hidden;
  min-width: 1200px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topbar {
  height: 68px;
  background: #2677f4;
  color: #fff;
}

.top-inner {
  width: 1200px;
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  flex: 0 0 118px;
  white-space: nowrap;
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 12px;
  font-size: 16px;
  white-space: nowrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
}

.search {
  margin-left: auto;
  width: 390px;
  height: 44px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, .15);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #cfe0ff;
  background: transparent;
  font-size: 16px;
}

.search button {
  width: 58px;
  background: #1760ca;
  position: relative;
}

.search button::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 11px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.search button::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 30px;
  width: 12px;
  height: 3px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

.top-actions {
  display: flex;
  gap: 14px;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}

.layout {
  position: relative;
  width: 1200px;
  height: calc(100vh - 68px);
  margin: 0 auto;
}

.crumb {
  height: 40px;
  padding-top: 12px;
  color: #5c6470;
  font-size: 14px;
}

.left-tools {
  position: absolute;
  left: -88px;
  top: 40px;
  width: 74px;
  padding: 12px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(40, 50, 70, .12);
  overflow: hidden;
}

.left-tools button {
  width: 60px;
  margin: 0 7px;
  padding: 10px 0;
  border-bottom: 1px solid #e6e9ef;
  color: #1d2733;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.left-tools .ai {
  width: 44px;
  height: 44px;
  margin: 10px 15px 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #8e2bff, #e10ec6);
  font-size: 24px;
}

.doc-panel {
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 0;
  width: 870px;
  background: #fff;
}

.doc-title {
  height: 104px;
  border-bottom: 1px solid #e7e9ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.doc-title h1 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.word-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 28px;
  margin-right: 12px;
  border-radius: 3px;
  background: #66c5ee;
  color: #fff;
  font-size: 15px;
}

.doc-title em,
.right-panel b,
.card b {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 11px;
  background: #dfbb82;
  color: #9a5f1f;
  font-style: normal;
  font-size: 14px;
}

.doc-title p {
  margin: 0;
  color: #7f8791;
  font-size: 12px;
}

.download-top,
.download-bottom {
  width: 140px;
  height: 40px;
  border-radius: 3px;
  background: #dfbb82;
  color: #99601f;
  font-size: 16px;
  font-weight: 700;
}

.reader {
  position: absolute;
  left: 0;
  right: 0;
  top: 104px;
  bottom: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}

.document-body {
  padding: 68px 0 40px;
}

.image-page-wrap {
  width: 760px;
  margin: 0 auto 18px;
  background: #fff;
}

.image-page {
  display: block;
  width: 100%;
  height: auto;
}

.locked-panel {
  padding: 0 50px 64px;
  background: #fff;
  text-align: center;
}

.orange-ad {
  height: 96px;
  margin: 0 -50px 92px;
  background: linear-gradient(135deg, #ff7800, #ffad1e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.orange-ad strong {
  font-size: 28px;
}

.orange-ad span {
  font-size: 19px;
}

.orange-ad button {
  width: 170px;
  height: 42px;
  border-radius: 22px;
  background: #ffd16f;
  color: #b75900;
  font-weight: 700;
}

.remaining {
  color: #176bff;
  font-size: 16px;
  margin-bottom: 28px;
}

.remaining button {
  color: #176bff;
}

.recommend-box {
  position: relative;
  width: 860px;
  margin: 0 auto;
  padding: 28px 30px 18px;
  border: 1px solid #f2dba8;
  border-radius: 16px;
  background: #fffaf2;
}

.recommend-box h2 {
  margin: 0 0 20px;
  font-size: 24px;
  color: #000;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  text-align: left;
}

.card img {
  width: 118px;
  height: 166px;
  object-fit: cover;
  border: 1px solid #e2e4e9;
  background: #fff;
}

.card b {
  position: absolute;
  right: 6px;
  top: 10px;
}

.card span {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
  color: #1d2733;
  font-size: 14px;
}

.card small {
  display: block;
  margin-top: 8px;
  color: #7d8794;
}

.vip-open {
  margin-top: 20px;
  width: 390px;
  height: 45px;
  border-radius: 24px;
  background: #e1bd81;
  color: #754400;
  font-size: 16px;
  font-weight: 700;
}

.recommend-box > i {
  position: absolute;
  left: 570px;
  bottom: 52px;
  padding: 4px 10px;
  border-radius: 12px;
  background: #ff5f70;
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.right-panel {
  position: absolute;
  right: 0;
  top: 40px;
  bottom: 0;
  width: 310px;
  background: #fff;
  border-left: 1px solid #e7e9ee;
  overflow: hidden;
  padding: 24px 18px;
}

.right-panel h2 {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 5px solid #2f7df4;
  font-size: 18px;
}

.right-panel h2 span {
  float: right;
  color: #999;
  font-size: 14px;
  font-weight: 400;
}

.related-list a {
  display: block;
  position: relative;
  min-height: 78px;
  padding-left: 30px;
  text-decoration: none;
  color: #222;
}

.related-list i {
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 26px;
  border-radius: 2px;
  background: #65c4ee;
  color: #fff;
  text-align: center;
  line-height: 26px;
  font-style: normal;
  font-weight: 700;
}

.related-list .pdf {
  background: #ff5868;
}

.related-list strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.related-list em {
  color: #ff3b23;
  font-style: normal;
}

.related-list small {
  display: block;
  margin-top: 4px;
  color: #7d8794;
  font-size: 12px;
}

.float-tools {
  position: fixed;
  left: calc(50% + 603px);
  top: 360px;
  z-index: 20;
  width: 96px;
  text-align: center;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .12));
}

.vip-badge {
  width: 96px;
  height: 93px;
  margin-left: 0;
  background: transparent;
}

.vip-badge img {
  display: block;
  width: 96px;
  height: 93px;
  object-fit: contain;
}

.float-tools button {
  width: 96px;
  height: 83px;
  background: #fff;
  border: 1px solid #eceff4;
  border-top: 0;
  color: #7b828a;
  font-size: 0;
  display: grid;
  place-items: center;
  grid-template-rows: 35px 24px;
  padding: 9px 0 7px;
}

.float-tools span {
  display: block;
  margin-top: 0;
  font-size: 14px;
  color: #8a929c;
}

.float-tools button i {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
}

.tool-share i::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 17px;
  height: 20px;
  border: 3px solid #8b939b;
  border-radius: 3px;
}

.tool-share i::after {
  content: "￥";
  position: absolute;
  left: 14px;
  top: 6px;
  color: #8b939b;
  font-size: 16px;
  font-weight: 700;
}

.tool-history i::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 23px;
  height: 23px;
  border: 3px solid #8b939b;
  border-radius: 50%;
}

.tool-history i::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 7px;
  width: 7px;
  height: 11px;
  border-left: 3px solid #8b939b;
  border-bottom: 3px solid #8b939b;
}

.tool-service i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 24px;
  height: 15px;
  border: 3px solid #8b939b;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.tool-service i::after {
  content: "☎";
  position: absolute;
  left: 0;
  top: -5px;
  color: #8b939b;
  font-size: 30px;
  line-height: 32px;
}

.bottom-bar {
  position: fixed;
  left: calc(50% - 165px);
  bottom: 0;
  width: 870px;
  height: 64px;
  transform: translateX(-50%);
  background: #fff;
  border-top: 1px solid #e7e9ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  z-index: 15;
}

.pager,
.bottom-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pager button {
  color: #6e7884;
  font-size: 26px;
}

.pager span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 32px;
  border: 1px solid #d6dbe3;
  border-radius: 3px;
  color: #9aa1aa;
}

.pager em {
  color: #7b838d;
  font-style: normal;
}

.bottom-actions button:not(.download-bottom) {
  color: #20242a;
  font-size: 20px;
}

.bottom-actions span {
  display: block;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 50;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(20, 24, 31, .9);
  color: #fff;
  transition: .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .topbar,
  .right-panel,
  .left-tools,
  .float-tools,
  .bottom-bar {
    display: none;
  }

  .layout,
  .doc-panel,
  .reader {
    position: static;
    width: 100%;
    height: auto;
  }

  .crumb,
  .doc-title {
    display: none;
  }

  .reader {
    overflow: visible;
  }

  .document-body {
    padding: 0;
  }

  .image-page-wrap {
    width: 100%;
    margin: 0 0 12px;
  }
}
