123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- .vap-warp,#vap-warp{
- will-change: transform, opacity;
- backface-visibility: hidden;
- perspective: 1000px; /* 如果需要3D效果 */
- }
- .gift-modal {
- --height: 102.5641vw;
- }
- .gift-region {
- position: relative;
- .gift-tabs {
- display: flex;
- font-size: 3.5897vw;
- font-weight: bold;
- padding: 0 2.5641vw;
- .tab {
- margin-right: 2.5641vw;
- }
- }
- .gift-content {
- overflow-y: scroll;
- padding-bottom: 25.641vw;
- height: 91.2821vw;
- .gift-list {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- grid-gap: 2.5641vw;
- padding: 1.5385vw;
- .gift-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- border-radius: 2.5641vw;
- border: 0.2564vw solid #fff;
- font-size: 3.5897vw;
- .img {
- width: 10.2564vw;
- height: 10.2564vw;
- border-radius: 2.5641vw;
- }
- .info {
- text-align: center;
- .name {
- margin: 1.5385vw 0;
- }
- .price {
- display: flex;
- align-items: center;
- justify-content: center;
- color: #6b6b6b;
- font-family: PingFang SC;
- font-size: 3.0769vw;
- .credit {
- width: 2.5641vw;
- height: 2.5641vw;
- }
- }
- }
- }
- .gift-item-acitve {
- border: 0.2564vw solid #fc3651 !important;
- }
- }
- }
- .gift-footer {
- position: absolute;
- bottom: 0;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 20.5128vw;
- padding: 5.1282vw;
- padding-bottom: 5.1282vw;
- background: linear-gradient(
- rgb(255 255 255 / 31%),
- rgb(255 255 255 / 86%),
- #ffffff,
- #fdfdfd
- );
- align-items: flex-end;
- .left {
- display: flex;
- align-items: center;
- font-size: 3.0769vw;
- .credit {
- width: 2.5641vw;
- height: 2.5641vw;
- margin-right: 1.5385vw;
- }
- .recharge{
- background: #0054e9;
- color: white;
- padding: 2px 4px;
- border-radius: 4px;
- margin-left: 4px;
- }
- }
- .btns {
- display: flex;
- align-items: flex-end;
- .chang-gift {
- font-size: 3.0769vw;
- }
- .input-num {
- width: 12.8205vw;
- height: 6.1538vw;
- margin-right: 2.5641vw;
- border-radius: 1.5385vw;
- border: 0.2564vw solid #dcdcdc;
- }
- .btn-item {
- background-color: #fc3651;
- color: white;
- padding: 1.0256vw 4.1026vw;
- border-radius: 4.1026vw;
- font-size: 3.5897vw;
- }
- .btn-disabled{
- background-color: #dcdcdc;
- }
- }
- }
- }
- .modal-gift-img {
- position: fixed;
- top: 0;
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- background: #000000b0;
- z-index: 999;
- img{
- animation: scaleUp 5s ease-in-out forwards; /* 使用scaleUp动画,持续3秒 */
- position: absolute;
- bottom: 0;
- }
- }
- .recharge-modal{
- --height: 80%;
- }
- @keyframes scaleUp {
- 0% {
- transform: scale(0.1); /* 从0.1倍大小开始 */
- }
- 50%{
- transform: scale(0.1);
- bottom: 102.5641vw;
- }
- 60% {
- transform: scale(0.8);
- bottom: 102.5641vw;
- }
- 70% {
- transform: scale(0.2);
- bottom: 102.5641vw;
- }
- 90%{
- transform: scale(1.2); /* 放大到原始大小 */
- bottom: 102.5641vw;
- }
- 100% {
- transform: scale(1.2); /* 放大到原始大小 */
- bottom: 102.5641vw;
- }
- }
- .vap-warp{
- position: fixed;
- top: 0;
- z-index: 999;
- }
|