body { background: #f8b62d; } .body { overflow: hidden; position: relative; height: 12.06rem; min-height: 100vh; justify-content: space-between; .top_n { margin: 0.2rem 0.2rem 0.4rem; align-items: flex-start; span { height: 0.56rem; line-height: 0.56rem; border-radius: 0.28rem; background: #FFFFFF; padding: 0 0.5rem 0 0.18rem; font-size: 0.23rem; font-weight: 500; color: #E28C1B; } } .top_d { padding: 0 0.4rem; margin-bottom: 0.4rem; font-size: 0.33rem; font-weight: 500; color: #603813; } .top_bg { position: relative; width: 7.5rem; height: 3.88rem; margin: 0 auto 0.25rem; flex-direction: row; align-items: center; // background: #ea5413; padding: 0 0.33rem; .top_bg_l { text-align: center; width: 2rem; z-index: 2000; font-size: 0.36rem; font-weight: 500; color: #FFFFFF; padding: 0 0.2rem; span { margin-top: 0.3rem; font-size: 0.72rem; font-weight: 900; color: #6a3906; text-shadow: 0.04rem 0 #FFFFFF,-0.04rem 0 #FFFFFF, 0 0.04rem #FFFFFF, 0 -0.04rem #FFFFFF, 0.04rem 0.04rem #FFFFFF, 0.04rem -0.04rem #FFFFFF, -0.04rem 0.04rem #FFFFFF, -0.04rem -0.04rem #FFFFFF; } } img { position: absolute; right: 0.34rem; width: 5.1rem; height: 3.4rem; z-index: 100; } &:before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: url(../assets/detail/icon01.png) center no-repeat; background-size: cover; z-index: 1000; } } .btn { width: 4.26rem; height: 0.94rem; background: url(../assets/detail/icon02.png) center no-repeat; background-size: contain; margin: 0 auto; } .cat { position: relative; width: 6.79rem; height: 3.89rem; background: url(../assets/detail/icon05.gif) top center no-repeat; background-size: 100% auto; margin: 0 auto; } } .pop_w { position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: -1; background: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; opacity: 0; transition: opacity 1s; .pop_c { position: relative; img { width: 6.25rem; height: 5.42rem; } } .pop_closed { width: 0.93rem; height: 0.92rem; background: url(../assets/close.png) center no-repeat; background-size: contain; position: absolute; right: 0.27rem; bottom: 0.21rem; } &.pop_w_a { z-index: 8000; opacity: 1; } } .raise_t { position: absolute; bottom: 3.2rem; right: 3.4rem; z-index: 3000; background: center no-repeat; background-size: contain; opacity: 0; transition: all 1s; &.raise_10_t { width: 2.03rem; height: 0.86rem; background-image: url(../assets/detail/icon15.png); opacity: 1; } &.raise_30_t { width: 3.04rem; height: 0.86rem; background-image: url(../assets/detail/icon35.png); opacity: 1; } &.raise_70_t { width: 2.28rem; height: 0.86rem; background-image: url(../assets/detail/icon75.png); opacity: 1; } &.raise_100_t { width: 3.06rem; height: 0.58rem; background-image: url(../assets/detail/icon105.png); opacity: 1; } } .raise { position: absolute; justify-content: center; align-items: center; bottom: 3.6rem; right: 1.3rem; z-index: 3000; div { position: absolute; background: center no-repeat; background-size: contain; opacity: 0; transform: scale(0.6,0.6) translateY(0); // &:nth-child(1) { // transform: scale(0.6,0.6); // } // &:nth-child(2) { // transform: scale(0.7,0.7) translateY(-0.3rem); // } // &:nth-child(3) { // transform: scale(0.8,0.8) translateY(-0.6rem); // } // &:nth-child(4) { // transform: scale(0.9,0.9) translateY(-0.9rem); // } // &:nth-child(5) { // transform: scale(1,1) translateY(-1.2rem); // } } &.raise_10 { div { width: 1.85rem; height: 0.88rem; background-image: url(../assets/detail/icon10.png); } } &.raise_30 { div { width: 1.85rem; height: 0.88rem; background-image: url(../assets/detail/icon30.png); } } &.raise_70 { div { width: 1.95rem; height: 0.92rem; background-image: url(../assets/detail/icon70.png); } } &.raise_100 { div { width: 2.66rem; height: 0.95rem; background-image: url(../assets/detail/icon100.png); } } &.animation { div:nth-child(5) { animation: bubbling 1s ease-out forwards; } div:nth-child(4) { animation: bubbling 1s ease-out 0.2s forwards; } div:nth-child(3) { animation: bubbling 1s ease-out 0.4s forwards; } div:nth-child(2) { animation: bubbling 1s ease-out 0.6s forwards; } div:nth-child(1) { animation: bubbling 1s ease-out 0.8s forwards; } } } @keyframes bubbling { 10% { opacity: 0; transform: scale(0.6,0.6) translateY(0); } 70% { opacity: 1; transform: scale(1,1) translateY(-1.2rem); } 100% { opacity: 0; transform: scale(1,1) translateY(-1.2rem); } } .cat_food { width: 0.84rem; height: 0.64rem; background: url(../assets/detail/icon06.png) center no-repeat; background-size: contain; position: absolute; z-index: 5000; top: -1rem; animation: feeding ease-in; } @keyframes bubbling { 0% { opacity: 0; transform: scale(0.6,0.6) translateY(0); } 70% { opacity: 1; transform: scale(1,1) translateY(-1.2rem); } 100% { opacity: 0; transform: scale(1,1) translateY(-1.2rem); } } @keyframes feeding { 0% { top: -1rem; } 100% { top: 120vh; } }