/*
 * Home 模块统一视觉层。
 * 保留旧 WebForms/Bootstrap 结构，只接管布局、链接反馈和内容卡片。
 */

.legacy-home-body .legacy-home-shell > form,
.legacy-home-body .legacy-home-content {
    width: min(100%, 1480px);
    margin-right: auto;
    margin-left: auto;
}

.legacy-home-body .templatemo_portfolio {
    overflow: hidden;
    background: var(--wb-surface);
}

.legacy-home-body .templatemo_portfolio > .container {
    width: 100% !important;
    max-width: none;
}

.legacy-home-body .templatemo_portfolio > h2,
.legacy-home-body .templatemo_portfolio > .container > h2 {
    letter-spacing: -.02em;
}

/* 文字链接始终具有可识别性，不再只靠鼠标造过后才变化。 */
.legacy-home-body .templatemo_portfolio a[href]:not(.btn):not(.home-slider-slide),
.legacy-home-body .productItem a[href]:not(.btn),
.legacy-home-body .productItemF a[href]:not(.btn),
.legacy-home-body .pright a[href]:not(.btn) {
    color: var(--wb-brand-strong);
    font-weight: 620;
    text-decoration: underline;
    text-decoration-color: rgba(33, 115, 70, .32);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .16s ease, text-decoration-color .16s ease, background-color .16s ease;
}

.legacy-home-body .templatemo_portfolio a[href]:not(.btn):not(.home-slider-slide):hover,
.legacy-home-body .productItem a[href]:not(.btn):hover,
.legacy-home-body .productItemF a[href]:not(.btn):hover,
.legacy-home-body .pright a[href]:not(.btn):hover {
    color: var(--wb-brand);
    text-decoration-color: currentColor;
}

.legacy-home-body .templatemo_portfolio a[href]:focus-visible,
.legacy-home-body .productItem a[href]:focus-visible,
.legacy-home-body .productItemF a[href]:focus-visible,
.legacy-home-body .pright a[href]:focus-visible {
    border-radius: 4px;
    outline: 2px solid rgba(33, 115, 70, .48);
    outline-offset: 3px;
}
.legacy-home-body .home-products-page .list-group {
    overflow: visible;
}
.legacy-home-body .home-products-page .list-group-item:where(:not(.list-group-item-info, .list-group-item-warning, .list-group-item-success, .list-group-item-danger)) {
    position: relative;
    transition: background .16s ease, box-shadow .16s ease;
}
.legacy-home-body .home-products-page .list-group-item:where(:not(.list-group-item-info, .list-group-item-warning, .list-group-item-success, .list-group-item-danger)):first-child {
    padding: 12px 16px !important;
    color: var(--wb-ink) !important;
    background: var(--wb-surface-soft) !important;
    border-radius: 12px 12px 0 0;
    font-size: 14px !important;
    letter-spacing: .02em;
}
.legacy-home-body .home-products-page .list-group-item:where(:not(.list-group-item-info, .list-group-item-warning, .list-group-item-success, .list-group-item-danger)):not(:first-child):hover {
    z-index: 1;
    background: #fbfdfb !important;
    box-shadow: inset 3px 0 0 var(--wb-brand);
}

.legacy-home-body .home-products-page .list-group-item .row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
    gap: 10px 14px;
}

.legacy-home-body .home-products-page .list-group-item .row::before,
.legacy-home-body .home-products-page .list-group-item .row::after { display: none; content: none; }

