/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2024-01-03 00:15:11
 * @LastEditors: iowen
 * @LastEditTime: 2024-01-13 11:05:39
 * @FilePath: \onenavsub\assets\css\sub-style.css
 * @Description: 自定义样式
 */

/* Homepage-only category and URL card styles. */

/* Homepage category sections */
body.home #content .onenavsub-home-category-card {
    margin-bottom: 24px;
    padding: 20px 18px 6px;
    background: #fff;
    border: 1px solid rgba(42, 58, 72, 0.055);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(31, 45, 61, 0.045);
}

body.home #content .onenavsub-home-category-card > h4 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #343c45;
}

body.home #content .onenavsub-home-category-card > .d-flex:first-child {
    margin-top: 0;
}

body.home #content .onenavsub-home-category-card.is-recommendation > .d-flex:first-child {
    margin-bottom: 16px !important;
}

body.home #content .onenavsub-home-category-card > .flex-tab {
    min-height: 34px;
}

body.home #content .onenavsub-home-category-card > .tab-content.mt-4 {
    margin-top: 10px !important;
}

@media (min-width: 768px) {
    body.home #content .onenavsub-home-category-card:not(.is-recommendation) {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 22px;
        align-items: center;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > h4 {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        margin-bottom: 0;
        white-space: nowrap;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > .flex-tab {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        align-self: center;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > .flex-tab .slider_menu {
        background: transparent;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > .flex-tab .slider_menu .nav-link {
        font-size: 15px;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > .tab-content {
        grid-column: 1 / -1;
        grid-row: 2;
        min-width: 0;
        width: 100%;
    }

    body.home #content .onenavsub-home-category-card:not(.is-recommendation) > .tab-content > .tab-pane > .row.mt-4 {
        margin-top: 10px !important;
    }

}

body.home #content .onenavsub-home-category-card .slider_menu .nav-link:not(.active) {
    color: #68737e;
}

body.home #content .onenavsub-home-category-card .slider_menu .nav-link:hover {
    color: #fff !important;
}

body.home #content .onenavsub-home-category-card .url-card .url-info strong,
body.single-sites.sites #content .url-card .url-info strong {
    color: #313a43;
    font-weight: 600;
}

body.home #content .onenavsub-home-category-card .url-card .url-info,
body.single-sites.sites #content .url-card .url-info {
    min-width: 0;
    overflow: hidden;
}

body.home #content .onenavsub-home-category-card .url-card .url-info .overflowClip_1,
body.single-sites.sites #content .url-card .url-info .overflowClip_1 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home #content .onenavsub-home-category-card .url-card .url-info p,
body.single-sites.sites #content .url-card .url-info p {
    color: #707b86;
}

body.home #content .onenavsub-home-category-card .url-card .togo.text-muted,
body.single-sites.sites #content .url-card .togo.text-muted {
    color: #98a2ac !important;
    transition: color 0.16s ease;
}

body.home #content .onenavsub-home-category-card .url-card:hover .togo.text-muted,
body.single-sites.sites #content .url-card:hover .togo.text-muted {
    color: #1296db !important;
}

/* Homepage URL cards: consistent icons and restrained interactions */
body.home #content .url-card .url-info strong {
    color: #313a43;
    font-weight: 600;
}

body.home #content .url-card .url-body > a.card {
    min-height: 46px;
    margin-bottom: 8px !important;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: transparent;
    box-shadow: none;
}

body.home #content .url-card .mini .card-body {
    width: 100%;
    padding: 5px 42px 5px 9px;
}

body.home #content .url-card .url-img {
    width: 34px;
    height: 34px;
    padding: 4px;
    border: 1px solid rgba(49, 67, 82, 0.075);
    border-radius: 10px !important;
    background: #f6f8fa;
    box-shadow: none;
}

body.home #content .url-card .url-img > img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 6px;
}

body.home #content .url-card .url-info {
    min-width: 0;
}


body.home #content .url-card .mini a.togo {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    opacity: 0.32;
    border-radius: 9px;
    transition:
        color 180ms ease,
        opacity 180ms ease,
        background-color 180ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top custom navigation cards do not need a separate direct-link arrow. */
body.home #content #cust-sites .url-card .url-body a.togo {
    display: none;
}

body.home #content #cust-sites .url-card .mini .card-body {
    padding-right: 9px;
}

body.home #content #cust-sites .url-card .url-body > a.card {
    border-color: rgba(49, 67, 82, 0.055);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(31, 45, 58, 0.035);
}

body.home #content .url-card .url-body > a.card:focus-visible,
body.home #content .url-card .url-body a.togo:focus-visible {
    outline: 3px solid rgba(18, 150, 219, 0.28);
    outline-offset: 2px;
}

