common.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. html,
  2. body{
  3. max-width: 100%;
  4. overflow-x: hidden;
  5. }
  6. body{
  7. font-size: 14px;
  8. }
  9. a{
  10. text-decoration: none;
  11. }
  12. .not-roll{
  13. overflow: hidden;
  14. }
  15. .wrap{
  16. width: 1200px;
  17. margin: 0 auto;
  18. }
  19. /* 头部 */
  20. .header-img img{
  21. display: block;
  22. width: 100%;
  23. }
  24. /* 导航 */
  25. .header-nav{
  26. background-color: #C90303;
  27. }
  28. .header-nav ul{
  29. display: flex;
  30. justify-content: space-around;
  31. }
  32. .header-nav ul li{
  33. flex: 1;
  34. position: relative;
  35. }
  36. .header-nav li a{
  37. display: block;
  38. color: #fff;
  39. font-weight: bold;
  40. text-align: center;
  41. height: 40px;
  42. line-height: 40px;
  43. }
  44. .header-nav li:hover>a{
  45. color: #ffff00;
  46. background-color: #FF1111;
  47. }
  48. .header-nav>ul>li>a>span{
  49. display: none;
  50. }
  51. /* 二级导航 */
  52. .nav-secondLevel{
  53. position: absolute;
  54. top: 50px;
  55. left: -20px;
  56. width: calc(100% + 40px);
  57. z-index: 100;
  58. background-color: #C90303;
  59. flex-wrap: wrap;
  60. }
  61. .header-nav .nav-secondLevel li{
  62. width: 100%;
  63. flex: auto;
  64. }
  65. .header-nav .nav-secondLevel li a{
  66. height: 40px;
  67. line-height: 40px;
  68. border-bottom: 1px solid #D20000;
  69. }
  70. /* 三级导航 */
  71. .nav-threeLevel{
  72. position: absolute;
  73. top: 0;
  74. left: 100%;
  75. width: 300px;
  76. display: flex;
  77. flex-wrap: wrap;
  78. background-color: #FF1111;
  79. }
  80. .header-nav .nav-threeLevel li{
  81. width: 50%;
  82. flex: auto;
  83. }
  84. .header-nav .nav-threeLevel li a:hover{
  85. background-color: #FF4A4A;
  86. }
  87. .header-nav>ul ul{
  88. display: none;
  89. }
  90. .header-nav>ul>li:hover .nav-secondLevel,
  91. .nav-secondLevel li:hover .nav-threeLevel{
  92. display: flex;
  93. }
  94. /* 底部 */
  95. .footer-mesg{
  96. background-color: #C90303;
  97. color: #fff;
  98. text-align: center;
  99. line-height: 34px;
  100. padding: 12px 0;
  101. }
  102. .footer-mesg a{
  103. color: #fff;
  104. text-decoration: underline;
  105. }
  106. .footer-mesg span{
  107. margin: 0 8px;
  108. }
  109. /* 返回顶部 */
  110. .top{
  111. width: 50px;
  112. height: 50px;
  113. line-height: 50px;
  114. position: fixed;
  115. bottom: 20px;
  116. right: 20px;
  117. background: rgba(0,0,0,0.28);
  118. border-radius: 5px;
  119. z-index: 100;
  120. text-align: center;
  121. display: none;
  122. }
  123. .top img{
  124. width: 65%;
  125. vertical-align: middle;
  126. }
  127. /* 轮播 */
  128. .swiper-pagination-bullet{
  129. width: 10px;
  130. height: 10px;
  131. background-color: #fff;
  132. opacity: 1;
  133. }
  134. .swiper-button-next,
  135. .swiper-button-prev{
  136. opacity: 0;
  137. }
  138. .swiper-container:hover .swiper-button-next,
  139. .swiper-container:hover .swiper-button-prev{
  140. opacity: 1;
  141. }
  142. /* 飘窗 */
  143. .close_btn:hover{
  144. cursor: pointer;
  145. color: #ff0000;
  146. }
  147. /* 列表页 */
  148. .content-list-wrap{
  149. margin-bottom: 10px;
  150. }
  151. .content-part{
  152. display: flex;
  153. justify-content: space-between;
  154. }
  155. .content-left{
  156. width: 200px;
  157. background-color: #F1F2F2;
  158. margin-right: 10px;
  159. margin-bottom: 10px;
  160. }
  161. .content-left h2{
  162. text-align: center;
  163. }
  164. .content-left h2{
  165. color: #fff;
  166. background-color: #C90303;
  167. height: 40px;
  168. line-height: 40px;
  169. font-size: 14px;
  170. padding: 0 5px;
  171. }
  172. .content-left h2 a{
  173. color: #fff;
  174. float: right;
  175. font-size: 13px;
  176. }
  177. .content-left-list{
  178. padding: 0 15px;
  179. }
  180. .content-left-list li a{
  181. box-sizing: border-box;
  182. display: block;
  183. line-height: 40px;
  184. border-bottom: 1px solid #ccc;
  185. font-weight: bold;
  186. text-align: center;
  187. }
  188. .content-left-current a{
  189. color: #FF1111;
  190. }
  191. .content-right{
  192. flex: auto;
  193. width: 80%;
  194. }
  195. /* 面包屑 */
  196. .crumbs{
  197. width: 100%;
  198. line-height: 36px;
  199. padding: 0 25px;
  200. }
  201. .crumbs a:hover {
  202. color: #ffff00;
  203. }
  204. /* 列表 */
  205. .list-wrap{
  206. margin-top: 10px;
  207. }
  208. .list-wrap li{
  209. padding: 0 35px;
  210. }
  211. .list-wrap li>a{
  212. display: block;
  213. line-height: 42px;
  214. line-height: 42px;
  215. overflow: hidden;
  216. border-bottom: 1px dashed #ccc;
  217. }
  218. .list-wrap .list-title{
  219. width: calc(100% - 160px);
  220. float: left;
  221. overflow: hidden;
  222. text-overflow: ellipsis;
  223. white-space: nowrap;
  224. }
  225. .list-wrap .list-time{
  226. float: right;
  227. }
  228. /* 分页 */
  229. .list-page{
  230. padding: 20px 0;
  231. text-align: center;
  232. }
  233. /* 正文页 */
  234. .article-wrap{
  235. padding: 0 20px 20px;
  236. }
  237. .article-title{
  238. text-align: center;
  239. font-size: 24px;
  240. line-height: 50px;
  241. margin: 30px 0;
  242. }
  243. .article-mesg{
  244. color: #999;
  245. text-align: center;
  246. }
  247. .article-mesg p{
  248. display: inline-block;
  249. }
  250. .article-mesg span{
  251. margin-right: 30px;
  252. }
  253. .article-main{
  254. font-size: 16px;
  255. margin-top: 35px;
  256. }
  257. .article-main p{
  258. line-height: 36px;
  259. word-break: break-all;
  260. }
  261. .article-main img{
  262. width: auto !important;
  263. height: auto !important;
  264. max-width: 100%;
  265. margin: 10px auto;
  266. cursor: default;
  267. }
  268. /* 目录页 */
  269. .catalog {
  270. padding: 16px 0 16px;
  271. }
  272. .catalog-item {
  273. margin-bottom: 20px;
  274. }
  275. .catalog-title {
  276. font-size: 14px;
  277. border-bottom: 1px solid #C90303;
  278. line-height: 34px;
  279. margin: 0 25px;
  280. }
  281. .catalog-title a {
  282. font-weight: normal;
  283. float: right;
  284. }
  285. .catalog-item .content-wrap-list {
  286. padding: 0;
  287. }
  288. .content-img-list {
  289. display: flex;
  290. margin: 12px 25px 0;
  291. }
  292. .content-img-list li {
  293. box-sizing: border-box;
  294. width: 33.3%;
  295. }
  296. .content-img-list li a{
  297. box-sizing: border-box;
  298. display: block;
  299. margin: 0 12px;
  300. }
  301. .content-img-list li img {
  302. width: 100%;
  303. }
  304. .content-img-list-imgWrap {
  305. border: 1px solid #CCCCCC;
  306. padding: 6px;
  307. background-color: #F7F7F7;
  308. overflow: hidden;
  309. }
  310. .content-img-list li img {
  311. transition: all .3s;
  312. }
  313. .content-img-list li:hover img {
  314. transform: scale(1.3);
  315. }
  316. .content-img-list li p {
  317. text-align: center;
  318. line-height: 26px;
  319. margin: 10px 0;
  320. display: -webkit-box;
  321. -webkit-box-orient: vertical;
  322. -webkit-line-clamp: 2;
  323. overflow: hidden;
  324. }
  325. .catalog-item .list-wrap{
  326. margin: 0;
  327. }
  328. /* 图文列表 */
  329. .list-pic .content-img-list {
  330. margin-top: 25px;
  331. flex-wrap: wrap;
  332. }
  333. .list-pic .content-img-list li {
  334. width: 25%;
  335. margin-bottom: 15px;
  336. }
  337. .list-pic .content-img-list-imgWrap {
  338. padding: 10px;
  339. }
  340. .no-data {
  341. text-align: center;
  342. margin: 100px 0px;
  343. }
  344. .qrcode-warp {
  345. text-align: center;
  346. font-size: 14px;
  347. margin: 20px auto;
  348. }
  349. .qrcode-warp canvas {
  350. max-width: 128px;
  351. max-height: 128px;
  352. }
  353. .qrcode-warp-desc {
  354. margin-top: 5px;
  355. }
  356. .sidebar{
  357. position: fixed;
  358. right: 0;
  359. top: 50%;
  360. transform: translateY(-50%);
  361. z-index: 10;
  362. }
  363. .sidebar-left {
  364. left: 0;
  365. right: auto;
  366. }
  367. .sidebar img{
  368. display: block;
  369. }
  370. .sidebar-close{
  371. float: right;
  372. padding: 5px 10px;
  373. }
  374. /* 全部页面变灰 */
  375. /* html {
  376. -webkit-filter: grayscale(100%);
  377. -moz-filter: grayscale(100%);
  378. -ms-filter: grayscale(100%);
  379. -o-filter: grayscale(100%);
  380. filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
  381. _filter:none;
  382. } */
  383. /* 旧二级学院头部:官方校徽 + 规范学院名称 */
  384. .header-img.legacy-college-brand{
  385. min-height: 112px;
  386. display: flex;
  387. align-items: center;
  388. }
  389. .legacy-college-brand-link{
  390. display: flex;
  391. align-items: center;
  392. gap: 18px;
  393. color: #8C0000;
  394. }
  395. .legacy-college-brand-link:hover{
  396. color: #8C0000;
  397. }
  398. .legacy-college-brand-logo{
  399. width: auto !important;
  400. height: 72px;
  401. object-fit: contain;
  402. }
  403. .legacy-college-brand-copy{
  404. display: flex;
  405. flex-direction: column;
  406. gap: 7px;
  407. padding-left: 18px;
  408. border-left: 1px solid rgba(140,0,0,.22);
  409. line-height: 1.12;
  410. }
  411. .legacy-college-brand-copy strong{
  412. font-family: "Noto Serif SC", "STZhongsong", "Songti SC", serif;
  413. font-size: 30px;
  414. font-weight: 700;
  415. letter-spacing: .08em;
  416. white-space: nowrap;
  417. }
  418. .legacy-college-brand-copy em{
  419. color: #666;
  420. font-family: Arial, sans-serif;
  421. font-size: 10px;
  422. font-style: normal;
  423. font-weight: 700;
  424. letter-spacing: .16em;
  425. white-space: nowrap;
  426. }
  427. @media (max-width: 680px){
  428. .header-img.legacy-college-brand{min-height:86px}
  429. .legacy-college-brand-link{gap:10px}
  430. .legacy-college-brand-logo{height:50px}
  431. .legacy-college-brand-copy{padding-left:10px;gap:4px}
  432. .legacy-college-brand-copy strong{font-size:21px;letter-spacing:.03em}
  433. .legacy-college-brand-copy em{font-size:8px;letter-spacing:.08em}
  434. }
  435. /* 历史文章与组件中可能存在空图片占位,统一隐藏,避免破图图标和空白占位。 */
  436. img[src=""],
  437. img[src="#"],
  438. img:not([src]) {
  439. display: none !important;
  440. }
  441. /* Word 导入及正文图片居中样式 */
  442. .image-style-align-center {
  443. display: block !important;
  444. margin-left: auto !important;
  445. margin-right: auto !important;
  446. }
  447. figure.image.image-style-align-center {
  448. text-align: center;
  449. }
  450. figure.image.image-style-align-center > img,
  451. figure.image.image-style-align-center img {
  452. display: block !important;
  453. margin-left: auto !important;
  454. margin-right: auto !important;
  455. }
  456. /* 富文本上传 PDF:所有站点正文容器统一按内容区全宽显示 */
  457. figure.space-editor-pdf-viewer,
  458. figure[data-space-pdf="true"] {
  459. display: block !important;
  460. width: 100% !important;
  461. max-width: 100% !important;
  462. margin: 24px 0 !important;
  463. float: none !important;
  464. text-indent: 0 !important;
  465. }
  466. iframe.space-editor-pdf-frame {
  467. display: block !important;
  468. width: 100% !important;
  469. max-width: 100% !important;
  470. height: 72vh !important;
  471. min-height: 520px;
  472. max-height: 760px;
  473. border: 1px solid #dcdfe6;
  474. border-radius: 4px;
  475. background: #f7f8fa;
  476. box-sizing: border-box;
  477. }
  478. @media (max-width: 768px) {
  479. iframe.space-editor-pdf-frame {
  480. height: 60vh !important;
  481. min-height: 420px;
  482. max-height: 520px;
  483. }
  484. }