/**app.wxss**/ page { font-family: PingFangSC-Regular; font-size: 32rpx; color: #333; background: #F5F5F5; } view { word-break: break-all; } image, text { display: inline-block; vertical-align: middle; } button, button::after { border: none; border-radius: 0; padding: 0; margin: 0; } .pb { padding-bottom: 98rpx; } .container { position: relative; } .wrapper { position: absolute; top: 0; left: 0; width: 100%; } .list { padding: 10rpx 40rpx; } .li { margin: 20rpx auto; background: #fff; border-radius: 18rpx; padding: 30rpx; } .li-label { font-size: 28rpx; color: #666; margin: 40rpx auto 20rpx auto; } /* 搜索框统一样式 ===== start ===== */ .search-container { width: 100%; display: flex; justify-content: space-between; align-items: center; } .search-wrapper { flex: 1; display: flex; justify-content: flex-start; align-items: center; padding: 16rpx 30rpx; margin-right: 30rpx; background:rgba(255,255,255,1); box-shadow:0px 4rpx 10rpx 0px rgba(11,71,94,0.2); border-radius:86rpx; } .search-icon { width: 30rpx; height: 30rpx; } .search-input { flex: 1; color: #666; font-size: 26rpx; margin: 0 20rpx; } .search-placeholder { color: #999; font-size: 26rpx; } .search-button { background:linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%); box-shadow:0px 4rpx 10rpx 0rpx rgba(11,71,94,0.2); padding: 20rpx 39rpx; font-size: 28rpx; color: #fff; cursor: pointer; border-radius:86rpx; } .search-button-active { background: linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%); } /* 搜索框统一样式 ===== end ===== */ /* 弹框统一样式 ===== start ===== */ .showModel{ width: 100%; height: 100%; position: fixed; top: 0; left: 0; background: #000; opacity: 0.5; overflow: hidden; z-index: 1000; color: #fff; } .model{ z-index: 1001; position: fixed; top: 30%; margin: 0 60rpx; background: #fff; border-radius:30rpx; text-align: center; } .screen-footer{ padding: 40rpx } /* 弹框统一样式 ===== end ===== */ /* 导航头部统一样式 ===== start ===== */ .nav { display: flex; justify-content: center; align-items: center; background: #fff; } .nav-item { flex: 1; text-align: center; position: relative; } .nav-item-row { display: inline-flex; justify-content: center; align-items: center; padding: 25rpx 0; transition: all .3s; border-bottom: solid 6rpx transparent; } .nav-item-row-active { border-bottom: solid 6rpx #00B7FF; } .nav-item::after { content: ""; position: absolute; right: 0; top: 24rpx; width: 2rpx; height: 46rpx; background: #e6e6e6; } .nav-item:nth-last-of-type(1):after { content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0; } .nav-item-text { font-size: 30rpx; color: #6C6C80; } .nav-item-text-active { color: #41414C; } .nav-item-button { font-size: 24rpx; color: #6C6C80; border-radius: 4rpx; padding: 0 14rpx; margin-left: 10rpx; border: 1rpx solid #6C6C80; } .nav-item-button-active { color: #41414C; border: 1rpx solid #41414C; } /* 导航头部统一样式 ===== end ===== */ /* 底部按钮统一样式 ===== start ===== */ .footer-box { position: fixed; bottom: 0; left: 0; width: 100%; padding: 20rpx 0; background: linear-gradient(90deg,rgba(81,206,255,1),rgba(0,183,255,1)); opacity: 0.9; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 99; } .footer-box-gray { background: #ccc; color: #999; } .footer-box-item { flex: 1; padding: 4rpx 0; text-align: center; font-size: 30rpx; color: #fff; border-right: solid 1rpx #fff; cursor: pointer; } .footer-box-item:nth-last-of-type(1) { border-right: none; } /* 底部按钮统一样式 ===== end ===== */ /* 图书介绍统一样式 ===== start ===== */ .book-container { width: 100%; } .book-wrapper { display: flex; justify-content: space-between; align-items: flex-start; } .book-content { flex: 1; } .book-images { width: 200rpx; height: 230rpx; box-shadow: 0rpx 0rpx 8rpx 0px rgba(204,204,204,1); border-radius: 6rpx; margin-right: 24rpx; overflow: hidden; position: relative; /* top:-24rpx; */ } .book-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .book-tip { position: absolute; top: 0; left: 0; background: rgba(255,84,43,1); border-radius: 6rpx 0rpx 6rpx 0rpx; opacity: 0.8; font-size: 28rpx; color: #fff; padding: 14rpx 15rpx; } .book-tip-two { position: absolute; bottom: 0; left: 0; width: 100%; background:rgba(255,128,168,1); border-radius: 6rpx 0rpx 6rpx 0rpx; opacity: 0.8; font-size: 28rpx; color: #fff; padding: 14rpx 15rpx; text-align: center; } .book-title, .book-text, .book-content { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } .book-text, .book-context { font-size: 28rpx; color: #666; /* margin-top: 16rpx; */ } .book-title { font-size: 32rpx; color: #333; } .book-text { -webkit-line-clamp: 1; } .book-footer { margin-top: 30rpx; display: flex; justify-content: space-between; align-items: center; } .book-footer-two { margin-top: 30rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; } .book-footer-right { justify-content: flex-end; } .book-footer-item { position: relative; font-size: 28rpx; cursor: pointer; margin-left: 30rpx; } .book-footer-item-two { position: relative; font-size: 28rpx; cursor: pointer; margin-top: 30rpx; } .book-footer-item:nth-of-type(1) { margin-left: 0; } .book-footer-item-two:nth-of-type(1) { margin-top: 0; } .book-icon { width: 30rpx; height: 30rpx; margin-right: 14rpx; } .book-icon-two { width: 28rpx; height: 34rpx; margin-right: 14rpx; } .book-text-large { font-size: 32rpx; } .book-text-blue { color: #00B7FF; } .book-text-gray { color: #999; } .book-text-red { color: #FF80A8; } .book-text-yellow { color: #FF542B; } .book-button-yellow { background: rgba(255,255,255,1); border-radius: 200rpx; border: 1rpx solid rgba(255,84,43,1); color: rgba(255,84,43,1); padding: 12rpx 24rpx; min-width: 98rpx; text-align: center; } .book-button-blue { background: rgba(255,255,255,1); border-radius: 200rpx; border: 1rpx solid rgba(0,183,255,1); color: rgba(0,183,255,1); padding: 12rpx 24rpx; min-width: 98rpx; text-align: center; } .book-button-fill-blue { background: linear-gradient(90deg,rgba(81,206,255,1) 0%,rgba(0,183,255,1) 100%); border-radius: 200rpx; border: 1rpx solid transparent; color: rgba(255,255,255,1); padding: 12rpx 24rpx; min-width: 98rpx; text-align: center; } .book-modal { position: absolute; top: 200%; right: -30rpx; width: 400rpx; padding: 30rpx; background: rgba(0,0,0,1); border-radius: 16rpx; opacity: 0.5; font-size: 30rpx; color: #fff; line-height: 42rpx; z-index: 9; } .book-modal::after { content: ""; position: absolute; top: -18rpx; right: 15%; border-left: solid 16rpx transparent; border-right: solid 16rpx transparent; border-bottom: solid 20rpx rgba(0,0,0,1); } @keyframes snake { 0%, 20%, 40%, 60%, 80% { transform: translate(0, 0); opacity: 0.5; } 5%, 15%, 25%, 35%, 45%, 55%, 65%, 75% { transform: translate(0, -10rpx); opacity: 0.4; } 10%, 30%, 50%, 70% { transform: translate(0, 10rpx); opacity: 0.6; } 90% { opacity: 0; z-index: 9; } 100% { z-index: -9; opacity: 0; } } @keyframes snake-slow { 0%, 100% { transform: translate(0%, 0); } 25%, 75% { transform: translate(0%, -10rpx); } 50% { transform: translate(0%, 10rpx); } } .book-nav{ display: flex; justify-content: space-between } .canvas { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; height: 617rpx; align-items: center; justify-content: space-between; box-sizing: border-box; } /* 图书介绍统一样式 ===== end ===== */ /* 列表2.0统一样式 ===== end ===== */ .ul{ display: flex; justify-content: flex-start; align-items: center; background:rgba(255,255,255,1); border-radius:18rpx; margin-bottom: 50rpx; position: relative; } .ui-image{ position: relative; top: -30rpx; } .li-img{ width: 178rpx; height: 210rpx; box-shadow:0px 0px 8rpx 0px rgba(204,204,204,1); border-radius:6rpx; } .li-right{ color: #333333; font-size: 34rpx; margin-left: 10rpx; padding: 20rpx; } .li-right-tips{ margin: 20rpx 0; } .li-right-tips-items{ height:40rpx; line-height: 40rpx; border-radius:8rpx; border:2rpx solid rgba(103,163,255,1); color: #67A3FF; font-size: 24rpx; padding:0 8rpx; display: inline-block; /* margin: 10rpx 0; */ } .li-right-grade{ width: 28rpx; height: 34rpx; margin-right: 10rpx; } .ul-num{ position: absolute; bottom: 42rpx; right: 30rpx; } .ul-num-img{ width: 50rpx; height: 50rpx; } .ul-num-text{ color: #666666; font-size: 30rpx; margin: 0 20rpx; } /* 加载统一样式 ===== end ===== */ .load{ color: #999999; font-size: 26rpx; text-align: center; margin: 30rpx; } .load-img{ width: 40rpx; height: 40rpx; animation: loading 3s linear infinite; } @keyframes loading { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .firstaddBooks{ height:60rpx; text-align:center; line-height:60rpx; width:160rpx; background: linear-gradient(#51CEFF, #00B7FF); color:#ffff; border-radius:36rpx; font-size:14px; padding:5rpx 10rpx; margin: 0 auto; margin-top:100rpx; } /* 书籍列表迭代样式 */ .list-items{ margin: 0; padding: 0; } .list-items-title{ color: #41414C; font-size: 36rpx; margin: 40rpx 0; font-weight: bold; } .list-item{ display: flex; justify-content: flex-start; margin-bottom: 50rpx; } .list-item-img-items{ width:210rpx; height:220rpx; border-radius:10rpx; } .list-item-content{ color: #41414C; font-size: 32rpx; margin-left: 40rpx; text-align: left; font-weight:500; } .list-item-content-tips{ color: #6C6C80; font-size: 26rpx; margin: 8rpx 0; } .list-item-content-title{ font-weight: bold; } .list-item-content-label{ font-size: 24rpx; font-weight:400; } .list-item-content-label-one{ color: #20A3E0; background:rgba(226,243,251,1); border-radius:20px; text-align: center; padding: 5rpx 15rpx; display: inline-block; margin-right: 15rpx; } .list-item-content-label-two{ color: #D59F10; background:#FEF6DF; border-radius:20px; text-align: center; padding: 5rpx 15rpx; display: inline-block } .list-item-content-fire{ width: 26rpx; height: 30rpx; margin:5rpx 0 0 13rpx; } .list-detail-head{ display: flex; justify-content: space-between; color: #6C6C80; font-size: 30rpx; margin-bottom: 10rpx } .list-dedail-item{ background:rgba(246,245,251,1); border-radius:20rpx; padding: 40rpx; margin-bottom: 18rpx; } .list-dedail-date{ border-top: 1rpx solid #E6E6EC; padding-top: 25rpx; color: #A1A1B3; font-size: 26rpx; }