index.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /* 清除默认样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. padding-top: var(--menu-height);
  9. }
  10. :root {
  11. /* 设置head高度 */
  12. --menu-height: 73px;
  13. /* 设置head部分logo的宽高 */
  14. --menu-logo-width: 163px;
  15. --menu-logo-height: 32px;
  16. /* 设置面包屑的高度 */
  17. --bread-height: 60px;
  18. }
  19. /* 设置css变量 */
  20. @media (max-width: 1024px) {
  21. :root {
  22. --menu-height: 50px;
  23. --menu-logo-width: 120px;
  24. --menu-logo-height: 26px;
  25. --bread-height: 40px;
  26. }
  27. }
  28. /* 移动端菜单内容 */
  29. /* 头部栏 */
  30. .headMenu {
  31. position: fixed;
  32. top: 0;
  33. display: flex;
  34. width: 100%;
  35. justify-content: space-between;
  36. align-items: center;
  37. height: var(--menu-height);
  38. padding: 0 66px;
  39. background-color: #ffffff;
  40. .headLogo {
  41. width: var(--menu-logo-width);
  42. height: var(--menu-logo-height);
  43. margin-left: 20px;
  44. }
  45. .moveMenu {
  46. display: none;
  47. width: var(--menu-logo-height);
  48. height: var(--menu-logo-height);
  49. }
  50. .menu {
  51. cursor: pointer;
  52. display: flex;
  53. transform: translateY(-1px);
  54. font-size: 16px;
  55. .cloneImg {
  56. display: none;
  57. }
  58. }
  59. .menuItem {
  60. padding: 28px 30px;
  61. }
  62. }
  63. /* 头部媒介查询 */
  64. @media (max-width: 1024px) {
  65. .headMenu {
  66. padding: 0;
  67. padding-right: 20px;
  68. .menu {
  69. display: none;
  70. }
  71. .moveMenu {
  72. display: block;
  73. }
  74. .moveMenuContent {
  75. position: fixed;
  76. top: 0;
  77. left: 0;
  78. display: flex !important;
  79. width: 100%;
  80. height: 100%;
  81. overflow: hidden;
  82. flex-direction: column;
  83. background-color: #fff;
  84. .cloneImg {
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. margin: 20px;
  89. font-size: 26px;
  90. }
  91. > div {
  92. border-top: 1px solid #000;
  93. }
  94. }
  95. }
  96. }
  97. /* 面包屑 */
  98. .bread {
  99. height: var(--bread-height);
  100. background-color: #f2f2f2;
  101. .breadcrumb {
  102. width: 1500px;
  103. margin: 0 auto;
  104. color: #818181;
  105. line-height: var(--bread-height);
  106. }
  107. .breadcrumbSpan {
  108. cursor: pointer;
  109. }
  110. }
  111. /* 面包屑媒体查询 */
  112. @media (max-width: 1024px) {
  113. .bread {
  114. font-size: 14px;
  115. .breadcrumb {
  116. width: 100%;
  117. padding-left: 20px;
  118. }
  119. .breadcrumbSpan {
  120. cursor: pointer;
  121. }
  122. }
  123. }
  124. /* 产品详情 */
  125. .productDetail {
  126. display: flex;
  127. width: 1500px;
  128. margin: 60px auto;
  129. .productImg {
  130. width: 720px;
  131. margin: 0 40px;
  132. }
  133. .productDetailItem {
  134. margin: 0 40px;
  135. flex: 1;
  136. > h1 {
  137. font-size: 36px;
  138. margin-bottom: 26px;
  139. }
  140. h2 {
  141. font-size: 18px;
  142. margin-bottom: 6px;
  143. }
  144. p {
  145. color: #414347;
  146. line-height: 25px;
  147. }
  148. }
  149. }
  150. /* 产品详情媒体查询 */
  151. @media (max-width: 1024px) {
  152. .productDetail {
  153. width: 100%;
  154. margin: 0;
  155. margin-bottom: 30px;
  156. flex-direction: column;
  157. .productImg {
  158. width: 95%;
  159. margin: 20px auto;
  160. }
  161. .productDetailItem {
  162. margin: 0 20px;
  163. > h1 {
  164. font-size: 24px;
  165. }
  166. h2 {
  167. font-size: 16px;
  168. }
  169. p {
  170. font-size: 14px;
  171. }
  172. }
  173. }
  174. }
  175. .detailedContent {
  176. width: 1500px;
  177. margin: 0 auto;
  178. .contentSwitch {
  179. height: 52px;
  180. background-color: #f2f2f2;
  181. }
  182. .liActive {
  183. color: #ffffff;
  184. background-color: #00449e;
  185. }
  186. }
  187. @media (max-width: 1024px) {
  188. .detailedContent {
  189. width: 100%;
  190. }
  191. }
  192. /* 多行省略 */
  193. /* .line_clamp_9 {
  194. overflow: hidden;
  195. display: -webkit-box;
  196. -webkit-box-orient: vertical;
  197. -webkit-line-clamp: 9;
  198. } */