home.css 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. .home-suspension {
  2. left: 0;
  3. right: 0;
  4. top: 0;
  5. bottom: 0;
  6. position: absolute;
  7. z-index: 2;
  8. width: 0;
  9. height: 0;
  10. }
  11. .bottom-advertisement {
  12. position: fixed;
  13. bottom: 0;
  14. left: 0;
  15. width: 100%;
  16. height: 130px;
  17. background: #8a65d9;
  18. }
  19. .advertisement-content {
  20. width: 1180px;
  21. height: 130px;
  22. margin: auto auto;
  23. }
  24. .right-handler {
  25. position: fixed;
  26. bottom: 50px;
  27. right: 50px;
  28. width: 75px;
  29. background-color: white;
  30. display: flex;
  31. flex-direction: column;
  32. color: black;
  33. z-index: 1;
  34. border-radius: 8px;
  35. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  36. }
  37. .handler-btn .tooltip {
  38. display: none;
  39. }
  40. .handler-btn .handler-btn:hover .tooltip {
  41. display: block;
  42. }
  43. .handler-item-top {
  44. border-radius: 8px 8px 0 0;
  45. }
  46. .handler-item-bottom {
  47. border-radius: 0 0 8px 8px;
  48. }
  49. .handler-item {
  50. transition: background-color 0.3s ease-in-out;
  51. }
  52. .item-icon-top {
  53. padding: 10px 0;
  54. color: #666666;
  55. transform: rotateZ(180deg);
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. }
  60. .item-icon-top div {
  61. width: 25px;
  62. height: 25px;
  63. }
  64. .right-handler div:hover {
  65. background-color: #1475fa;
  66. }
  67. .item-icon-top:hover {
  68. }
  69. .item-icon-top:hover span {
  70. color: white;
  71. }
  72. .item-icon-top:hover .item-icon {
  73. color: white;
  74. }
  75. .item-icon-top:hover .item-icon-top {
  76. color: white;
  77. }
  78. .handler-item-content {
  79. margin: 0 auto;
  80. width: 52px;
  81. height: 74px;
  82. justify-content: center;
  83. align-items: center;
  84. border-bottom: #F1F1F1 1px solid;
  85. display: flex;
  86. flex-direction: column;
  87. font-size: 13px;
  88. }
  89. .item-icon {
  90. color: #666666;
  91. }
  92. span {
  93. color: #333333;
  94. }
  95. .handler-item-content:hover {
  96. cursor: pointer;
  97. user-select: none;
  98. color: white;
  99. background-color: #1475fa;
  100. }
  101. .handler-item-content:hover span {
  102. color: white;
  103. }
  104. .handler-item-content:hover .item-icon {
  105. color: white;
  106. }
  107. .handler-item-content:hover .item-icon-top {
  108. color: white;
  109. }
  110. .tooltip {
  111. display: block;
  112. position: absolute;
  113. padding: 10px;
  114. border-radius: 8px;
  115. box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  116. cursor: auto;
  117. color: #333333;
  118. }
  119. .tooltip-arrow {
  120. position: absolute;
  121. right: -9.5px;
  122. top: calc(50% - 10px);
  123. width: 10px;
  124. height: 20px;
  125. -webkit-clip-path: polygon(100% 50%, 0 0, 0 100%);
  126. clip-path: polygon(100% 50%, 0 0, 0 100%);
  127. }
  128. .slot-image {
  129. max-width: 80px;
  130. max-height: 80px;
  131. }
  132. .handler-to-top {
  133. cursor: pointer;
  134. }
  135. .gift-pack {
  136. width: 1170px;
  137. text-align: left;
  138. font-size: 12px;
  139. margin: 60px auto 50px auto;
  140. line-height: 18px;
  141. padding-bottom: 20px;
  142. border-bottom: 1px solid rgb(217, 217, 217);
  143. }
  144. .gift-pack-title {
  145. font-size: 24px;
  146. margin-bottom: 15px;
  147. }
  148. .gift-pack-content {
  149. display: grid;
  150. grid-template-columns: repeat(3, 1fr);
  151. grid-gap: 20px;
  152. }
  153. .content-item {
  154. cursor: pointer;
  155. }
  156. .content-item-img {
  157. max-width: 370px;
  158. max-height: 165px;
  159. overflow: hidden;
  160. }
  161. .content-item-img img {
  162. border-radius: 10px;
  163. width: 370px;
  164. height: 165px;
  165. }
  166. .content-item-title {
  167. font-weight: bold;
  168. font-size: 14px;
  169. }
  170. .content-item-remark {
  171. color: #999;
  172. }
  173. .content-item-price {
  174. display: flex;
  175. vertical-align: middle;
  176. margin: 10px 0;
  177. }
  178. .content-item-price div {
  179. margin-right: 10px;
  180. }
  181. .price-original {
  182. text-decoration: line-through;
  183. color: #888888;
  184. }
  185. .price-target {
  186. vertical-align: middle;
  187. padding: 0 3px;
  188. margin: 0 0 0 4px;
  189. background: rgb(223, 30, 28);
  190. color: white;
  191. font-weight: bolder;
  192. }
  193. .price-target span{
  194. color: white;
  195. }
  196. .price-now {
  197. font-family: BlinkMacSystemFont;
  198. font-size: 16px;
  199. }
  200. /*==============首页主题====================*/
  201. .card {
  202. width: 1180px;
  203. margin: auto;
  204. padding: 0;
  205. /* border: 1px solid #ccc; */
  206. text-align: left;
  207. }
  208. .card .card-header {
  209. margin: 20px 0 0 5px;
  210. display: flex;
  211. line-height: 32px;
  212. }
  213. .card .card-header .card-title {
  214. text-align: left;
  215. display: inline-block;
  216. padding: 0;
  217. width: auto;
  218. margin: 0;
  219. font-weight: bold;
  220. font-size: 24px;
  221. }
  222. .card .card-header .cart-other {
  223. flex: 1;
  224. margin: 0;
  225. width: auto;
  226. text-align: right;
  227. vertical-align: middle;
  228. align-items: center;
  229. font-size: 12px;
  230. }
  231. .card .card-header .cart-other a {
  232. cursor: pointer;
  233. padding: 5px 15px;
  234. color: white;
  235. background: #1475fa;
  236. }
  237. .card .card-des {
  238. margin: 8px 0 0 5px;
  239. color: #666666;
  240. font-size: 14px;
  241. }
  242. .card .card-list {
  243. display: flex;
  244. align-items: center;
  245. flex-wrap: wrap;
  246. padding: 5px 0 0 0;
  247. margin-top: 15px;
  248. overflow: hidden;
  249. /* overflow-y: auto; */
  250. }
  251. .card .card-list div {
  252. margin-right: 30px;
  253. display: inline-block;
  254. }
  255. .card .card-list div:nth-child(6n) {
  256. margin-right: 0;
  257. }
  258. .card .card-list div:nth-child(6n+1) {
  259. margin-left: 5px;
  260. }
  261. .card .card-show {
  262. text-align: center;
  263. width: 100%;
  264. cursor: pointer;
  265. color: #646cff;
  266. }
  267. /*topic list item*/
  268. .goods-info {
  269. display: block;
  270. max-width: 170px;
  271. margin-bottom: 30px;
  272. }
  273. .goods-info:hover {
  274. cursor: pointer;
  275. }
  276. .goods-info .goods-img {
  277. padding: 0;
  278. margin: 0 0 12px 0;
  279. overflow: hidden;
  280. display: flex;
  281. }
  282. .goods-info .goods-img img {
  283. height: 228px;
  284. width: 170px;
  285. }
  286. .goods-info .goods-img img:hover {
  287. z-index: 0;
  288. }
  289. .goods-info .goods-img:hover::after {
  290. opacity: 1;
  291. box-shadow: rgba(100, 100, 100, 0.3) 0 0 8px 3px;
  292. }
  293. .goods-info .goods-img::after {
  294. content: "";
  295. position: absolute;
  296. z-index: 9999;
  297. width: 170px;
  298. height: 228px;
  299. box-sizing: border-box;
  300. background: rgba(229, 229, 229, 0.2);
  301. transform: translateX(-170px);
  302. animation: 0.2s ease 0s 1 normal none running enlarge;
  303. opacity: 0;
  304. transition: all 0.3s ease 0s;
  305. }
  306. .goods-info .goods-name {
  307. height: 38px;
  308. font-size: 12px;
  309. text-overflow: ellipsis;
  310. overflow: hidden;
  311. -webkit-line-clamp: 2;
  312. }
  313. .goods-info .goods-price {
  314. font-size: 16px;
  315. margin: 5px 0;
  316. font-weight: bold;
  317. }
  318. .goods-info .goods-price::before {
  319. content: "¥";
  320. }
  321. .goods-info .goods-original-price {
  322. display: inline-block;
  323. text-decoration: line-through;
  324. font-size: 12px;
  325. margin: 0;
  326. padding: 0;
  327. }
  328. .goods-info .goods-discount-percentage {
  329. display: inline-block;
  330. font-size: 12px;
  331. margin: 0 0 0 10px;
  332. padding: 0 5px;
  333. color: white;
  334. background: rgb(223, 30, 28);
  335. }
  336. .goods-info .goods-discount-percentage::before {
  337. content: "-";
  338. }
  339. .goods-info .goods-discount-percentage::after {
  340. content: "%";
  341. }