:root {
    --green: #529b35;
    --ink: #333333;
    --muted: #666666;
    --line: #e6e6e6;
    --header: 68px;
    --content: min(1290px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html { background: #fafafa; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: #fafafa;
    color: var(--ink);
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

a { color: inherit; text-decoration: none; }

/* 浏览器默认按钮是凸起边框，点下去会凹进去，看起来像黑边一闪。 */
button {
    appearance: none;
    border: 0;
}

button:focus,
button:focus-visible {
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header);
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

.site-header:has(.has-mega:hover),
.site-header:has(.has-mega:focus-within) {
    border-bottom-color: transparent;
}

.logo { justify-self: start; display: flex; align-items: center; }

.logo img { display: block; height: 42px; width: auto; }

.nav-toggle { display: none; }

.site-nav { min-width: 0; }

.primary-nav {
    display: flex;
    align-items: stretch;
    gap: 18px;
    height: var(--header);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav > li {
    display: flex;
    align-items: center;
}

.primary-nav > li > a,
.primary-nav > li > span {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
}

.primary-nav > li > a:hover,
.primary-nav > li.has-mega:hover > a,
.primary-nav > li.has-mega:focus-within > a,
.primary-nav > li.is-current > a,
.primary-nav > li.is-current > span {
    color: var(--green);
}

.primary-nav > li.is-current > a,
.primary-nav > li.is-current > span {
    font-weight: 700;
}

.primary-nav > li.is-current > a::after,
.primary-nav > li.is-current > span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 23px;
    height: 7px;
    border-radius: 4px;
    background: var(--green);
    transform: translateX(-50%);
}

.mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    box-sizing: border-box;
    height: 458px;
    padding: 41px 0 0;
    background: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.04);
}

.has-mega:hover > .mega,
.has-mega:focus-within > .mega { display: block; }

.mega-inner {
    position: relative;
    width: var(--content);
    height: 100%;
    margin: 0 auto;
}

.mega-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 184px;
}

.mega-kicker {
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid #e8e8e8;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
}

.mega-kicker a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.mega-kicker a:hover { color: var(--green); }

.mega-section ul,
.mega-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-section ul {
    display: flex;
    flex-direction: column;
    gap: 29px;
    margin-top: 29px;
}

.mega-section a,
.mega-section span {
    display: inline-block;
    padding: 0;
    color: var(--ink);
    font-size: 21px;
    line-height: 1;
}

.mega-tags {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 18.84%;
}

.mega-inner.is-tags-only .mega-tags { left: 0; }

/* 没有左侧二级菜单时，标签区用满内容宽度，多列分组平分多出来的长度。 */
.mega-inner.is-tags-only .mega-tag-cols { width: 100%; }

.mega-inner.is-tags-only .mega-col:not([style*="--cols: 1"]) {
    flex: 1 1 0;
    width: auto;
}

.mega-inner.is-tags-only .mega-col:not([style*="--cols: 1"]) .mega-links {
    width: 100%;
    grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}

.mega-inner.is-tags-only .mega-col:not([style*="--cols: 1"]) .mega-links a,
.mega-inner.is-tags-only .mega-col:not([style*="--cols: 1"]) .mega-links span {
    max-width: none;
}

.mega-tag-cols {
    display: flex;
    align-items: flex-start;
    gap: 44px;
    height: calc(100% - 55px);
    margin-top: 29px;
}

.mega-col {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: max-content;
    min-width: 0;
}

.mega-heading {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.mega-heading a {
    padding: 0;
    color: inherit;
    font-weight: 700;
}

.mega-links {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows, 8), 35px);
    grid-template-columns: repeat(var(--cols, 1), fit-content(7em));
    align-content: start;
    width: max-content;
    height: calc(var(--rows, 8) * 35px);
    margin-top: 30px;
    column-gap: 16px;
}

