tsg2.css 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677
  1. body {
  2. color: #000;
  3. font-size: 16px;
  4. }
  5. a {
  6. color: #000;
  7. }
  8. a:hover {
  9. color: #ff1111;
  10. text-decoration: none;
  11. }
  12. .wrap-larger {
  13. width: 1320px;
  14. margin: 0 auto;
  15. }
  16. .header-top {
  17. width: 100%;
  18. height: 30px;
  19. line-height: 30px;
  20. position: relative;
  21. background-color: #d7cfcf;
  22. border: 1px solid #bbb;
  23. border-left: 0;
  24. border-right: 0;
  25. padding: 0 15px;
  26. color: #fff;
  27. }
  28. .header-top .wrap {
  29. position: relative;
  30. }
  31. .header-img {
  32. position: relative;
  33. }
  34. .header-img img {
  35. width: auto;
  36. height: 90px;
  37. }
  38. .header-right {
  39. float: right;
  40. }
  41. .header-right a:hover{
  42. color: #ac3b3b;
  43. }
  44. /* 导航 */
  45. .header{
  46. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  47. }
  48. .header>.wrap{
  49. position: relative;
  50. }
  51. .header-nav {
  52. position: absolute;
  53. right: 0;
  54. top: 50%;
  55. transform: translateY(-50%);
  56. background-color: transparent;
  57. z-index: 101;
  58. }
  59. .header-nav {
  60. width: 50%;
  61. }
  62. .header-nav ul li {
  63. flex: auto;
  64. }
  65. .header-nav ul li:last-child a{
  66. height: 44px;
  67. line-height: 44px;
  68. background-color: #ac3b3b;
  69. color: #fff;
  70. margin-top: 23px;
  71. margin-left: 20px;
  72. border-radius: 4px;
  73. }
  74. .header-nav ul li:last-child a:hover{
  75. background-color: #C90303;
  76. }
  77. .nav-secondLevel {
  78. top: 90px;
  79. }
  80. .header-nav .nav-secondLevel li {
  81. width: 33.33%;
  82. margin-top: 10px;
  83. }
  84. .header-nav li a {
  85. box-sizing: content-box;
  86. position: relative;
  87. line-height: 90px;
  88. height: 90px;
  89. color: #000;
  90. }
  91. .header-nav li:hover>a {
  92. background-color: #ac3b3b;
  93. color: #fff;
  94. }
  95. .header-nav .nav-secondLevel li a{
  96. background-image: none;
  97. padding-bottom: 0;
  98. text-align: left;
  99. }
  100. .header-nav .nav-secondLevel li a:hover{
  101. background-color: rgba(233, 217, 217, 1) !important;
  102. }
  103. .header-nav>ul>li:hover .nav-secondLevel {
  104. width: 2400px;
  105. position: fixed;
  106. left: -1200px;
  107. background-color: #e8e8e8;
  108. min-height: 150px;
  109. padding: 10px 0 20px;
  110. }
  111. .header-nav>ul>li:hover .nav-secondLevel .wrap {
  112. background: url(../images/tsg/nav.jpg) no-repeat right bottom;
  113. background-size: 300px;
  114. }
  115. .header-nav>ul>li:hover .nav-secondLevel .nav-secondLevel-wrap {
  116. display: flex;
  117. flex-wrap: wrap;
  118. width: 700px;
  119. margin: 0 auto;
  120. }
  121. .header-nav .nav-secondLevel li a {
  122. background: transparent url(../images/tsg/icon/dot.png) no-repeat 8px center;
  123. background-size: 6px;
  124. border: 0;
  125. color: #ac3b3b;
  126. padding: 0 20px;
  127. font-weight: normal;
  128. }
  129. .header-nav .nav-secondLevel li:last-child a {
  130. margin: 0;
  131. background-color: transparent;
  132. line-height: 40px;
  133. color: #ac3b3b;
  134. }
  135. .header-nav .nav-secondLevel li:last-child:hover a {
  136. background-color: transparent;
  137. }
  138. /* 三级 */
  139. .header-nav .nav-threeLevel {
  140. position: relative;
  141. top: 0;
  142. left: 0;
  143. width: 100%;
  144. background-color: transparent;
  145. font-size: 14px;
  146. display: block !important;
  147. }
  148. .header-nav .nav-threeLevel li {
  149. width: 100% !important;
  150. margin-top: 0 !important;
  151. }
  152. .header-nav .nav-threeLevel li a {
  153. background: none !important;
  154. color: #000 !important;
  155. }
  156. .header-nav .nav-secondLevel li a span {
  157. display: none;
  158. }
  159. /* 主体 */
  160. .content {
  161. /* margin-top: 30px; */
  162. }
  163. .main-container {
  164. display: flex;
  165. max-width: 1200px;
  166. margin: 30px auto 10px;
  167. gap: 20px;
  168. }
  169. .news-section {
  170. flex: 1;
  171. width: 50%;
  172. }
  173. .news-content {
  174. width: 100%;
  175. margin-top: 6px;
  176. }
  177. .news-content h2 {
  178. font-size: 20px;
  179. margin-bottom: 15px;
  180. padding-bottom: 10px;
  181. border-bottom: 1px solid #a63334;
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. }
  186. .news-content h2 span {
  187. color: #a63334;
  188. font-weight: normal;
  189. }
  190. .news-content h2 a {
  191. font-size: 14px;
  192. color: #666;
  193. text-decoration: none;
  194. }
  195. .news-inner {
  196. display: flex;
  197. justify-content: space-between;
  198. min-height: 300px;
  199. }
  200. .news-carousel {
  201. flex: 0 0 45%;
  202. }
  203. .news-list {
  204. width: 55%;
  205. padding-inline-start: 10px;
  206. list-style: none;
  207. }
  208. .swiper-container-horizontal>.swiper-pagination-bullets{
  209. bottom: 0;
  210. }
  211. /* .carousel-item {
  212. position: absolute;
  213. width: 100%;
  214. height: auto;
  215. opacity: 0;
  216. transition: opacity 0.5s;
  217. }
  218. .carousel-item.active {
  219. opacity: 1;
  220. position: relative;
  221. } */
  222. .carousel-item a {
  223. text-decoration: none;
  224. color: #333;
  225. }
  226. .news-image {
  227. margin-bottom: 15px;
  228. }
  229. .news-image img {
  230. width: 100%;
  231. height: 150px;
  232. object-fit: cover;
  233. }
  234. .news-info h3 {
  235. font-size: 18px;
  236. margin-bottom: 10px;
  237. width: 100%;
  238. color: black;
  239. white-space: nowrap; /* 强制单行显示 */
  240. text-overflow: ellipsis; /* 超出部分省略号表示 */
  241. overflow: hidden; /* 超出部分隐藏 */
  242. }
  243. .news-meta {
  244. color: #334397;
  245. font-weight: bold;
  246. font-size: 14px;
  247. margin-bottom: 10px;
  248. }
  249. .news-desc {
  250. color: #666;
  251. font-size: 14px;
  252. line-height: 1.6;
  253. display: -webkit-box;
  254. -webkit-line-clamp: 3;
  255. -webkit-box-orient: vertical;
  256. overflow: hidden;
  257. }
  258. .news-list li:first-child{
  259. margin-top: 12px;
  260. }
  261. .news-list li {
  262. margin-bottom: 12px;
  263. padding-bottom: 12px;
  264. border-bottom: 1px solid #eee;
  265. position: relative;
  266. text-indent: 12px;
  267. }
  268. .news-list li a {
  269. text-decoration: none;
  270. color: #333;
  271. display: flex;
  272. justify-content: space-between;
  273. }
  274. .news-list li::before{
  275. content: "";
  276. display: block;
  277. width: 4px;
  278. height: 4px;
  279. background-color: #334397;
  280. position: absolute;
  281. top: 30%;
  282. left: 0;
  283. /* transform: translateY(-100%) */
  284. }
  285. .news-list li a:hover {
  286. color: #334397;
  287. }
  288. .news-title {
  289. width: 65%;
  290. overflow: hidden;
  291. text-overflow: ellipsis;
  292. white-space: nowrap
  293. }
  294. .news-date {
  295. color: #999;
  296. font-size: 14px;
  297. }
  298. .banner-section {
  299. flex: 1;
  300. height: 385px;
  301. overflow: hidden;
  302. }
  303. .banner-section img {
  304. width: 100%;
  305. height: 100%;
  306. object-fit: cover;
  307. }
  308. .banner {
  309. position: relative;
  310. }
  311. .banner
  312. {
  313. width: 100%;
  314. }
  315. .banner img {
  316. height: 350px;
  317. object-fit: cover;
  318. }
  319. /* 馆藏资源搜索组件 */
  320. :root {
  321. --theme-color-1: #b4190f;
  322. --theme-color-2: #343977;
  323. --theme-color-3: #6c9350;
  324. --theme-color-4: #de882f;
  325. }
  326. body[data-menu-type="1"] {
  327. --current-theme-color: var(--theme-color-1);
  328. }
  329. body[data-menu-type="2"] {
  330. --current-theme-color: var(--theme-color-2);
  331. }
  332. body[data-menu-type="3"] {
  333. --current-theme-color: var(--theme-color-3);
  334. }
  335. body[data-menu-type="4"] {
  336. --current-theme-color: var(--theme-color-4);
  337. }
  338. .search-container {
  339. max-width: 1200px;
  340. width: 100%;
  341. position: relative;
  342. margin: 0 auto;
  343. box-sizing: border-box;
  344. }
  345. .search-panel {
  346. top: 100%;
  347. left: 0;
  348. width: 100%;
  349. background: #fff;
  350. display: none;
  351. box-sizing: border-box;
  352. border-radius: 0 0 10px 10px;
  353. overflow: hidden;
  354. }
  355. .left-menu {
  356. width: 200px;
  357. flex: 0 0 200px;
  358. text-align: center;
  359. background: #f8f8f8;
  360. }
  361. .left-menu ul {
  362. list-style: none;
  363. padding: 0;
  364. margin: 0;
  365. }
  366. .left-menu li {
  367. padding: 8px 20px;
  368. cursor: pointer;
  369. color: #333;
  370. }
  371. .left-menu li.active {
  372. color: #fff;
  373. background-color: var(--current-theme-color);
  374. }
  375. .right-search {
  376. flex: 3;
  377. min-width: 0;
  378. padding: 20px;
  379. background: var(--current-theme-color);
  380. display: flex;
  381. flex-direction: column;
  382. justify-content: flex-start;
  383. }
  384. .search-title {
  385. color: #fff;
  386. font-size: 20px;
  387. font-weight: bold;
  388. }
  389. .search-box {
  390. display: flex;
  391. margin: 15px 0;
  392. }
  393. .search-tip {
  394. color: #fff;
  395. font-size: 14px;
  396. font-weight: 400;
  397. }
  398. .search-input {
  399. flex: 1;
  400. min-width: 0;
  401. padding: 13px 15px;
  402. border: none;
  403. border-radius: 4px 0 0 4px;
  404. font-size: 16px;
  405. }
  406. .search-input:focus {
  407. outline: none;
  408. }
  409. .search-btn {
  410. background: rgba(58, 58, 58, .5);
  411. color: #fff;
  412. border: none;
  413. padding: 0 25px;
  414. cursor: pointer;
  415. border-radius: 0 4px 4px 0;
  416. font-size: 16px;
  417. }
  418. .search-trigger-area {
  419. position: relative;
  420. display: flex;
  421. align-items: center;
  422. justify-content: space-between;
  423. border-radius: 10px;
  424. overflow: hidden;
  425. background: #fff;
  426. box-sizing: border-box;
  427. height: 50px;
  428. }
  429. .search-trigger {
  430. width: 200px;
  431. flex: 0 0 200px;
  432. background: #a63334;
  433. color: #fff;
  434. padding: 10px 15px;
  435. font-size: 18px;
  436. height: 100%;
  437. display: flex;
  438. align-items: center;
  439. justify-content: center;
  440. box-sizing: border-box;
  441. cursor: pointer;
  442. }
  443. .icon-search {
  444. display: inline-block;
  445. width: 20px;
  446. height: 20px;
  447. background: url(../images/icon/search.png) no-repeat;
  448. background-size: 100%;
  449. margin-right: 8px;
  450. filter: brightness(0) invert(1);
  451. }
  452. .icon-arrow {
  453. display: inline-block;
  454. margin-left: 8px;
  455. width: 8px;
  456. height: 8px;
  457. border-right: 2px solid #fff;
  458. border-bottom: 2px solid #fff;
  459. transform: rotate(45deg);
  460. transition: transform .3s;
  461. }
  462. .search-panel-visible .icon-arrow {
  463. transform: rotate(-135deg);
  464. }
  465. .search-tabs {
  466. height: 100%;
  467. flex: 3;
  468. min-width: 0;
  469. background: #ebebeb;
  470. border-radius: 0 10px 0 0;
  471. overflow-x: auto;
  472. }
  473. .search-tabs ul {
  474. height: 100%;
  475. display: flex;
  476. align-items: center;
  477. list-style: none;
  478. margin: 0;
  479. padding: 0;
  480. }
  481. .search-tabs li {
  482. padding: 12px 25px;
  483. cursor: pointer;
  484. color: #000;
  485. position: relative;
  486. transition: all .3s;
  487. height: 100%;
  488. box-sizing: border-box;
  489. display: flex;
  490. align-items: center;
  491. white-space: nowrap;
  492. }
  493. .search-tabs li.active {
  494. color: var(--current-theme-color);
  495. }
  496. .search-tabs li.active::after {
  497. content: '';
  498. position: absolute;
  499. bottom: 0;
  500. left: 50%;
  501. transform: translateX(-50%) rotate(180deg);
  502. width: 0;
  503. height: 0;
  504. border-left: 6px solid transparent;
  505. border-right: 6px solid transparent;
  506. border-top: 8px solid var(--current-theme-color);
  507. background: none;
  508. opacity: 0;
  509. transition: opacity .3s;
  510. }
  511. .search-panel-visible .search-tabs li.active::after {
  512. opacity: 1;
  513. }
  514. .search-tabs li:hover {
  515. color: var(--current-theme-color);
  516. }
  517. /* 资源类型标签组随左侧检索入口互斥显示 */
  518. body[data-menu-type="1"] .search-tabs .tabs-tsg {
  519. display: flex !important;
  520. }
  521. body[data-menu-type="1"] .search-tabs .tabs-duxiu,
  522. body[data-menu-type="1"] .search-tabs .tabs-zhiwang,
  523. body[data-menu-type="2"] .search-tabs ul,
  524. body[data-menu-type="4"] .search-tabs ul {
  525. display: none !important;
  526. }
  527. body[data-menu-type="3"] .search-tabs .tabs-duxiu {
  528. display: flex !important;
  529. }
  530. body[data-menu-type="3"] .search-tabs .tabs-tsg,
  531. body[data-menu-type="3"] .search-tabs .tabs-zhiwang {
  532. display: none !important;
  533. }
  534. body[data-menu-type="5"] .search-tabs .tabs-zhiwang {
  535. display: flex !important;
  536. }
  537. body[data-menu-type="5"] .search-tabs .tabs-tsg,
  538. body[data-menu-type="5"] .search-tabs .tabs-duxiu {
  539. display: none !important;
  540. }
  541. .banner{
  542. position: relative;
  543. }
  544. .banner,
  545. .banner img{
  546. width: 100%;
  547. }
  548. .banner img {
  549. height: 350px;
  550. object-fit: cover;
  551. }
  552. /* 搜索 */
  553. .search {
  554. position: absolute;
  555. top: 0;
  556. bottom: 0;
  557. left: 0;
  558. right: 0;
  559. margin: auto;
  560. z-index: 100;
  561. background-color: #ac3b3b;
  562. height: 60%;
  563. padding: 0 50px;
  564. border: 1px solid #bbb;
  565. }
  566. .search-wrap {
  567. width: 100%;
  568. height: 56px;
  569. display: flex;
  570. margin: 60px 0 40px;
  571. }
  572. .search-wrap-item {
  573. border-radius: 6px;
  574. border: 0;
  575. outline: none;
  576. font-size: 16px;
  577. }
  578. .search-wrap select {
  579. padding: 0 12px;
  580. width: 140px;
  581. cursor: pointer;
  582. }
  583. .search-wrap input {
  584. margin: 0 20px;
  585. padding: 0 15px;
  586. flex: auto;
  587. }
  588. .search-wrap button {
  589. padding: 0 45px;
  590. background: #fff url(../images/icon/search.png) no-repeat 16px center;
  591. background-size: 22px;
  592. cursor: pointer;
  593. }
  594. .search-wrap button:hover {
  595. background-color: rgba(255, 255, 255, .9);
  596. }
  597. .search-wrap button:active {
  598. background-color: rgba(255, 255, 255, .7);
  599. }
  600. .search-ranking {
  601. color: #fff;
  602. display: flex;
  603. line-height: 28px;
  604. }
  605. .search-ranking ul {
  606. margin-left: 10px;
  607. flex: 1;
  608. }
  609. .search-ranking ul li {
  610. display: inline-block;
  611. margin-right: 25px;
  612. }
  613. .search-ranking a {
  614. color: #fff;
  615. text-decoration: underline;
  616. }
  617. .search-ranking a:hover {
  618. color: #ffff00;
  619. }
  620. /* 轮播 */
  621. .swiper-pagination-bullet-active {
  622. color: #fff;
  623. background: rgba(174, 28, 3, 1);
  624. }
  625. .swiper-slide {
  626. position: relative;
  627. }
  628. .swiper-slide img {
  629. display: block;
  630. width: 100%;
  631. }
  632. .swiper-slide .swiper-title {
  633. height: 26px;
  634. line-height: 26px;
  635. padding: 0 10px;
  636. box-sizing: border-box;
  637. width: 100%;
  638. overflow: hidden;
  639. text-overflow: ellipsis;
  640. white-space: nowrap;
  641. text-align: center;
  642. background-color: #fff;
  643. margin-top: 6px;
  644. }
  645. /* 宫格 */
  646. .content-grid {
  647. display: flex;
  648. flex-wrap: wrap;
  649. border: 1px solid #ccc;
  650. border-left: 0;
  651. border-bottom: 0;
  652. margin: 40px auto;
  653. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  654. }
  655. .content-grid a {
  656. display: block;
  657. width: calc(100% / 6);
  658. text-align: center;
  659. border-left: 1px solid #ccc;
  660. border-bottom: 1px solid #ccc;
  661. padding: 30px 0;
  662. }
  663. .content-grid dt img {
  664. width: 60px;
  665. transition: all .2s;
  666. }
  667. .content-grid a:hover img {
  668. transform:scale(1.2);
  669. }
  670. .content-grid dd {
  671. margin-top: 20px;
  672. }
  673. /* 容器样式调整 */
  674. .recommend-container {
  675. display: flex;
  676. gap: 10px;
  677. flex-wrap: wrap;
  678. justify-content: space-between;
  679. }
  680. .recommend-box {
  681. flex: 1;
  682. min-width: 300px;
  683. max-width: 380px;
  684. padding: 20px;
  685. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  686. }
  687. /* 为每个区块设置不同的背景色 */
  688. .recommend-box:nth-child(1) {
  689. background: #fff3d7;
  690. }
  691. .recommend-box:nth-child(2) {
  692. background: #e9f0fe;
  693. }
  694. .recommend-box:nth-child(3) {
  695. background: #ffffff;
  696. }
  697. /* 标题栏样式 */
  698. .box-header {
  699. display: flex;
  700. justify-content: space-between;
  701. align-items: center;
  702. margin-bottom: 15px;
  703. }
  704. .box-header h3 {
  705. margin: 0;
  706. font-size: 20px;
  707. color: #333;
  708. font-weight: normal;
  709. position: relative;
  710. padding-left: 12px;
  711. }
  712. .box-header h4 {
  713. margin: 0;
  714. font-size: 22px;
  715. color: #333;
  716. font-weight: normal;
  717. position: relative;
  718. font-weight: bold;
  719. letter-spacing: 3px;
  720. }
  721. .box-header h4 span {
  722. color: #b6000c;
  723. }
  724. .box-header h3:before {
  725. content: '';
  726. position: absolute;
  727. left: 0;
  728. top: 50%;
  729. transform: translateY(-50%);
  730. width: 4px;
  731. height: 16px;
  732. background: #ac3b3b;
  733. }
  734. .more {
  735. color: #999;
  736. text-decoration: none;
  737. font-size: 14px;
  738. }
  739. /* 好书推荐样式 */
  740. .book-item {
  741. height: 47px;
  742. /* padding: 12px 0; */
  743. border-bottom: 1px solid #eeeeee;
  744. }
  745. .book-item a {
  746. height: 100%;
  747. line-height: 47px;
  748. text-decoration: none;
  749. display: block;
  750. color: #333;
  751. font-size: 16px;
  752. }
  753. .book-item a:hover {
  754. /* color: var(--current-theme-color); */
  755. }
  756. .book-item .book-title {
  757. font-size: 14px;
  758. color: #333;
  759. margin-bottom: 4px;
  760. }
  761. .book-item .book-author {
  762. font-size: 12px;
  763. color: #999;
  764. }
  765. /* 借阅排行样式 */
  766. .rank-item {
  767. display: flex;
  768. align-items: center;
  769. height: 47px;
  770. border-bottom: 1px solid #eeeeee;
  771. }
  772. .rank-num {
  773. min-width: 20px;
  774. height: 20px;
  775. line-height: 20px;
  776. text-align: center;
  777. margin-right: 10px;
  778. font-size: 14px;
  779. font-weight: normal;
  780. }
  781. .rank-item a {
  782. height: 100%;
  783. line-height: 47px;
  784. flex: 1;
  785. font-size: 16px;
  786. color: #333;
  787. text-decoration: none;
  788. }
  789. .recommend-box a:hover{
  790. color: #000 !important;
  791. }
  792. .rank-item a,.book-list a {
  793. white-space: nowrap;
  794. overflow: hidden;
  795. text-overflow: ellipsis;
  796. display: inline-block;
  797. }
  798. .borrow-count {
  799. font-size: 14px;
  800. color: #666;
  801. margin-left: 10px;
  802. }
  803. .rank-1 {
  804. background: url(/main/dist/websites/images/tsg/icon_rank1.png) no-repeat;
  805. background-size: 100% 100%;
  806. color: #fff;
  807. border-radius: 4px;
  808. font-size: 0px;
  809. }
  810. .rank-2 {
  811. background: url(/main/dist/websites/images/tsg/icon_rank2.png) no-repeat;
  812. background-size: 100% 100%;
  813. color: #fff;
  814. border-radius: 4px;
  815. font-size: 0px;
  816. }
  817. .rank-3 {
  818. background: url(/main/dist/websites/images/tsg/icon_rank3.png) no-repeat;
  819. background-size: 100% 100%;
  820. color: #fff;
  821. border-radius: 4px;
  822. font-size: 0px;
  823. }
  824. .rank-info .book-title {
  825. font-size: 14px;
  826. color: #333;
  827. margin-bottom: 4px;
  828. }
  829. .borrow-count {
  830. font-size: 16px;
  831. color: #ac3b3b;
  832. }
  833. /* 每日一书样式 */
  834. /* 链接样式统一处理 */
  835. .recommend-box a {
  836. text-decoration: none;
  837. color: #333;
  838. }
  839. .recommend-box a:hover {
  840. color: var(--current-theme-color);
  841. }
  842. /* 排行榜链接样式 */
  843. .rank-info a {
  844. display: block;
  845. }
  846. .daily-book {
  847. padding-right: 0;
  848. padding-bottom: 0;
  849. }
  850. /* 每日一书链接样式 */
  851. .daily-book a {
  852. display: flex;
  853. flex-direction: column;
  854. height: 100%;
  855. /* justify-content: flex-end; */
  856. color: #fff;
  857. }
  858. .daily-book a p {
  859. margin: 10px 0;
  860. font-size: 16px;
  861. font-weight: normal;
  862. padding-left: 10px;
  863. }
  864. .daily-book a:hover p {
  865. color: #fff;
  866. }
  867. .daily-content {
  868. height: calc(100% - 45px);
  869. display: flex;
  870. }
  871. .book-cover {
  872. height: 100%;
  873. }
  874. .book-info {
  875. display: flex;
  876. height: 355px;
  877. flex: 1;
  878. /* 添加最大宽度限制 */
  879. max-width: calc(100% - 120px);
  880. background-color: #ac3b3b;
  881. }
  882. .book-image {
  883. width: 100%;
  884. height: 60%;
  885. overflow: hidden;
  886. /* 防止图片溢出 */
  887. }
  888. .book-image img {
  889. width: 100%;
  890. height: 100%;
  891. object-fit: cover;
  892. /* 确保图片填充整个容器且不变形 */
  893. }
  894. .book-meta {
  895. font-size: 12px;
  896. color: #fff;
  897. text-align: right;
  898. padding-right: 10px;
  899. }
  900. .daily-swiper {
  901. width: 100%;
  902. height: 100%;
  903. flex: 1;
  904. overflow: hidden;
  905. }
  906. .daily-swiper .swiper-slide {
  907. height: 100%;
  908. width: 100% !important;
  909. /* 确保宽度不会超出父容器 */
  910. }
  911. .daily-swiper .swiper-slide a {
  912. height: 100%;
  913. width: 100%;
  914. display: flex;
  915. flex-direction: column;
  916. }
  917. /* 响应式调整 */
  918. @media screen and (max-width: 1200px) {
  919. .recommend-box {
  920. min-width: 280px;
  921. }
  922. }
  923. @media screen and (max-width: 768px) {
  924. .search-container{
  925. width: 95%;
  926. }
  927. .search-tabs li{
  928. padding:12px 10px;
  929. }
  930. .recommend-box {
  931. flex: 100%;
  932. max-width: 95%;
  933. margin: 0 auto;
  934. }
  935. }
  936. /* 标签页 */
  937. .content-tabs h2{
  938. text-align: center;
  939. font-size: 24px;
  940. font-weight: bold;
  941. }
  942. .content-tabs .slideTxtBox {
  943. margin: 40px 0;
  944. }
  945. .content-tabs .hd {
  946. border-bottom: 1px solid #bbb;
  947. }
  948. .content-tabs .hd li {
  949. display: inline-block;
  950. font-weight: bold;
  951. padding: 22px 28px;
  952. }
  953. .content-tabs .hd .on {
  954. background-color: #ac3b3b;
  955. }
  956. .content-tabs .hd .on a {
  957. color: #fff;
  958. }
  959. .content-tabs .bd ul{
  960. margin: 0 30px;
  961. }
  962. .content-tabs .bd li:first-child {
  963. border-bottom: 1px solid #ccc;
  964. }
  965. .content-tabs .bd a {
  966. display: block;
  967. width: 100%;
  968. height: 100%;
  969. padding: 34px 0;
  970. }
  971. .content-tabs .bd p{
  972. display: inline-block;
  973. width: calc(100% - 300px);
  974. overflow: hidden;
  975. text-overflow:ellipsis;
  976. white-space: nowrap;
  977. }
  978. .content-tabs .bd span {
  979. float: right;
  980. color: #999;
  981. }
  982. .content-tabs .bd a:hover span {
  983. color: #ff1111;
  984. }
  985. .content-tabs .bd a:hover .desc span {
  986. color: #999;
  987. }
  988. .content-tabs .desc {
  989. line-height: 26px;
  990. display: flex;
  991. justify-content: space-between;
  992. margin-top: 14px;
  993. }
  994. .content-tabs .desc p {
  995. display: -webkit-box;
  996. -webkit-box-orient: vertical;
  997. -webkit-line-clamp: 2;
  998. overflow: hidden;
  999. white-space: normal;
  1000. color: #888;
  1001. }
  1002. .content-right{
  1003. width: 70%;
  1004. }
  1005. .footer {
  1006. margin-top: 20px;
  1007. }
  1008. /* 目录页 */
  1009. .catalog{
  1010. padding: 0;
  1011. }
  1012. .catalog .content-wrap li p{
  1013. width: calc(100% - 135px);
  1014. }
  1015. /* 列表页 */
  1016. .list .content-wrap li p{
  1017. width: calc(100% - 280px);
  1018. }
  1019. .crumbs {
  1020. line-height: 40px;
  1021. overflow: hidden;
  1022. font-weight: normal;
  1023. color: #333;
  1024. margin: 45px auto 25px;
  1025. padding: 0;
  1026. }
  1027. .crumbs a {
  1028. color: #333;
  1029. float: none !important;
  1030. padding: 0 !important;
  1031. }
  1032. .crumbs a:hover {
  1033. color: #AE1C03;
  1034. }
  1035. .crumbs span{
  1036. background: none !important;
  1037. padding: 0 !important;
  1038. color: #333 !important;
  1039. }
  1040. .content-left {
  1041. width: 260px;
  1042. margin-right: 25px;
  1043. background-color: transparent;
  1044. }
  1045. .content-left,
  1046. .content-right {
  1047. box-shadow: 0 0 12px rgba(0, 0, 0, .4);
  1048. border-radius: 4px;
  1049. overflow: hidden;
  1050. margin-bottom: 10px;
  1051. }
  1052. .content-left h2,
  1053. .content-right .content-wrap-title {
  1054. background-color: transparent;
  1055. color: #ac3b3b;
  1056. font-size: 22px;
  1057. border-bottom: 1px solid #ccc;
  1058. padding: 30px 0 20px;
  1059. height: auto;
  1060. line-height: normal;
  1061. }
  1062. .content-right .content-wrap-title {
  1063. text-align: center;
  1064. border-bottom: 0;
  1065. }
  1066. .content-left-list li a {
  1067. text-align: left;
  1068. padding: 0 12px;
  1069. line-height: 56px;
  1070. }
  1071. .list-wrap li>a {
  1072. padding-left: 15px;
  1073. background: url(../images/technical/icon/dot.png) no-repeat left center;
  1074. line-height: 46px;
  1075. }
  1076. .list-wrap .list-time {
  1077. color: #999;
  1078. }
  1079. .catalog {
  1080. border: none;
  1081. }
  1082. .catalog-item {
  1083. margin-bottom: 15px;
  1084. border: 1px solid #D8E0E8;
  1085. border-top: none;
  1086. border-radius: 4px;
  1087. padding-bottom: 10px;
  1088. }
  1089. .catalog-item:last-child {
  1090. margin-bottom: 0;
  1091. }
  1092. /* 底部 */
  1093. .footer-mesg {
  1094. background-color: #ac3b3b;
  1095. background-size: cover;
  1096. }
  1097. .footer-link {
  1098. background-color: #C1D6E3;
  1099. line-height: 36px;
  1100. }
  1101. .footer-link ul {
  1102. display: inline-block;
  1103. }
  1104. .footer-link ul li {
  1105. display: inline-block;
  1106. margin-right: 15px;
  1107. }
  1108. .mobile-nav-icon span {
  1109. background-color: #ac3b3b;
  1110. }
  1111. /* 响应式 */
  1112. @media screen and (max-width: 1320px) {
  1113. .wrap {
  1114. width: 95%;
  1115. }
  1116. .header-top {
  1117. padding: 0;
  1118. }
  1119. }
  1120. @media screen and (max-width: 1200px) {
  1121. .header-nav>ul>li:hover .nav-secondLevel .wrap {
  1122. background-position: 70% bottom;
  1123. }
  1124. }
  1125. @media screen and (max-width: 1024px) {
  1126. .banner img {
  1127. height: 350px;
  1128. }
  1129. }
  1130. @media screen and (max-width: 980px) {
  1131. .header>.wrap{
  1132. width: 100%;
  1133. }
  1134. .header-nav {
  1135. background-repeat: repeat;
  1136. background-position: left top;
  1137. }
  1138. .header-nav ul {
  1139. height: auto;
  1140. }
  1141. /* flex布局,item元素补全 */
  1142. .header-nav ul::after {
  1143. content: "";
  1144. width: 50%;
  1145. }
  1146. .content-item {
  1147. width: 100% !important;
  1148. }
  1149. .content-col {
  1150. width: 100% !important;
  1151. }
  1152. }
  1153. @media screen and (max-width: 768px) {
  1154. .content-item {
  1155. width: 100%;
  1156. }
  1157. .content-left {
  1158. width: 100%;
  1159. margin-right: 0;
  1160. margin-bottom: 20px;
  1161. }
  1162. }
  1163. @media screen and (max-width: 640px) {
  1164. .header-right {
  1165. font-size: 14px;
  1166. }
  1167. .header-img {
  1168. width: 100%;
  1169. }
  1170. .header-img img {
  1171. width: 100%;
  1172. height: auto;
  1173. display: block;
  1174. }
  1175. .mobile-nav-icon {
  1176. right: 18px;
  1177. }
  1178. .content-wrap li p {
  1179. width: calc(100% - 100px);
  1180. }
  1181. .search {
  1182. padding: 0 20px;
  1183. height: 70%;
  1184. }
  1185. .search-wrap {
  1186. margin: 30px 0 25px;
  1187. flex-wrap: wrap;
  1188. height: auto;
  1189. }
  1190. .search-wrap-item {
  1191. height: 40px;
  1192. line-height: 40px;
  1193. }
  1194. .search-wrap select {
  1195. width: 100%;
  1196. margin-bottom: 15px;
  1197. }
  1198. .search-wrap input {
  1199. width: 50%;
  1200. margin: 0 15px 0 0;
  1201. }
  1202. .search-wrap button {
  1203. padding: 0 36px;
  1204. background-position: 10px center;
  1205. }
  1206. .content {
  1207. margin-top: 101px !important;
  1208. }
  1209. .search-ranking {
  1210. display: block;
  1211. }
  1212. .content-grid {
  1213. margin: 50px auto;
  1214. }
  1215. .content-grid a {
  1216. width: calc(100% / 4);
  1217. }
  1218. .content-grid dt img {
  1219. width: 50px;
  1220. }
  1221. .content-tabs .hd ul {
  1222. display: flex;
  1223. }
  1224. .content-tabs .hd li {
  1225. padding: 22px 0;
  1226. flex: auto;
  1227. text-align: center;
  1228. }
  1229. .content-tabs .bd ul {
  1230. margin: 0 15px;
  1231. }
  1232. .content-tabs .bd li:first-child a {
  1233. padding: 34px 0;
  1234. }
  1235. .content-tabs .bd a {
  1236. overflow: hidden;
  1237. padding: 30px 0 0px;
  1238. }
  1239. .content-tabs .bd p {
  1240. width: calc(100% - 0px);
  1241. }
  1242. .content-tabs .bd span {
  1243. margin-top: 10px;
  1244. }
  1245. .content-tabs .desc {
  1246. display: block;
  1247. margin-top: 32px;
  1248. }
  1249. .content-tabs .desc p {
  1250. width: 100%;
  1251. }
  1252. /* 列表页 */
  1253. .list .content-wrap li{
  1254. height: auto;
  1255. overflow: hidden;
  1256. background-position: left 10px;
  1257. }
  1258. .list .content-wrap li p{
  1259. width: 96%;
  1260. float: none;
  1261. }
  1262. .list-wrap .list-title {
  1263. width: 100%;
  1264. }
  1265. .list-wrap li {
  1266. padding: 5px 15px;
  1267. }
  1268. .list-wrap li a {
  1269. background-position: left 14px;
  1270. line-height: 28px;
  1271. }
  1272. .crumbs {
  1273. padding-top: 25px;
  1274. }
  1275. }
  1276. /* 馆藏资源搜索组件移动端 */
  1277. @media screen and (max-width: 768px) {
  1278. .search-container {
  1279. width: 95%;
  1280. }
  1281. .search-trigger-area {
  1282. height: auto;
  1283. min-height: 50px;
  1284. flex-direction: column;
  1285. align-items: stretch;
  1286. }
  1287. .search-trigger {
  1288. width: 100%;
  1289. flex: 0 0 50px;
  1290. height: 50px;
  1291. }
  1292. .search-tabs {
  1293. width: 100%;
  1294. height: 50px;
  1295. flex: none;
  1296. border-radius: 0;
  1297. }
  1298. .search-tabs ul {
  1299. width: 100%;
  1300. height: 50px;
  1301. justify-content: flex-start;
  1302. }
  1303. .search-tabs li {
  1304. flex: 1 0 auto;
  1305. justify-content: center;
  1306. padding: 12px 10px;
  1307. }
  1308. .search-panel {
  1309. flex-direction: column;
  1310. }
  1311. .left-menu {
  1312. width: 100%;
  1313. flex: none;
  1314. overflow-x: auto;
  1315. }
  1316. .left-menu ul {
  1317. display: flex;
  1318. min-width: max-content;
  1319. }
  1320. .left-menu li {
  1321. flex: 1 0 auto;
  1322. white-space: nowrap;
  1323. }
  1324. .right-search {
  1325. width: 100%;
  1326. padding: 16px;
  1327. }
  1328. .search-title {
  1329. font-size: 18px;
  1330. }
  1331. .search-box {
  1332. margin: 12px 0;
  1333. }
  1334. .search-btn {
  1335. padding: 0 18px;
  1336. }
  1337. }
  1338. /* 图书馆首页双栏与移动端布局(对齐旧生产) */
  1339. @media screen and (max-width: 980px) {
  1340. .main-container {
  1341. flex-wrap: wrap;
  1342. }
  1343. .news-section {
  1344. flex: 0 0 100%;
  1345. width: 100%;
  1346. }
  1347. .news-inner {
  1348. flex-wrap: nowrap;
  1349. }
  1350. .news-carousel {
  1351. flex: 0 0 48%;
  1352. }
  1353. .news-list {
  1354. flex: 0 0 48%;
  1355. }
  1356. .banner-section {
  1357. flex: 0 0 100%;
  1358. width: 100%;
  1359. margin-top: 20px;
  1360. }
  1361. }
  1362. @media screen and (max-width: 640px) {
  1363. .main-container {
  1364. flex-direction: column;
  1365. padding: 0 10px;
  1366. }
  1367. .news-section {
  1368. width: 100%;
  1369. }
  1370. .news-inner {
  1371. flex-direction: column;
  1372. }
  1373. .news-carousel {
  1374. flex: 0 0 auto;
  1375. width: 95%;
  1376. margin: 0 auto;
  1377. }
  1378. .news-list {
  1379. flex: 0 0 auto;
  1380. width: 95%;
  1381. margin: 20px auto 0;
  1382. }
  1383. .banner-section {
  1384. width: 95%;
  1385. margin: 20px auto 0;
  1386. }
  1387. .news-title {
  1388. width: 70%;
  1389. }
  1390. }