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); } /* 资源类型标签组随左侧检索入口互斥显示 */ body[data-menu-type="1"] .search-tabs .tabs-tsg { display: flex !important; } body[data-menu-type="1"] .search-tabs .tabs-duxiu, body[data-menu-type="1"] .search-tabs .tabs-zhiwang, body[data-menu-type="2"] .search-tabs ul, body[data-menu-type="4"] .search-tabs ul { display: none !important; } body[data-menu-type="3"] .search-tabs .tabs-duxiu { display: flex !important; } body[data-menu-type="3"] .search-tabs .tabs-tsg, body[data-menu-type="3"] .search-tabs .tabs-zhiwang { display: none !important; } body[data-menu-type="5"] .search-tabs .tabs-zhiwang { display: flex !important; } body[data-menu-type="5"] .search-tabs .tabs-tsg, body[data-menu-type="5"] .search-tabs .tabs-duxiu { display: none !important; } .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%; height: 50px; flex: none; border-radius: 0; } .search-tabs ul { width: 100%; height: 50px; 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; } }