.legacy-home-body .home-products-page .list-group-item .col-sm-1,
.legacy-home-body .home-products-page .list-group-item .col-sm-4,
.legacy-home-body .home-products-page .list-group-item .col-sm-7,
.legacy-home-body .home-products-page .list-group-item .col-sm-11 {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

.legacy-home-body .home-products-page .list-group-item .col-sm-4 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.legacy-home-body .home-products-page .list-group-item h5 {
    margin: 0;
    color: var(--wb-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}

.legacy-home-body .home-products-page .list-group-item h5 > a {
    color: var(--wb-ink);
    font-size: 14px;
    font-weight: 720;
}

.legacy-home-body .home-products-page .list-group-item img[style*="40px"] {
    display: block;
    width: 44px !important;
    height: 44px !important;
    margin: 0;
    background: var(--wb-brand-soft);
    border: 1px solid #d4e5da;
    border-radius: 10px;
    object-fit: cover;
}

/* 产品详情、说明页和会员页的通用内容块。 */
.legacy-home-body .productItem,
.legacy-home-body .productItemF {
    position: relative;
    padding: 22px 24px;
    color: var(--wb-text);
    background: #fff;
    border: 1px solid var(--wb-line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(23, 33, 27, .025);
    font-size: 14px;
    line-height: 1.85;
}

.legacy-home-body .productItem + .productItem,
.legacy-home-body .productItem + .productItemF,
.legacy-home-body .productItemF + .productItem,
.legacy-home-body .productItemF + .productItemF { margin-top: 12px; }

.legacy-home-body .productItem h3,
.legacy-home-body .productItem h4,
.legacy-home-body .productItemF h3,
.legacy-home-body .productItemF h4 {
    color: var(--wb-ink);
    font-weight: 720;
    line-height: 1.45;
}

.legacy-home-body .productItem hr,
.legacy-home-body .productItemF hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--wb-line);
}

.legacy-home-body .productItem img,
.legacy-home-body .productItemF img {
    max-width: 100% !important;
    height: auto !important;
}

.legacy-home-body .productItem .list-group,
.legacy-home-body .productItemF .list-group { margin-bottom: 0; }
.legacy-home-body .home-membership-page .list-group-item-warning .glyphicon { margin-right: 6px; }
.legacy-home-body .home-membership-page .list-group-item img { display: block; margin: 14px auto; }

.legacy-home-body .home-about-page .productItemF > img[style*="float:right"] {
    width: min(42%, 500px) !important;
    margin: 0 0 20px 32px !important;
    padding: 0 !important;
    border: 1px solid var(--wb-line);
    border-radius: 12px;
    box-shadow: var(--wb-shadow-sm);
}

.legacy-home-body .home-changelog-page .productItemF {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.9;
}

.legacy-home-body .home-changelog-page .productItemF a[href] {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 2px 7px;
    background: var(--wb-brand-soft);
    border-radius: 6px;
    text-decoration: none;
}

/* 建议反馈表单。 */
.legacy-home-body .home-feedback-page form {
    max-width: 920px;
    margin: 0 auto;
    padding: 4px 0;
}

.legacy-home-body .home-feedback-page .row { margin-bottom: 12px; }
.legacy-home-body .home-feedback-page .form-control {
    min-height: 42px;
    color: var(--wb-text);
    background: #fff;
    border-color: var(--wb-line-strong);
    border-radius: 8px;
    box-shadow: none;
}

.legacy-home-body .home-feedback-page textarea.form-control { min-height: 150px; resize: vertical; }
.legacy-home-body .home-feedback-page .form-control:focus {
    border-color: var(--wb-brand);
    box-shadow: var(--wb-focus);
}

.legacy-home-body .home-feedback-page .input-group-addon {
    min-width: 94px;
    color: var(--wb-text);
    background: var(--wb-surface-soft);
    border-color: var(--wb-line-strong);
    text-align: left;
}

/* 独立动画/文档页：左侧目录 + 右侧内容。 */
.legacy-home-body .legacy-home-shell > .pmain {
    display: grid;
    width: min(100%, 1480px) !important;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    margin: 0 auto 24px !important;
    gap: 18px;
}

.legacy-home-body .pmain > a[name] { display: none; }
.legacy-home-body .pmain .catlog {
    position: sticky !important;
    top: calc(var(--wb-topbar-height) + 14px) !important;
    float: none;
    width: 100%;
    max-height: calc(100vh - var(--wb-topbar-height) - 28px);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wb-line);
    border-radius: 12px;
    box-shadow: var(--wb-shadow-sm);
}

.legacy-home-body .pmain .catlog .infoTitle {
    float: none;
    height: auto;
    padding: 13px 15px;
    color: var(--wb-ink);
    background: var(--wb-surface-soft);
    border-bottom: 1px solid var(--wb-line);
    font-size: 14px;
    font-weight: 720;
}

.legacy-home-body .pmain .infoMain {
    float: none;
    width: 100%;
    height: calc(100vh - var(--wb-topbar-height) - 86px) !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px;
    background: #fff;
    scrollbar-width: thin;
}

.legacy-home-body .pmain .infoMain .section,
.legacy-home-body .pmain .infoMain ul,
.legacy-home-body .pmain .infoMain li { float: none; width: 100%; }

