You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // pc端:
  2. // 设计稿1440*900 所有尺寸基本按px来即可;
  3. // 正文 16px;
  4. // 移动端:
  5. // 设计稿宽800px,按逻辑尺寸的两倍制作。因此真实尺寸需要除2;
  6. // 如设计稿字体大小28px,则实真字体大小为28px/2=14px;
  7. // 或使用vw 字体大小:28/800*10 = 3.5vw
  8. // 正文 14px 或 3.5vw
  9. //pc端样式
  10. .main {
  11. width: 100%;
  12. max-width: 1920px;
  13. margin: 0 auto;
  14. padding-top: 70px;
  15. padding-bottom: 110px;
  16. .marginTop30{
  17. margin-top: 30px;
  18. }
  19. .marginTop80{
  20. margin-top: 80px;
  21. }
  22. .marginTop45{
  23. margin-top: 45px;
  24. }
  25. .marginTop100{
  26. margin-top: 100px;
  27. }
  28. .content{
  29. width: 1300px;
  30. margin: 0 auto;
  31. .detail_head{
  32. width: 100%;
  33. display: flex;
  34. align-items: center;
  35. justify-content: space-between;
  36. margin-top: 60px;
  37. padding-bottom: 20px;
  38. font-size: 18px;
  39. color: #231F20;
  40. border-bottom: 1px solid #DDE2E6;
  41. .head_left{
  42. display: flex;
  43. align-items: center;
  44. div{
  45. margin-right: 60px;
  46. }
  47. }
  48. .head_right{
  49. font-size: 18px;
  50. color: #231F20;
  51. cursor: pointer;
  52. display: flex;
  53. align-items: center;
  54. img{
  55. width: 30px;
  56. height: 30px;
  57. object-fit: cover;
  58. }
  59. }
  60. }
  61. .detail_head2{
  62. display: none;
  63. }
  64. .detail_title{
  65. width: 100%;
  66. text-align: left;
  67. margin-top: 80px;
  68. .title{
  69. font-weight: bold;
  70. font-size: 40px;
  71. color: #333333;
  72. text-align: left;
  73. margin-bottom: 80px;
  74. }
  75. .date{
  76. color: #333333;
  77. font-size: 16px;
  78. text-align: center;
  79. }
  80. }
  81. .paragraphHeadings{
  82. font-weight: bold;
  83. font-size: 24px;
  84. color: #333333;
  85. }
  86. .paragraphContext{
  87. line-height: 36px;
  88. font-weight: 400;
  89. font-size: 20px;
  90. color: #231F20;
  91. }
  92. .imgBox{
  93. width: 100%;
  94. background-color: #EAECEF;
  95. img{
  96. width: 100%;
  97. height: 731px;
  98. }
  99. }
  100. .detail_footer{
  101. width: 100%;
  102. border-top: 1px solid #DDE2E6;
  103. padding-top: 40px;
  104. font-size: 18px;
  105. color: #231F20;
  106. margin-top: 128px;
  107. a{
  108. margin-bottom: 40px;
  109. display: block;
  110. transition: all 0.2s;
  111. &:hover{
  112. color: #B81C25;
  113. }
  114. }
  115. }
  116. }
  117. }
  118. a{
  119. display: inline-block;
  120. }
  121. @media screen and (min-width: 801px) and (max-width: 1400px) {
  122. .main{
  123. }
  124. }
  125. //移动端样式
  126. @media screen and (max-width:800px) {
  127. .main {
  128. width: 100%;
  129. padding-top: 11vw;
  130. padding-bottom: 16vw;
  131. .marginTop30{
  132. margin-top: 5vw;
  133. }
  134. .marginTop80{
  135. margin-top: 13.75vw;
  136. }
  137. .marginTop45{
  138. margin-top: 7.5vw;
  139. }
  140. .marginTop100{
  141. margin-top: 15vw;
  142. }
  143. .content{
  144. width: 90%;
  145. margin: 0 auto;
  146. .detail_title{
  147. width: 100%;
  148. text-align: left;
  149. margin-top: 40px;
  150. .title{
  151. font-weight: bold;
  152. font-size: 6vw;
  153. color: #333333;
  154. text-align: left;
  155. margin-bottom: 7.5vw;
  156. }
  157. .date{
  158. color: #333333;
  159. font-size: 3.5vw;
  160. text-align: center;
  161. }
  162. }
  163. .detail_head{
  164. display: none;
  165. }
  166. .detail_head2{
  167. display: block;
  168. margin-top: 12.5vw;
  169. border-bottom: 1px solid #DDE2E6;
  170. .head_left,.head_right{
  171. width: 100%;
  172. display: flex;
  173. align-items: center;
  174. justify-content: space-between;
  175. margin-bottom: 20px;
  176. div{
  177. display: flex;
  178. align-items: center;
  179. }
  180. img{
  181. width: 6.5vw;
  182. height: 6.5vw;
  183. }
  184. }
  185. }
  186. .paragraphHeadings{
  187. font-weight: bold;
  188. font-size: 4.5vw;
  189. color: #333333;
  190. }
  191. .paragraphContext{
  192. font-size: 4.25vw;
  193. color: #333333;
  194. line-height: 7.75vw;
  195. text-align: justify;
  196. }
  197. .imgBox{
  198. width: 100%;
  199. background-color: #EAECEF;
  200. img{
  201. width: 100%;
  202. height: 40.125vw;
  203. }
  204. }
  205. .detail_footer{
  206. font-size: 3.375vw;
  207. margin-top:120px;
  208. a{
  209. width: 100%;
  210. display: block;
  211. display: -webkit-box; /* 使用 Flexbox 布局 */
  212. -webkit-box-orient: vertical; /* 垂直方向排列 */
  213. -webkit-line-clamp: 1; /* 限制显示的行数,这里是3行 */
  214. overflow: hidden; /* 隐藏超出部分 */
  215. text-overflow: ellipsis;
  216. margin-bottom: 5.25vw;
  217. }
  218. }
  219. }
  220. }
  221. }