App.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. .container {
  2. position: relative;
  3. width: 100%;
  4. margin: 0 auto;
  5. max-width: 750px;
  6. overflow: hidden;
  7. padding-bottom: 1rem;
  8. }
  9. .bg-box,
  10. .bg-box .bg {
  11. position: absolute;
  12. }
  13. .bg-box {
  14. position: absolute;
  15. top: 0;
  16. left: 50%;
  17. transform: translate3d(-50%, 0, 0);
  18. width: 7.5rem;
  19. height: 44.24rem;
  20. overflow: hidden;
  21. .bg-01 {
  22. width: 7.5rem;
  23. height: 4.24rem;
  24. background: url(./assets//image/bg_01.jpg);
  25. background-repeat: no-repeat;
  26. background-position: 50%;
  27. background-size: 7.5rem 4.24rem;
  28. }
  29. .bg-02 {
  30. width: 7.5rem;
  31. height: 5rem;
  32. background: url(./assets//image/bg_02.jpg);
  33. background-repeat: no-repeat;
  34. background-position: 50%;
  35. background-size: 7.5rem 5rem;
  36. }
  37. .bg-03 {
  38. width: 7.5rem;
  39. height: 10rem;
  40. background: url(./assets//image/bg_03.jpg);
  41. background-repeat: no-repeat;
  42. background-position: 50%;
  43. background-size: 7.5rem 10rem;
  44. }
  45. .bg-04 {
  46. width: 7.5rem;
  47. height: 12rem;
  48. background: url(./assets//image/bg_04.jpg);
  49. background-repeat: no-repeat;
  50. background-position: 50%;
  51. background-size: 7.5rem 12rem;
  52. }
  53. .bg-05 {
  54. width: 7.5rem;
  55. height: 13rem;
  56. background: url(./assets//image/bg_05.jpg);
  57. background-repeat: no-repeat;
  58. background-position: 50%;
  59. background-size: 7.5rem 13rem;
  60. }
  61. .bg.bg-top {
  62. width: 7.5rem;
  63. height: 7.25rem;
  64. background: url(./assets//image/newslist_top_pic.jpg);
  65. background-repeat: no-repeat;
  66. background-position: 50%;
  67. background-size: 7.5rem 7.25rem;
  68. }
  69. .bg.bg-btm {
  70. bottom: 0;
  71. width: 7.5rem;
  72. height: 4.06rem;
  73. background: url(./assets//image/newslist_btm_pic.jpg);
  74. background-repeat: no-repeat;
  75. background-position: 50%;
  76. background-size: 7.5rem 4.06rem;
  77. }
  78. }
  79. .mainbody {
  80. position: relative;
  81. width: 100%;
  82. overflow: hidden;
  83. min-height: 6rem;
  84. }
  85. .age-tip {
  86. position: absolute;
  87. top: 1.18rem;
  88. right: .2rem;
  89. display: inline-block;
  90. background: url(./assets/image/sp_public.png);
  91. background-repeat: no-repeat;
  92. background-position: 50%;
  93. background-size: 5.03rem 4.87rem;
  94. width: .92rem;
  95. height: 1.2rem;
  96. background-position: -2.72rem .02rem;
  97. }
  98. .news-nav {
  99. width: 7rem;
  100. margin: 6.78rem auto 0;
  101. overflow: hidden;
  102. .fixed {
  103. position: fixed;
  104. z-index: 2;
  105. /* 确保它在其他内容上方 */
  106. transition: top 0.3s;
  107. top: 0;
  108. z-index: 2;
  109. background-color: #f8fbfd;
  110. width: 7.5rem;
  111. margin-left: -0.25rem;
  112. padding: 10px 0.5rem;
  113. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  114. }
  115. }
  116. .location-box {
  117. display: -ms-flexbox;
  118. display: flex;
  119. -ms-flex-pack: justify;
  120. justify-content: space-between;
  121. -ms-flex-align: center;
  122. align-items: center;
  123. font-size: .22rem;
  124. color: #646464;
  125. .goback {
  126. display: inline-block;
  127. background: url(./assets/image/sp_public.png);
  128. background-repeat: no-repeat;
  129. background-position: 50%;
  130. background-size: 5.03rem 4.87rem;
  131. width: .92rem;
  132. height: .44rem;
  133. background-position: -3.68rem .02rem;
  134. margin-right: .2rem;
  135. cursor: pointer;
  136. a {
  137. color: #646464;
  138. }
  139. }
  140. }
  141. .news-nav-con {
  142. position: relative;
  143. margin: .2rem auto 0;
  144. .news-nav-con-strategy {
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. gap: 0.1rem;
  149. .left {
  150. display: inline-block;
  151. background: url(./assets/image/sp_public.png);
  152. background-repeat: no-repeat;
  153. background-position: 50%;
  154. background-size: 5.03rem 4.87rem;
  155. width: .15rem;
  156. height: .24rem;
  157. background-position: -4.88rem .02rem;
  158. }
  159. .right {
  160. display: inline-block;
  161. background: url(./assets/image/sp_public.png);
  162. background-repeat: no-repeat;
  163. background-position: 50%;
  164. background-size: 5.03rem 4.87rem;
  165. width: .15rem;
  166. height: .24rem;
  167. background-position: -4.65rem -1.12rem;
  168. }
  169. }
  170. .strategy-nav {
  171. overflow-x: auto;
  172. overflow-y: hidden;
  173. scrollbar-width: thin;
  174. height: 0.5rem;
  175. line-height: 0.5rem;
  176. max-width: 6.4rem;
  177. box-sizing: border-box;
  178. }
  179. ul {
  180. font-size: .24rem;
  181. color: #7d7d7d;
  182. margin-bottom: -1px;
  183. font-weight: 900;
  184. display: flex;
  185. height: 100%;
  186. li {
  187. padding: 0 .05rem;
  188. margin: 0 .1rem;
  189. box-sizing: border-box;
  190. height: 100%;
  191. cursor: pointer;
  192. outline: none;
  193. display: inline-flex;
  194. align-items: center;
  195. height: 100%;
  196. white-space: nowrap;
  197. /* 防止文本换行 */
  198. &.active {
  199. color: #78b6c8;
  200. border-bottom: .03rem solid #78b6c8;
  201. }
  202. }
  203. }
  204. }
  205. .news {
  206. background-color: #f8fbfd;
  207. .age-tip {
  208. top: 4.7rem;
  209. left: .15rem;
  210. }
  211. .news-nav-con {
  212. border-bottom: 1px solid #dcdcdc;
  213. text-align: center;
  214. ul {
  215. font-size: .24rem;
  216. color: #7d7d7d;
  217. margin-bottom: -1px;
  218. font-weight: 900;
  219. display: block;
  220. height: auto;
  221. li {
  222. display: inline-block;
  223. padding: .35rem .05rem;
  224. margin: 0 .4rem;
  225. cursor: pointer;
  226. }
  227. }
  228. }
  229. .news-tit-text {
  230. margin: 10px 0;
  231. font-weight: 500;
  232. }
  233. }
  234. .strategy {
  235. .bg-box .bg.bg-top {
  236. width: 7.5rem;
  237. height: 7.25rem;
  238. background: url(/src/assets/image/strategy_top_pic.jpg);
  239. background-repeat: no-repeat;
  240. background-position: 50%;
  241. background-size: 7.5rem 7.25rem;
  242. }
  243. }
  244. .sub-news-nav-con {
  245. margin: 0.08rem auto 0;
  246. .news-nav-con-strategy {
  247. .left {
  248. transform: scale(0.8);
  249. }
  250. .right {
  251. transform: scale(0.8);
  252. }
  253. }
  254. .strategy-nav {
  255. height: 0.38rem;
  256. line-height: 0.38rem;
  257. }
  258. ul {
  259. font-size: 0.18rem;
  260. li.active {
  261. border-bottom: 0.02rem solid #78b6c8;
  262. }
  263. }
  264. }
  265. .article-box {
  266. margin: .5rem auto 0;
  267. width: 7rem;
  268. .article-tit {
  269. text-align: center;
  270. color: #646464;
  271. font-size: .22rem;
  272. padding-bottom: .3rem;
  273. border-bottom: 1px solid #dcdcdc;
  274. h1 {
  275. margin: 0 auto;
  276. width: 6rem;
  277. font-size: .32rem;
  278. font-weight: 900;
  279. margin-bottom: .1rem;
  280. }
  281. }
  282. article {
  283. padding: .5rem .5rem .6rem;
  284. line-height: 1.8;
  285. }
  286. }
  287. .affix .ant-affix {
  288. z-index: 2;
  289. }
  290. .news-con {
  291. margin-top: .2rem;
  292. margin-bottom: 2rem;
  293. .ant-list-item {
  294. cursor: pointer;
  295. }
  296. }