| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086 |
- body {
- color: #000;
- font-size: 16px;
- }
- a {
- color: #000;
- }
- a:hover {
- color: #ff1111;
- text-decoration: none;
- }
- .wrap-larger {
- width: 1320px;
- margin: 0 auto;
- }
- .header-top {
- width: 100%;
- height: 30px;
- line-height: 30px;
- position: relative;
- background-color: #d7cfcf;
- border: 1px solid #bbb;
- border-left: 0;
- border-right: 0;
- padding: 0 15px;
- color: #fff;
- }
- .header-top .wrap {
- position: relative;
- }
- .header-img {
- position: relative;
- }
- .header-img img {
- width: auto;
- height: 90px;
- }
- .header-right {
- float: right;
- }
- .header-right a:hover{
- color: #ac3b3b;
- }
- /* 导航 */
- .header{
- box-shadow: 0 0 12px rgba(0, 0, 0, .4);
- }
- .header>.wrap{
- position: relative;
- }
- .header-nav {
- position: absolute;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- background-color: transparent;
- z-index: 101;
- }
- .header-nav {
- width: 50%;
- }
- .header-nav ul li {
- flex: auto;
- }
- .header-nav ul li:last-child a{
- height: 44px;
- line-height: 44px;
- background-color: #ac3b3b;
- color: #fff;
- margin-top: 23px;
- margin-left: 20px;
- border-radius: 4px;
- }
- .header-nav ul li:last-child a:hover{
- background-color: #C90303;
- }
- .nav-secondLevel {
- top: 90px;
- }
- .header-nav .nav-secondLevel li {
- width: 33.33%;
- margin-top: 10px;
- }
- .header-nav li a {
- box-sizing: content-box;
- position: relative;
- line-height: 90px;
- height: 90px;
- color: #000;
- }
- .header-nav li:hover>a {
- background-color: #ac3b3b;
- color: #fff;
- }
- .header-nav .nav-secondLevel li a{
- background-image: none;
- padding-bottom: 0;
- text-align: left;
- }
- .header-nav .nav-secondLevel li a:hover{
- background-color: rgba(233, 217, 217, 1) !important;
- }
- .header-nav>ul>li:hover .nav-secondLevel {
- width: 2400px;
- position: fixed;
- left: -1200px;
- background-color: #e8e8e8;
- min-height: 150px;
- padding: 10px 0 20px;
- }
- .header-nav>ul>li:hover .nav-secondLevel .wrap {
- background: url(../images/tsg/nav.jpg) no-repeat right bottom;
- background-size: 300px;
- }
- .header-nav>ul>li:hover .nav-secondLevel .nav-secondLevel-wrap {
- display: flex;
- flex-wrap: wrap;
- width: 700px;
- margin: 0 auto;
- }
- .header-nav .nav-secondLevel li a {
- background: transparent url(../images/tsg/icon/dot.png) no-repeat 8px center;
- background-size: 6px;
- border: 0;
- color: #ac3b3b;
- padding: 0 20px;
- font-weight: normal;
- }
- .header-nav .nav-secondLevel li:last-child a {
- margin: 0;
- background-color: transparent;
- line-height: 40px;
- color: #ac3b3b;
- }
- .header-nav .nav-secondLevel li:last-child:hover a {
- background-color: transparent;
- }
- /* 三级 */
- .header-nav .nav-threeLevel {
- position: relative;
- top: 0;
- left: 0;
- width: 100%;
- background-color: transparent;
- font-size: 14px;
- display: block !important;
- }
- .header-nav .nav-threeLevel li {
- width: 100% !important;
- margin-top: 0 !important;
- }
- .header-nav .nav-threeLevel li a {
- background: none !important;
- color: #000 !important;
- }
- .header-nav .nav-secondLevel li a span {
- display: none;
- }
- /* 主体 */
- .content {
- /* margin-top: 30px; */
- }
- /* 馆藏资源搜索组件 */
- :root {
- --theme-color-1: #b4190f;
- --theme-color-2: #343977;
- --theme-color-3: #6c9350;
- --theme-color-4: #de882f;
- }
- body[data-menu-type="1"] {
- --current-theme-color: var(--theme-color-1);
- }
- body[data-menu-type="2"] {
- --current-theme-color: var(--theme-color-2);
- }
- body[data-menu-type="3"] {
- --current-theme-color: var(--theme-color-3);
- }
- body[data-menu-type="4"] {
- --current-theme-color: var(--theme-color-4);
- }
- .search-container {
- max-width: 1200px;
- width: 100%;
- position: relative;
- margin: 0 auto;
- box-sizing: border-box;
- }
- .search-panel {
- top: 100%;
- left: 0;
- width: 100%;
- background: #fff;
- display: none;
- box-sizing: border-box;
- border-radius: 0 0 10px 10px;
- overflow: hidden;
- }
- .left-menu {
- width: 200px;
- flex: 0 0 200px;
- text-align: center;
- background: #f8f8f8;
- }
- .left-menu ul {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .left-menu li {
- padding: 8px 20px;
- cursor: pointer;
- color: #333;
- }
- .left-menu li.active {
- color: #fff;
- background-color: var(--current-theme-color);
- }
- .right-search {
- flex: 3;
- min-width: 0;
- padding: 20px;
- background: var(--current-theme-color);
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- }
- .search-title {
- color: #fff;
- font-size: 20px;
- font-weight: bold;
- }
- .search-box {
- display: flex;
- margin: 15px 0;
- }
- .search-tip {
- color: #fff;
- font-size: 14px;
- font-weight: 400;
- }
- .search-input {
- flex: 1;
- min-width: 0;
- padding: 13px 15px;
- border: none;
- border-radius: 4px 0 0 4px;
- font-size: 16px;
- }
- .search-input:focus {
- outline: none;
- }
- .search-btn {
- background: rgba(58, 58, 58, .5);
- color: #fff;
- border: none;
- padding: 0 25px;
- cursor: pointer;
- border-radius: 0 4px 4px 0;
- font-size: 16px;
- }
- .search-trigger-area {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-radius: 10px;
- overflow: hidden;
- background: #fff;
- box-sizing: border-box;
- height: 50px;
- }
- .search-trigger {
- width: 200px;
- flex: 0 0 200px;
- background: #a63334;
- color: #fff;
- padding: 10px 15px;
- font-size: 18px;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- cursor: pointer;
- }
- .icon-search {
- display: inline-block;
- width: 20px;
- height: 20px;
- background: url(../images/icon/search.png) no-repeat;
- background-size: 100%;
- margin-right: 8px;
- filter: brightness(0) invert(1);
- }
- .icon-arrow {
- display: inline-block;
- margin-left: 8px;
- width: 8px;
- height: 8px;
- border-right: 2px solid #fff;
- border-bottom: 2px solid #fff;
- transform: rotate(45deg);
- transition: transform .3s;
- }
- .search-panel-visible .icon-arrow {
- transform: rotate(-135deg);
- }
- .search-tabs {
- height: 100%;
- flex: 3;
- min-width: 0;
- background: #ebebeb;
- border-radius: 0 10px 0 0;
- overflow-x: auto;
- }
- .search-tabs ul {
- height: 100%;
- display: flex;
- align-items: center;
- list-style: none;
- margin: 0;
- padding: 0;
- }
- .search-tabs li {
- padding: 12px 25px;
- cursor: pointer;
- color: #000;
- position: relative;
- transition: all .3s;
- height: 100%;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- white-space: nowrap;
- }
- .search-tabs li.active {
- color: var(--current-theme-color);
- }
- .search-tabs li.active::after {
- content: '';
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%) rotate(180deg);
- width: 0;
- height: 0;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 8px solid var(--current-theme-color);
- background: none;
- opacity: 0;
- transition: opacity .3s;
- }
- .search-panel-visible .search-tabs li.active::after {
- opacity: 1;
- }
- .search-tabs li:hover {
- color: var(--current-theme-color);
- }
- .banner{
- position: relative;
- }
- .banner,
- .banner img{
- width: 100%;
- }
- .banner img {
- height: 450px;
- object-fit: cover;
- }
- /* 搜索 */
- .search {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- z-index: 100;
- background-color: #ac3b3b;
- height: 60%;
- padding: 0 50px;
- border: 1px solid #bbb;
- }
- .search-wrap {
- width: 100%;
- height: 56px;
- display: flex;
- margin: 60px 0 40px;
- }
- .search-wrap-item {
- border-radius: 6px;
- border: 0;
- outline: none;
- font-size: 16px;
- }
- .search-wrap select {
- padding: 0 12px;
- width: 140px;
- cursor: pointer;
- }
- .search-wrap input {
- margin: 0 20px;
- padding: 0 15px;
- flex: auto;
- }
- .search-wrap button {
- padding: 0 45px;
- background: #fff url(../images/icon/search.png) no-repeat 16px center;
- background-size: 22px;
- cursor: pointer;
- }
- .search-wrap button:hover {
- background-color: rgba(255, 255, 255, .9);
- }
- .search-wrap button:active {
- background-color: rgba(255, 255, 255, .7);
- }
- .search-ranking {
- color: #fff;
- display: flex;
- line-height: 28px;
-
- }
- .search-ranking ul {
- margin-left: 10px;
- flex: 1;
- }
- .search-ranking ul li {
- display: inline-block;
- margin-right: 25px;
- }
- .search-ranking a {
- color: #fff;
- text-decoration: underline;
- }
- .search-ranking a:hover {
- color: #ffff00;
- }
- /* 轮播 */
- .swiper-pagination-bullet-active {
- color: #fff;
- background: rgba(174, 28, 3, 1);
- }
- .swiper-slide {
- position: relative;
- }
- .swiper-slide img {
- display: block;
- width: 100%;
- }
- .swiper-slide .swiper-title {
- height: 26px;
- line-height: 26px;
- padding: 0 10px;
- box-sizing: border-box;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- text-align: center;
- background-color: #fff;
- margin-top: 6px;
- }
- /* 宫格 */
- .content-grid {
- display: flex;
- flex-wrap: wrap;
- border: 1px solid #ccc;
- border-left: 0;
- border-bottom: 0;
- margin: 65px auto;
- box-shadow: 0 0 12px rgba(0, 0, 0, .4);
- }
- .content-grid a {
- display: block;
- width: calc(100% / 6);
- text-align: center;
- border-left: 1px solid #ccc;
- border-bottom: 1px solid #ccc;
- padding: 30px 0;
- }
- .content-grid dt img {
- width: 60px;
- transition: all .2s;
- }
- .content-grid a:hover img {
- transform:scale(1.2);
- }
- .content-grid dd {
- margin-top: 20px;
- }
- /* 标签页 */
- .content-tabs h2{
- text-align: center;
- font-size: 24px;
- font-weight: bold;
- }
- .content-tabs .slideTxtBox {
- margin: 40px 0;
- }
- .content-tabs .hd {
- border-bottom: 1px solid #bbb;
- }
- .content-tabs .hd li {
- display: inline-block;
- font-weight: bold;
- padding: 22px 28px;
- }
- .content-tabs .hd .on {
- background-color: #ac3b3b;
- }
- .content-tabs .hd .on a {
- color: #fff;
- }
- .content-tabs .bd ul{
- margin: 0 30px;
- }
- .content-tabs .bd li:first-child {
- border-bottom: 1px solid #ccc;
- }
- .content-tabs .bd a {
- display: block;
- width: 100%;
- height: 100%;
- padding: 34px 0;
- }
- .content-tabs .bd p{
- display: inline-block;
- width: calc(100% - 300px);
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- }
- .content-tabs .bd span {
- float: right;
- color: #999;
- }
- .content-tabs .bd a:hover span {
- color: #ff1111;
- }
- .content-tabs .bd a:hover .desc span {
- color: #999;
- }
- .content-tabs .desc {
- line-height: 26px;
- display: flex;
- justify-content: space-between;
- margin-top: 14px;
- }
- .content-tabs .desc p {
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- white-space: normal;
- color: #888;
- }
- .content-right{
- width: 70%;
- }
- .footer {
- margin-top: 20px;
- }
- /* 目录页 */
- .catalog{
- padding: 0;
- }
- .catalog .content-wrap li p{
- width: calc(100% - 135px);
- }
- /* 列表页 */
- .list .content-wrap li p{
- width: calc(100% - 280px);
- }
- .crumbs {
- line-height: 40px;
- overflow: hidden;
- font-weight: normal;
- color: #333;
- margin: 45px auto 25px;
- padding: 0;
- }
- .crumbs a {
- color: #333;
- float: none !important;
- padding: 0 !important;
- }
- .crumbs a:hover {
- color: #AE1C03;
- }
- .crumbs span{
- background: none !important;
- padding: 0 !important;
- color: #333 !important;
- }
- .content-left {
- width: 260px;
- margin-right: 25px;
- background-color: transparent;
- }
- .content-left,
- .content-right {
- box-shadow: 0 0 12px rgba(0, 0, 0, .4);
- border-radius: 4px;
- overflow: hidden;
- margin-bottom: 10px;
- }
- .content-left h2,
- .content-right .content-wrap-title {
- background-color: transparent;
- color: #ac3b3b;
- font-size: 22px;
- border-bottom: 1px solid #ccc;
- padding: 30px 0 20px;
- height: auto;
- line-height: normal;
- }
- .content-right .content-wrap-title {
- text-align: center;
- border-bottom: 0;
- }
- .content-left-list li a {
- text-align: left;
- padding: 0 12px;
- line-height: 56px;
- }
- .list-wrap li>a {
- padding-left: 15px;
- background: url(../images/technical/icon/dot.png) no-repeat left center;
- line-height: 46px;
- }
- .list-wrap .list-time {
- color: #999;
- }
- .catalog {
- border: none;
- }
- .catalog-item {
- margin-bottom: 15px;
- border: 1px solid #D8E0E8;
- border-top: none;
- border-radius: 4px;
- padding-bottom: 10px;
- }
- .catalog-item:last-child {
- margin-bottom: 0;
- }
- /* 底部 */
- .footer-mesg {
- background-color: #ac3b3b;
- background-size: cover;
- }
- .footer-link {
- background-color: #C1D6E3;
- line-height: 36px;
- }
- .footer-link ul {
- display: inline-block;
- }
- .footer-link ul li {
- display: inline-block;
- margin-right: 15px;
- }
- .mobile-nav-icon span {
- background-color: #ac3b3b;
- }
- /* 响应式 */
- @media screen and (max-width: 1320px) {
- .wrap {
- width: 95%;
- }
- .header-top {
- padding: 0;
- }
- }
- @media screen and (max-width: 1200px) {
- .header-nav>ul>li:hover .nav-secondLevel .wrap {
- background-position: 70% bottom;
- }
- }
- @media screen and (max-width: 1024px) {
- .banner img {
- height: 400px;
- }
- }
- @media screen and (max-width: 980px) {
- .header>.wrap{
- width: 100%;
- }
- .header-nav {
- background-repeat: repeat;
- background-position: left top;
- }
- .header-nav ul {
- height: auto;
- }
- /* flex布局,item元素补全 */
- .header-nav ul::after {
- content: "";
- width: 50%;
- }
- .content-item {
- width: 100% !important;
- }
- .content-col {
- width: 100% !important;
- }
- }
- @media screen and (max-width: 768px) {
- .content-item {
- width: 100%;
- }
- .content-left {
- width: 100%;
- margin-right: 0;
- margin-bottom: 20px;
- }
- }
- @media screen and (max-width: 640px) {
- .header-right {
- font-size: 14px;
- }
- .header-img {
- width: 100%;
- }
- .header-img img {
- width: 100%;
- height: auto;
- display: block;
- }
- .mobile-nav-icon {
- right: 18px;
- }
- .content-wrap li p {
- width: calc(100% - 100px);
- }
- .search {
- padding: 0 20px;
- height: 70%;
- }
- .search-wrap {
- margin: 30px 0 25px;
- flex-wrap: wrap;
- height: auto;
- }
- .search-wrap-item {
- height: 40px;
- line-height: 40px;
- }
- .search-wrap select {
- width: 100%;
- margin-bottom: 15px;
- }
- .search-wrap input {
- width: 50%;
- margin: 0 15px 0 0;
- }
- .search-wrap button {
- padding: 0 36px;
- background-position: 10px center;
- }
- .content {
- margin-top: 101px !important;
- }
- .search-ranking {
- display: block;
- }
- .content-grid {
- margin: 50px auto;
- }
- .content-grid a {
- width: calc(100% / 4);
- }
- .content-grid dt img {
- width: 50px;
- }
- .content-tabs .hd ul {
- display: flex;
- }
- .content-tabs .hd li {
- padding: 22px 0;
- flex: auto;
- text-align: center;
- }
- .content-tabs .bd ul {
- margin: 0 15px;
- }
- .content-tabs .bd li:first-child a {
- padding: 34px 0;
- }
- .content-tabs .bd a {
- overflow: hidden;
- padding: 30px 0 0px;
- }
- .content-tabs .bd p {
- width: calc(100% - 0px);
- }
- .content-tabs .bd span {
- margin-top: 10px;
- }
- .content-tabs .desc {
- display: block;
- margin-top: 32px;
- }
- .content-tabs .desc p {
- width: 100%;
- }
-
- /* 列表页 */
- .list .content-wrap li{
- height: auto;
- overflow: hidden;
- background-position: left 10px;
- }
- .list .content-wrap li p{
- width: 96%;
- float: none;
- }
- .list-wrap .list-title {
- width: 100%;
- }
- .list-wrap li {
- padding: 5px 15px;
- }
- .list-wrap li a {
- background-position: left 14px;
- line-height: 28px;
- }
-
- .crumbs {
- padding-top: 25px;
- }
- }
- /* 馆藏资源搜索组件移动端 */
- @media screen and (max-width: 768px) {
- .search-container {
- width: 95%;
- }
- .search-trigger-area {
- height: auto;
- min-height: 50px;
- flex-direction: column;
- align-items: stretch;
- }
- .search-trigger {
- width: 100%;
- flex: 0 0 50px;
- height: 50px;
- }
- .search-tabs {
- width: 100%;
- flex: none;
- border-radius: 0;
- }
- .search-tabs ul {
- width: 100%;
- justify-content: flex-start;
- }
- .search-tabs li {
- flex: 1 0 auto;
- justify-content: center;
- padding: 12px 10px;
- }
- .search-panel {
- flex-direction: column;
- }
- .left-menu {
- width: 100%;
- flex: none;
- overflow-x: auto;
- }
- .left-menu ul {
- display: flex;
- min-width: max-content;
- }
- .left-menu li {
- flex: 1 0 auto;
- white-space: nowrap;
- }
- .right-search {
- width: 100%;
- padding: 16px;
- }
- .search-title {
- font-size: 18px;
- }
- .search-box {
- margin: 12px 0;
- }
- .search-btn {
- padding: 0 18px;
- }
- }
|