.legacy-home-body .pmain .infoMain .subtt {
    min-height: 36px;
    padding: 8px 10px;
    color: var(--wb-text);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.legacy-home-body .pmain .infoMain .subtt:hover { background: var(--wb-canvas); }
.legacy-home-body .pmain .infoMain li a {
    min-height: 34px;
    padding: 7px 10px 7px 26px;
    overflow: hidden;
    color: var(--wb-text);
    border: 0;
    border-radius: 7px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legacy-home-body .pmain .infoMain li a:hover { color: var(--wb-brand-strong); background: var(--wb-brand-soft); }
.legacy-home-body .pmain .infoMain li a.selected {
    color: var(--wb-brand-strong);
    background: var(--wb-brand-soft);
    border-left: 3px solid var(--wb-brand);
    font-weight: 700;
}

.legacy-home-body .pmain .pright {
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 620px;
    margin: 0;
    padding: 26px 30px;
    color: var(--wb-text);
    background: #fff;
    border: 1px solid var(--wb-line);
    border-radius: 12px;
    box-shadow: var(--wb-shadow-sm);
    font-family: inherit;
}

.legacy-home-body .pmain .pright .artTitle { color: var(--wb-ink); font-size: 22px; line-height: 1.45; }
.legacy-home-body .pmain .pright .art { color: var(--wb-text); font-size: 15px; line-height: 1.85; }
.legacy-home-body .pmain .pright img { max-width: 100% !important; height: auto !important; border-radius: 8px; }

/* 官网展示区：Excel 工具、加入会员、关于我们、建议反馈使用横向导航，不占用工作台侧栏。 */
.public-site-body .legacy-topbar {
    grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
    padding: 0 clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, .94);
    border-bottom-color: rgba(33, 115, 70, .12);
    box-shadow: 0 10px 34px rgba(23, 33, 27, .06);
    backdrop-filter: blur(18px);
}

.public-site-body .legacy-topbar .wb-topbar-start { padding-left: 0; }

.public-site-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.public-site-nav-link {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #4d5b54 !important;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease;
}

.public-site-nav-link:hover,
.public-site-nav-link:focus-visible {
    color: var(--wb-brand-strong) !important;
    background: rgba(33, 115, 70, .055);
    box-shadow: none;
    transform: none;
}

.public-site-nav-link.is-active {
    color: var(--wb-brand-strong) !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-weight: 720;
}

.public-site-nav-link.is-active::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #d59a3a;
    border-radius: 999px;
    content: "";
    transform: translateX(-50%);
}

.public-site-nav-link.public-site-workbench-link {
    gap: 7px;
    min-height: 38px;
    margin-left: 10px;
    padding-right: 13px;
    padding-left: 14px;
    color: var(--wb-brand-strong) !important;
    background: #f3f7f4;
    border: 1px solid rgba(33, 115, 70, .12);
    border-radius: 10px;
    box-shadow: none;
}

.public-site-nav-link.public-site-workbench-link::after { display: none; }

.public-site-workbench-icon {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}

.public-site-nav-link.public-site-workbench-link:hover,
.public-site-nav-link.public-site-workbench-link:focus-visible {
    color: var(--wb-brand-strong) !important;
    background: #eaf3ed;
    border-color: rgba(33, 115, 70, .18);
    box-shadow: none;
}

.public-site-nav-link.public-site-workbench-link:hover .public-site-workbench-icon,
.public-site-nav-link.public-site-workbench-link:focus-visible .public-site-workbench-icon { transform: translateX(2px); }

.public-site-body > .public-site-main {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - var(--wb-topbar-height));
    margin-left: 0 !important;
    padding: calc(var(--wb-topbar-height) + 42px) clamp(18px, 4vw, 64px) 52px !important;
    background:
        radial-gradient(circle at 10% 0, rgba(33, 115, 70, .055), transparent 28%),
        linear-gradient(180deg, #fbfdfc 0%, var(--wb-canvas) 100%) !important;
}

.public-site-body .public-site-main > form,
.public-site-body .public-site-main .legacy-home-content {
    width: min(100%, 1240px);
}

.public-site-body .legacy-home-content {
    border-color: rgba(33, 115, 70, .13);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(23, 33, 27, .08);
}

