/* 首页快捷分类：四组、每组两行，与参考布局相同的轻量导航。 */
.page-home .fh-home .fh-tabs {
    width: min(1200px, 100%);
    height: 90px;
    min-height: 0;
    padding: 15px 0;
    background: linear-gradient(105deg, #2c83ef 0%, #348ff6 56%, #39a1f6 100%);
    box-shadow: none;
}

.page-home .fh-home .fh-tabs .fh-w {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: visible;
}

.page-home .fh-home .fh-tabs .fh-tab-cell {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, .28);
    overflow: visible;
}

.page-home .fh-home .fh-tabs .fh-tab-cell:last-child {
    border-right: 0;
}

.page-home .fh-home .fh-tabs .fh-tab-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, 30px);
    gap: 0;
}

.page-home .fh-home .fh-tabs .fh-tab-cell a {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 5px 0;
    border: 0;
    border-radius: 3px;
    color: rgba(255, 255, 255, .94);
    background: transparent;
    font-size: 15px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-home .fh-home .fh-tabs .fh-tab-cell a:hover,
.page-home .fh-home .fh-tabs .fh-tab-cell a:focus-visible {
    color: #fff;
    background: transparent;
    outline-color: #fff;
}

@media (min-width: 761px) and (max-width: 1239px) {
    .page-home .fh-home .fh-tabs {
        height: auto;
        padding: 15px 0;
    }
    .page-home .fh-home .fh-tabs .fh-w {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
        overflow: visible;
    }
    .page-home .fh-home .fh-tabs .fh-tab-cell:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .page-home .fh-home .fh-tabs {
        height: auto !important;
        min-height: 0;
        padding: 12px 0 0 !important;
        overflow: visible;
        background: linear-gradient(105deg, #2c83ef, #39a1f6) !important;
        border: 0;
        box-shadow: 0 5px 14px rgba(42, 131, 228, .13);
    }
    .page-home .fh-home .fh-tabs .fh-w {
        display: block !important;
        padding: 0 16px 8px !important;
    }
    .page-home .fh-home .fh-tabs .fh-tab-cell {
        display: block !important;
        padding: 0 0 12px !important;
        margin: 0 0 12px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .25);
    }
    .page-home .fh-home .fh-tabs .fh-tab-cell:last-child {
        margin-bottom: 0;
        border-bottom: 0;
    }
    .page-home .fh-home .fh-tabs .fh-tab-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 2px 7px;
    }
    .page-home .fh-home .fh-tabs .fh-tab-cell a {
        display: block;
        min-height: 29px;
        padding: 5px 2px !important;
        color: #fff !important;
        font-size: 15px !important;
        text-align: center;
    }
    .page-home .fh-home .fh-tabs .fh-tab-cell a:active {
        color: #fff !important;
        background: transparent;
    }
    .page-home .fh-home .fh-tabs:not(.is-open) .fh-tab-cell:nth-child(n+2) {
        display: none !important;
    }
    .page-home .fh-home .fh-tabs:not(.is-open) .fh-tab-cell:nth-child(1) a:nth-child(n+7) {
        display: none !important;
    }
    .page-home .fh-home .fh-tabs-more {
        color: #fff;
        background: rgba(0, 69, 161, .16);
        border-color: rgba(255, 255, 255, .26);
    }
}
