@charset "utf-8";

:root {
    --dialog-z-index: 2100;
    --success-color: #4caf50;
    --error-color: #F44336;
    --animation-duration: 0.3s;
    --border-radius: 8px;
    --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body {
  max-width: 640px;
  margin: 0 auto;
}

@font-face {
  font-family: "iconfont";
  src: url('../font/iconfont.eot?t=1481180021');
  /* IE9*/
  src: url('../font/iconfont.eot?t=1481180021#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    /*url('../font/iconfont.woff?t=1481180021') format('woff'),*/
    /* chrome, firefox */
    url('../font/iconfont.ttf?t=1481180021') format('truetype'),
    /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
    url('../font/iconfont.svg?t=1481180021#iconfont') format('svg');
  /* iOS 4.1- */
}

.icon {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

.icon-fenlei:before {
  content: "\e6e3";
}

.icon-search:before {
  content: "\e674";
}

.icon-shouji:before {
  content: "\e647";
}

.icon-search1:before {
  content: "\e6ab";
}

.icon-new:before {
  content: "\e600";
}

.icon-mulu:before {
  content: "\e601";
}

.icon-quxiao:before {
  content: "\e633";
}

.icon-guanbi:before {
  content: "\e611";
}

.icon-dianzan:before {
  content: "\e66f";
}

.icon-duigou:before {
  content: "\e65c";
}

.icon-geren:before {
  content: "\e621";
}

.icon-gengduo1:before {
  content: "\e685";
}

.icon-gengduo:before {
  content: "\e635";
}

.icon-xiaoxi:before {
  content: "\e605";
}

.icon-pinglun:before {
  content: "\e624";
}

.icon-mima:before {
  content: "\e6d1";
}

.icon-houtui:before {
  content: "\e75e";
}

.icon-shuqian0:before {
  content: "\e750";
}

.icon-laba:before {
  content: "\e625";
}

.icon-yuedu:before {
  content: "\e806";
}

.icon-xiezuo:before {
  content: "\e614";
}

.icon-dashang:before {
  content: "\e60b";
}

.icon-yaoshi:before {
  content: "\e61a";
}

.icon-biaoqian:before {
  content: "\e617";
}

.icon-xiugai:before {
  content: "\e602";
}

.icon-mima:before {
  content: "\e616";
}

.icon-zuijinyuedu:before {
  content: "\e678";
}

.icon-xianshimima:before {
  content: "\e65a";
}

.icon-shujia:before {
  content: "\e622";
}

.icon-qianbao:before {
  content: "\e7b5";
}

.icon-luntan:before {
  content: "\e6eb";
}

.icon-paihang:before {
  content: "\e610";
}

.icon-huanyihuan:before {
  content: "\e6bd";
}

.icon-jinghua:before {
  content: "\e626";
}

.icon-shouye:before {
  content: "\e603";
}

.icon-zuozhe:before {
  content: "\e669";
}

.icon-hot:before {
  content: "\e628";
}

.icon-qiandao:before {
  content: "\e629";
}

.icon-shaixuan:before {
  content: "\e695";
}

.icon-fuli:before {
  content: "\e657";
}

.icon-shezhi:before {
  content: "\e627";
}

.icon-tougao:before {
  content: "\e618";
}

.icon-geren1:before {
  content: "\e620";
}

.icon-shuku:before {
  content: "\e60a";
}

.icon-free:before {
  content: "\e61b";
}

.icon-love:before {
  content: "\e604";
}

.icon-suo:before {
  content: "\e6d1";
}

.icon-shouru:before {
  content: "\e606";
}

.f-bg-blue {
  background: #ff6567;
}

.f-bg-white {
  background: #fff;
}

.f-fs-blue {
  color: #ff6567;
}

.f-fs-white {
  color: #fff;
}

.f-bg-c3 {
  background: #333;
}

.f-bg-c6 {
  background: #666;
}

.f-bg-c9 {
  background: #999;
}

.f-bg-ce {
  background: #eee;
}

.f-bg-cd {
  background: #ddd;
}

.f-fc-c3 {
  color: #333;
}

.f-fc-c6 {
  color: #666;
}

.f-fc-c9 {
  color: #999;
}

.f-fc-ce {
  color: #eee;
}

.f-fc-cd {
  color: #ddd;
}

.f-fc-cc {
  color: #ccc;
}

.f-text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.f-text-overflow-2 {
  overflow-y: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.f-text-overflow-3 {
  overflow-y: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.f-list-empty {
  text-align: center;
  padding: 2rem 0;
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.f-dn {
  display: none;
}

.f-pos-r {
  position: relative;
}

.f-pos-a {
  position: absolute;
}

.f-tac {
  text-align: center;
}

.f-tal {
  text-align: left;
}

.f-tar {
  text-align: right;
}

.f-link {
  color: #ff6567;
  text-decoration: underline;
}

/*bar tab*/
.u-bar-recharge {
  height: 3rem;
  width: 3rem;
  display: inline-block;
  border-radius: 2rem;
  background: #ff6567;
  color: #fff;
  position: absolute;
  top: -10px;
  left: 50%;
  margin-left: -30px;
  z-index: 100;
}

.u-bar-recharge .icon-qianbao {
  margin-top: 8px;
}

ul,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

em,
i {
  font-style: normal;
}

strong {
  font-weight: 400;
}

.f-fs0-5 {
  font-size: 0.5rem;
}

.f-fs0-6 {
  font-size: 0.6rem;
}

.f-fs0-7 {
  font-size: 0.7rem;
}

.f-fs0-8 {
  font-size: 0.8rem;
}

.f-fs0-9 {
  font-size: 0.9rem;
}

.f-fs1-0 {
  font-size: 1rem;
}

.f-fs1-1 {
  font-size: 1.1rem;
}

.f-fs1-2 {
  font-size: 1.2rem;
}

.f-fs1-3 {
  font-size: 1.3rem;
}

.f-fs1-4 {
  font-size: 1.4rem;
}

.f-fs1-5 {
  font-size: 1.5rem;
}

.f-fs1-6 {
  font-size: 1.6rem;
}

.f-fs1-7 {
  font-size: 1.7rem;
}

.f-fs1-8 {
  font-size: 1.8rem;
}

.f-fs2 {
  font-size: 2rem;
}

.f-fs3 {
  font-size: 3rem;
}

.f-fs5 {
  font-size: 4rem;
}

.f-fs5 {
  font-size: 5rem;
}

.bar-nav .icon-search1 {
  margin: 0 0.5rem;
}

.f-head-search {
  right: 0.2rem;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  z-index: 20;
}

.button-nav .f-back {
  font-size: 0.9rem;
}

.homepage-wrap {
  background: #fff;
  margin-top: 0.5rem;
}

.homepage-div {
  margin: 0 auto;
  width: 92%;
}

.loading-more {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  display: block;
  line-height: 2.4rem;
}

/*bar*/
.bar-tab {
  font-size: 0.55rem;
}

.bar-tab .bar-home {
  width: 1.1rem;
  height: 1.1rem;
  background-image: url(../image/bar-home-b.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: block;
  margin: 0.3rem auto 0.2rem;
}

.bar-tab .active .bar-home {
  background-image: url(../image/bar-home-r.png);
}

.bar-tab .bar-books {
  width: 1.1rem;
  height: 1.1rem;
  background-image: url(../image/bar-book-b.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: block;
  margin: 0.3rem auto 0.2rem;
}

.bar-tab .active .bar-books {
  background-image: url(../image/bar-book-r.png);
}

.bar-tab .bar-user {
  width: 1.1rem;
  height: 1.1rem;
  background-image: url(../image/bar-user-b.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: block;
  margin: 0.3rem auto 0.2rem;
}

.bar-tab .active .bar-user {
  background-image: url(../image/bar-user-r.png);
}

/*纵向排列列表*/

.list-col {}

.list-col li {
  display: flex;
  flex-wrap: nowrap;
  justify-content: left;
  padding-bottom: 1rem;
}

.list-col li a {
  position: relative;
  display: block;
  overflow: hidden;
}

.list-col li img {
  font-size: 0;
  float: left;
  height: 5.5rem;
  margin-right: .5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.list-col li div {
  overflow: hidden;
}

.list-col li div span {
  color: #333;
  font-size: 0.8rem;
  display: block;
  width: 100%;
}

.list-col li div em {
  font-size: 0.65rem;
  color: #666;
  width: 100%;
  display: block;
}

.list-col li div p {
  color: #ababab;
  font-size: 0.7rem;
  width: 100%;
  margin: 0.6rem 0;
  overflow-y: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/*/纵向排列列表*/
/*横向排列列表*/
.title-text {
  height: 2.5rem;
  line-height: 2.5rem;
  color: #333;
  font-weight: bold;
}

.list-row {
  display: flex;
  flex-wrap: wrap;
}

.list-row li {
  width: 25%;
  font-size: 0;
  margin-bottom: 0.8rem;
  padding: 0 1.5%;
}

.list-row li img {
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.list-row li span {
  font-size: 0.6rem;
  color: #333;
  line-height: 0.9rem;
  margin: 0.2rem 0;
}

.list-row li em {
  color: #666;
  font-size: 0.6rem;
  display: block;
}

/*/横向排列列表*/

/*查看更多*/
.comment-more {
  font-size: 0.7rem;
  height: 1.5rem;
  line-height: 1.5rem;
  width: 7rem;
  background: #f5f7fa;
  border-radius: 1rem;
  color: #77849c;
  text-align: center;
  margin: 1rem auto 0.5rem;
  display: block;
}

.comment-more-empty {
  text-align: center;
  font-size: 0.5rem;
  color: #999;
  line-height: 2rem;
}

/*/查看更多*/

/*换一换*/
.f-reload {
  right: 1rem;
  color: #ff6567;
}

.f-reload:before {
  margin-right: 0.3rem;
}

/*换一换*/

/*评论*/
.f-comment li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.f-comment li>img {
  width: 2rem;
  height: 2rem;
  border-radius: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.f-comment-name {
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  width: 75%;
}

.f-comment-name>span {
  display: block;
  width: 60%;

}

.f-comment li>em {
  position: absolute;
  right: 2rem;
  top: 0.4rem;
  font-size: 0.7rem;
  color: #999;
}

.f-comment li>em:before {
  font-size: 1.2rem;
  vertical-align: middle;
}

.f-comment li>i {
  position: absolute;
  right: 1%;
  top: 0.5rem;
  font-size: 0.7rem;
  color: #999;
  padding: 0.3rem;
}

.f-comment-name>em {
  display: block;
  color: #999;
}

.f-comment-content {
  background: #fbfbfb;
  color: #666;
  border-radius: 0.4rem;
  padding: 0.3rem;
  text-align: justify;
  font-size: 0.7rem;
}

.f-comment-content span {
  display: inline-block;
  color: #29bbff;
}

.f-comment-current {
  padding: 0.2rem;
  word-wrap: break-word;
}

.f-comment-input {
  height: 0;
  overflow: hidden;
  margin-top: 0.5rem;
}

.f-comment .f-comment-input.z-current {
  height: 1.5rem;
}

.f-comment-input input {
  margin-left: 0.2rem;
  width: 80%;
  height: 1.5rem;
  line-height: 1.5rem;
  display: inline-block;
  vertical-align: top;
  outline: none;
  border: 1px solid #eee;
  padding-left: 0.2rem;
}

.f-comment-input a {
  width: 18%;
  background: #eee;
  display: inline-block;
  text-align: center;
  line-height: 1.5rem;
  height: 1.5rem;
  border: 1px solid #eee;
  vertical-align: top;
  margin-left: -1px;
  color: #999;
}

.f-comment li>em.z-current:before {
  color: #ff7e9c;
}

/*评论*/
/*菜你喜欢*/
.f-like {
  padding: 0.8rem 2%;
  background: #fff;
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

.f-like h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/*猜你喜欢*/

/*搜索栏换位置*/
.searchbar_div {
  width: 100%;
  margin: 0 auto;
}

.u-bookdetail-chapter .bar-nav {
  background: #f7f7f8;
}

.bar-nav {
  background: #fff;
}

.bar .searchbar {
  background: #ff6567;
}

.button.button-fill {
  top: 0;
}

.searchbar_div .icon-quxiao {
  font-size: 0.8rem;
}

.search-input .u-cancel-icon {
  position: absolute;
  right: 0.5rem;
  top: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  background: url(../image/cancel-icon.png) no-repeat center;
  background-size: 100%;
}

/*修改，登录，注册，忘记密码等输入框*/
.confirm-input-wrap {
  margin: 1rem 0 0;
  position: relative;
}

.confirm-input-wrap span {
  display: block;
  font-size: 0.7rem;
  color: #333;
  margin-left: 8%;
}

.confirm-input-wrap span i {}

.confirm-input-wrap input {
  font-size: 0.7rem;
  color: #333;
  border: 0;
  border-bottom: 1px solid #e7e7e7;
  padding: 0.8rem 10% 0.8rem 8%;
  width: 100%;
  display: block;
}

.confirm-input-wrap em {
  width: 4.5rem;
  font-size: 0.65rem;
  color: #333;
  text-align: center;
  border-radius: 1rem;
  line-height: 1.3rem;
  display: block;
  position: absolute;
  border: 1px solid #d2d2d2;
  right: 0;
  top: 1.2rem;
}

.phone-icon {
  width: 0.6rem;
  height: 1rem;
  background-image: url(../image/phone-icon.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.message-icon {
  width: 0.85rem;
  height: 0.67rem;
  background-image: url(../image/message-icon.png);
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.confirm-input-btn {
  width: 60%;
  height: 2rem;
  border: 1px solid #d2d2d2;
  color: #333;
  display: block;
  text-align: center;
  line-height: 2rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  margin: 2rem auto 0;
}

.title-h2 {
  font-size: 1rem;
  margin-left: 8%;
  color: #333;
  font-weight: bold;
  margin-top: 4rem;
}

.title-h5 {
  font-size: 0.7rem;
  margin-left: 8%;
  color: #333;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

/*切换栏*/
.tab-bar {
  background: #fff;
}

.tab-bar {
  display: flex;
  flex-wrap: nowrap;
  background: #fff;
  justify-content: space-around;
}

.tab-bar span {
  display: block;
  line-height: 2.5rem;
  height: 2.5rem;
  text-align: center;
  font-size: 0.7rem;
}

.tab-bar span.z-active {
  color: #e8554d;
  line-height: 2.5rem;
  height: 2.5rem;
}

.tab-bar span.z-active em {
  width: 50%;
  margin: -0.2rem auto 0;
  height: 0.2rem;
  border-radius: 0.1rem;
  background-color: #e8554d;
  display: block;
}


/* 遮罩层基础样式 */
.dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--dialog-z-index);
  opacity: 0;
  /* transition: opacity var(--animation-duration) ease-out; */
  transition: opacity var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1), transform translateZ(0);
}

/* 模态框容器 */
.dialog-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  /* transform: translate(-50%, -50%); */
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-base);
  z-index: calc(var(--dialog-z-index) + 1);
  opacity: 0;
  animation: modalIn var(--animation-duration) ease-out forwards;
  transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate3d(-50%, -60%, 0) scale(0.98);
}

/* 关闭按钮 */
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  /* transition: transform 0.2s ease; */
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* 内容区域 */
.dialog-modal div[style*="text-align: center"] {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 500;
}

.dialog-modal p[style*="text-align: center"] {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 25px 0;
}

/* 按钮容器 */
.dialog-modal div[style*="text-align: center; margin-top: 20px;"] {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 操作按钮 */
.dialog-modal button {
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  min-width: 80px;

  &:first-child {
    background: #ff5b43;
    color: white;

    &:hover {
      background: #ff4830;
    }
  }

  &:last-child {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;

    &:hover {
      border-color: #ccc;
      background: #f8f8f8;
    }
  }
}

/* Toast 样式 */
.dialog-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
  pointer-events: none;
  /* 禁用交互 */
  animation: toastFloat 3s ease-in-out;
}

/* 图标动画优化 */
.dialog-toast-icon {
  animation: iconPulse 0.6s ease-in-out both;
}

@keyframes toastFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -55%) scale(1.02);
  }
}

@keyframes iconPulse {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  70% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

/* 动画定义 */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}



/* 移动端优化 */
@media (hover: none) and (pointer: coarse) {
  .dialog-modal {
    width: 90vw;
    /* 更好的移动端适配 */
    max-width: 400px;
    padding: 18px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    font-size: 20px;
  }

  /* 禁用移动端长按菜单 */
  .dialog-modal * {
    -webkit-touch-callout: none;
    user-select: none;
  }
}

/* 显示时的优化状态 */
.dialog-modal.active {
  opacity: 1;
  transform:
    translate3d(-50%, -50%, 0) scale(1);
}

.dialog-toast.active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}