/* 文章栏目页 、 文章内容页 */ .category-article .title .en{ text-transform: uppercase; } .category-article .article-recommend{ box-shadow: 1px 1px 10px #99999912; transition: all 0.3s ease-in-out; } .category-article .article-recommend:hover{ box-shadow: 1px 1px 10px #99999954; } .category-article .article-recommend .img{ width: 60%; flex-shrink: 0; aspect-ratio: 16 / 9; } .category-article .article-recommend .img img{ width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; } .category-article .article-recommend .text{ width: 40%; background-color: #F9FAFC; padding: 3rem; } .category-article .article-recommend .text .title{ margin-top: auto; } .category-article .article-list .list{ width: 100%; display: grid; grid-gap: 3rem; row-gap: 3rem; grid-template-columns: var(--grid-list-column-3); } .category-article .article-list .item{ border: 1px solid #f7f9f9; box-shadow: 1px 1px 10px #99999912; transition: all 0.3s ease-in-out; } .category-article .article-list .item:hover{ box-shadow: 1px 1px 10px #99999954; } .category-article .article-list .item>a{ height: 100%; } .category-article .article-list .item .img{ width: 100%; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; } .category-article .article-list .item .img img{ width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; } .category-article .article-list .item .text{ padding: 2rem 1rem 1rem; width: 100%; flex-grow: 1; background-color: #f9fafc; } .category-article .article-list .item .text .title{ overflow: hidden; text-overflow: ellipsis; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.4em; height: 2.9em; margin-bottom: .5rem; } .category-article .article-list .item .text .tags{ font-size: 0.85em; margin-top: auto; /* text-align: right; */ } .pagination-warp .screen-reader-text{ display: none; } .pagination-warp .nav-links{ display: flex; justify-content: center; align-items: center; column-gap: 1rem; } .pagination-warp .nav-links .page-numbers{ font-size: 1.1rem; width: 2rem; aspect-ratio: 1 / 1; /* border: 1px solid; */ text-align: center; line-height: 2rem; border-bottom: 1px dashed transparent; transition: all 0.2s; } .pagination-warp .nav-links span.current, .pagination-warp .nav-links .page-numbers:hover{ border-bottom: 1px dashed #ccc; } /* 文章页面 */ .article-post .bread-crumbs a{ margin-inline-end:6px; transition: all 0.2s ease-in-out; border-bottom: 1px dashed transparent; color: var(--color-gray); } .article-post .bread-crumbs a:hover{ border-bottom: 1px dashed var(--color-blue); } .article-post .bread-crumbs a::after{ content: "/"; margin-inline-start: 5px; } .article-post .bread-crumbs a:last-child::after{ content: ""; } .article-post .content{ flex-grow: 1; } .article-post .content .article-title{ padding-bottom: 1rem; border-bottom: 1px solid #D8D8D8; } .article-post .content .article-title .author{ column-gap: 1rem; } /* 文章内容默认样式定义 */ .article-post .article-detail a{ color: var(--color-blue); transition: all 0.2s ease-in-out; text-decoration: none; margin-inline: 1px; } .article-post .article-detail a:hover{ text-decoration: underline; } .article-post .article-detail h1, .article-post .article-detail h2, .article-post .article-detail h3, .article-post .article-detail h4, .article-post .article-detail h5, .article-post .article-detail h6, .article-post .article-detail ul, .article-post .article-detail p{ margin-top: 0.6em; margin-bottom: 0.6em; word-wrap: break-word; letter-spacing: .5px; } .article-post .article-detail h1{ font-size: 2rem; } .article-post .article-detail h2{ font-size: 1.75rem; } .article-post .article-detail h3{ font-size: 1.4rem; } .article-post .article-detail h4{ font-size: 1.25rem; } .article-post .article-detail h5{ font-size: 1.1rem; } .article-post .article-detail h6{ font-size: 1rem; } .article-post .article-detail p, .article-post .article-detail img, .article-post .article-detail div{ max-width: 100%; } .article-post .article-detail img{ margin: 1rem auto; border-radius: 5px; height: auto!important; display: block; } .article-post .article-detail ol, .article-post .article-detail ul{ list-style-type: unset; } .article-post .article-detail .table{ overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; } .article-post .article-detail table{ border-collapse: collapse; /*table-layout: fixed;*/ text-align: center; border-color: #cccccc52; width: 100%; } .article-post .article-detail table th, .article-post .article-detail table td{ padding: 5px 10px; min-width: 80px; max-width: 50%; } .article-post .article-detail table tr th:first-child, .article-post .article-detail table tr td:first-child{ /*width: 10%;*/ min-width: 40px; max-width: 120px; background-color: var(--color-blue); color: #fff; position: sticky; left: 0; } .article-post .article-detail table tr { background-color: #fff; } .article-post .article-detail table tr:nth-child(2n+1) { background-color: #65cad224; } .article-post .article-tags{ justify-content: end; color: var(--color-gray); column-gap: 5px; } .article-post .article-tags>a{ color: var(--color-gray); transition: all 0.2s ease-in-out; } .article-post .article-tags>a:hover{ color: var(--color-blue); } .article-post .article-nextprev{ padding-top: 2rem; border-top: 1px dashed var(--color-blue); row-gap: 8px; } .article-post .article-nextprev a { transition: all 0.2s ease-in-out; border-bottom: 1px dashed transparent; } .article-post .article-nextprev a:hover { border-bottom: 1px dashed var(--color-blue); color: var(--color-blue); } .article-post .sidebar{ width: 100%; max-width: 358px; margin-left: 3vw; flex-shrink: 0; } .article-post .sidebar .sticky{ position: sticky; top: var(--nav-height); top: calc(var(--nav-height) + 5px ) ; padding: 2vw 2vw ; box-shadow: 3px 3px 10px 0px rgba(7, 62, 107, 0.11); } .article-post .sidebar .hot-articles .list{ row-gap: 10px; } .article-post .sidebar .hot-articles .item{ column-gap: 5px; align-items: baseline; } .article-post .sidebar .hot-articles .item a{ transition: all 0.2s ease-in-out; /* border-bottom: 1px dashed transparent; */ } .article-post .sidebar .hot-articles .item a:hover{ /* border-bottom: 1px dashed var(--color-blue); */ color: var(--color-blue); } .article-post .sidebar .hot-labels .list{ row-gap: 8px; column-gap: 4px; } .article-post .sidebar .hot-labels .item{ box-sizing: border-box; background-color: transparent; border-radius: 2rem; /*color: #fff;*/ /*opacity: 0.7;/*/ width: calc( (100% - 8px) / 3); font-size: calc( (12 / 14 ) * var(--font-size-root) ); overflow: hidden; padding: 6px 12px; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } .article-post .sidebar .hot-labels .item:nth-child(5n+1){ color: #f39f3d; background-color: #f39f3d2b; } .article-post .sidebar .hot-labels .item:nth-child(5n+2){ color: #ea4c31; background-color: #ea4c312b; } .article-post .sidebar .hot-labels .item:nth-child(5n+3){ color: #5a2e8f; background-color: #5a2e8f2b; } .article-post .sidebar .hot-labels .item:nth-child(5n+4){ color: #00a549; background-color: #00a5492b; } .article-post .sidebar .hot-labels .item:nth-child(5n+5){ color: #00a5ad; background-color: #00a5ad2b; } /* 相关产品 */ .article-related-product{ background-color: #f7f7f7; overflow-x: hidden; } .article-related-product .related-product-container { position: relative; } .article-related-product .list { row-gap: 2rem; width: 100%; column-gap: 2rem; } .article-related-product .list .item { width: calc((100% - 6rem) / 4); background-color: #fff; } .article-related-product .related-product-container .swiper-button-next, .article-related-product .related-product-container .swiper-button-prev { color: var(--color-blue); position: absolute; right: 0; left: unset; top: 0; width: 30px; height: 30px; border-radius: 40px; background-color: #f5f5f7; transform: translate(100%, 150%); border: 1px solid var(--color-blue); box-shadow: 0px 1px 10px #00000030; } .article-related-product .related-product-container .swiper-button-next:after, .article-related-product .related-product-container .swiper-button-prev:after { font-size: 1rem; } .article-related-product .related-product-container .swiper-button-prev, .article-related-product .related-product-container .swiper-rtl .swiper-button-next { transform: translate(calc(100% - 2rem), -150%); } .article-related-product .related-product-container .swiper-button-next, .article-related-product .related-product-container .swiper-rtl .swiper-button-prev { transform: translate(calc(100% + 2rem), -150%); }