.public-site-body .templatemo_portfolio {
    padding: clamp(30px, 4vw, 54px) clamp(20px, 4.5vw, 64px) !important;
}

.public-site-body .templatemo_portfolio > h2,
.public-site-body .templatemo_portfolio > .container > h2 {
    margin-bottom: 12px;
    color: var(--wb-ink);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 760;
}

.public-site-body .templatemo_portfolio > p {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--wb-muted);
    font-size: 16px;
    line-height: 1.8;
}

.public-site-body > #footer,
.public-site-body > .legacy-footer {
    width: 100%;
    margin-left: 0 !important;
    padding-right: clamp(18px, 4vw, 64px);
    padding-left: clamp(18px, 4vw, 64px);
}

@media (max-width: 959px) {
    .public-site-body .legacy-topbar {
        grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) auto;
        padding-right: 18px;
        padding-left: 18px;
    }
    .public-site-nav { gap: 5px; }
    .public-site-nav-link { padding-right: 8px; padding-left: 8px; }
    .public-site-body > .public-site-main { margin-left: 0 !important; }
    .legacy-home-body .home-products-page .list-group-item .row { grid-template-columns: 48px minmax(0, 1fr); }
    .legacy-home-body .home-products-page .list-group-item .col-sm-4 { grid-column: 2; justify-content: flex-start; }
    .legacy-home-body .legacy-home-shell > .pmain { grid-template-columns: 230px minmax(0, 1fr); }
    .legacy-home-body .pmain .pright { padding: 22px; }
}

@media (max-width: 820px) {
    .public-site-body .legacy-topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        padding-right: 10px;
        padding-left: 10px;
        overflow: visible;
    }
    .public-site-body .legacy-topbar .wb-topbar-start { padding-left: 0; }
    .public-site-nav {
        position: fixed;
        z-index: 49;
        top: var(--wb-topbar-height);
        right: 0;
        left: 0;
        min-height: 52px;
        justify-content: flex-start;
        gap: 6px;
        padding: 6px 12px;
        overflow-x: auto;
        background: rgba(255, 255, 255, .98);
        border: 0;
        border-bottom: 1px solid rgba(33, 115, 70, .12);
        border-radius: 0;
        box-shadow: 0 8px 22px rgba(23, 33, 27, .06);
        overscroll-behavior-x: contain;
        scroll-padding-left: 12px;
        scrollbar-width: none;
    }
    .public-site-nav::-webkit-scrollbar { display: none; }
    .public-site-nav-link { min-height: 38px; padding-right: 11px; padding-left: 11px; font-size: 13px; }
    .public-site-nav-link.is-active { background: transparent; }
    .public-site-nav-link.public-site-workbench-link { margin-left: 5px; }
    .public-site-body > .public-site-main {
        padding: calc(var(--wb-topbar-height) + 72px) 14px 34px !important;
    }
    .public-site-body.legacy-home-body .templatemo_portfolio { padding: 28px 18px !important; }
    .public-site-body .legacy-home-content { border-radius: 14px; }
}

@media (max-width: 699px) {
    .legacy-home-body .templatemo_portfolio { padding: 22px 16px !important; }
    .legacy-home-body .templatemo_portfolio > h2,
    .legacy-home-body .templatemo_portfolio > .container > h2 { font-size: 22px; }
    .legacy-home-body .productItem,
    .legacy-home-body .productItemF { padding: 17px 15px; }
.legacy-home-body .home-products-page .list-group-item:where(:not(.list-group-item-info, .list-group-item-warning, .list-group-item-success, .list-group-item-danger)) { padding: 12px !important; }
    .legacy-home-body .home-products-page .list-group-item .row { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 11px; }
    .legacy-home-body .home-products-page .list-group-item img[style*="40px"] { width: 40px !important; height: 40px !important; }
    .legacy-home-body .home-products-page .list-group-item .col-sm-4 { grid-column: 1 / -1; padding-left: 55px; }
    .legacy-home-body .home-about-page .productItemF > img[style*="float:right"] {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px !important;
    }
    .legacy-home-body .legacy-home-shell > .pmain { display: block; }
    .legacy-home-body .pmain .catlog {
        position: static !important;
        max-height: none;
        margin-bottom: 14px;
    }
    .legacy-home-body .pmain .infoMain { height: min(340px, 48vh) !important; }
    .legacy-home-body .pmain .pright { min-height: 400px; padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
}
