UNPKG

unika-components

Version:

Unika Vue3 components library

2,544 lines (2,226 loc) 183 kB
/* 添加百位数样式 */ .c-hundred { display: flex; align-items: center; justify-content: center; width: 30px; /* 根据需要调整 */ margin-right: 5px; } .global-v ::v-deep .global-v-show iframe { position: absolute; left: 0; top: 50%; transform: translateY(-60%); min-height: 45%; max-height: 100%; width: 100%; } .unika-watermark { position: fixed; inset: 0; z-index: 9999; pointer-events: none; user-select: none; overflow: hidden; } .unika-watermark-pattern { width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Cg transform='rotate(-24 110 70)'%3E%3Ctext x='24' y='78' font-size='20' font-family='Arial%2C sans-serif' font-weight='700' fill='%23ffffff'%3Eunika%3C/text%3E%3C/g%3E%3C/svg%3E"); background-repeat: repeat; background-size: 220px 140px; opacity: 0.5; } .ele-text { position: relative; } .ele-text .ani-wrap { width: 100%; height: 100%; } .text-common { padding: 5px; text-orientation: upright; white-space: pre-wrap; } /* 文本动画类 */ .text-fadeIn { animation: fadeIn 1s ease-in-out; } .text-slideIn { animation: slideIn 1s ease-in-out; } .text-bounceIn { animation: bounceIn 1s ease-in-out; } /* 基础动画关键帧 */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); opacity: 0.8; } 70% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1); opacity: 1; } }.ele-shape { position: absolute; overflow: hidden; } .ani-wrap { width: 100%; height: 100%; box-sizing: border-box; } .e-shape { width: 100%; height: 100%; } .svg-container :deep(svg) { width: 100%; height: 100%; display: block; } .svg-container { width: 100%; height: 100%; display: block; } .svg-loading, .svg-error { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: rgba(0,0,0,0.05); } .ele-shape .svg-container svg { width: 100%; height: 100%; overflow: visible; } @keyframes jumpheart { to { -webkit-transform: scale(1.2); transform: scale(1.2) } } .ele-calendar { position: relative; width: 325px !important; min-height: 325px !important; height: auto !important; } .ele-calendar .drag-point { cursor: default !important; } .ele-calendar .ani-wrap { position: relative; width: 100%; min-height: 325px !important; height: auto !important; padding: 22px 0; } .ele-calendar .ani-wrap .can-wrap .can-top { display: flex; justify-content: space-between; align-items: flex-end; line-height: 1; padding: 0 47px 20px; } .ele-calendar .ani-wrap .can-wrap .can-top .can-left { font-size: 25px; padding-bottom: 4px; } .ele-calendar .ani-wrap .can-wrap .can-top .can-right { font-size: 25px; } .ele-calendar .ani-wrap .can-wrap .can-top .can-right span { position: relative; top: 2px; font-size: 57px; } .ele-calendar .ani-wrap .can-wrap .can-main { padding: 0 23px; } .ele-calendar .ani-wrap .can-wrap .can-main .can-week { display: flex; justify-content: flex-start; height: 25px; line-height: 25px; padding: 0 10px; border-radius: 13px; } .ele-calendar .ani-wrap .can-wrap .can-main .can-week span { width: 14.2%; text-align: center; color: #fff; font-size: 12px; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul { font-size: 0; padding: 5px 10px 0; text-align: left; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li { position: relative; display: inline-block; height: 25px; text-align: center; margin-top: 8px; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li.active .iconfont { display: block; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li.active span { color: #fff !important; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li.heart-ani .iconfont { animation: jumpheart 0.8s ease infinite alternate; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li .iconfont { display: none; font-size: 26px; } .ele-calendar .ani-wrap .can-wrap .can-main .can-date ul li span { position: absolute; left: 50%; top: 50%; z-index: 1; color: #666; font-size: 13px; transform: translate(-50%, -52%); } .ele-calendar .bottom-center, .ele-calendar .left-center, .ele-calendar .right-center, .ele-calendar .top-center { display: none !important; } .ele-calendar .ani-wrap .can-wrap2 { padding: 21px 23px 0 } .ele-calendar .ani-wrap .can-wrap2 .can-top { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; line-height: 1; padding: 0 16px 22px; font-size: 36px } .ele-calendar .ani-wrap .can-wrap2 .can-top span { font-size: 16px } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-week { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; height: 25px; line-height: 25px; padding: 0 10px; border-radius: 13px } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-week span { width: 14.2%; text-align: center; color: #fff; font-size: 12px; font-weight: 600 } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date { position: relative } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date .can-year { position: absolute; white-space: nowrap; left: 50%; top: 15%; -webkit-transform: translateX(-50%); transform: translateX(-50%); font-size: 76px; opacity: .1; font-weight: 600 } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul { font-size: 0; padding: 5px 10px 0; text-align: left } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li { position: relative; display: inline-block; width: 14.2%; height: 25px; text-align: center; margin-top: 8px } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li.active .iconfont { display: block; position: absolute; left: 17%; top: 0; font-size: 25px } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li.active span { color: #fff!important } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li.heart-ani .iconfont { -webkit-animation: jumpheart .8s ease infinite alternate; animation: jumpheart .8s ease infinite alternate } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li .iconfont { display: none; font-size: 26px } .ele-calendar .ani-wrap .can-wrap2 .can-main .can-date ul li span { position: absolute; left: 50%; top: 50%; z-index: 1; color: #666; font-size: 13px; -webkit-transform: translate(-50%,-52%); transform: translate(-50%,-52%) } .ele-calendar .ani-wrap .can-wrap3 .can-top { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; line-height: 1; padding: 18px 33px 10px; font-size: 36px; } .ele-calendar .ani-wrap .can-wrap3 .can-top span { font-size: 16px } .ele-calendar .ani-wrap .can-wrap3 .can-top .can-year { font-size: 20px } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-week { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; height: 40px; line-height: 40px; padding: 0 34px; border-bottom: 1px solid } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-week span { width: 14.2%; text-align: center; color: #fff; font-size: 12px; font-weight: 600 } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date { position: relative } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul { font-size: 0; padding: 5px 33px 0; text-align: left } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li { position: relative; display: inline-block; width: 14.2%; height: 25px; text-align: center; margin-top: 8px; } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li.active { color: #eee } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li.active .iconfont { display: block; position: absolute; left: 12%; top: 2px; } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li.active span { font-size: 12px } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li.heart-ani .iconfont { -webkit-animation: jumpheart .8s ease infinite alternate; animation: jumpheart .8s ease infinite alternate } @keyframes jumpheart { to { -webkit-transform: scale(1.2); transform: scale(1.2) } } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li .iconfont { display: none; font-size: 26px } .ele-calendar .ani-wrap .can-wrap3 .can-main .can-date ul li span { position: absolute; left: 50%; top: 50%; z-index: 1; color: #666; font-size: 13px; -webkit-transform: translate(-50%,-52%); transform: translate(-50%,-52%) } .ele-calendar .bottom-center,.ele-calendar .left-center,.ele-calendar .right-center,.ele-calendar .top-center { display: none!important } .icon-tuoyuanxing:before { content: "\E6A7"; } .icon-zan1:before { content: "\E66D"; } .icon-xingzhuangjiehe:before { content: "\E6A6"; }.ele-img { position: absolute; overflow: hidden; } .ele-img .ani-wrap { width: 100%; height: 100%; } .ele-img .ele-image { position: relative; display: block; } .ele-img .rotate-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; } .ele-img .ele-img-bg, .ele-img .rotate-wrap .img-wrap { width: 100%; height: 100%; overflow: hidden; } .ele-img .ele-bg-wrap { width: 100%; height: 100%; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; background-clip: border-box; } /* 动画关键帧 */ @keyframes zoomIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }#audio { position: absolute; right: 10px; top: 10px; z-index: 103; width: 30px; height: 30px; display: flex; align-items: center; } #audio .mrotate { animation: mrotate 5s linear infinite; } @keyframes mrotate { to { transform: rotate(1turn); } } #audio .audio { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; background: #666; border-radius: 50%; overflow: hidden; cursor: pointer; transition: all 0.3s ease; } #audio .audio.a-border { border: 1px solid #fff; } #audio .audio .music-icon { display: block; width: 60%; height: 60%; object-fit: contain; } #audio .audio .iconfont { font-size: 2opx; line-height: 1; } #audio .icon-cancel { position: absolute; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; padding: 15px 0; } #audio .icon-cancel .icon-h { transform: rotate(45deg); width: 100%; height: 2px; background: #fff; } #audio .icon-cancel .icon-h:before, #audio .icon-cancel .icon-h:after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; } .element-video { position: absolute; overflow: hidden; background-color: transparent; } .element-video .ani-wrap, .element-video img { display: block; width: 100%; height: 100%; } .video-container { width: 100%; height: 100%; } .video-container iframe { width: 100%; height: 100%; border: none; } .video-cover { position: relative; width: 100%; height: 100%; background-size: cover; background-position: center; cursor: pointer; } .video-cover .play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; opacity: 0.8; transition: opacity 0.2s; } .video-cover:hover .play-btn { opacity: 1; }.element-ditu .ani-wrap { width: 100%; height: 100%; overflow: hidden } .element-ditu .map { width: 100%; height: 100% } .element-ditu .map .el-button { width: 100%; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 0; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; background: inherit; color: inherit; border: none } .element-ditu .center-map { width: 100%; height: 100%; background: #fff } .element-ditu .mask-map { position: absolute; width: 100%; height: 100%; top: 0 } .map-iframe { width: 100%; height: 100%; }#page-list .tip-cover { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; z-index: 999; background-color: rgba(0,0,0,.7) } #page-list .tip-cover .tip { width: 80%; max-width: 250px; padding: 10px; border-radius: 5px; background-color: #fff } #page-list .tip-cover .tip-btn { display: block; margin: 25px auto; width: 120px; height: 30px; color: #fff; border-radius: 4px; text-align: center; font-size: 14px; line-height: 30px; background: #ed5566 } #page-list .tip-cover .tip-content { font-size: 14px; padding-top: 30px; } .tip-cover { position: fixed; left: 0; top: 0; width: 100%; height: 100%; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; z-index: 999; background-color: rgba(0,0,0,.7) } .tip-cover .tip { width: 80%; max-width: 250px; padding: 5px; border-radius: 3px; background-color: #fff } .tip-cover .tip-btn { display: block; margin: 13px auto; width: 64px; height: 20px; color: #fff; border-radius: 4px; text-align: center; font-size: 14px; line-height: 20px; background: #ed5566; } .ele-lottie .ele-lotwrap { overflow: hidden; }.call { position: absolute; cursor: pointer; user-select: none; } .call .ani-wrap { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; overflow: hidden; transition: opacity 0.2s; } .call .ani-wrap:hover { opacity: 0.9; } .call-content { display: flex; align-items: center; justify-content: center; } .btn-text { margin-left: 10px; } .hb-tel:before { content: "\E642"; }/* Iconfont definition */ .icon-danmuliebiao1:before { content: "\E68A"; } .icon-cuowu2:before { content: "\E65E"; } i { font-style: normal; } .v-modal { position: fixed; left: 0; top: 0; width: 100%; height: 100%; opacity: .5; background: #000; } /* 底部工具栏样式 */ #toolbarNew { position: fixed; left: 0; bottom: 0; width: 100%; padding: 12px 0; background: url('https://h5cdn.unika.cc/static/img/uniComponents/inputBg.png') 0 0 repeat-x; z-index: 100; } .toolbar { display: flex; align-items: center; padding: 0 10px; } .bar-left { position: relative; flex: 1; } .bar-mess { width: 100%; height: 36px; line-height: 36px; font-size: 14px; color: #ccc; padding: 0 8px; border-radius: 18px; border: none; -webkit-appearance: none; background-color: rgba(0, 0, 0, 0.28); } .bar-mess::placeholder { color: rgba(255, 255, 255, 0.7); } .bar-left .iconfont { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #f2f2f2; font-size: 16px; cursor: pointer; z-index: 2; padding: 5px; } /* 关闭弹幕按钮样式 */ .toolbar-close { position: absolute; left: 10px; transform: translateY(-50%); display: flex; align-items: center; cursor: pointer; z-index: 2; } .toolbar-close img { display: block; width: 36px; height: 36px; cursor: pointer; } /* 弹幕容器样式 */ .bullet-container { position: fixed; left: 10px; right: 10px; height: 120px; overflow: hidden; z-index: 99; pointer-events: none; } .bullet-item { position: absolute; left: 0; bottom: 0; padding: 5px 10px; border-radius: 15px; font-size: 14px; white-space: nowrap; animation: bulletMove linear; animation-fill-mode: forwards; will-change: transform; display: inline-block; max-width: 90%; } @keyframes bulletMove { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(calc(-1 * 150px)); opacity: 0; } } /* 弹幕输入弹窗样式 */ .popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: flex-end; z-index: 200; } #index .mint-popup { background-color: transparent; } .mint-popup { position: fixed; background: #fff; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: .2s ease-out; } .bar-messwin { width: 309px; height: 341px; background: url('https://h5cdn.unika.cc/static/img/uniComponents/mess-bg.png') no-repeat 50%; background-size: 100% 100%; position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; } .bar-messwin .mess-logo { width: 171px; height: 110px; margin-top: -64px; margin-left: 11px; } .bar-messwin .mess-title { margin-top: 12px; font-weight: 600; font-size: 21px; color: #333; } .bar-messwin .mess-input { width: 267px; height: 43px; background: #fff; border-radius: 9px; border: 1px solid rgba(237,85,102,0.4); margin-top: 12px; display: flex; align-items: center; justify-content: center; padding: 0 13px; } .bar-messwin .mess-input input { width: 100%; font-size: 17px; font-family: PingFang SC; font-weight: 400; color: #333; border: none; outline: none; background: transparent; } .bar-messwin .mess-input input::-webkit-input-placeholder { color: #999; } .bar-messwin .mess-input input::-ms-input-placeholder { color: #999; } .bar-messwin .mess-input input::placeholder { color: #999; } .bar-messwin .mess-textarea { width: 267px; height: 85px; background: #fff; border-radius: 9px; border: 1px solid rgba(237,85,102,0.4); display: flex; padding: 9px 13px; justify-content: space-between; margin-top: 12px; position: relative; } .bar-messwin .mess-textarea textarea { width: 203px; height: 68px; font-size: 17px; resize: none; outline: none; border: none; background: transparent; color: #333; font-family: PingFang SC; } .bar-messwin .mess-textarea textarea::-webkit-input-placeholder { color: #999; } .bar-messwin .mess-textarea textarea::-ms-input-placeholder { color: #999; } .bar-messwin .mess-textarea textarea::placeholder { color: #999; } .bar-messwin .mess-textarea img { width: 26px; height: 26px; cursor: pointer; } .bar-messwin .mess-textarea .wish-dropdown { position: absolute; top: 43px; right: 0; width: 267px; background: #fff; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 10; max-height: 213px; overflow-y: auto; border: 1px solid rgba(237,85,102,0.2); padding: 0 13px; } .bar-messwin .mess-textarea .wish-dropdown::-webkit-scrollbar { width: 3px; background-color: transparent; display: block; } .bar-messwin .mess-textarea .wish-dropdown::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 9px; min-height: 32px; } .bar-messwin .mess-textarea .wish-dropdown::-webkit-scrollbar-track { background-color: transparent; border-radius: 3px; margin: 4px 0; } .bar-messwin .mess-textarea .wish-dropdown .wish-item { padding: 11px 0; display: flex; align-items: flex-start; cursor: pointer; transition: background-color 0.2s; border-bottom: 1px solid rgba(0,0,0,0.05); } .bar-messwin .mess-textarea .wish-dropdown .wish-item:last-child { border-bottom: none; } .bar-messwin .mess-textarea .wish-dropdown .wish-item .wish-dot { color: #ff4874; margin-right: 5px; font-size: 11px; line-height: 21px; } .bar-messwin .mess-textarea .wish-dropdown .wish-item .wish-text { font-size: 15px; color: #333; line-height: 21px; text-align: left; } .bar-messwin .bar-m-sub { width: 267px; height: 43px; background: linear-gradient(270deg,#ff4874,#ff9061); border-radius: 68px; font-size: 17px; font-family: PingFang SC; font-weight: 400; color: #fff; margin-top: 26px; border: none; outline: none; cursor: pointer; display: flex; align-items: center; justify-content: center; } .bar-messwin .icon-cuowu2, .give-gift .icon-cuowu2 { position: absolute; bottom: -60px; right: 50%; transform: translateX(50%); font-size: 28px; color: #fff; cursor: pointer; } /* 提示弹窗样式 */ .mint-msgbox-wrapper { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 2005; display: flex; justify-content: center; align-items: center; } .mint-msgbox { position: relative; background-color: #fff; width: 85%; border-radius: 3px; font-size: 17px; overflow: hidden; } .mint-msgbox-header { padding: 16px 0 0; } .mint-msgbox-content { padding: 11px 21px 16px; border-bottom: 1px solid #ddd; min-height: 38px; position: relative; } .mint-msgbox-title { text-align: center; padding-left: 0; margin-bottom: 0; font-size: 17px; font-weight: 700; color: #333; } .mint-msgbox-message { color: #999; margin: 0; text-align: center; line-height: 38px; } .mint-msgbox-btns { display: flex; height: 43px; line-height: 43px; } .mint-msgbox-btn { line-height: 37px; display: block; background-color: #fff; flex: 1; margin: 0; border: 0; } .mint-msgbox-confirm { color: #26a2ff; width: 100%; } /* 右侧按钮区域样式 */ #toolbarNew .toolbar .bar-right { margin-left: 7px; font-size: 0; display: flex; align-items: center; } #toolbarNew .toolbar .bar-right.move-left { right: 64px; } #toolbarNew .toolbar .bar-right .bar-r-com, #toolbarNew .toolbar .bar-right>img { display: inline-block; vertical-align: middle; } #toolbarNew .toolbar .bar-right .bar-r-com { margin-left: 8px; cursor: pointer; } #toolbarNew .toolbar .bar-right .bar-r-com.bar-r-gift { width: 36px; height: 36px; transform-origin: center bottom; animation: giftJump 3s ease infinite; } @keyframes giftJump { 0%, 24%, 48%, to { transform: translateZ(0); } 12% { transform: translate3d(0, -10px, 0); } 36% { transform: translate3d(0, -10px, 0); } } #toolbarNew .toolbar .bar-right .bar-r-com:first-child { margin-left: 0; } #toolbarNew .toolbar .bar-right>img { position: relative; z-index: 1; width: 26px; height: 26px; } #toolbarNew .toolbar .bar-right .bar-heart { position: relative; width: 36px; height: 36px; text-align: center; } #toolbarNew .toolbar .bar-right .bar-heart .bar-praise { position: absolute; max-width: 36px; height: 15px; line-height: 15px; right: 0; top: 0; z-index: 3; font-size: 10px; color: #fff; border-radius: 6px; padding: 0 4px; box-sizing: border-box; white-space: nowrap; background-color: #f38200; transform: translateX(40%); } #toolbarNew .toolbar .bar-right .bar-zan { position: relative; z-index: 2; height: 33px; width: 33px; box-sizing: border-box; } #toolbarNew .toolbar .bar-right .bar-zan .ani-num { position: absolute; top: 0; left: 10px; opacity: 0; font-size: 15px; color: #f07a87; } #toolbarNew .toolbar .bar-right .bar-zan .stop-longtap { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 1; } #toolbarNew .toolbar .bar-right .bar-zan img { width: 36px; height: 36px; } #toolbarNew .toolbar .bar-right .bar-zan.active .ani-num { z-index: 2; animation: praise 1.2s; animation-fill-mode: both; } @keyframes praise { 0% { opacity: 1; } 50% { opacity: 1; transform: translate3d(0, -35px, 0); } to { opacity: 0; transform: translate3d(0, -35px, 0); } } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap { transform: scale(0.85); } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:first-of-type { animation: jump .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(2) { animation: jump2 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(3) { animation: jump3 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(4) { animation: jump4 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(5) { animation: jump5 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(6) { animation: jump6 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(7) { animation: jump7 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan.active .zan-wrap span:nth-of-type(8) { animation: jump8 .6s ease-out; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: visible; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span { position: absolute; width: 6px; height: 6px; border-radius: 50%; opacity: 0; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:first-of-type { left: 50%; top: -8px; transform: translate3d(-50%, 0, 0); background-color: #b3e5c8; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(2) { left: -8px; top: 50%; transform: translate3d(0, -50%, 0); background-color: #f4ba31; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(3) { left: 50%; bottom: -8px; transform: translate3d(-50%, 0, 0); background-color: #339fef; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(4) { top: 50%; right: -8px; transform: translate3d(0, -50%, 0); background-color: #e2264d; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(5) { left: -5px; top: 0; transform: translate3d(0, -50%, 0); background-color: #a08880; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(6) { left: -5px; bottom: 0; transform: translate3d(0, 50%, 0); background-color: #43c1b5; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(7) { right: -5px; bottom: 0; transform: translate3d(0, 50%, 0); background-color: #f5be3b; } #toolbarNew .toolbar .bar-right .bar-zan .zan-wrap span:nth-of-type(8) { right: -5px; top: 0; transform: translate3d(0, -50%, 0); background-color: coral; } @keyframes jump { 0% { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); } 40% { transform: translate3d(-50%, -100%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(-50%, -150%, 0) scale(0); } } @keyframes jump2 { 0% { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); } 40% { transform: translate3d(-100%, -50%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(-150%, -50%, 0) scale(0); } } @keyframes jump3 { 0% { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); } 40% { transform: translate3d(-50%, 100%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(-50%, 150%, 0) scale(0); } } @keyframes jump4 { 0% { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); } 40% { transform: translate3d(100%, -50%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(150%, -50%, 0) scale(0); } } @keyframes jump5 { 0% { opacity: 1; transform: translate3d(0, -50%, 0) scale(1); } 40% { transform: translate3d(-80%, -80%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(-130%, -130%, 0) scale(0); } } @keyframes jump6 { 0% { opacity: 1; transform: translate3d(0, 50%, 0) scale(1); } 40% { transform: translate3d(-80%, 80%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(-130%, 130%, 0) scale(0); } } @keyframes jump7 { 0% { opacity: 1; transform: translate3d(0, 50%, 0) scale(1); } 40% { transform: translate3d(80%, 80%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(130%, 130%, 0) scale(0); } } @keyframes jump8 { 0% { opacity: 1; transform: translate3d(0, 50%, 0) scale(1); } 40% { transform: translate3d(80%, -80%, 0) scale(0.7); } to { opacity: 1; transform: translate3d(130%, -130%, 0) scale(0); } } /* 礼物弹窗样式 */ .give-gift { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2004; background: white; padding: 20px; border-radius: 10px; text-align: center; } .give-gift .back { position: absolute; top: 10px; left: 10px; cursor: pointer; } .give-gift img { max-width: 300px; max-height: 300px; margin-top: 20px; } /* 留言成功弹窗样式 */ .mess-success-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 2003; display: flex; justify-content: center; align-items: center; } .mess-success-popup .gift-popup { width: 300px; height: 200px; background: url('https://h5cdn.unika.cc/static/img/uniComponents/bg-color.png') no-repeat; border-radius: 10px; padding: 20px; text-align: center; position: relative; } .mess-success-popup .gift-popup .icon-cuowu2 { position: absolute; top: 10px; right: 10px; cursor: pointer; } .mess-success-popup .gift-popup .toast { display: flex; align-items: center; justify-content: center; margin: 10px 0; } .mess-success-popup .gift-popup .toast img { width: 20px; height: 15px; margin: 0 5px; } .mess-success-popup .gift-popup .title { margin: 15px 0; font-size: 16px; color: #333; } .mess-success-popup .gift-popup .btn { background: linear-gradient(270deg, #ff4874, #ff9061); color: white; border: none; padding: 10px 20px; border-radius: 20px; margin-top: 15px; cursor: pointer; } /* 新增图片加载动画样式 */ .gift-image-container { position: relative; width: 300px; height: 300px; margin: 20px 0; overflow: hidden; } .gift-image-container img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.5s ease-in-out; } .gift-image-container img.loaded { opacity: 1; } .image-loading { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.8); } .loading-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #ed5566; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } body, html { width: 100%; height: 100%; } * { padding: 0; margin: 0; box-sizing: border-box; white-space: normal; word-break: break-all; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } @font-face { font-family: iconfont; src: url(https://h5cdn.unika.cc/static/font/iconfont/iconfont.f1262e4.woff2) format("woff2"), url(https://h5cdn.unika.cc/static/font/iconfont/iconfont.788d827.woff) format("woff"), url(https://h5cdn.unika.cc/static/font/iconfont/iconfont.9541e59.ttf) format("truetype") } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } #index { position: relative; width: 100%; height: 100%; overflow: hidden; } #page-list { position: relative; width: 100%; height: 100%; max-width: 800px; margin: 0 auto; z-index: 1 } #page-list.hardware .eles { will-change: transform } #page-list .bg-wrap { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: -1 } #page-list .ani-pause .ani-wrap { animation-play-state: paused!important; -webkit-animation-play-state: paused!important } #page-list .audio-wrap { z-index: 10 } #page-list .audio-wrap,#page-list .page-item { position: absolute; left: 0; top: 0; right: 0; bottom: 0 } #page-list .page-item { z-index: 0; overflow: hidden; display: none; visibility: hidden; transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition-timing-function: cubic-bezier(.1,.57,.1,1) } #page-list .page-item .count-down { display: none } #page-list .page-item .has-ani { display: none!important } #page-list .page-item .ele-effect,#page-list .page-item .page-bg { display: none } #page-list .page-item .limit-ani .ani-wrap { animation: none!important } #page-list .page-item .ani-pause .ani-wrap { animation-play-state: paused!important; -webkit-animation-play-state: paused!important } #page-list .page-item .showAniEle .has-ani { display: block!important } #page-list .page-item .showAniEle .page-bg { display: block } #page-list .page-item .scroll-wrap { position: relative; width: 100%; overflow: hidden; } #page-list .page-item .scroll-wrap.scroll-long .bg-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; } #page-list .page-item .amap-maps { display: none } #page-list .page-item.current { z-index: 1; display: block; visibility: visible } #page-list .page-item.current .amap-maps,#page-list .page-item.current .count-down,#page-list .page-item.current .page-wrap .ele-effect { display: block } #page-list .page-item.current .page-wrap .eles { text-align: left } #page-list .page-item.current .page-wrap .page-bg { display: block } #page-list .page-item.current .page-wrap .has-ani { display: block!important } #page-list .page-item.visibility { display: block; visibility: hidden } #page-list .page-item.active { z-index: 2; visibility: visible } #page-list .page-item.active .amap-maps,#page-list .page-item.active .count-down { display: block } #page-list .page-item .page-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; z-index: 1 } #page-list .page-item .page-wrap .ele-wrap,#page-list .page-item .page-wrap .page-bg { position: absolute; right: 0; left: 0; top: 0; bottom: 0; width: 100%; height: 100%; overflow: hidden } #page-list .page-item .page-wrap .page-bg { background-size: cover; background-repeat: no-repeat; background-position: 50% 50%; z-index: 0 } #page-list .page-item .page-wrap .ele-wrap { z-index: 1 } #page-list .page-item .page-wrap .eles { position: absolute } :deep(.vue-transition-group) { display: block; position: relative; width: 100%; height: 100%; } .pages-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; } .page-container { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; will-change: transform; } .no-ani .ani-wrap,.no-ani .ele-text-long { animation: none!important } .scroll-mode .page-container { position: relative; min-height: 100vh; } .slide-enter-active, .slide-leave-active { -webkit-animation: slideToTop .6s ease-in both; animation: slideToTop .6s ease-in both } @-webkit-keyframes slideToTop { to { -webkit-transform: translateY(-100%); transform: translateY(-100%) } } @keyframes slideToTop { to { -webkit-transform: translateY(-100%); transform: translateY(-100%) } } .slide-enter-from { transform: translateX(100%); } .slide-leave-to { transform: translateX(-100%); } .rotateCube-enter-active, .rotateCube-leave-active { -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-animation: rotateCubeTopOut .6s ease-in both; animation: rotateCubeTopOut .6s ease-in both } .rotateCube-enter-from { transform: translateX(100%); } .rotateCube-leave-to { transform: translateX(-100%); } .wind-enter-active, .wind-leave-active { -webkit-animation: windOut .5s ease-in both; animation: windOut .5s ease-in both } .wind-enter-from { transform: translateX(100%); } .wind-leave-to { transform: translateX(-100%); } .popup-enter-active, .popup-leave-active { -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; -webkit-animation: rotateCarouselTopOut .7s ease both; animation: rotateCarouselTopOut .7s ease both } .popup-enter-from { transform: translateX(100%); } .popup-leave-to { transform: translateX(-100%); } .scaleUpDown-enter-active, .scaleUpDown-leave-active { -webkit-animation: scaleUp .7s ease both; animation: scaleUp .7s ease both } .scaleUpDown-enter-from { transform: translateX(100%); } .scaleUpDown-leave-to { transform: translateX(-100%); } .flipUpDown-enter-active, .flipUpDown-leave-active { -webkit-animation: rotatePushTop .7s ease both; animation: rotatePushTop .7s ease both } .flipUpDown-enter-from { transform: translateX(100%); } .flipUpDown-leave-to { transform: translateX(-100%); } .cover-enter-active, .cover-leave-active { -webkit-animation: coverInDown .5s ease both; animation: coverInDown .5s ease both } .cover-enter-from { transform: translateX(100%); } .cover-leave-to { transform: translateX(-100%); } .inertia-enter-active, .inertia-leave-active { -webkit-animation: inertiaOut .6s ease both; animation: inertiaOut .6s ease both } @-webkit-keyframes inertiaOut { to { -webkit-transform: scale(.2); transform: scale(.2) } } @keyframes inertiaOut { to { -webkit-transform: scale(.2); transform: scale(.2) } } .inertia-enter-from { transform: translateX(100%); } .inertia-leave-to { transform: translateX(-100%); } .push-enter-active, .push-leave-active { -webkit-transform-origin: center top; transform-origin: center top; -webkit-animation: pushInTop .6s linear .2s both; animation: pushInTop .6s linear .2s both } @-webkit-keyframes pushInTop { 0% { -webkit-transform: perspective(700px) rotateX(-90deg); transform: perspective(700px) rotateX(-90deg) } } @keyframes pushInTop { 0% { -webkit-transform: perspective(700px) rotateX(-90deg); transform: perspective(700px) rotateX(-90deg) } } .push-enter-from { transform: translateX(100%); } .push-leave-to { transform: translateX(-100%); } .drop-enter-active, .drop-leave-active { -webkit-transform-origin: 0 0; transform-origin: 0 0; -webkit-animation: dropOut .6s linear both; animation: dropOut .6s linear both } @-webkit-keyframes dropOut { 20% { -webkit-transform: rotate(5deg); transform: rotate(5deg) } to { opacity: .6; -webkit-transform: translate3d(0,100%,0); transform: translate3d(0,100%,0) } } @keyframes dropOut { 20% { -webkit-transform: rotate(5deg); transform: rotate(5deg) } to { opacity: .6; -webkit-transform: translate3d(0,100%,0); transform: translate3d(0,100%,0) } } .drop-enter-from { transform: translateX(100%); } .drop-leave-to { transform: translateX(-100%); } .fadeIn-enter-active, .fadeIn-leave-active { -webkit-animation: pfadeIn .6s linear both; animation: pfadeIn .6s linear both } @-webkit-keyframes pfadeIn { 0% { opacity: 0 } to { opacity: 1 } } @keyframes pfadeIn { 0% { opacity: 0 } to { opacity: 1 } } .fadeIn-enter-from { transform: translateX(100%); } .fadeIn-leave-to { transform: translateX(-100%); } .zoomIn-enter-active, .zoomIn-leave-active { -webkit-animation: pzoomIn .6s linear both; animation: pzoomIn .6s linear both } @-webkit-keyframes pzoomIn { 0% { -webkit-transform: scale3d(0,0,0); transform: scale3d(0,0,0) } } @keyframes pzoomIn { 0% { -webkit-transform: scale3d(0,0,0); transform: scale3d(0,0,0) } } .slide-enter-from { transform: translateX(100%); } .slide-leave-to { transform: translateX(-100%); } .btFadeIn-enter-active, .btFadeIn-leave-active { -webkit-animation: btFadeInTop .6s ease both; animation: btFadeInTop .6s ease both } @keyframes btFadeInTop { 0% { opacity: 0; -webkit-transform: translate3d(0,100%,0); transform: translate3d(0,100%,0) } } .btFadeIn-enter-from { transform: translateX(100%); } .btFadeIn-leave-to { transform: translateX(-100%); } .hideSoon-enter-active, .hideSoon-leave-active { visibility: hidden } .hideSoon-enter-from { transform: translateX(100%); } .hideSoon-leave-to { transform: translateX(-100%); } .upSlide-enter-active, .upSlide-leave-active { transition: transform 0.3s, opacity 0.3s; } .upSlide-enter-from, .upSlide-leave-to { transform: translateY(-100%); opacity: 0; } .upSlide-enter-to, .upSlide-leave-from { transform: translateY(0); opacity: 1; } .downSlide-enter-active, .downSlide-leave-active { transition: transform 0.3s, opacity 0.3s; } .downSlide-enter-from, .downSlide-leave-to { transform: translateY(100%); opacity: 0; } .downSlide-enter-to, .downSlide-leave-from { transform: translateY(0); opacity: 1; } .leftSlide-enter-active, .leftSlide-leave-active { -webkit-animation: leftSlide .7s ease both; animation: leftSlide .7s ease both } @-webkit-keyframes leftSlide { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%) } to { -webkit-transform: translateX(0); transform: translateX(0) } } @keyframes leftSlide { 0% { -webkit-transform: translateX(-100%); transform: translateX(-100%) } to { -webkit-transform: translateX(0); transform: translateX(0) } } .leftSlide-enter-from { transform: translateX(100%); } .leftSlide-leave-to { transform: translateX(-100%); } .rightSlide-enter-active, .rightSlide-leave-active { -webkit-animation: rightSlide .7s ease both; animation: rightSlide .7s ease both } @-webkit-keyframes rightSlide { 0% { -webkit-transform: translateX(100%); transform: translateX(100%) } to { -webkit-transform: translateX(0); transform: translateX(0) } } @keyframes rightSlide { 0% { -webkit-transform: translateX(100%); transform: translateX(100%) } to { -webkit-transform: translateX(0); transform: translateX(0) } } .rightSlide-enter-from { transform: translateX(100%); } .rightSlide-leave-to { transform: translateX(-100%); } * { -webkit-box-sizing: border-box; box-sizing: border-box; white-space: normal; word-break: break-all } @-webkit-keyframes slideToBottom { to { -webkit-transform: translateY(100%); transform: translateY(100%) } } @keyframes slideToBottom { to { -webkit-transform: translateY(100%); transform: translateY(100%) } } @-webkit-keyframes slideFromTop { 0% { -webkit-transform: translateY(-100%); transform: translateY(-100%) } } @keyframes slideFromTop { 0% { -webkit-transform: translateY(-100%); transform: translateY(-100%) } } @-webkit-keyframes slideFromBottom { 0% { -webkit-transform: translateY(100%); transform: translateY(100%) } } @keyframes slideFromBottom { 0% { -webkit-transform: translateY(100%); transform: translateY(100%) } } @-webkit-keyframes rotateCubeTopOut { 50% { -webkit-transform: translateY(-50%) translateZ(-200px) rotateX(45deg); transform: translateY(-50%) translateZ(-200px) rotateX(45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } to { opacity: .3; -webkit-transform: translateY(-100%) rotateX(90deg); transform: translateY(-100%) rotateX(90deg) } } @keyframes rotateCubeTopOut { 50% { -webkit-transform: translateY(-50%) translateZ(-200px) rotateX(45deg); transform: translateY(-50%) translateZ(-200px) rotateX(45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } to { opacity: .3; -webkit-transform: translateY(-100%) rotateX(90deg); transform: translateY(-100%) rotateX(90deg) } } @-webkit-keyframes rotateCubeTopIn { 0% { opacity: .3; -webkit-transform: translateY(100%) rotateX(-90deg); transform: translateY(100%) rotateX(-90deg) } 50% { -webkit-transform: translateY(50%) translateZ(-200px) rotateX(-45deg); transform: translateY(50%) translateZ(-200px) rotateX(-45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } } @keyframes rotateCubeTopIn { 0% { opacity: .3; -webkit-transform: translateY(100%) rotateX(-90deg); transform: translateY(100%) rotateX(-90deg) } 50% { -webkit-transform: translateY(50%) translateZ(-200px) rotateX(-45deg); transform: translateY(50%) translateZ(-200px) rotateX(-45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } } @-webkit-keyframes rotateCubeBottomOut { 50% { -webkit-transform: translateY(50%) translateZ(-200px) rotateX(-45deg); transform: translateY(50%) translateZ(-200px) rotateX(-45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } to { opacity: .3; -webkit-transform: translateY(100%) rotateX(-90deg); transform: translateY(100%) rotateX(-90deg) } } @keyframes rotateCubeBottomOut { 50% { -webkit-transform: translateY(50%) translateZ(-200px) rotateX(-45deg); transform: translateY(50%) translateZ(-200px) rotateX(-45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } to { opacity: .3; -webkit-transform: translateY(100%) rotateX(-90deg); transform: translateY(100%) rotateX(-90deg) } } @-webkit-keyframes rotateCubeBottomIn { 0% { opacity: .3; -webkit-transform: translateY(-100%) rotateX(90deg); transform: translateY(-100%) rotateX(90deg) } 50% { -webkit-transform: translateY(-50%) translateZ(-200px) rotateX(45deg); transform: translateY(-50%) translateZ(-200px) rotateX(45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } } @keyframes rotateCubeBottomIn { 0% { opacity: .3; -webkit-transform: translateY(-100%) rotateX(90deg); transform: translateY(-100%) rotateX(90deg) } 50% { -webkit-transform: translateY(-50%) translateZ(-200px) rotateX(45deg); transform: translateY(-50%) translateZ(-200px) rotateX(45deg); -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out } } @-webkit-keyframes windOut { to { opacity: 0; -webkit-transform: translateZ(-3000px) rotate(1turn); transform: translateZ(-3000px) rotate(1turn) } } @keyframes windOut { to { opacity: 0; -webkit-transform: translateZ(-3000px) rotate(1turn); transform: translateZ(-3000px) rotate(1turn) } } @-webkit-keyframes windIn { 0% { opacity: 0; -webkit-transform: translateZ(-3000px) rotate(-1turn); transform: translateZ(-3000px) rotate(-1turn) } } @keyframes windIn { 0% { opacity: 0; -webkit-transform: translateZ(-3000px) rotate(-1turn); transform: translateZ(-3000px) rotate(-1turn) } } @-webkit-keyframes rotateCarouselTopOut { to { opacity: .3; -webkit-transform: translateY(-150%) scale(.4) rotateX(65deg); transform: translateY(-150%) scale(.4) rotateX(65deg) } } @keyframes rotateCarouselTopOut { to { opacity: .3; -webkit-transform: translateY(-150%) scale(.4) rotateX(65deg); transform: translateY(-150%) scale(.4) rotateX(65deg) } } @-webkit-keyframes rotateCarouselTopIn { 0% { opacity: .3; -webkit-transform: translateY(150%) scale(.4) rotateX(-65deg); transform: translateY(150%) scale(.4) rotateX(-65deg) } } @keyframes rotateCarouselTopIn { 0% { opacity: .3; -webkit-transform: translateY(150%) scale(.4) rotateX(-65deg); transform: translateY(150%) scale(.4) rotateX(-65deg) } } @-webkit-keyframe