.top-search { display: flex; margin-top: 1rem; margin-bottom: 1rem; } .top-search .search-logo { flex: 1; width: 270px; max-height: 96px; overflow: hidden; } .top-search .search-logo img { width: 90%; } .top-search .search-boxes { width: 47%; } .top-search .scroll-txt { width: 30%; } /*搜索框*/ .top-search li { list-style: none; } .search-list { justify-content: space-around; margin-bottom: 10px; padding-left: 1rem; } .search-list .li { padding: 5px 10px; position: relative; display: inline-block; cursor: pointer; } .search-list .li span { color: var(--bs-gray-500); } .btns { color: #518193; font-size: 1rem; } .search-list .current .btns { color: var(--bs-gray-700); } .search-list .current::after { position: absolute; content: ""; width: 10px; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; height: 4px; bottom: 0; left: 50%; transform: translatex(-50%); background: var(--bs-gray-700); } .search-input { width: 100%; height: 2rem; border-radius: 0.1rem; position: relative; } .search-input input { position: absolute; top: 0; left: 0; width: 100%; line-height: 1.5rem; text-indent: 0.8rem; padding: 0.5rem 1.5rem; font-size: 0.8rem; vertical-align: middle; outline: none; border-radius: 3rem; border: none; } .search-input input:focus { box-shadow: 0 0 0 4px var(--bs-gray-400); } .search-sbmit { position: absolute; top: 1px; right: 1px; outline: none; color: #fff; font-size: 16px; text-align: center; line-height: 38px; cursor: pointer; height: 38px; width: 38px; background-color:var(--bs-gray-200); border-radius: 50%; padding-top: 2px; } .search-sbmit:active { background: #f1f1f1; } .scroll-txt { overflow: hidden; padding: 0.8rem 0.5rem 0.5rem 1.5rem; line-height: 1.35rem; font-size: 0.8rem; height: 96px; } .scroll-txt ul{ overflow: hidden; } .scroll-txt li{ overflow: hidden; text-overflow :ellipsis; white-space:nowrap; word-break: break-all; } .scroll-txt .active a{ color: var(--bs-orange-600); } .main-body { display: flex; flex-wrap: wrap-reverse; } .main-body a { font-size: 0.8rem; } .items-list { display: flex; flex-wrap: wrap; /*justify-content: center;*/ position: relative; z-index: 999; } .items-list li { width: calc(100% / 9) !important; position: relative; height: 6rem; text-align: center; padding-top: 0.6rem; } .items-list li a { height: 100%; display: block; } .items-list li a img { width: 3.5rem; height: 3.5rem; margin-bottom: 3px; } .items-list li a span { left: 0; display: block; width: 100%; text-align: center; color: #555; } .items-left { width: 73%; } .items-right { width: calc(27% - 0.5rem); margin-left: 0.5rem; } .items-block { background: var(--bs-white); margin: 0.5rem 0; border-radius: 0.6rem; } .items-block ul { padding: 0.5rem 0.5rem; } .items-block ul li:hover { background-color: var(--bs-gray-200); border-radius: 0.4rem; } .items-title { padding: 0.8rem 1rem; border-bottom: 1px solid #f1f4f9; line-height: 1.2rem; } .items-title ol { display: block; width: 100%; } .items-title li.mult-title span{ color: var(--bs-gray-500);; } .items-title ol span{ display: inline-block; margin-right: 1rem; cursor: pointer; position: relative; } .items-title ol span.current,li.font-weight{ font-weight: bold; } .items-title ol span.current:after{ content: ""; position: absolute; bottom: -8px; left: 50%; transform: translatex(-50%); height: 2px; background: var(--bs-orange-600); width: 80%; } .items-title ol li{ display: inline-block; } .items-title ol li:last-child { min-width: 20%; text-align: right; float:right; } .items-list-small { display: flex; flex-wrap: wrap; padding-bottom: 0.5rem; padding-top: 0.5rem; } .items-list-small li { width: calc(100% / 6) !important; position: relative; text-align: left; display: flex; line-height: 2.5rem; cursor: pointer; padding: 0 0.3rem; } .items-list-small li:hover { background-color: var(--bs-gray-300); } .items-list-small li img { vertical-align: middle; width: 1.6rem; position: relative; top: 7px; height: 1.6rem; max-width: 100%; } .items-list-small li a { padding-left: 0.3rem; } .items-list-desc { display: flex; flex-wrap: wrap; padding-bottom: 0.5rem; padding-top: 0.5rem; } .items-list-desc li { width: calc(100% / 4) !important; position: relative; text-align: left; display: flex; line-height: 2.5rem; cursor: pointer; padding: 0 0.3rem; min-height: 5rem; overflow: hidden; } .items-list-desc li .icons { width: 100%; max-width: 1.8rem; margin-right: 0.5rem; } .items-list-desc .icons img { width: 100%; position: relative; top: 0.5rem; max-width: 1.8rem; } .items-list-desc .description { margin: -0.5rem 0 0; color: #a2a2a2; line-height: 1.2rem; font-size: 0.7rem; display: none; text-align: justify !important; overflow: hidden; text-overflow: ellipsis; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .right-block { background: #fff; margin: 0.5rem 0; border-radius: 0.6rem; line-height: 1.5rem; } .right-block-title { padding: 0.8rem 1rem; border-bottom: 1px solid #f1f4f9; line-height: 1.2rem; } .world-time, .holiday-list, .exchange-rate { display: flex; padding: 0.5rem; color: var(--bs-gray-600); font-size: 0.8rem; flex-wrap: wrap; justify-content: space-between; margin-bottom: 0; } .world-time li, .holiday-list li, .exchange-rate li { width: 50%; } .world-time li img { width: 1.3rem; } .world-time li a { display: block; margin-top: -0.3rem; } .right-block-title2 { padding: 0.5rem 1rem; border-bottom: 1px solid #f1f4f9; border-top: 1px solid #f1f4f9; line-height: 1.2rem; background-color: var(--bs-gray-100); } .holiday-list li, .exchange-rate li { line-height: 2rem; } .holiday { color: var(--bs-green); } .day { color: var(--bs-red); } @media (max-width: 992px) { .items-right, .items-left { width: 100%; } .items-right { margin-left: 0; } .container { max-width: 100%; } .top-search { flex-wrap: wrap; } .search-list .li { writing-mode: tb-rl; -webkit-writing-mode: vertical-rl; } .scroll-txt { border: solid 1px var(--bs-gray-100); border-radius: 0.6rem; padding: 0.5rem; } .top-search .search-boxes { width: 100%; } .top-search .scroll-txt { width: 100%; margin-top: 1rem; } .items-list li { width: calc(100% / 5) !important; } .items-list-small li { width: calc(100% / 5) !important; } .items-list-desc li { width: calc(100% / 3) !important; } } @media (max-width: 768px) { .items-title ol span.current:after{ bottom: -5px; } .items-title ol .tags-title span{ margin-top: 5px; margin-bottom: 5px; margin-right: 1rem; } .items-title { padding: 0.6rem 0.8rem; } .items-list li { width: calc(100% / 4) !important; } .items-list-small li { width: calc(100% / 3) !important; } .items-list-desc li { width: calc(100% / 2) !important; } } @media (max-width: 557px) { .items-list li { width: calc(100% / 4) !important; } .items-list-small li { width: calc(100% / 2) !important; } .items-list-desc li { width: calc(100% / 2) !important; } }