coupon-buy.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. @font-face {
  2. font-family: "ysbth";
  3. src: url('ysbth.ttf') format('truetype');
  4. }
  5. ax-body{
  6. display: block;
  7. height: 100%;
  8. background: #F6FAFF;
  9. }
  10. .body{
  11. position: relative;
  12. z-index: 1;
  13. }
  14. /* 页面背景 */
  15. .page-background{
  16. position: fixed;
  17. top: 0;
  18. left: 0;
  19. right: 0;
  20. z-index: 0;
  21. }
  22. .page-background image{
  23. display: block;
  24. width: 100%;
  25. transform: scaleY(-100%);
  26. }
  27. /* 统计卡 */
  28. .sta-card{
  29. flex: 1;
  30. display: flex;
  31. align-items: center;
  32. justify-content: center;
  33. flex-direction: column;
  34. height: 78px;
  35. border-radius: 8px;
  36. background-color: #F2F8FF;
  37. box-shadow: 0 3px 6px rgba(122, 168, 222, 0.3);
  38. position: relative;
  39. overflow: hidden;
  40. }
  41. .sta-card::before{
  42. content: '';
  43. display: block;
  44. position: absolute;
  45. top: 0;
  46. left: 0;
  47. right: 0;
  48. bottom: 0;
  49. box-shadow: 0 8px 8px #fff inset;
  50. background-color: transparent !important;
  51. }
  52. .sta-card + .sta-card{
  53. margin-left: 10px;
  54. }
  55. .sta-card .value{
  56. font-size: 24px;
  57. font-weight: bold;
  58. position: relative;
  59. z-index: 3;
  60. }
  61. .sta-card .name{
  62. font-size: 12px;
  63. color: #aaa;
  64. position: relative;
  65. z-index: 3;
  66. }
  67. .sta-card .bg{
  68. position: absolute;
  69. top: 0;
  70. right: 0;
  71. height: 100%;
  72. z-index: 2;
  73. }
  74. /* 卡片 */
  75. .card{
  76. border-radius: 16px;
  77. padding: 15px 0;
  78. margin-top: 10px;
  79. }
  80. .card .title{
  81. display: flex;
  82. align-items: flex-end;
  83. justify-content: space-between;
  84. margin-bottom: 20px;
  85. font-weight: bold;
  86. }
  87. .card .title .more{
  88. display: flex;
  89. align-items: center;
  90. justify-content: center;
  91. font-weight: normal;
  92. font-size: 14px;
  93. color: #aaa;
  94. }
  95. .card .title .more .icon{
  96. margin-left: 5px;
  97. }
  98. /* 温馨提示 */
  99. .tips .li{
  100. font-size: 14px;
  101. color: #666;
  102. }
  103. .tips .li + .li{
  104. margin-top: 7px;
  105. }
  106. /* 优惠券 */
  107. .coupons{
  108. display: grid;
  109. grid-template-columns: 1fr 1fr 1fr;
  110. gap: 10px;
  111. }
  112. .coupons .item{
  113. --item-bg: #3eb6f8;
  114. --item-bg-active: #0093e4;
  115. --coupon-bg: #fff;
  116. --coupon-bg-active: #3ab8ff;
  117. --font-color: #3eb6f8;
  118. --font-color-active: #fff;
  119. padding: 5px;
  120. height: 150px;
  121. border-radius: 10px;
  122. background-color: var(--item-bg);
  123. color: var(--font-color);
  124. }
  125. .coupons .item .coupon{
  126. display: flex;
  127. flex-direction: column;
  128. width: 100%;
  129. height: 100%;
  130. overflow: hidden;
  131. border-radius: 10px;
  132. filter: drop-shadow(0 1px 6px rgba(102, 102, 102, 0.3));
  133. }
  134. .coupons .item .coupon .top{
  135. flex: 1;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. flex-direction: column;
  140. background-color: var(--coupon-bg);
  141. }
  142. .coupons .item .coupon .top .value{
  143. font-size: 36px;
  144. font-weight: bold;
  145. }
  146. .coupons .item .coupon .top .unit{
  147. font-size: 14px;
  148. }
  149. .coupons .item .coupon .bottom{
  150. text-align: center;
  151. font-size: 14px;
  152. background-color: var(--coupon-bg);
  153. padding: 10px;
  154. }
  155. .coupons .item .coupon .middle{
  156. display: flex;
  157. align-items: center;
  158. justify-content: space-between;
  159. height: 10px;
  160. position: relative;
  161. overflow: hidden;
  162. }
  163. .coupons .item .coupon .middle::before{
  164. content: '';
  165. display: block;
  166. width: 50%;
  167. height: 10px;
  168. background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg) 50%);
  169. }
  170. .coupons .item .coupon .middle::after{
  171. content: '';
  172. display: block;
  173. width: 50%;
  174. height: 10px;
  175. background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg) 50%);
  176. }
  177. .coupons .item .coupon .middle .line{
  178. position: absolute;
  179. top: 50%;
  180. left: 10px;
  181. right: 10px;
  182. border-top: 1px dashed var(--font-color);
  183. }
  184. .coupons .item.active{
  185. background-color: var(--item-bg-active);
  186. color: var(--font-color-active);
  187. }
  188. .coupons .item.active .coupon .middle .line{
  189. border-color: var(--font-color-active);
  190. }
  191. .coupons .item.active .coupon .top,
  192. .coupons .item.active .coupon .bottom{
  193. background-color: var(--coupon-bg-active);
  194. }
  195. .coupons .item.active .coupon .middle::before{
  196. background: radial-gradient(circle 10px at left, transparent 5px, var(--coupon-bg-active) 50%);
  197. }
  198. .coupons .item.active .coupon .middle::after{
  199. background: radial-gradient(circle 10px at right, transparent 5px, var(--coupon-bg-active) 50%);
  200. }
  201. .pay-type{
  202. display: flex;
  203. align-items: center;
  204. justify-content: space-between;
  205. }
  206. .pay-type .icon{
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. width: 20px;
  211. height: 20px;
  212. font-size: 14px;
  213. margin-right: 5px;
  214. border-radius: 100pc;
  215. background-color: #04BE02;
  216. color: #fff;
  217. }
  218. .footer{
  219. position: fixed;
  220. left: 10px;
  221. right: 10px;
  222. bottom: 0;
  223. }
  224. .pay{
  225. display: flex;
  226. align-items: center;
  227. justify-content: center;
  228. height: 50px;
  229. font-size: 14px;
  230. margin-top: 20px;
  231. border-radius: 8px;
  232. color: #2B303A;
  233. background: linear-gradient(to right,#8FF8FB,#47AEFF);
  234. }
  235. .pay::after{
  236. content: unset;
  237. display: none;
  238. }
  239. .pay[disabled]{
  240. text-shadow: unset;
  241. background: #ddd;
  242. }
  243. .coupon-item{
  244. --item-color: #D6F3FF;
  245. font-family: 'ysbth';
  246. color: #2B303A;
  247. background-color: var(--item-color);
  248. border-radius: 8px;
  249. text-align: center;
  250. padding: 0 8px;
  251. position: relative;
  252. margin-bottom: 10px;
  253. }
  254. .coupon-item .ticket{
  255. background-color: #F2F8FF;
  256. border-radius: 8px;
  257. margin-top: -10px;
  258. box-shadow: 0 -1px 6px rgba(122, 168, 222, 0.1);
  259. }
  260. .coupon-item .ticket .value{
  261. display: flex;
  262. align-items: flex-end;
  263. justify-content: center;
  264. padding-top: 10px;
  265. color: #2B303A;
  266. }
  267. .coupon-item .ticket .value .val{
  268. display: inline-block;
  269. font-size: 18px;
  270. font-weight: bold;
  271. transform: translateY(2px);
  272. margin-right: 2px;
  273. }
  274. .coupon-item .ticket .value .unit{
  275. font-size: 12px;
  276. }
  277. .coupon-item .ticket .line-wrap{
  278. display: flex;
  279. align-items: center;
  280. position: relative;
  281. height: 16px;
  282. }
  283. .coupon-item .ticket .line-wrap .line{
  284. flex: 1;
  285. height: 1px;
  286. border-top: 1px dashed #aaa;
  287. }
  288. .coupon-item .ticket .line-wrap .circle{
  289. width: 16px;
  290. height: 16px;
  291. border-radius: 100%;
  292. background-color: var(--item-color);
  293. }
  294. .coupon-item .ticket .line-wrap view:first-child{
  295. transform: translateX(-50%);
  296. }
  297. .coupon-item .ticket .line-wrap view:last-child{
  298. transform: translateX(50%);
  299. }
  300. .coupon-item .ticket .margin{
  301. height: 15px;
  302. }
  303. .coupon-item .trapezium{
  304. width: 100%;
  305. height: 10px;
  306. position: relative;
  307. overflow: hidden;
  308. margin-top: -10px;
  309. }
  310. .coupon-item .trapezium::after{
  311. content: '';
  312. display: block;
  313. width: 50%;
  314. height: 10px;
  315. position: absolute;
  316. left: 0;
  317. bottom: 0;
  318. transform: skewX(-15deg) translateX(0.3em);
  319. border-radius: 10px 0 0 0;
  320. background-color: var(--item-color);
  321. }
  322. .coupon-item .trapezium::before{
  323. content: '';
  324. display: block;
  325. width: 50%;
  326. height: 10px;
  327. position: absolute;
  328. right: 0;
  329. bottom: 0;
  330. transform: skewX(15deg) translateX(-0.3em);
  331. border-radius: 0 10px 0 0;
  332. background-color: var(--item-color);
  333. }
  334. .coupon-item .text{
  335. margin-top: -8px;
  336. position: relative;
  337. z-index: 3;
  338. }
  339. .coupon-item.active{
  340. --item-color: #47AEFF !important;
  341. }
  342. .coupon-item.active .ticket .value{
  343. color: #47AEFF;
  344. }
  345. .coupon-item.active .text{
  346. color: #fff;
  347. }