@import url(iconfont/iconfont.css);
@keyframes show {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes hide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes xuan {
  100% {
    transform: rotateZ(360deg);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: #333;
  text-decoration: none;
}
ul,
li {
  list-style: none;
}
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
:root {
  --themeColor: #1aafd9;
}
/* 提示框 */
#toast {
  position: absolute;
  bottom: 50%;
  left: 50%;
  z-index: 99999999999999;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  padding: 10px 20px;
  width: max-content;
  max-width: 60vw;
  background: #f8f8f844;
  color: #333;
  font-size: 13px;
  text-align: center;
  border-radius: 6px;
}
/* 详情 */
#details {
  --icon_box: 40px;
  background-image: url(../image/bg2.jpg);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 顶部/底部菜单 */
  /* 缩略图列表 */
  /* 步进器 */
  /* 分级菜单 */
}
#details #book {
  position: relative;
  /* 画册页 */
}
#details #book .page {
  position: relative;
  background-color: #f1f1f1;
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -ms-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  /* 双页模式下两页之间的缝隙阴影 */
}
#details #book .page img {
  display: block;
  width: 100%;
  height: auto;
}
#details #book .page::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  background-image: var(--li);
}
#details #book .page.even::after {
  right: 0;
  --li: -webkit-linear-gradient(right, rgba(60, 60, 60, 0.4) 0%, rgba(50, 50, 50, 0.1) 54%, rgba(200, 200, 200, 0) 100%);
}
#details #book .page.odd::after {
  left: 0;
  --li: -webkit-linear-gradient(left, rgba(53, 53, 53, 0.5) 0%, rgba(53, 53, 53, 0.2) 40%, rgba(53, 53, 53, 0.1) 60%, rgba(200, 200, 200, 0) 100%);
}
#details #book .page.first::after,
#details #book .page.end::after {
  display: none;
}
#details .caidan {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100vw;
  line-height: var(--icon_box);
  padding: 5px 20px 10px;
  background-color: #444444;
  transition: bottom 0.3s, top 0.3s;
  display: flex;
  justify-content: center;
  /* icon盒子 */
  /* 显示 */
}
#details .caidan.top {
  top: -40px;
  padding: 0 20px;
  justify-content: flex-end;
}
#details .caidan.bottom {
  bottom: -60px;
}
#details .caidan > div,
#details .caidan > a {
  width: var(--icon_box);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
  mix-blend-mode: difference;
  /* 步进器 */
  /* 电话 */
  /* 返回主页 */
  /* 自动翻页 */
  /* 缩放 */
  /* 分享按钮 */
  /* 音乐播放按钮 */
}
#details .caidan > div.jd,
#details .caidan > a.jd {
  font-size: 14px;
}
#details .caidan > div.dh,
#details .caidan > a.dh {
  font-size: 20px;
}
#details .caidan > div.home,
#details .caidan > a.home {
  font-size: 20px;
}
#details .caidan > div.autoplay,
#details .caidan > a.autoplay {
  font-size: 22px;
}
#details .caidan > div.scale,
#details .caidan > a.scale {
  font-size: 22px;
}
#details .caidan > div.fx,
#details .caidan > a.fx {
  font-size: 16px;
}
#details .caidan > div.bgm,
#details .caidan > a.bgm {
  font-size: 16px;
}
#details .caidan.check.top {
  top: 0;
}
#details .caidan.check.bottom {
  bottom: 0;
}
#details .sl_main {
  width: 100vw;
  max-width: 400px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  z-index: 9999;
  background-color: #444444;
  transition: transform 0.3s;
  /* 显示 */
}
#details .sl_main .top {
  text-align: center;
  color: #fff;
  line-height: 40px;
  position: relative;
  background-color: #333;
}
#details .sl_main .top .iconfont {
  position: absolute;
  left: 20px;
  font-size: 20px;
  cursor: pointer;
}
#details .sl_main .list {
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  margin: 20px auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#details .sl_main .list .item {
  border: 3px solid transparent;
}
#details .sl_main .list .item img {
  width: 100%;
  display: block;
}
#details .sl_main .list .item.active {
  border-color: var(--themeColor);
}
#details .sl_main.check {
  transform: none;
}
#details .jd_main {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(68, 68, 68, 0.8);
  padding: 20px 0;
  transition: bottom 0.4s;
  /* 步进器主体 */
}
#details .jd_main .tt {
  display: flex;
  width: 85%;
  margin: 0 auto 15px;
  justify-content: space-between;
  align-items: center;
  /* 页数 */
}
#details .jd_main .tt .nums {
  width: 70%;
  background-color: #fff;
  text-align: center;
  line-height: 25px;
  border-radius: 15px;
}
#details .jd_main .tt .iconfont {
  color: #fff;
  font-size: 24px;
}
#details .jd_main #wrap {
  position: relative;
  width: 85%;
  height: 10px;
  margin: auto;
  background-color: #aaa;
  border-radius: 5px;
  /* 进度 */
  /* 圆点 */
}
#details .jd_main #wrap #proportion {
  width: 0;
  height: 10px;
  background-color: #fff;
  border-radius: 5px;
}
#details .jd_main #wrap #box {
  position: absolute;
  left: 0;
  top: -3px;
  width: 15px;
  height: 15px;
  background-color: var(--themeColor);
  border-radius: 50%;
  cursor: pointer;
}
#details .jd_main.ckeck {
  bottom: 55px;
}
#details .cascader {
  width: 100vw;
  max-width: 400px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  z-index: 9999;
  background-color: #444444;
  transition: transform 0.3s;
  /* 显示 */
}
#details .cascader .top {
  text-align: center;
  color: #fff;
  line-height: 40px;
  position: relative;
  background-color: #333;
}
#details .cascader .top .iconfont {
  position: absolute;
  left: 20px;
  font-size: 20px;
  cursor: pointer;
}
#details .cascader .main {
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  margin: 20px auto;
  overflow-y: auto;
  color: white;
}
#details .cascader .main .node + .node {
  margin-top: 10px;
}
#details .cascader .main .node ul {
  padding-left: 20px;
}
#details .cascader .main .node .node {
  font-size: 15px;
}
#details .cascader .main .node .node .node {
  font-size: 14px;
}
#details .cascader .main .node .label {
  display: flex;
  align-items: center;
}
#details .cascader .main .node .label .iconfont {
  margin-left: 10px;
  transform: rotateZ(90deg);
  transition: all 0.4s;
}
#details .cascader .main .node .label.check .iconfont {
  transform: none;
}
#details .cascader .main .node .item {
  font-size: 13px;
  margin-top: 5px;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
  white-space: nowrap;
}
#details .cascader .main .node .label,
#details .cascader .main .node .item {
  cursor: pointer;
  padding: 5px 10px;
}
#details .cascader .main .node .label.active,
#details .cascader .main .node .item.active,
#details .cascader .main .node .label:hover,
#details .cascader .main .node .item:hover {
  background-color: #333;
}
#details .cascader.check {
  transform: none;
}
/* 首页 */
#index {
  background-image: url(../image/bg3.jpg);
  background-size: 100% auto;
  /* 分页器 */
}
#index .box {
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  background-image: url(../image/bg4.jpg);
  background-size: 100% 20%;
  padding: 0 7vw 1vh;
  margin: 9vh 0 11vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1vh 0;
}
#index .box .book_warp {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
#index .box .book_warp .book {
  --w: 100rem;
  position: relative;
  top: 0;
  width: var(--w);
  height: calc(var(--w) * 1.4);
  background: #fff;
  transform: skewX(10deg) translateY(-18rem);
  box-shadow: -9rem 9rem 12rem #000000;
}
#index .box .book_warp .book .before {
  content: '';
  width: 7.5rem;
  height: 100%;
  background: url(http://www.savolherb.cn/image1.png);
  position: absolute;
  top: 0;
  left: 0;
  transform: skewY(-45deg) translate(-7.5rem, -3.75rem);
  box-shadow: inset -2.5rem 0 5rem rgba(0, 0, 0, 0.2);
}
#index .box .book_warp .book:after {
  content: '';
  width: 100%;
  height: 7.5rem;
  background: #ccc;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: skewX(-45deg) translate(3.75rem, 7.5rem);
}
#index .box .book_warp .book .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(http://www.savolherb.cn/image1.png);
  background-size: cover;
}
#index .pages {
  position: fixed;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin: 0 auto var(--plate_margin);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 24px;
  cursor: pointer;
}
#index .pages .iconfont {
  font-size: 14px;
  display: flex;
  align-items: center;
}
#index .pages .iconfont:last-child {
  flex-direction: row-reverse;
}
#index .pages .iconfont:hover {
  color: var(--themeColor);
}
#index .pages .iconfont::before {
  font-size: 14px;
}
#index .pages .nums {
  display: flex;
  margin: 0 10px;
}
#index .pages .nums a {
  width: 24px;
  text-align: center;
  border-radius: 50%;
}
#index .pages .nums a + a {
  margin-left: 10px;
}
#index .pages .nums a:hover,
#index .pages .nums a.active {
  background-color: var(--themeColor);
  color: #fff;
}
@media (min-width: 760px) and (max-aspect-ratio: 4/3) {
  #index .box {
    grid-template-columns: repeat(4, 1fr);
  }
  #index .box .book_warp .book {
    --w: 80rem;
  }
}
