.learn-wrapper { width: 1000px; .learn-top { width: 100%; height: auto; background: #ffffff; border-radius: 10px; .tabs { position: relative; width: 100%; height: 50px; display: flex; align-items: center; border-bottom: 1px solid #f1f1f1; .add-btn { position: absolute; right: 20px; width: 96px; height: 32px; padding: 0; border: none; background: #308eff; border-radius: 5px; font-size: 11px; font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; text-align: center; color: #ffffff; } .tabs-item { position: relative; width: 108px; height: 50px; line-height: 50px; font-size: 16px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; text-align: center; color: #666666; &.active { font-size: 15px; font-family: PingFangSC, PingFangSC-Semibold; font-weight: 600; color: #222222; &:after { position: absolute; content: " "; width: 15px; height: 3px; bottom: 1px; left: calc(50% - 7.5px); background: #308eff; border-radius: 2px; } } } } } .learn-category-wrapper { width: 100%; height: auto; padding: 15px 20px; .category-title { width: 100%; line-height: 21px; padding-bottom: 7px; font-size: 15px; font-family: PingFangSC, PingFangSC-Semibold; font-weight: 600; color: #222222; } .category-one-wrapper { position: relative; height: 40px; width: 100%; padding-right: 60px; overflow: hidden; display: flex; flex-wrap: wrap; transition: all .3s; .category-more { position: absolute; height: 30px; line-height: 30px; margin-top: 10px; padding: 0 15px; right: 0; top: 0; font-size: 13px; color: #999999; cursor: pointer; } &.expand { height: auto !important; } .category-one-item { height: 30px; line-height: 30px; padding: 0 25px; margin-top: 10px; border-radius: 4px; font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; text-align: center; color: #555555; cursor: pointer; &.active { line-height: 28px; font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; color: #308eff; border: 1px solid #308eff; } &:hover { color: #308eff; } } } .category-two-wrapper { position: relative; margin-top: 16px; .category-two-content { position: relative; width: 830px; height: auto; padding: 5px 20px 10px; // margin-left: 80px; background: #f7f7f7; border-radius: 8px; display: flex; flex-wrap: wrap; .category-two-item { height: 30px; line-height: 30px; margin-top: 5px; padding: 0 15px; color: #555555; border-radius: 4px; font-size: 14px; cursor: pointer; &.active { color: #308eff; background: #dcefff; } &:hover { color: #308eff; } } } } } .learn-content { width: 100%; margin-top: 10px; padding: 12px 20px 36px; background: #ffffff; border-radius: 10px; .learn-list-wrapper { position: relative; width: 100%; display: flex; flex-wrap: wrap; .learn-item { width: 310px; height: 310px; margin-right: 15px; margin-bottom: 15px; background: #ffffff; border-radius: 10px; overflow: hidden; box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06); display: flex; flex-direction: column; // cursor: pointer; &:nth-of-type(3n) { margin-right: 0; } .cover-wrapper { position: relative; width: 100%; height: 175px; overflow: hidden; .cover { width: 100%; height: 100%; object-fit: scale-down; } .play-icon { position: absolute; width: 46px; height: 46px; top: calc(50% - 23px); left: calc(50% - 23px); &:hover { width: 50px; height: 50px; top: calc(50% - 25px); left: calc(50% - 25px); } } } .owner-wrapper { width: 100%; height: 22px; margin-top: 10px; padding: 0 10px; display: flex; align-items: center; .avatar { flex-shrink: 0; width: 22px; height: 22px; overflow: hidden; border-radius: 50%; } .nickname { flex: 1; line-height: 22px; margin-left: 6px; font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #666666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .title { width: 100%; height: 42px; margin-top: 12px; padding: 0 12px; line-height: 21px; font-size: 15px; font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; color: #333333; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; word-break: break-all; &:hover { color: #308eff; } } .price-wrapper { width: 100%; height: 20px; margin-top: 12px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; .price-text { line-height: 20px; font-size: 19px; font-family: DINAlternate, DINAlternate-Bold; font-weight: 700; color: #ff6600; } .buy-num { font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #999999; } } } } .pagination-wrapper { width: 100%; height: 30px; margin-top: 25px; display: flex; align-items: center; justify-content: center; } } } .mobileMain { width: 100%; margin: 0; } .learn-wrapper-mobile { position: relative; width: 100%; // min-height: 100vh; display: flex; flex-direction: column; .learn-category { position: fixed; width: 100%; height: 87px; z-index: 11; .learn-category-one { position: relative; width: 100%; height: 45px; background: #ffffff; overflow: hidden; .category-scroller { width: calc(100% - 64px); overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; display: flex; &::-webkit-scrollbar { display: none; } } .learn-category-one-item { position: relative; flex-shrink: 0; width: 76px; height: 45px; line-height: 45px; font-size: 16px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #666666; font-size: 15px; text-align: center; &.active { font-family: PingFangSC, PingFangSC-Semibold; font-weight: 600; color: #222222; &:after { position: absolute; content: " "; bottom: 0; left: calc(50% - 7.5px); width: 15px; height: 3px; background: #308eff; border-radius: 2px; } } } .filter-wrapper { position: absolute; top: 0; right: 0; width: 64px; height: 45px; display: flex; align-items: center; justify-content: center; z-index: 12; background: #ffffff; img { width: 24px; height: 24px; } } .filter-bg { position: absolute; width: 11px; height: 29px; right: 59px; top: 8px; opacity: 0.1; background: #000000; border-radius: 6px; filter: blur(4px); z-index: 11; } } .learn-category-two { position: relative; width: 100%; height: 42px; background: #ffffff; .learn-category-two-wrapper { position: relative; width: 100%; height: 42px; padding: 0 20px; overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; display: flex; &::-webkit-scrollbar { display: none; } .learn-category-two-item { position: relative; flex-shrink: 0; height: 42px; line-height: 42px; margin-right: 20px; font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #666666; &:last-child { margin-right: 0; } &.active { color: #308eff; } } } } } .learn-list { width: 100%; height: 100vh; padding-top: 87px; padding-bottom: 34px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; align-items: center; .learn-list-wrapper { width: 100%; height: auto; overflow: visible; .learn-item { width: calc(100% - 20px); height: auto; margin: 10px auto 0; padding-bottom: 16px; background: #ffffff; overflow: hidden; border-radius: 10px; box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06); display: flex; flex-direction: column; .cover { width: 100%; height: calc((100vw - 20px) * 9 / 16); overflow: hidden; object-fit: cover; } .owner-wrapper { width: 100%; height: 22px; margin-top: 10px; padding: 0 10px; display: flex; align-items: center; .avatar { width: 22px; height: 22px; overflow: hidden; border-radius: 50%; } .nickname { line-height: 22px; margin-left: 6px; font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #666666; } } .title { width: 100%; height: 20px; margin-top: 12px; padding: 0 12px; line-height: 20px; font-size: 15px; font-family: PingFangSC, PingFangSC-Medium; font-weight: 500; color: #333333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .price-wrapper { width: 100%; height: 20px; margin-top: 16px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; .price-text { line-height: 20px; font-size: 19px; font-family: DINAlternate, DINAlternate-Bold; font-weight: 700; color: #ff6600; } .right-info { font-size: 14px; font-family: PingFangSC, PingFangSC-Regular; font-weight: 400; color: #999999; } } } } .learn-list-tips { margin-top: 16px; width: 100%; text-align: center; } } .learn-list__showWxHeader { height: calc(100vh - 64px); } }