@font-face { font-family: "ysbth"; src: url('ysbth.ttf') format('truetype'); } ax-body{ display: block; height: 100%; background: #F6FAFF; } .body{ position: relative; z-index: 1; } /* 页面背景 */ .page-background{ position: fixed; top: 0; left: 0; right: 0; z-index: 0; } .page-background image{ display: block; width: 100%; transform: scaleY(-100%); } /* 统计卡 */ .sta-card{ flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; height: 78px; border-radius: 8px; background-color: #F2F8FF; box-shadow: 0 3px 6px rgba(122, 168, 222, 0.3); position: relative; overflow: hidden; } .sta-card::before{ content: ''; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: 0 8px 8px #fff inset; background-color: transparent !important; } .sta-card + .sta-card{ margin-left: 10px; } .sta-card .value{ font-size: 24px; font-weight: bold; position: relative; z-index: 3; } .sta-card .name{ font-size: 12px; color: #aaa; position: relative; z-index: 3; } .sta-card .bg{ position: absolute; top: 0; right: 0; height: 100%; z-index: 2; } /* 卡片 */ .card{ border-radius: 16px; padding: 15px 0; margin-top: 10px; } .card .title{ display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; font-weight: bold; } .card .title .more{ display: flex; align-items: center; justify-content: center; font-weight: normal; font-size: 14px; color: #aaa; } .card .title .more .icon{ margin-left: 5px; } /* 温馨提示 */ .tips .li{ font-size: 14px; color: #666; } .tips .li + .li{ margin-top: 7px; } /* 优惠券 */ .coupons{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .coupons .item{ --item-bg: #3eb6f8; --item-bg-active: #0093e4; --coupon-bg: #fff; --coupon-bg-active: #3ab8ff; --font-color: #3eb6f8; --font-color-active: #fff; padding: 5px; height: 150px; border-radius: 10px; background-color: var(--item-bg); color: var(--font-color); } .coupons .item .coupon{ display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border-radius: 10px; filter: drop-shadow(0 1px 6px rgba(102, 102, 102, 0.3)); } .coupons .item .coupon .top{ flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; background-color: var(--coupon-bg); } .coupons .item .coupon .top .value{ font-size: 36px; font-weight: bold; } .coupons .item .coupon .top .unit{ font-size: 14px; } .coupons .item .coupon .bottom{ text-align: center; font-size: 14px; background-color: var(--coupon-bg); padding: 10px; } .coupons .item .coupon .middle{ display: flex; align-items: center; justify-content: space-between; height: 10px; position: relative; overflow: hidden; } .coupons .item .coupon .middle::before{ content: ''; display: block; width: 50%; height: 10px; background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg) 50%); } .coupons .item .coupon .middle::after{ content: ''; display: block; width: 50%; height: 10px; background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg) 50%); } .coupons .item .coupon .middle .line{ position: absolute; top: 50%; left: 10px; right: 10px; border-top: 1px dashed var(--font-color); } .coupons .item.active{ background-color: var(--item-bg-active); color: var(--font-color-active); } .coupons .item.active .coupon .middle .line{ border-color: var(--font-color-active); } .coupons .item.active .coupon .top, .coupons .item.active .coupon .bottom{ background-color: var(--coupon-bg-active); } .coupons .item.active .coupon .middle::before{ background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg-active) 50%); } .coupons .item.active .coupon .middle::after{ background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg-active) 50%); } .pay-type{ display: flex; align-items: center; justify-content: space-between; } .pay-type .icon{ display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: 14px; margin-right: 5px; border-radius: 100pc; background-color: #04BE02; color: #fff; } .footer{ position: fixed; left: 10px; right: 10px; bottom: 0; } .pay{ display: flex; align-items: center; justify-content: center; height: 50px; font-size: 14px; margin-top: 20px; border-radius: 8px; color: #2B303A; background: linear-gradient(to right,#8FF8FB,#47AEFF); } .pay::after{ content: unset; display: none; } .pay[disabled]{ text-shadow: unset; background: #ddd; } .coupon-item{ --item-color: #D6F3FF; font-family: 'ysbth'; color: #2B303A; background-color: var(--item-color); border-radius: 8px; text-align: center; padding: 0 8px; position: relative; margin-bottom: 10px; } .coupon-item .ticket{ background-color: #F2F8FF; border-radius: 8px; margin-top: -10px; box-shadow: 0 -1px 6px rgba(122, 168, 222, 0.1); } .coupon-item .ticket .value{ display: flex; align-items: flex-end; justify-content: center; padding-top: 10px; color: #2B303A; } .coupon-item .ticket .value .val{ display: inline-block; font-size: 18px; font-weight: bold; transform: translateY(2px); margin-right: 2px; } .coupon-item .ticket .value .unit{ font-size: 12px; } .coupon-item .ticket .line-wrap{ display: flex; align-items: center; position: relative; height: 16px; } .coupon-item .ticket .line-wrap .line{ flex: 1; height: 1px; border-top: 1px dashed #aaa; } .coupon-item .ticket .line-wrap .circle{ width: 16px; height: 16px; border-radius: 100%; background-color: var(--item-color); } .coupon-item .ticket .line-wrap view:first-child{ transform: translateX(-50%); } .coupon-item .ticket .line-wrap view:last-child{ transform: translateX(50%); } .coupon-item .ticket .margin{ height: 15px; } .coupon-item .trapezium{ width: 100%; height: 10px; position: relative; overflow: hidden; margin-top: -10px; } .coupon-item .trapezium::after{ content: ''; display: block; width: 50%; height: 10px; position: absolute; left: 0; bottom: 0; transform: skewX(-15deg) translateX(0.3em); border-radius: 10px 0 0 0; background-color: var(--item-color); } .coupon-item .trapezium::before{ content: ''; display: block; width: 50%; height: 10px; position: absolute; right: 0; bottom: 0; transform: skewX(15deg) translateX(-0.3em); border-radius: 0 10px 0 0; background-color: var(--item-color); } .coupon-item .text{ margin-top: -8px; position: relative; z-index: 3; } .coupon-item.active{ --item-color: #47AEFF !important; } .coupon-item.active .ticket .value{ color: #47AEFF; } .coupon-item.active .text{ color: #fff; }