/* Homepage URL card hover motion */
@media (hover: hover) and (pointer: fine) {
    body.home #content .url-card .url-body {
        transform: translate3d(0, 0, 0) scale(1);
        transform-origin: center center;
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.home #content .url-card .url-body > a.card {
        transition:
            border-color 180ms ease,
            box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
            background-color 180ms ease;
    }

    body.home #content .url-card .url-body:hover {
        transform: translate3d(0, -4px, 0) scale(1.012);
        box-shadow: none;
    }

    body.home #content .url-card .url-info {
        transform: translate3d(0, 0, 0);
        transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.home #content .url-card .url-body:hover .url-info {
        transform: translate3d(2px, 0, 0);
    }

    body.home #content .url-card .url-body:hover > a.card {
        border-color: rgba(18, 150, 219, 0.1);
        background-color: rgba(18, 150, 219, 0.035);
        box-shadow:
            0 7px 16px rgba(34, 48, 62, 0.045),
            0 2px 6px rgba(18, 150, 219, 0.025);
    }

    body.home #content .url-card .url-img {
        transition:
            border-color 180ms ease,
            background-color 180ms ease,
            transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.home #content .url-card .url-img > img {
        transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    body.home #content .url-card .url-body:hover .url-img {
        border-color: rgba(18, 150, 219, 0.14);
        background-color: rgba(18, 150, 219, 0.045);
        animation: onenavsub-url-icon-jelly 760ms cubic-bezier(0.2, 0.82, 0.25, 1) both;
    }

    body.home #content .url-card .url-body:hover .url-img > img {
        transform: scale(1.04);
    }

    body.home #content .url-card .url-body:hover a.togo {
        color: #1296db !important;
        opacity: 1;
        background-color: rgba(18, 150, 219, 0.09);
        transform: translateX(2px);
    }

    body.home #content #cust-sites .url-card .url-body:hover > a.card {
        border-color: rgba(18, 150, 219, 0.1);
        background-color: #f8fbfd;
    }

}

@keyframes onenavsub-url-icon-jelly {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale3d(1, 1, 1);
    }

    18% {
        transform: translate3d(0, 1px, 0) rotate(-4deg) scale3d(1.14, 0.86, 1);
    }

    38% {
        transform: translate3d(0, -3px, 0) rotate(7deg) scale3d(0.9, 1.12, 1);
    }

    56% {
        transform: translate3d(0, 0, 0) rotate(-5deg) scale3d(1.075, 0.94, 1);
    }

    72% {
        transform: translate3d(0, -1px, 0) rotate(3deg) scale3d(0.97, 1.045, 1);
    }

    86% {
        transform: translate3d(0, 0, 0) rotate(-1deg) scale3d(1.02, 0.99, 1);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale3d(1, 1, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home #content .url-card .url-body > a.card,
    body.home #content .url-card .url-body a.togo {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

.io-black-mode body.home #content .onenavsub-home-category-card {
    background: #2c2e2f;
    border-color: rgba(255, 255, 255, 0.055);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.io-black-mode body.home #content .onenavsub-home-category-card > h4,
.io-black-mode body.home #content .onenavsub-home-category-card .url-card .url-info strong,
.io-black-mode body.home #content .url-card .url-info strong,
.io-black-mode body.single-sites.sites #content .url-card .url-info strong {
    color: #e3e7ea;
}

.io-black-mode body.home #content .onenavsub-home-category-card .slider_menu .nav-link:not(.active),
.io-black-mode body.home #content .onenavsub-home-category-card .url-card .url-info p,
.io-black-mode body.single-sites.sites #content .url-card .url-info p {
    color: #aeb7bf;
}

.io-black-mode body.home #content .onenavsub-home-category-card .url-card .togo.text-muted,
.io-black-mode body.single-sites.sites #content .url-card .togo.text-muted {
    color: #87929c !important;
}

@media (hover: hover) and (pointer: fine) {
    .io-black-mode body.home #content .url-card .url-body:hover > a.card {
        border-color: rgba(18, 150, 219, 0.18);
        background-color: rgba(18, 150, 219, 0.055);
        box-shadow:
            0 8px 18px rgba(0, 0, 0, 0.12),
            0 2px 7px rgba(18, 150, 219, 0.04);
    }

    .io-black-mode body.home #content .url-card .url-body:hover .url-img {
        border-color: rgba(18, 150, 219, 0.2);
        background-color: rgba(18, 150, 219, 0.08);
    }
}

.io-black-mode body.home #content .url-card .url-img {
    border-color: rgba(255, 255, 255, 0.07);
    background-color: #36393b;
}

.io-black-mode body.home #content .url-card .url-body > a.card {
    border-color: transparent;
    background-color: transparent;
}

.io-black-mode body.home #content #cust-sites .url-card .url-body > a.card {
    border-color: rgba(255, 255, 255, 0.055);
    background-color: #303234;
}

@media (hover: hover) and (pointer: fine) {
    .io-black-mode body.home #content #cust-sites .url-card .url-body:hover > a.card {
        border-color: rgba(18, 150, 219, 0.16);
        background-color: #32373a;
    }
}

@media (max-width: 767.98px) {
    body.home #content .onenavsub-home-category-card {
        margin-bottom: 16px;
        padding: 16px 10px 4px;
        box-shadow: 0 3px 12px rgba(31, 45, 61, 0.04);
    }

    body.home #content .onenavsub-home-category-card > h4 {
        margin-bottom: 12px;
    }

    body.home #content .onenavsub-home-category-card > .tab-content.mt-4 {
        margin-top: 12px !important;
    }
}