.mega-links a,
.mega-links span {
    display: block;
    box-sizing: border-box;
    max-width: 7em;
    height: 35px;
    padding: 0 0 19px;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mega-section a:hover,
.mega-links a:hover,
.mega-heading a:hover,
.mega a.is-current { color: var(--green); }

.mega-more {
    display: flex;
    margin: 0;
    padding-top: 0;
}

.mega-more a,
.mega-more span {
    display: inline-flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 35px;
    gap: 10px;
    padding: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 16px;
}

.mega-arrow {
    display: inline-block;
    flex: none;
    width: 9px;
    height: 14px;
    margin-top: 1px;
    background-color: var(--green);
    clip-path: polygon(1.2px 2.2px, 3.4px 2.2px, 7.2px 7px, 3.4px 11.8px, 1.2px 11.8px, 4.8px 7px);
}

.nav-tools {
    justify-self: end;
    display: flex;
    align-items: center;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 160px;
    height: 39px;
    border: 0;
    border-radius: 20px;
    background: #f5f5f5;
}

.nav-search input {
    width: 100%;
    height: 100%;
    padding: 0 34px 0 23px;
    border: 0;
    border-radius: 20px;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.nav-search input::placeholder { color: var(--muted); }

.nav-search button {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin: 0 0 0 18px;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 1px solid #e6e6e6;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
}

.nav-login:hover { color: var(--green); }

/* 登录后：头像 + 下拉菜单（PSD 9-登陆后状态） */
.nav-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 18px;
    padding: 0 0 0 18px;
    border-left: 1px solid #e6e6e6;
}

.nav-avatar {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-avatar img { display: block; width: 36px; height: 36px; }

/* 头像与下拉之间的透明悬停桥:鼠标从头像移入面板不断 hover */
.nav-account::after {
    content: "";
    position: absolute;
    top: 100%;
    right: -10px;
    width: 142px;
    height: 16px;
}

.nav-menu {
    position: absolute;
    top: 50px;
    right: -10px;
    display: none;
    width: 122px;
    border: 1px solid #ececec;
    border-top: 0;
    background:
        linear-gradient(#ececec, #ececec) 0 0 / 87px 1px no-repeat,
        linear-gradient(#ececec, #ececec) 100% 0 / 19px 1px no-repeat,
        #fff;
}

/* 气泡尖:45° 旋转方块,斜边与分段顶线端点衔接;下半沉入面板背景后 */
.nav-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 21.5px;
    width: 11px;
    height: 11px;
    background: #fff;
    border: 1px solid #ececec;
    transform: rotate(45deg);
    z-index: -1;
}

.nav-menu-name {
    display: flex;
    align-items: center;
    height: 43px;
    margin: 0;
    padding: 0 12px 0 15px;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav-menu-sep { height: 1px; margin: 0 9px 0 10px; background: #f5f5f5; }

.nav-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 12px 0 33px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-menu > form .nav-menu-item { height: 46px; }

.nav-account:hover .nav-menu,
.nav-account:focus-within .nav-menu { display: block; }

.nav-menu-item:hover { color: var(--green); }

@media (max-width: 1100px) {
    .site-header { padding: 0 16px; }
    .primary-nav { gap: 0; }
    .primary-nav > li > a,
    .primary-nav > li > span { padding: 0 8px; }
    .nav-search { width: 136px; }
    .mega-tag-cols { gap: 28px; }
}

.layout {
    width: var(--content);
    margin-right: auto;
    margin-left: auto;
}

.crumbs {
    background: #f7f7f7;
    border-bottom: 1px solid var(--line);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
    color: var(--muted);
    font-size: 13px;
}

.crumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #b5b5b5;
}

.crumbs a:hover { color: var(--green); }

.crumbs [aria-current="page"] { color: var(--ink); }

.page-main {
    flex: 1;
    width: var(--content);
    margin: 0 auto;
    padding: 28px 0 10px;
}

.page-main h1 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 600;
}

.site-footer {
    background: #141a25;
    color: #f2f2f2;
    padding: 42px 0 26px;
    font-size: 12px;
    font-weight: 600;
}

.footer-inner {
    width: var(--content);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: start;
    column-gap: 48px;
}

.footer-brand { flex: 0 0 auto; }

.footer-brand img { display: block; height: 52px; width: auto; }

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding-top: 2px;
}

.footer-nav ul {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    line-height: 2.15;
    color: #f2f2f2;
}

.footer-contact {
    flex: 0 0 auto;
    padding-top: 2px;
    line-height: 2.15;
    color: #f2f2f2;
    white-space: nowrap;
}

.footer-contact p { margin: 0; }

.footer-contact a { color: #fff; }

.footer-qr {
    flex: 0 0 auto;
}

.footer-qr img {
    display: block;
    width: 112px;
    height: auto;
}

.footer-copy {
    margin: 34px 0 0;
    padding-top: 16px;
    border-top: 1px solid #2c3544;
    color: #9a9da3;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

.footer-copy span { margin: 0 6px; color: #5c6570; }

.footer-copy a:hover { color: #fff; }

.footer-friends {
    margin-top: 14px;
    color: #9a9da3;
    font-size: 11px;
    font-weight: 600;
    line-height: 2;
    text-align: center;
}

.footer-friends p { margin: 0; }

.template-homepage .page-main { padding-top: 20px; }

.home-top {
    display: grid;
    grid-template-columns: 2.1fr 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.home-top:has(.home-side-banners) {
    grid-template-columns: 650px 626px;
    gap: 8px;
    justify-content: space-between;
}

.home-side-banners {
    display: grid;
    grid-template-columns: 310px 310px;
    gap: 6px;
    align-items: stretch;
    width: 626px;
    height: 420px;
}

.home-side-banner {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    color: #fff;
}

.home-side-banner img,
.home-side-banner .home-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.home-side-banner > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40px;
    padding-left: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    line-height: 40px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-side-card {
    display: flex;
    flex-direction: column;
    width: 310px;
    height: 420px;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: #000;
}

.home-side-card img,
.home-side-card .home-media {
    flex: 0 0 200px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f3f3f3;
}

.home-side-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 28px 21px 12px;
}

.home-side-card .home-meta {
    margin-bottom: 19px;
    color: #666;
    font-size: 12px;
    line-height: 12px;
}

.home-meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 4px 1px;
    border-radius: 50%;
    background: #000;
    vertical-align: middle;
}

.home-side-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.home-excerpt-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 17px;
}

.home-side-card .home-excerpt {
    display: -webkit-box;
    min-width: 0;
    max-height: 72px;
    margin: 0;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.home-side-card .home-more {
    flex: 0 0 auto;
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}

.home-slider {
    position: relative;
    min-height: 400px;
    background: #1b2420;
    overflow: hidden;
}

.home-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.home-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    min-height: 400px;
    color: #fff;
}

.home-slide img,
.home-slide .home-media,
.home-feature img,
.home-feature .home-media,
.home-card img,
.home-card .home-media,
.home-row-media img,
.home-row-media .home-media {
    display: block;
    width: 100%;
    object-fit: cover;
}

.home-slide img,
.home-slide .home-media { height: 400px; }

.template-homepage .home-slider,
.template-homepage .home-slide {
    height: 420px;
    min-height: 420px;
    border-radius: 5px;
}

.template-homepage .home-slider { overflow: hidden; }

.template-homepage .home-slide img,
.template-homepage .home-slide .home-media { height: 420px; }

.home-media {
    background: #243028 url("../img/default-cover.25a07d289717.png") center / cover no-repeat;
}

.home-feature.is-placeholder .home-media,
.home-card.is-placeholder .home-media { background: #ececec; }

.home-slide.is-placeholder:nth-child(1) .home-media { background: #4d5852; }
.home-slide.is-placeholder:nth-child(2) .home-media { background: #3a4640; }
.home-slide.is-placeholder:nth-child(3) .home-media { background: #2a3330; }

.home-feature.is-placeholder .home-media { height: 400px; }

.home-slider:has(.home-slide .home-media) { background: transparent; }

.home-slide-title,
.home-slide-sub {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
}

.home-slide-sub { display: none; }

.home-slide-title .home-bar {
    display: inline-block;
    width: 62%;
    height: 14px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.85);
}

.home-prev,
.home-next {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 35px;
    height: 67px;
    margin: -34px 0 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(153, 153, 153, 0.5);
    color: #fff;
    font-size: 22px;
    line-height: 67px;
    text-align: center;
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.home-prev { left: 9px; }
.home-next { right: 9px; }

.home-slider:hover .home-prev,
.home-slider:hover .home-next,
.home-slider:hover .home-prev:hover,
.home-slider:hover .home-next:hover { opacity: 1; }

.home-dots { display: none; }

.home-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.home-dot.is-active {
    width: 16px;
    border-radius: 4px;
    background: #fff;
}

.home-feature {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    background: #fff;
}

.home-feature img,
.home-feature .home-media { height: 180px; }

.home-feature-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 4px 0;
}

.home-feature strong,
.home-card strong,
.home-row h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.home-feature strong,
.home-card strong,
.home-excerpt,
.home-row p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-meta,
.home-row-meta { color: #999; font-size: 12px; }

.home-excerpt { color: #666; font-size: 13px; line-height: 1.6; }

.home-more {
    align-self: flex-end;
    color: var(--green);
    font-weight: 700;
}

.home-banners {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 10px;
    height: 90px;
    margin: 8px 0;
}

/* 通栏、横栏有素材时不要色块和内边距，从左边贴齐。空位仍用 .home-ad-slot 的灰底。 */
.home-banners > iframe.home-promo,
.home-banners > iframe.home-promo-ad,
.home-banners > .home-promo:has(img),
.home-banners > .home-promo-ad:has(img) {
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    text-align: left;
}

.home-banners > iframe.home-promo,
.home-banners > iframe.home-promo-ad {
    display: block;
    flex: none;
    width: 100%;
    min-width: 0;
    height: 90px;
    margin: 0;
}

.home-banners > .home-promo img,
.home-banners > .home-promo-ad img {
    display: block;
    flex: none;
    width: auto;
    max-width: 100%;
    height: 90px;
    margin: 0;
    object-fit: contain;
    object-position: left center;
}

/* 抽广告前的占位不要闪成推广条的红底或深蓝底。 */
.ad-pick.home-promo,
.ad-pick.home-promo-ad {
    padding: 0;
    background: #e6e6e6;
    color: transparent;
}

.home-promo,
.home-promo-ad {
    display: flex;
    align-items: center;
    min-width: 0;
    color: #fff;
}

.home-promo {
    justify-content: space-between;
    padding: 0 24px;
    background: #ff2100;
}

.home-promo strong { font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }

.home-promo span {
    flex: 0 0 auto;
    margin-left: 16px;
    padding: 7px 16px;
    background: #111;
    color: #fff;
    font-size: 13px;
}

.home-promo-ad {
    justify-content: center;
    padding: 0 16px;
    background: #16324f;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.home-ad-slot {
    background: #e6e6e6;
    margin-bottom: 16px;
}

/* 空位才留灰色。已经投出广告时，底色不要再露出来。 */
.home-ad-slot[data-ad-slot] {
    background: transparent;
}

.home-ad-slot iframe {
    display: block;
}

.home-ad-slot.is-90,
.home-ad-slot.is-wide { height: 90px; }

.home-ad-slot.is-200 { height: 200px; }

.home-ad-slot.is-250 { height: 250px; }

.home-banners > .home-ad-slot {
    height: 90px;
    margin-bottom: 0;
}

.home-ad-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    margin-top: 20px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 310px);
    justify-content: space-between;
    gap: 34px 7px;
    padding: 20px 11px;
    border-radius: 5px;
    background: #fff;
}

.home-card {
    position: relative;
    display: block;
    border: 0;
    background: transparent;
    color: #000;
}

.home-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.home-card .home-media,
.home-card img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.home-card-label {
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 1;
    width: 80px;
    background: #5b9a32;
    color: #fff;
    font-size: 14px;
    line-height: 30px;
    text-align: center;
}

.home-grid .home-card strong {
    display: -webkit-box;
    height: auto;
    max-height: 60px;
    margin: 18px 11px 0;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    white-space: normal;
    text-overflow: unset;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.home-grid .home-card .home-meta {
    display: block;
    margin: 7px 11px 0;
    color: #999;
    font-size: 12px;
    line-height: 12px;
}

.home-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 8px;
    margin-top: 8px;
}

.home-feed {
    padding: 20px 22px 20px 20px;
    border-radius: 5px;
    background: #fff;
}

.home-row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 19px;
    align-items: start;
    margin: 0 0 21px;
    padding: 0;
    border: 0;
}

.home-row > :last-child {
    box-sizing: border-box;
    min-height: 186px;
    padding-bottom: 23px;
    border-bottom: 1px solid #e8e8e8;
}

.home-feed > .home-row:last-child { margin-bottom: 0; }

.home-feed > .home-row:last-child > :last-child {
    min-height: 162px;
    padding-bottom: 0;
    border-bottom: 0;
}

.home-row-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.home-row-media .home-media,
.home-row-media img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.home-row h2 {
    height: 30px;
    margin: 0 0 22px;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-row p {
    height: 72px;
    margin: 0 0 24px;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    -webkit-line-clamp: 3;
}

.home-row .home-row-meta {
    /* 栏目页 .cat-meta 同款：自然行高（覆盖 .home-row p 的 72px），hover 下划线不被裁。 */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    height: auto;
    margin: 0;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.home-row .home-tags {
    display: flex;
    justify-content: flex-end;
    gap: 6px 12px;
    margin-left: auto;
    text-align: right;
}

.home-tags a { color: var(--green); }

.home-tags a:hover { text-decoration: underline; }

.home-row.is-placeholder .home-media { background: #ececec; }

.home-row-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.home-bar {
    display: block;
    height: 12px;
    width: 100%;
    background: #ececec;
}

.home-bar.is-short { width: 72%; }

.home-bar-title { height: 16px; }

.home-bar-meta { width: 28%; height: 10px; margin-top: 4px; }

.home-row h2 { margin: 0 0 22px; }

.home-row p { margin: 0 0 24px; color: #333; font-weight: 300; line-height: 24px; }

.home-tags { color: var(--green); }

.home-widget {
    margin-bottom: 16px;
    padding: 14px 16px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.home-widget header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.home-widget h2 {
    margin: 0;
    padding-left: 8px;
    border-left: 3px solid var(--green);
    font-size: 16px;
}

.home-widget header a { color: #999; font-size: 13px; }

.home-widget ul { margin: 0; padding: 0; list-style: none; }

.home-widget li { padding: 6px 0 6px 14px; position: relative; }

.home-widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--green);
}

.home-widget li.home-empty::before { display: none; }

.home-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.home-pills a {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    height: 25px;
    padding: 0 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 13px;
    color: #555;
    font-size: 13px;
    line-height: 23px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-pills a:hover { color: var(--green); border-color: var(--green); }

.template-homepage .home-slide::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 201px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 10%,
        rgba(0, 0, 0, 0.06) 20%,
        rgba(0, 0, 0, 0.17) 30%,
        rgba(0, 0, 0, 0.31) 40%,
        rgba(0, 0, 0, 0.43) 50%,
        rgba(0, 0, 0, 0.52) 60%,
        rgba(0, 0, 0, 0.59) 70%,
        rgba(0, 0, 0, 0.66) 80%,
        rgba(0, 0, 0, 0.72) 90%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
}

.template-homepage .home-slide-title {
    bottom: 34px;
    z-index: 2;
    display: -webkit-box;
    height: auto;
    max-height: 72px;
    padding: 0 22px;
    background: none;
    font-size: 26px;
    font-weight: 700;
    line-height: 36px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.template-homepage .home-dots {
    position: absolute;
    right: 0;
    bottom: 11px;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.template-homepage .home-dot {
    width: 10px;
    height: 10px;
    background: #999;
}

.template-homepage .home-dot.is-active {
    width: 33px;
    height: 9px;
    border-radius: 5px;
    background: #fff;
}

.template-homepage .home-card-label {
    width: 77px;
    height: 28px;
    background: var(--green);
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    border-radius: 0 14px 14px 0;
}

.template-homepage .home-widget {
    padding: 21px 20px 26px;
    border-color: #e8e8e8;
    border-radius: 5px;
}

.template-homepage .home-widget header { margin-bottom: 0; }

.template-homepage .home-widget h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    padding: 4px 0 0 15px;
    border-left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
}

.template-homepage .home-widget h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-homepage .home-widget header a {
    color: #333;
    font-size: 16px;
    line-height: 16px;
}

.template-homepage .home-widget ul { margin-top: 33px; }

.template-homepage .home-widget li,
.template-homepage .home-widget li a {
    color: #333;
    font-size: 16px;
}

.template-homepage .home-widget li a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-homepage .home-side .home-widget,
.template-homepage .home-side .home-ad-slot {
    margin-bottom: 8px;
}

.template-homepage .home-side > :last-child { margin-bottom: 0; }

.template-homepage .home-widget li {
    box-sizing: border-box;
    height: auto;
    margin-top: 28px;
    padding: 0 0 0 21px;
    line-height: 16px;
}

.template-homepage .home-widget li:first-child { margin-top: 0; }

.template-homepage .home-widget li::before { top: 4px; }

.template-homepage .home-widget .home-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 28px;
    gap: 8px 6px;
}

.template-homepage .home-pills a {
    box-sizing: border-box;
    height: 25px;
    padding: 0 12px;
    border-color: #999;
    border-radius: 13px;
    background: #fff;
    color: #666;
    font-size: 14px;
    line-height: 23px;
    white-space: nowrap;
}

.template-homepage .home-pills a:hover { color: var(--green); }

.template-homepage .home-side .home-ad-slot.is-250 {
    box-sizing: border-box;
    width: 310px;
    height: 260px;
    padding: 5px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px #e8e8e8;
}

.template-homepage .home-side .home-ad-slot.is-250 .ad-item,
.template-homepage .home-side .home-ad-slot.is-250 iframe,
.template-homepage .home-side .home-ad-slot.is-250 img {
    display: block;
    width: 300px;
    height: 250px;
    max-width: 100%;
    border-radius: 0;
    object-fit: cover;
}

.home-empty { color: #999; }

.template-whitepaper .page-main { padding-top: 16px; }

.template-whitepaper .wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: stretch;
}

.template-whitepaper .side.kb-side { min-height: 0; }

.template-whitepaper .paper-side-bottom { margin-top: auto; }

.template-whitepaper .home-ad-row {
    grid-template-columns: minmax(0, 1fr) 310px;
}

.template-whitepaper .dl-banner {
    grid-template-columns: 1fr;
    margin: 0 0 16px;
}

.template-whitepaper .bps_download { margin-bottom: 8px; }

.template-whitepaper .dl-kicker {
    display: flex;
    align-items: center;
    margin: 4px 0 18px;
}

.template-whitepaper .dl-label {
    margin: 0;
    padding-left: 8px;
    border-left: 3px solid var(--green);
    font-size: 18px;
    font-weight: 600;
}

.template-whitepaper .dl-kicker nav {
    color: #999;
    font-size: 15px;
}

.template-whitepaper .dl-kicker nav a,
.template-whitepaper .dl-kicker nav span { color: #999; }

.template-whitepaper .dl-kicker nav a:hover { color: var(--green); }

.template-whitepaper .dl-kicker nav a::after {
    content: ">";
    margin: 0 8px;
    color: #b5b5b5;
}

.template-whitepaper .bps_info {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 36px;
    min-height: 160px;
}

.template-whitepaper .dl-cover {
    grid-column: 1;
    grid-row: 1 / -1;
}

.template-whitepaper .dl-cover img,
.template-whitepaper .dl-cover .home-media {
    display: block;
    width: 284px;
    height: 160px;
    object-fit: cover;
}

.template-whitepaper .dl-cover img { background: #ececec; }

.template-whitepaper .bps_download h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.template-whitepaper .bps_info ul {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: #999;
    font-size: 12px;
}

.template-whitepaper .bps_info b { font-weight: 400; }

.template-whitepaper .dl-action {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin: 0;
}

.template-whitepaper .btn_bps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 44px;
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    font-size: 15px;
}

.template-whitepaper .btn_bps:hover { color: #fff; background: #46862d; }

.template-whitepaper .dl-desc {
    margin-top: 22px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.template-whitepaper .dl-desc p { margin: 0 0 8px; }

/* 旧手册把参数写成两列表格，并在格子上写了 12px。 */
.template-whitepaper .dl-desc table {
    width: 100%;
    margin: 12px 0 4px;
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid var(--line);
    background: #fff;
}

.template-whitepaper .dl-desc td,
.template-whitepaper .dl-desc th,
.template-whitepaper .dl-desc td font,
.template-whitepaper .dl-desc th font {
    padding: 10px 14px;
    border: 1px solid var(--line);
    color: #333;
    font-size: 14px !important;
    line-height: 1.6;
    vertical-align: top;
}

.template-whitepaper .dl-desc td:first-child,
.template-whitepaper .dl-desc th:first-child {
    width: 1%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: none;
    border-right: none;
    background: transparent;
    white-space: nowrap;
    color: #666;
}

.template-whitepaper .dl-desc td:first-child font,
.template-whitepaper .dl-desc th:first-child font {
    border: none;
    color: #666;
}

.template-whitepaper .dl-desc tr:nth-child(even) td {
    background: #fafafa;
}

.template-whitepaper .dl-desc tr:nth-child(even) td:first-child {
    background: #fafafa;
}

.template-whitepaper .dl-preview { margin-top: 8px; }

.template-whitepaper .dl-preview-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    background: #e6e6e6;
}

.template-whitepaper .dl-preview-label {
    color: #c5c5c5;
    font-size: 32px;
    letter-spacing: 2px;
}

.template-whitepaper .dl-preview-stage canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
}

.template-whitepaper .dl-preview-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0 12px;
    color: var(--green);
    font-size: 14px;
}

.template-whitepaper .dl-preview-pager button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
}

.template-whitepaper .dl-preview-pager button:disabled {
    color: #bbb;
    cursor: default;
}

.template-whitepaper .dl-preview-pages {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.template-whitepaper .dl-preview-pages button.is-current {
    min-width: 22px;
    height: 22px;
    border: 1px solid var(--green);
    line-height: 20px;
}

.template-whitepaper .dl-preview-note {
    margin: 0 0 8px;
    color: #999;
    font-size: 12px;
    line-height: 1.7;
}

.template-whitepaper .dl-source {
    margin: 14px 0 28px;
    color: #999;
    font-size: 12px;
    text-align: right;
}

.template-whitepaper .dl-source a { color: #999; }

.template-whitepaper .article-related { margin: 18px 0 22px; }

.template-whitepaper .list12 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-whitepaper .list12 li {
    position: relative;
    padding: 7px 0 7px 14px;
    line-height: 1.5;
}

.template-whitepaper .list12 a:hover { color: var(--green); }

.template-whitepaper .list12 li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--green);
}

.template-whitepaper .side .home-promo-ad {
    height: 148px;
    margin-bottom: 16px;
}

.template-whitepaper .side .home-pills { padding-bottom: 8px; }

.template-article .page-main { padding-top: 16px; }

.template-article .wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: stretch;
}

.template-article .detail-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.template-article .article-side-bottom { margin-top: auto; }

.template-article .article-ad-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    margin-top: 20px;
}

.template-article .dl-banner {
    grid-template-columns: 1fr;
    margin: 0 0 16px;
}

.dl-kicker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: #f1f1f1;
}

.dl-label {
    margin: 0;
    padding-left: 8px;
    border-left: 3px solid var(--green);
    font-size: 18px;
    font-weight: 600;
}

.position { color: #999; font-size: 15px; }

.position a,
.position span { color: #999; }

.position a:hover { color: var(--green); }

/* 面包屑分隔符：禁跳转的一级导航出 span，同样要带 ">"，末位当前页除外。 */
.position a::after,
.position span:not([aria-current])::after {
    content: ">";
    margin: 0 8px;
    color: #b5b5b5;
}

.template-article .title-box h1 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.template-article .title-box p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 22px;
    color: #999;
    font-size: 12px;
    text-align: left;
}

.template-article .title-box span { margin: 0; }

.template-article .content {
    color: #333;
    font-size: 15px;
    line-height: 30px;
}

.template-article .content p { margin: 0 0 1em; }

.template-article .content .article-lead {
    margin: 8px 0 22px;
    padding: 14px 28px 12px;
    background: #fafafa;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    line-height: 30px;
}

.template-article .content img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 12px auto;
}

.template-article .art-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
    margin: 22px 0 16px;
}

.template-article .art-tags a {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 16px;
    border: 1px solid var(--green);
    border-radius: 30px;
    background: #fff;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.template-article .article-split {
    margin: 0 0 16px;
    border: 0;
    border-top: 1px solid #e8e8e8;
}

.template-article .next-art {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 22px;
}

.template-article .article-related { margin: 18px 0 22px; }

.template-article .article-related .dl-kicker { margin-bottom: 20px; }

.template-article .next-art p {
    flex: 1 1 0px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}

.template-article .next-art p.is-next {
    margin-left: auto;
    text-align: right;
}

.template-article .next-art a {
    display: block;
    overflow: hidden;
    color: #333;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-article .next-art a::before {
    content: "";
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--green);
}

.template-article .next-art a:hover { color: var(--green); }

.template-article .article-footer-ad { margin-top: 20px; }

.template-article .article-footer-ad .home-ad-slot:last-child { margin-bottom: 0; }

.template-article .detail-right .home-promo-ad {
    height: 148px;
    margin-bottom: 16px;
}

.template-category .page-main { padding-top: 16px; }

.template-category .cat-main > .home-slider { margin-bottom: 20px; }

/* 带轮播的栏目：特别推荐和轮播同高，下一行通栏与横条顶对齐。 */
.template-category .cat-layout.has-hero { row-gap: 20px; }

.template-category .cat-layout.has-hero > .cat-hero { grid-column: 1; grid-row: 1; }

.template-category .cat-layout.has-hero > .cat-hero .home-slider {
    height: 400px;
    min-height: 400px;
    margin: 0;
}

.template-category .cat-layout.has-hero > .cat-recommend {
    grid-column: 2;
    grid-row: 1;
    height: 400px;
    margin: 0;
    overflow: hidden;
}

.template-category .cat-layout.has-hero > .cat-main { grid-column: 1; grid-row: 2; }

.template-category .cat-layout.has-hero > .cat-side { grid-column: 2; grid-row: 2; }

.template-category .cat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    column-gap: 30px;
    row-gap: 28px;
    align-items: stretch;
}

.template-category .cat-side,
.template-search .cat-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.template-category .cat-side-bottom { margin-top: auto; }

.template-category .home-ad-row {
    grid-template-columns: minmax(0, 1fr) 310px;
}

/* 行业活动：固定模块之后，用剩余高度裁切 310×90 堆叠。 */
.template-category .cat-layout.is-activities .cat-side-stack {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.template-category .cat-layout.is-activities .cat-side-bottom { margin-top: 16px; }

.template-category .cat-side-stack .home-ad-slot {
    flex: 0 0 90px;
    width: 100%;
    margin-bottom: 0;
}

.cat-list { border-bottom: 1px solid #e8e8e8; }

.cat-row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.cat-thumb { position: relative; display: block; }

.cat-thumb img,
.cat-thumb-empty {
    display: block;
    width: 248px;
    height: 160px;
    object-fit: cover;
    background: #ececec;
}

.cat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 160px;
}

.cat-copy .title {
    margin: 0 0 10px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.cat-copy .title a { color: #000; }

.cat-copy .title a:hover { color: var(--green); }

.cat-copy p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-copy .cat-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.cat-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 12px;
    color: var(--green);
}

.cat-tags a { color: var(--green); }

.cat-tags a:hover { text-decoration: underline; }

.cat-empty { margin: 0 0 24px; color: #999; }

.cat-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.cat-pager a,
.cat-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #e5e5e5;
    background: #f3f3f3;
    color: #666;
    font-size: 13px;
}

.cat-pager .is-current {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.cat-pager .cat-pager-gap {
    min-width: 0;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #999;
}

.cat-pager a:hover { color: var(--green); border-color: var(--green); }

/* ===== 栏目页样式对齐知识课堂定稿（2026-11-02，与 .template-knowledge 同规格） ===== */

/* 页面底色纯白（全站 #fafafa，知识课堂/栏目页定稿为 #fff）。 */
.template-category { background: #ffffff; }

/* 版心 1290 = 970 主列 + 310 侧栏 + 10 间距；段间距 8。 */
.template-category .cat-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    column-gap: 10px;
    row-gap: 8px;
}

/* 旧规则 row-gap:20 特异度更高，压掉。 */
.template-category .cat-layout.has-hero { row-gap: 8px; }

.template-category .home-ad-row { gap: 10px; margin-top: 8px; }

.template-category .home-ad-row > .home-ad-slot { margin-bottom: 0; }

.template-category .cat-main > .home-ad-slot { margin-bottom: 8px; }

.template-category .cat-main > .home-promo-ad { margin-bottom: 8px; }

/* 轮播 310 高（知识课堂同款），圆角 4。 */
.template-category .cat-layout.has-hero > .cat-hero .home-slider {
    height: 310px;
    min-height: 310px;
    margin: 0;
    border-radius: 4px;
}

.template-category .cat-layout.has-hero > .cat-hero .home-slide { height: 310px; min-height: 310px; }

.template-category .cat-layout.has-hero > .cat-hero .home-slide img,
.template-category .cat-layout.has-hero > .cat-hero .home-slide .home-media { height: 310px; }

.template-category .cat-layout.has-hero > .cat-recommend {
    grid-column: 2;
    grid-row: 1;
    height: 310px;
    margin: 0;
    overflow: hidden;
}

.template-category .cat-main > .home-slider { margin-bottom: 8px; }

.template-category .cat-main > .home-slider,
.template-category .cat-main > .home-slider .home-slide { height: 310px; min-height: 310px; }

.template-category .cat-main > .home-slider .home-slide img,
.template-category .cat-main > .home-slider .home-slide .home-media { height: 310px; }

/* 侧栏：纵向 flex + 模块间距 8。搜索页侧栏同规格（见 .template-search .cat-side 系列）。 */
.template-category .cat-side,
.template-search .cat-side { gap: 8px; }

/* 侧栏模块（含轮播旁的特别推荐 .cat-recommend）：白底 1px #e8e8e8 边框 4px 圆角；标题 20px 粗体 + 7×26 圆角绿条；更多 16px。 */
.template-category .cat-side .home-widget,
.template-search .cat-side .home-widget,
.template-category .cat-recommend.home-widget {
    margin: 0;
    padding: 21px 21px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

.template-category .cat-side .home-widget header,
.template-search .cat-side .home-widget header,
.template-category .cat-recommend.home-widget header { margin-bottom: 0; }

.template-category .cat-side .home-widget h2,
.template-search .cat-side .home-widget h2,
.template-category .cat-recommend.home-widget h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    margin: 0;
    padding: 3px 0 0 14px;
    border-left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
}

.template-category .cat-side .home-widget h2::before,
.template-search .cat-side .home-widget h2::before,
.template-category .cat-recommend.home-widget h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-category .cat-side .home-widget header a,
.template-search .cat-side .home-widget header a,
.template-category .cat-recommend.home-widget header a { color: #333; font-size: 16px; line-height: 16px; }

/* 列表项：灰色三角、行距 28、首行距标题 33。 */
.template-category .cat-side .home-widget ul,
.template-search .cat-side .home-widget ul,
.template-category .cat-recommend.home-widget ul { margin-top: 33px; }

.template-category .cat-side .home-widget li,
.template-search .cat-side .home-widget li,
.template-category .cat-recommend.home-widget li {
    box-sizing: border-box;
    height: auto;
    margin-top: 28px;
    padding: 0 0 0 20px;
    line-height: 16px;
}

.template-category .cat-side .home-widget li:first-child,
.template-search .cat-side .home-widget li:first-child,
.template-category .cat-recommend.home-widget li:first-child { margin-top: 0; }

.template-category .cat-side .home-widget li::before,
.template-search .cat-side .home-widget li::before,
.template-category .cat-recommend.home-widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #b5b5b5;
}

.template-category .cat-side .home-widget li::after,
.template-search .cat-side .home-widget li::after,
.template-category .cat-recommend.home-widget li::after { content: none; }

.template-category .cat-side .home-widget li,
.template-search .cat-side .home-widget li,
.template-category .cat-recommend.home-widget li,
.template-category .cat-side .home-widget li a,
.template-search .cat-side .home-widget li a,
.template-category .cat-recommend.home-widget li a { color: #333; font-size: 16px; }

/* 热门搜索胶囊：高 27、行距 8、列距 7。 */
.template-category .cat-side .home-widget .home-pills,
.template-search .cat-side .home-widget .home-pills,
.template-category .cat-recommend.home-widget .home-pills {
    margin-top: 28px;
    gap: 8px 7px;
}

.template-category .cat-side .home-widget .home-pills a,
.template-search .cat-side .home-widget .home-pills a,
.template-category .cat-recommend.home-widget .home-pills a {
    box-sizing: border-box;
    height: 25px;
    padding: 0 18px;
    border: 1px solid #999;
    border-radius: 13px;
    color: #666;
    font-size: 14px;
    line-height: 23px;
}

/* 侧栏 250 广告位：外框 260 高、素材 300×250 居中、圆角 4。搜索页同规格。 */
.template-category .cat-side .home-ad-slot.is-250,
.template-search .cat-side .home-ad-slot.is-250 {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 260px;
    padding: 5px;
    border-radius: 4px;
}

.template-category .cat-side .home-ad-slot.is-250 .ad-item,
.template-category .cat-side .home-ad-slot.is-250 iframe,
.template-category .cat-side .home-ad-slot.is-250 img,
.template-search .cat-side .home-ad-slot.is-250 .ad-item,
.template-search .cat-side .home-ad-slot.is-250 iframe,
.template-search .cat-side .home-ad-slot.is-250 img {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* 栏目标题条（dl-kicker）：66 高 #fafafa 圆角 4，7×26 绿条 + 20px 粗体，面包屑 14px #999。知识课堂同规格。 */
.template-category .dl-kicker,
.template-knowledge .dl-kicker {
    display: flex;
    align-items: center;
    height: 66px;
    margin: 0 0 8px;
    padding: 0 20px;
    border-radius: 4px;
    background: #fafafa;
}

.template-category .dl-kicker .dl-label,
.template-knowledge .dl-kicker .dl-label {
    position: relative;
    margin: 0;
    padding: 0 0 0 21px;
    border-left: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

.template-category .dl-kicker .dl-label::before,
.template-knowledge .dl-kicker .dl-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-category .dl-kicker .position,
.template-knowledge .dl-kicker .position { margin-left: auto; font-size: 14px; }

/* 文章行卡片：250×162 圆角 4 缩略图 + 绿角标（首页同款）；标题 20/粗体/#333；摘要 3 行细体；meta 12px。 */
.template-category .cat-row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    position: relative;
    margin-bottom: 0;
    padding: 20px 20px 24px;
}

.template-category .cat-row:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(20px + 248px + 20px);
    right: 20px;
    bottom: 0;
    height: 1px;
    background: #e8e8e8;
}

.template-category .cat-thumb img,
.template-category .cat-thumb-empty {
    width: 248px;
    height: 160px;
    border-radius: 4px;
    object-fit: cover;
}

.template-category .cat-thumb .home-card-label {
    width: 77px;
    height: 28px;
    background: var(--green);
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    border-radius: 0 14px 14px 0;
}

.template-category .cat-copy { min-height: 160px; }

.template-category .cat-copy .title {
    min-width: 0;
    margin: 0 0 30px;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-category .cat-copy .title a { color: #333; }

.template-category .cat-copy p {
    color: #666;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
    -webkit-line-clamp: 3;
}

.template-category .cat-copy .cat-meta {
    padding-top: 6px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.template-category .cat-tags { font-size: 12px; }

.template-category .cat-list { border-bottom: 0; }


.template-category .home-promo-ad {
    height: 90px;
    margin-bottom: 16px;
}

.template-search .page-main { padding-top: 16px; }

.template-search .search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    column-gap: 10px;
    align-items: start;
}

/* 间距对照栏目页：通栏广告下缘 8、标题下缘 8、底部通栏行距 8。 */
.template-search .list-left > .home-ad-slot { margin-bottom: 8px; }

.template-search .home-ad-row { gap: 10px; margin-top: 8px; }

.template-search .bps-title {
    height: 40px;
    margin: 0 0 8px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    font-weight: 700;
    line-height: 40px;
}

.template-search .red { color: #f00; }

.template-search .search-res-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-search .search-res-list li {
    height: 140px;
    margin-top: 10px;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    line-height: 25px;
}

.template-search .search-res-list h3 {
    height: 30px;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-search .search-res-list h3 a { color: #009900; }

.template-search .search-res-list .des {
    height: 80px;
    margin: 0;
    overflow: hidden;
}

.template-search .search-res-list .time {
    margin: 0;
    color: #999;
}

.template-search .pageNav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 18px auto;
    font-size: 14px;
}

.template-search .pageNav a,
.template-search .pageNav strong,
.template-search .pageNav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid #ccdbe4;
    background: #fff;
}

.template-search .pageNav strong { border-color: transparent; }

.template-search .pageNav .na { color: #dbe1e6; }

.template-search .pageNav a:hover { color: #009900; }

.template-search .home-promo-ad {
    height: 90px;
    margin-bottom: 16px;
}

.template-search .home-ad-slot .ad-item,
.template-category .home-ad-slot .ad-item,
.template-knowledge .home-ad-slot .ad-item,
.template-whitepaper .home-ad-slot .ad-item,
.template-article .home-ad-slot .ad-item,
.template-tag .home-ad-slot .ad-item,
.template-search .home-ad-slot iframe,
.template-category .home-ad-slot iframe,
.template-knowledge .home-ad-slot iframe,
.template-whitepaper .home-ad-slot iframe,
.template-article .home-ad-slot iframe,
.template-tag .home-ad-slot iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.template-search .home-ad-slot img,
.template-category .home-ad-slot img,
.template-knowledge .home-ad-slot img,
.template-whitepaper .home-ad-slot img,
.template-article .home-ad-slot img,
.template-tag .home-ad-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 动图用原文件，缩进广告位里完整播放，不按静图那样裁切。 */
.ad-slot img.is-animated,
.home-banners img.is-animated {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.template-category .cat-ad-tall { height: 180px; }

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.2);
}

.login-overlay[hidden] { display: none; }

/* 登录/注册/成功三弹窗：PSD 6/7/8 号稿，统一 443×456，圆角 4。 */
.login-dialog {
    position: fixed;
    z-index: 40;
    inset: auto;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 443px;
    height: 456px;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 44px 52px 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translate(-50%, -50%);
}

.login-dialog::backdrop { background: transparent; }

.login-dialog-close {
    position: absolute;
    top: 22px;
    right: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    cursor: pointer;
}

.login-dialog-close svg { width: 20px; height: 20px; }

.login-dialog h2 {
    margin: 0 0 36px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* 注册弹窗头：返回登录紧跟标题右侧（PSD x915）。 */
.login-dialog-head {
    display: flex;
    align-items: center;
    margin: 0 0 22px;
}

.login-dialog-head h2 { margin: 0; }

.login-back,
.login-extra button {
    margin: 0 0 0 11px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--green);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.login-field-icon.is-muted { color: #b5b5b5; }

.login-code {
    flex: none;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #333;
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.login-code:disabled {
    color: #999;
    cursor: default;
}

/* 成功弹窗：绿圈 123、标题 20、按钮 183×48 居中（PSD y 布局 81/20/12/59）。 */
.login-dialog.is-success[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 81px 0 0;
    text-align: center;
}

.register-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 123px;
    height: 123px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
}

.register-mark svg { width: 56px; height: 42px; }

.login-dialog.is-success h2 {
    margin: 20px 0 0;
    font-size: 20px;
}

.register-note {
    margin: 12px 0 0;
    color: #333;
    font-size: 14px;
}

.login-dialog.is-success .login-submit {
    width: 183px;
    margin-top: 59px;
}

.login-field {
    display: flex;
    align-items: center;
    height: 50px;
    margin-top: 18px;
    padding: 0 20px;
    background: #fafafa;
    border-radius: 4px;
}

.login-form .login-field:first-child { margin-top: 0; }

.login-field-icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-right: 20px;
    color: var(--green);
}

.login-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.login-field input::placeholder { color: #999; }

.login-reveal {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    cursor: pointer;
}

.login-reveal svg { width: 22px; height: 16px; }
.login-reveal .icon-hide { display: none; }
.login-reveal[aria-pressed="true"] .icon-show { display: none; }
.login-reveal[aria-pressed="true"] .icon-hide { display: block; }

.login-error {
    margin: 6px 0 0;
    color: #d32f2f;
    font-size: 12px;
    line-height: 1.4;
}

.login-error[hidden] { display: none; }

.login-submit {
    width: 100%;
    height: 48px;
    margin-top: 28px;
    border: 0;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.login-submit:hover { background: #46862c; }

.login-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 19px 0 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.login-extra a { color: var(--green); }

.login-extra .login-forgot { color: #333; }

.login-extra .login-forgot:hover,
.login-extra a:hover { color: var(--green); }

.template-knowledge .page-main { padding-top: 16px; }

/* 知识课堂栏目页：设计稿 2-知识课堂.psd，版心 1290 = 970 主列 + 310 侧栏 + 10 间距。 */
.template-knowledge { background: #ffffff; }

.kb-page {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 段间距 8px：banner→广告行→列表→底部行。侧栏要做成纵向 flex，gap 才生效。 */
.template-knowledge .kb-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 主列顶横幅与标题条之间 8px。全局槽位下边距是 16px。 */
.template-knowledge .kb-main > .home-ad-slot { margin: 0 0 8px; }

.template-knowledge .home-ad-row { gap: 10px; }

/* 侧栏 310×260 外框，300×250 素材居中，不拉满。 */
.template-knowledge .kb-side .home-ad-slot.is-250 {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 260px;
    padding: 5px;
    border-radius: 4px;
}

.template-knowledge .kb-side .home-ad-slot.is-250 .ad-item,
.template-knowledge .kb-side .home-ad-slot.is-250 iframe,
.template-knowledge .kb-side .home-ad-slot.is-250 img {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.kb-page > .home-ad-slot,
.kb-page > .home-ad-row,
.kb-page .home-ad-row .home-ad-slot { margin: 0; }

.kb-top,
.kb-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 10px;
    align-items: start;
}

.kb-top { align-items: stretch; }

.kb-body { align-items: stretch; }

.kb-side-bottom { margin-top: auto; }

/* banner 轮播 974x313，圆角 4px 与标题条/缩略图统一。 */
.kb-page .kb-slider,
.kb-page .home-slide { height: 310px; min-height: 0; }

.kb-page .kb-slider { border-radius: 4px; }

.kb-page .home-slide img,
.kb-page .home-slide .home-media { height: 310px; }

.kb-page .home-slide-title { font-size: 16px; }

.kb-recommend li a,
.cat-recommend li a,
.template-knowledge .kb-side .home-widget li a,
.cat-side .home-widget li a,
.detail-right .home-widget li a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 侧栏模块：白底无边框。标题绿条 7×26，和主列同一规格。只作用在知识课堂，白皮书详情的 kb-side 不进这里。 */
/* 侧栏模块：白底 + 1px #e8e8e8 边框 + 4px 圆角（PSD 实测左缘x1295/右缘x1605/顶y88 有边线）。
   只作用在知识课堂，白皮书详情的 kb-side 不进这里。 */
.template-knowledge .kb-recommend.home-widget,
.template-knowledge .kb-side .home-widget {
    margin: 0;
    padding: 21px 21px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

/* 特别推荐跟 banner 一齐高，底不留 20px，否则第 6 条被裁掉。 */
.template-knowledge .kb-top .kb-recommend.home-widget {
    box-sizing: border-box;
    padding-bottom: 0;
    overflow: visible;
}

.kb-page .home-widget header { margin-bottom: 0; }

.kb-page .home-widget h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    margin: 0;
    padding: 3px 0 0 14px;
    border-left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
}

.kb-page .home-widget h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.kb-page .home-widget header a { color: #333; font-size: 16px; line-height: 16px; }

/* 侧栏列表：灰色三角，没有底框。行距 28px，绿条底到首行 33px。 */
.kb-page .home-widget ul { margin-top: 33px; }

.kb-page .home-widget li {
    box-sizing: border-box;
    height: auto;
    margin-top: 28px;
    padding: 0 0 0 20px;
    line-height: 16px;
}

.kb-page .home-widget li:first-child { margin-top: 0; }

.kb-page .home-widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 0;
    height: 0;
    border-radius: 0;
    background: transparent;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #b5b5b5;
}

.kb-page .home-widget li::after { content: none; }

.kb-page .home-widget li,
.kb-page .home-widget li a { color: #333; font-size: 16px; }

/* 热门搜索胶囊：高 27，行距 8，列距 7。 */
.kb-page .home-widget .home-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 28px;
    gap: 8px 7px;
}

.kb-page .home-widget .home-pills a {
    box-sizing: border-box;
    height: 25px;
    padding: 0 18px;
    border: 1px solid #999;
    border-radius: 13px;
    color: #666;
    font-size: 14px;
    line-height: 23px;
}

/* 列表块：标题条 69 高。绿条距左 20px，文字再隔 7px，大约落在 34px。 */
.kb-block + .kb-block { margin-top: 0; }

.kb-block h2 {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 66px;
    margin: 0;
    padding: 0 20px;
    background: #fafafa;
    border-left: 0;
    border-radius: 4px;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.kb-block h2::before {
    content: "";
    flex: none;
    width: 7px;
    height: 26px;
    margin-right: 14px;
    border-radius: 4px;
    background: var(--green);
}

/* 首区块标题行内嵌面包屑：右对齐常规体，不吃标题的粗体。 */
.kb-block h2 .position { margin-left: auto; font-size: 14px; font-weight: 400; }

/* 只命中标题自身的链接，别把面包屑里的 a 也染成 #333。 */
.kb-block h2 > a { color: #333; }

.kb-block h2 > a:hover { color: var(--green); }

/* 卡片：左右内收 20px。分隔线只画在文字列底下，不穿过缩略图。 */
/* 卡片：左右内收 20px，缩略图与标题条绿条左对齐（PSD: 绿条x334/缩略图x334/列左313）。分隔线只画文字列下方，右端距列缘 20px。 */
.kb-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px 20px 24px;
    border-bottom: 0;
}

.kb-card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(20px + 250px + 20px);
    right: 20px;
    bottom: 0;
    height: 1px;
    background: #e8e8e8;
}

.kb-thumb {
    position: relative;
    display: block;
    flex: 0 0 250px;
    align-self: flex-start;
    width: 250px;
    height: 162px;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f3f3;
}

.kb-thumb img,
.kb-thumb .home-media {
    display: block;
    width: 250px;
    height: 162px;
    border-radius: 4px;
    object-fit: cover;
}

/* 角标：与首页 home-card-label 同款（绿底白字、右侧半圆），2026-11-02 用户拍板对齐首页。 */
.kb-badge {
    position: absolute;
    top: 20px;
    left: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 77px;
    height: 28px;
    padding: 0;
    border-radius: 0 14px 14px 0;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
}

.kb-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 162px;
}

/* 和栏目页 .cat-copy .title 一样：一行放不下就省略，不折成两行。 */
.kb-card h3 {
    min-width: 0;
    margin: 0 0 30px;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.kb-card h3 a { color: #333; }

.kb-card h3 a:hover { color: var(--green); }

.kb-card p {
    margin: 0;
    color: #666;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kb-card p.kb-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 6px;
    color: #999;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.kb-meta > span { color: var(--green); }

.kb-paper-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kb-paper-row > p {
    flex: 1;
    min-width: 0;
}

.kb-card p.kb-paper-meta {
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: 8px;
    color: #999;
    line-height: 16px;
}

.kb-paper-meta > time,
.kb-paper-meta > span { color: #999; }

.kb-paper-meta > * + *::before {
    content: "|";
    margin: 0 6px;
    color: #999;
}

/* 白皮书标签默认 3 个，停在上面看全部。 */
.kb-paper-tags { position: relative; }

.kb-paper-tags-all {
    display: none;
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: 320px;
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    white-space: normal;
    line-height: 18px;
}

.kb-paper-tags:hover .kb-paper-tags-all,
.kb-paper-tags:focus-within .kb-paper-tags-all { display: block; }

.kb-download {
    flex: none;
    align-self: center;
    width: 78px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border-radius: 16px;
    background: #dcebd7;
    color: #529b35;
    font-size: 14px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    white-space: nowrap;
}

.kb-download:hover { background: #cfe3c4; color: #46862d; }

.kb-side .home-ad-slot,
.cat-side .home-ad-slot,
.detail-right .home-ad-slot { margin: 0; }

.kb-side .home-widget,
.cat-side .home-widget,
.detail-right .home-widget { margin: 0; }

html:has(body.template-manufacturers),
html:has(body.template-components),
html:has(body.template-tags) { background: #fff; }

body.template-manufacturers,
body.template-components,
body.template-tags { background: #fff; }

.template-manufacturers .page-main,
.template-components .page-main,
.template-tags .page-main {
    align-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 64px;
}

.mfr-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    height: 227px;
    margin-bottom: 20px;
    background: #f4f8f1 url("../img/mfr-search-bg.497712ea5a25.png") center / 100% 100% no-repeat;
}

.mfr-search-form {
    display: flex;
    width: min(955px, calc(100% - 64px));
    border-radius: 8px;
    background: #fff;
}

.mfr-search-form input {
    flex: 1;
    height: 66px;
    padding: 0 16px 0 40px;
    border: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.mfr-search-form input::placeholder { color: #b0b0b0; }

.mfr-search-form button {
    flex: 0 0 125px;
    height: 66px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.mfr-search-form button:hover { background: #46862c; }

.mfr-hot {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.mfr-hot a {
    margin-left: 12px;
    color: #999;
}

.mfr-hot a:hover { color: var(--green); }

.mfr-wrap {
    width: var(--content);
    margin: 0 auto;
}

.template-manufacturers .mfr-heading,
.template-components .mfr-heading,
.template-tags .mfr-heading {
    display: flex;
    align-items: center;
    height: 69px;
    margin: 0 0 22px;
    padding: 0 21px;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.mfr-heading::before {
    content: "";
    width: 7px;
    height: 26px;
    margin-right: 14px;
    border-radius: 2px;
    background: var(--green);
}

.mfr-letters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 0 8px;
}

.mfr-letters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    color: #666;
    font-size: 16px;
    line-height: 1;
}

.mfr-letters a:first-child { color: #adadad; }

.mfr-letters a.is-active {
    width: 27px;
    height: 28px;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
}

.mfr-letters a:hover { color: var(--green); }

.mfr-letters a.is-active:hover { color: #fff; }

.mfr-count {
    margin: 0;
    padding: 0 8px 14px;
    border-bottom: 1px solid #e8e8e8;
    color: #666;
    font-size: 16px;
    font-weight: 700;
}

.mfr-grid {
    display: grid;
    grid-template-columns: repeat(6, 192px);
    justify-content: space-between;
    row-gap: 60px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.mfr-card { display: block; }

.mfr-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 192px;
    height: 78px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.mfr-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mfr-name {
    display: block;
    margin-top: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.mfr-card:hover .mfr-name { color: var(--green); }

.comp-chips {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 17px;
    margin-top: 22px;
}

.comp-chips > p { grid-column: 1 / -1; }

.comp-chips a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    border-radius: 4px;
    background: #f4f6f6;
    color: #333;
    font-size: 14px;
}

.comp-chips a.is-active {
    background: var(--green);
    color: #fff;
}

.comp-chips a:hover { color: var(--green); }

.comp-chips a.is-active:hover { color: #fff; }

.tags-catalog {
    display: grid;
    grid-template-columns: 241px minmax(0, 1fr);
    column-gap: 20px;
    align-items: stretch;
    width: var(--content);
    margin: 0 auto;
}

.tags-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 862px;
    padding: 19px 10px 32px;
    background: #fafafa;
}

.tags-tabs a {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px 0 23px;
    border-radius: 2px;
    color: #333;
    font-size: 16px;
}

.tags-tabs a.is-active {
    background: #fff;
    color: #333;
    font-weight: 700;
}

.tags-tabs a.is-active::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 11px;
    width: 3px;
    height: 15px;
    background: var(--green);
}

.tags-tabs a:hover { color: var(--green); }

.tags-tabs a.is-active:hover { color: #333; }

.template-tags .page-main h1.tags-catalog-title {
    margin: 22px 0 0;
    padding: 0 0 20px;
    border-bottom: 1px solid #e8e8e8;
    color: #666;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
}

.template-tags .mfr-search {
    height: 228px;
    gap: 20px;
    margin-bottom: 8px;
}

.template-tags .mfr-search-form {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.template-tags .mfr-search-form input {
    height: 64px;
    padding-left: 54px;
}

.template-tags .mfr-search-form input::placeholder { color: #999; }

.template-tags .mfr-search-form button {
    height: 64px;
    border-radius: 0;
}

.template-tags .mfr-hot {
    width: min(955px, calc(100% - 64px));
    padding-left: 54px;
    box-sizing: border-box;
}

.template-tags .mfr-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 19px;
    row-gap: 36px;
    margin-top: 24px;
}

.template-tags .mfr-logo {
    width: 100%;
    height: 98px;
    border-radius: 4px;
    border-color: #e8e8e8;
}

.template-tags .mfr-name { margin-top: 16px; }

.template-tags .mfr-letters {
    margin: 21px 0 33px;
    padding: 0;
}

.template-tags .mfr-letters a.is-active {
    width: 24px;
    height: 24px;
}

.template-tags .mfr-count {
    padding: 0 0 24px;
    border-bottom-color: #e8e8e8;
}

.tag-cover-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 38px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tag-cover-card { display: block; }

.tag-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 102px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

.tag-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tag-cover-name {
    display: block;
    margin-top: 18px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.tag-cover-card:hover .tag-cover-name { color: var(--green); }

.tag-cover-grid .cat-empty { grid-column: 1 / -1; }

@media (max-width: 720px) {
    .tags-catalog { grid-template-columns: 1fr; }

    .tags-tabs { min-height: 0; }

    .tag-cover-grid,
    .template-tags .mfr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.template-tag .page-main { padding-top: 16px; }

.template-tag .home-ad-row {
    grid-template-columns: minmax(0, 1fr) 310px;
    margin-top: 0;
}

.template-tag .home-ad-row .home-ad-slot { margin-bottom: 0; }

.template-tag .tag-page > .home-ad-row:last-child { margin-top: 20px; }

.template-tag .tag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    align-items: stretch;
    margin-top: 16px;
}

.template-tag .tag-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.template-tag .tag-side-bottom { margin-top: auto; }

.template-tag .tag-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 8px;
    padding-right: 20px;
    padding-left: 20px;
}

.template-tag .tag-logo {
    display: flex;
    flex: 0 0 248px;
    align-items: center;
    justify-content: center;
    width: 248px;
    height: 160px;
    padding: 18px;
    overflow: hidden;
    background: #fff;
}

.template-tag .tag-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.template-tag .tag-profile-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    height: 160px;
    overflow: hidden;
}

.template-tag .tag-profile h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.template-tag .tag-profile p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: #666;
    font-size: 13px;
    line-height: 1.75;
}

.template-tag .tag-filters {
    display: flex;
    gap: 28px;
    margin: 8px 20px 22px;
    border-bottom: 1px solid #eee;
}

.template-tag .cat-empty { margin: 0 20px 24px; }

.template-tag .tag-filters a {
    padding: 10px 0 12px;
    color: #333;
    font-size: 14px;
}

.template-tag .tag-filters a.is-active {
    margin-bottom: -1px;
    border-bottom: 2px solid var(--green);
    color: var(--green);
}

.template-tag .tag-filters a:hover { color: var(--green); }

.template-tag .tag-side .home-widget h2 { border-left-width: 4px; }

.template-tag .tag-suppliers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
}

.template-tag .tag-supplier { display: block; min-width: 0; }

.template-tag .tag-supplier-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 87px;
    height: 42px;
    margin: 0 auto;
    padding: 4px 5px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

.template-tag .tag-supplier-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.template-tag .tag-supplier-name {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-tag .tag-supplier:hover .tag-supplier-name { color: var(--green); }

.template-tag .tag-side .home-ad-slot { margin-bottom: 16px; }

.template-tag .tag-side .home-ad-slot:last-child { margin-bottom: 0; }

/* ===== 内容页 / 下载页样式对齐设计稿（2026-11-02） ===== */
/* 格局不动：仍是主列 + 310 侧栏，广告位顺序不变。版心间距 10，段间距 8，页面底色 #fff。 */

.template-article,
.template-whitepaper { background: #ffffff; }

.template-article .wrapper,
.template-whitepaper .wrapper {
    column-gap: 10px;
    gap: 10px;
}

.template-article .detail-left > .home-ad-slot,
.template-whitepaper .main > .home-ad-slot { margin: 0 0 8px; }

.template-article .article-ad-bottom,
.template-whitepaper .home-ad-row {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 10px;
    margin-top: 8px;
}

.template-article .article-ad-bottom > .home-ad-slot,
.template-whitepaper .home-ad-row > .home-ad-slot { margin-bottom: 0; }

/* 标题条：66 高 #fafafa，7×26 绿条，标题 20 粗体。面包屑同栏目页：靠右、14px #999。 */
.template-article .dl-kicker,
.template-whitepaper .dl-kicker {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 66px;
    margin: 0 0 17px;
    padding: 0 20px;
    border-radius: 4px;
    background: #fafafa;
}

.template-article .detail-left > .dl-kicker { margin-bottom: 43px; }

.template-article .dl-kicker .dl-label,
.template-whitepaper .dl-kicker .dl-label {
    position: relative;
    margin: 0;
    padding: 0 0 0 21px;
    border-left: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

.template-article .dl-kicker .dl-label::before,
.template-whitepaper .dl-kicker .dl-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-article .dl-kicker .position,
.template-whitepaper .dl-kicker .position,
.template-article .dl-kicker nav,
.template-whitepaper .dl-kicker nav {
    margin-left: auto;
    font-size: 14px;
}

/* 正文左右各收 20px，和设计稿标题/导读框/正文同一条边（栏左 315，文字 336）。标题条和上下篇仍铺满主列。 */
.template-article .title-box,
.template-article .content,
.template-article .article-files,
.template-article .art-tags {
    padding-right: 20px;
    padding-left: 20px;
}

/* 内容页标题 36/48 粗体，副信息 12 #999，导读灰底，正文 14 细体行高 30。 */
.template-article .title-box h1 {
    margin: 0 0 16px;
    color: #333;
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
    text-align: left;
}

.template-article .title-box p {
    gap: 8px 24px;
    margin: 0 0 30px;
    color: #999;
    font-size: 12px;
    line-height: 14px;
}

.template-article .content {
    color: #333;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
}

.template-article .content p { margin: 0 0 30px; }

.template-article .article-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    margin: 8px 0 35px;
    padding-top: 0;
    padding-bottom: 0;
    list-style: none;
    color: #777d78;
    font-size: 15px;
    line-height: 20px;
}

.template-article .article-files a { color: #999; }

.template-article .article-files .bi {
    margin-right: 4px;
    font-size: 16px;
    vertical-align: -2px;
}

.template-article .content h2,
.template-article .content h3,
.template-article .content h4 {
    margin: 0 0 0;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
}

.template-article .content .article-lead {
    margin: 0 0 45px;
    padding: 22px 20px;
    border-radius: 4px;
    background: #fafafa;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
}

.template-article .art-tags {
    justify-content: flex-end;
    gap: 8px 16px;
    margin: 8px 0 16px;
}

.template-article .art-tags a {
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}

.template-article .article-split {
    margin: 12px 0 0;
    border-top-color: #e8e8e8;
}

.template-article .next-art { margin: 28px 0 0; }

.template-article .next-art a {
    color: #666;
    font-size: 12px;
    font-weight: 300;
    line-height: 14px;
}

.template-article .next-art a::before { content: none; }

.template-article .next-art a:hover { color: var(--green); }

/* 下载页正文左右各收 20px，封面和简介与设计稿同一条边。标题条仍铺满主列。 */
.template-whitepaper .bps_info,
.template-whitepaper .dl-desc,
.template-whitepaper .dl-source,
.template-whitepaper .dl-preview-stage,
.template-whitepaper .dl-preview-pager,
.template-whitepaper .dl-preview-note {
    padding-right: 20px;
    padding-left: 20px;
}

/* 下载页：封面 248×160，标题 20 粗体，按钮 182×48。 */
.template-whitepaper .bps_info {
    grid-template-columns: 248px minmax(0, 1fr);
    column-gap: 19px;
    min-height: 160px;
    align-items: start;
}

.template-whitepaper .dl-cover img,
.template-whitepaper .dl-cover .home-media {
    width: 248px;
    height: 160px;
    border-radius: 4px;
}

.template-whitepaper .bps_download h1 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.template-whitepaper .bps_info ul {
    gap: 6px 18px;
    margin: 19px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 14px;
}

.template-whitepaper .btn_bps {
    width: 182px;
    height: 48px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 400;
}

.template-whitepaper .dl-desc {
    margin-top: 31px;
    color: #333;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
}

.template-whitepaper .dl-desc p { margin: 0 0 30px; }

.template-whitepaper .dl-source {
    margin: 31px 0 0;
    color: #999;
    font-size: 12px;
    font-weight: 300;
    line-height: 14px;
    text-align: right;
}

.template-whitepaper .dl-source span,
.template-whitepaper .dl-source a { color: #999; }

/* 为您推荐：左文右图 155×100，标题 18，摘要两行 14/24，日期 12。 */
.template-article .article-related,
.template-whitepaper .article-related { margin: 32px 0 0; }

.template-article .article-related .dl-kicker,
.template-whitepaper .article-related .dl-kicker { margin: 0; }

.template-article .article-related .cat-list,
.template-whitepaper .article-related .cat-list {
    padding-right: 20px;
    padding-left: 20px;
    border-bottom: 0;
}

.template-article .article-related .cat-row,
.template-whitepaper .article-related .cat-row {
    grid-template-columns: minmax(0, 1fr) 155px;
    gap: 19px;
    margin: 0;
    padding: 22px 0 18px;
    border-bottom: 1px solid #e8e8e8;
}

.template-article .article-related .cat-thumb,
.template-whitepaper .article-related .cat-thumb {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.template-article .article-related .cat-copy,
.template-whitepaper .article-related .cat-copy {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
}

.template-article .article-related .cat-thumb img,
.template-article .article-related .cat-thumb-empty,
.template-whitepaper .article-related .cat-thumb img,
.template-whitepaper .article-related .cat-thumb-empty {
    width: 155px;
    height: 100px;
    border-radius: 4px;
}

/* 设计稿里推荐卡的分类角标是隐藏的，小图上不再盖一层。 */
.template-article .article-related .home-card-label,
.template-whitepaper .article-related .home-card-label { display: none; }

.template-article .article-related .cat-copy .title,
.template-whitepaper .article-related .cat-copy .title {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
}

.template-article .article-related .cat-copy .title a,
.template-whitepaper .article-related .cat-copy .title a { color: #333; }

.template-article .article-related .cat-copy p,
.template-whitepaper .article-related .cat-copy p {
    margin: 0;
    color: #333;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    -webkit-line-clamp: 2;
}

.template-article .article-related .cat-copy .cat-meta,
.template-whitepaper .article-related .cat-copy .cat-meta {
    margin-top: 19px;
    padding-top: 0;
    color: #999;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    -webkit-line-clamp: unset;
}

.template-article .article-related .cat-tags,
.template-whitepaper .article-related .cat-tags { font-size: 12px; font-weight: 400; }

/* 侧栏与栏目页同一套：模块间距 8，白底圆角边框，灰三角，热门搜索胶囊，250 广告 300×250 居中。 */
.template-article .detail-right,
.template-whitepaper .side.kb-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-article .detail-right .home-widget,
.template-whitepaper .side .home-widget {
    margin: 0;
    padding: 21px 21px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

.template-article .detail-right .home-widget header,
.template-whitepaper .side .home-widget header { margin-bottom: 0; }

.template-article .detail-right .home-widget h2,
.template-whitepaper .side .home-widget h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    margin: 0;
    padding: 3px 0 0 14px;
    border-left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
}

.template-article .detail-right .home-widget h2::before,
.template-whitepaper .side .home-widget h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-article .detail-right .home-widget header a,
.template-whitepaper .side .home-widget header a {
    color: #333;
    font-size: 16px;
    line-height: 16px;
}

.template-article .detail-right .home-widget ul,
.template-whitepaper .side .home-widget ul { margin-top: 33px; }

.template-article .detail-right .home-widget li,
.template-whitepaper .side .home-widget li {
    box-sizing: border-box;
    height: auto;
    margin-top: 28px;
    padding: 0 0 0 20px;
    line-height: 16px;
}

.template-article .detail-right .home-widget li:first-child,
.template-whitepaper .side .home-widget li:first-child { margin-top: 0; }

.template-article .detail-right .home-widget li::before,
.template-whitepaper .side .home-widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #b5b5b5;
}

.template-article .detail-right .home-widget li::after,
.template-whitepaper .side .home-widget li::after { content: none; }

.template-article .detail-right .home-widget li,
.template-article .detail-right .home-widget li a,
.template-whitepaper .side .home-widget li,
.template-whitepaper .side .home-widget li a {
    color: #333;
    font-size: 16px;
}

.template-whitepaper .side .home-widget li a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-article .detail-right .home-widget .home-pills,
.template-whitepaper .side .home-widget .home-pills {
    margin-top: 28px;
    gap: 8px 7px;
}

.template-article .detail-right .home-widget .home-pills a,
.template-whitepaper .side .home-widget .home-pills a {
    box-sizing: border-box;
    height: 25px;
    padding: 0 18px;
    border: 1px solid #999;
    border-radius: 13px;
    color: #666;
    font-size: 14px;
    line-height: 23px;
}

.template-article .detail-right .home-ad-slot.is-250,
.template-whitepaper .side .home-ad-slot.is-250 {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 260px;
    padding: 5px;
    border-radius: 4px;
}

.template-article .detail-right .home-ad-slot.is-250 .ad-item,
.template-article .detail-right .home-ad-slot.is-250 iframe,
.template-article .detail-right .home-ad-slot.is-250 img,
.template-whitepaper .side .home-ad-slot.is-250 .ad-item,
.template-whitepaper .side .home-ad-slot.is-250 iframe,
.template-whitepaper .side .home-ad-slot.is-250 img {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* ===== 标签列表页对齐栏目页：间距、标题条、文章行、侧栏（2026-11-02） ===== */

.template-tag { background: #ffffff; }

.template-tag .home-ad-row { gap: 10px; }

.template-tag .tag-page > .home-ad-row:last-child { margin-top: 8px; }

.template-tag .tag-layout {
    column-gap: 10px;
    gap: 10px;
    margin-top: 8px;
}

.template-tag .dl-kicker {
    display: flex;
    align-items: center;
    height: 66px;
    margin: 0 0 8px;
    padding: 0 20px;
    border-radius: 4px;
    background: #fafafa;
}

.template-tag .dl-kicker .dl-label {
    position: relative;
    margin: 0;
    padding: 0 0 0 21px;
    border-left: 0;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

.template-tag .dl-kicker .dl-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-tag .dl-kicker .position { margin-left: auto; font-size: 14px; }

.template-tag .cat-list { border-bottom: 0; }

.template-tag .cat-row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 20px;
    position: relative;
    margin-bottom: 0;
    padding: 20px 20px 24px;
}

.template-tag .cat-row:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(20px + 248px + 20px);
    right: 20px;
    bottom: 0;
    height: 1px;
    background: #e8e8e8;
}

.template-tag .cat-thumb img,
.template-tag .cat-thumb-empty {
    width: 248px;
    height: 160px;
    border-radius: 4px;
    object-fit: cover;
}

.template-tag .cat-thumb .home-card-label {
    width: 77px;
    height: 28px;
    background: var(--green);
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    border-radius: 0 14px 14px 0;
}

.template-tag .cat-copy { min-height: 160px; }

.template-tag .cat-copy .title {
    min-width: 0;
    margin: 0 0 30px;
    overflow: hidden;
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-tag .cat-copy .title a { color: #333; }

.template-tag .cat-copy p {
    color: #666;
    font-family: "Microsoft YaHei Light", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 30px;
    -webkit-line-clamp: 3;
}

.template-tag .cat-copy .cat-meta {
    padding-top: 6px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.template-tag .cat-tags { font-size: 12px; }

.template-tag .tag-side {
    gap: 8px;
}

.template-tag .tag-side .home-widget {
    margin: 0;
    padding: 21px 21px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
}

.template-tag .tag-side .home-widget header { margin-bottom: 0; }

.template-tag .tag-side .home-widget h2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    height: 26px;
    min-height: 26px;
    margin: 0;
    padding: 3px 0 0 14px;
    border-left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
}

.template-tag .tag-side .home-widget h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 26px;
    border-radius: 4px;
    background: var(--green);
}

.template-tag .tag-side .home-widget header a {
    color: #333;
    font-size: 16px;
    line-height: 16px;
}

.template-tag .tag-suppliers { margin-top: 20px; }

.template-tag .tag-side .home-widget .home-pills {
    margin-top: 28px;
    gap: 8px 7px;
}

.template-tag .tag-side .home-widget .home-pills a {
    box-sizing: border-box;
    height: 25px;
    padding: 0 18px;
    border: 1px solid #999;
    border-radius: 13px;
    color: #666;
    font-size: 14px;
    line-height: 23px;
}

.template-tag .tag-side .home-ad-slot { margin-bottom: 0; }

.template-tag .tag-side .home-ad-slot.is-250 {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 260px;
    padding: 5px;
    border-radius: 4px;
}

.template-tag .tag-side .home-ad-slot.is-250 .ad-item,
.template-tag .tag-side .home-ad-slot.is-250 iframe,
.template-tag .tag-side .home-ad-slot.is-250 img {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* ===== 404 ===== */

.template-404 { background: #ffffff; }

/* 页头 68 到页脚之间共 724：插图上方 193，下方 229。 */
.template-404 .page-main { padding: 193px 0 229px; }

/* 定稿整组偏左 21px：插图左缘距版心 275，文字右缘距版心 317。 */
.not-found {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-right: 42px;
}

.not-found-art {
    display: block;
    flex: 0 0 auto;
}

.not-found-copy {
    margin-top: 47px;
    color: #000;
}

.not-found-copy img { display: block; }

.not-found h1 {
    margin: 30px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 24px;
}

.not-found p {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 18px;
}

.not-found a:hover { color: var(--green); }

@media (max-width: 720px) {
    .template-404 .page-main { padding: 60px 0 80px; }

    .not-found {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        text-align: center;
    }

    .not-found-art {
        width: 100%;
        max-width: 462px;
        height: auto;
    }

    .not-found-copy { margin-top: 24px; }

    .not-found-copy img { margin: 0 auto; }
}
