goods.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. @import url('./common.css');
  2. main {
  3. width: 100%;
  4. margin-top: 110px;
  5. margin-bottom: 90px;
  6. background-color: #F7F7F7;
  7. padding-bottom: 90px;
  8. }
  9. main .goods_banner {
  10. width: 100%;
  11. height: 500px;
  12. }
  13. main .crumb {
  14. color: #666666;
  15. margin-top: 32px;
  16. }
  17. main .title {
  18. font-size: 40px;
  19. text-align: center;
  20. margin-top: 48px;
  21. font-weight: 500;
  22. }
  23. main .sub_title {
  24. font-size: 14px;
  25. color: #AAAAAA;
  26. text-align: center;
  27. margin-top: 3px;
  28. }
  29. main .goods_info .single {
  30. width: calc((100% - 96px) / 4);
  31. margin-right: 32px;
  32. background-color: #fff;
  33. margin-top: 40px;
  34. padding-bottom: 32px;
  35. }
  36. main .goods_info .single:nth-child(4n) {
  37. margin-right: 0;
  38. }
  39. main .single img {
  40. width: 100%;
  41. height: 320px;
  42. object-fit:cover;
  43. }
  44. main .single .title {
  45. font-size: 20px;
  46. color: #666666;
  47. margin: 12px 0 24px;
  48. line-height: 30px;
  49. text-align: left;
  50. height: 60px;
  51. padding: 0 20px;
  52. }
  53. main .single .price {
  54. font-size: 28px;
  55. color: #E73E2D;
  56. margin-top: 16px;
  57. font-weight: 500;
  58. padding: 0 20px;
  59. }
  60. main .single .price span {
  61. font-size: 18px;
  62. }
  63. main .single .buy {
  64. text-align: right;
  65. padding: 0 20px;
  66. }
  67. main .single .buy button {
  68. width: 112px;
  69. height: 40px;
  70. line-height: 40px;
  71. text-align: center;
  72. margin: 0 auto;
  73. background-color: #fff;
  74. border: 1px solid #909297;
  75. cursor: pointer;
  76. font-size: 16px;
  77. }
  78. .model {
  79. width: 100%;
  80. height: 100%;
  81. background-color: rgba(0, 0, 0, 0.5);
  82. position: fixed;
  83. top: 0;
  84. left: 0;
  85. z-index: 1000;
  86. display: none;
  87. }
  88. .model .lead {
  89. width: 488px;
  90. height: 264px;
  91. position: absolute;
  92. /*top: 300px;*/
  93. top: 50%;
  94. left: 50%;
  95. transform: translate(-50%, -50%);
  96. }
  97. .model .lead img {
  98. width: 488px;
  99. height: 264px;
  100. object-fit:cover;
  101. }
  102. .model .lead .close {
  103. width: 24px;
  104. height: 24px;
  105. position: absolute;
  106. top: 12px;
  107. right: 12px;
  108. cursor: pointer;
  109. }
  110. @media (min-width: 1366px) {
  111. main .single img {
  112. height: 257px;
  113. }
  114. }
  115. @media (min-width: 1440px) {
  116. main .single img {
  117. height: 272px;
  118. }
  119. }
  120. @media (min-width: 1600px) {
  121. main .single img {
  122. height: 305px;
  123. }
  124. }
  125. @media (min-width: 1680px) {
  126. main .single img {
  127. height: 320px;
  128. }
  129. }
  130. @media (min-width: 1920px) {
  131. main .single img {
  132. height: 370px;
  133. }
  134. }