/* OneNav Child - 首页本机浏览记录独立样式，不依赖 WebStack 风格开关。 */
.oc-home-recent,
.oc-home-recent * {
    box-sizing: border-box;
}

body.home .oc-home-recent,
body.front-page .oc-home-recent {
    width: 100%;
    margin: 0 0 16px;
}

body.home .oc-home-recent .oc-recent-links-inner,
body.front-page .oc-home-recent .oc-recent-links-inner {
    padding: 12px 14px;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(30, 55, 90, .045);
}

.oc-home-recent [hidden] {
    display: none !important;
}

.oc-home-recent .oc-recent-links-heading,
.oc-home-recent .oc-recent-links-title,
.oc-home-recent .oc-recent-links-actions {
    display: flex;
    min-width: 0;
    align-items: center;
}

.oc-home-recent .oc-recent-links-heading {
    min-height: 44px;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.oc-home-recent .oc-recent-links-title {
    gap: 10px;
}

.oc-home-recent .oc-recent-links-title-icon,
.oc-home-recent .oc-recent-links-empty-icon,
.oc-home-recent .oc-recent-link-icon {
    display: inline-grid;
    place-items: center;
    color: #2563eb;
    background: #edf3ff;
}

.oc-home-recent .oc-recent-links-title-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #dbe6ff;
    border-radius: 9px;
    font-size: 15px;
}

.oc-home-recent .oc-recent-links-kicker {
    display: block;
    margin-bottom: 1px;
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

body.home .oc-home-recent h2,
body.front-page .oc-home-recent h2 {
    margin: 0;
    overflow: hidden;
    color: #253247;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-home-recent .oc-recent-links-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.oc-home-recent .oc-recent-links-privacy {
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.oc-home-recent .oc-recent-links-clear {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #5f6f84;
    background: #f8fafc;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.oc-home-recent .oc-recent-links-clear:hover,
.oc-home-recent .oc-recent-links-clear:focus-visible {
    border-color: #bfd0f5;
    color: #1d4ed8;
    background: #eef4ff;
}

.oc-home-recent .oc-recent-links-clear:disabled {
    border-color: #edf0f4;
    color: #a4adba;
    background: #f8fafc;
    cursor: not-allowed;
    opacity: .68;
}

.oc-home-recent .oc-recent-links-empty {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px dashed #d8e1ed;
    border-radius: 9px;
    color: #344054;
    background: #f8fafc;
}

.oc-home-recent .oc-recent-links-empty-icon,
.oc-home-recent .oc-recent-link-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    font-size: 13px;
}

.oc-home-recent .oc-recent-links-empty div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
}

.oc-home-recent .oc-recent-links-empty strong {
    color: #344054;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.4;
}

.oc-home-recent .oc-recent-links-empty small {
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.oc-home-recent .oc-recent-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oc-home-recent .oc-recent-link {
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex: 1 1 180px;
    max-width: 260px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #e6ebf2;
    border-radius: 9px;
    color: #344054;
    background: #f8fafc;
    font-size: 12.5px;
    line-height: 1.4;
    text-decoration: none;
    touch-action: manipulation;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.oc-home-recent .oc-recent-link-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-home-recent .oc-recent-link-arrow {
    flex: 0 0 auto;
    color: #9aa7b8;
    font-size: 11px;
    transition: transform .18s ease;
}

.oc-home-recent .oc-recent-link:hover,
.oc-home-recent .oc-recent-link:focus-visible {
    border-color: #c9d8f5;
    color: #1d4ed8;
    background: #f2f6ff;
}

.oc-home-recent .oc-recent-link:hover .oc-recent-link-arrow,
.oc-home-recent .oc-recent-link:focus-visible .oc-recent-link-arrow {
    color: #2563eb;
    transform: translateX(2px);
}

.oc-home-recent .oc-recent-link:focus-visible,
.oc-home-recent .oc-recent-links-clear:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.io-black-mode .oc-home-recent .oc-recent-links-inner {
    border-color: rgba(255, 255, 255, .09);
    background: #252c35;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.io-black-mode .oc-home-recent h2,
.io-black-mode .oc-home-recent .oc-recent-links-empty strong {
    color: #f1f5f9;
}

.io-black-mode .oc-home-recent .oc-recent-links-kicker,
.io-black-mode .oc-home-recent .oc-recent-links-privacy,
.io-black-mode .oc-home-recent .oc-recent-links-empty small {
    color: #aeb9c7;
}

.io-black-mode .oc-home-recent .oc-recent-links-title-icon,
.io-black-mode .oc-home-recent .oc-recent-links-empty-icon,
.io-black-mode .oc-home-recent .oc-recent-link-icon {
    border-color: rgba(96, 165, 250, .22);
    color: #9bc2ff;
    background: rgba(59, 130, 246, .15);
}

.io-black-mode .oc-home-recent .oc-recent-links-clear,
.io-black-mode .oc-home-recent .oc-recent-link,
.io-black-mode .oc-home-recent .oc-recent-links-empty {
    border-color: rgba(255, 255, 255, .10);
    color: #dbe3ec;
    background: #202731;
}

.io-black-mode .oc-home-recent .oc-recent-links-empty {
    border-style: dashed;
}

.io-black-mode .oc-home-recent .oc-recent-links-clear:hover,
.io-black-mode .oc-home-recent .oc-recent-links-clear:focus-visible,
.io-black-mode .oc-home-recent .oc-recent-link:hover,
.io-black-mode .oc-home-recent .oc-recent-link:focus-visible {
    border-color: rgba(96, 165, 250, .34);
    color: #fff;
    background: #2b3543;
}

.io-black-mode .oc-home-recent .oc-recent-links-clear:disabled {
    border-color: rgba(255, 255, 255, .07);
    color: #7f8a98;
    background: #202731;
}

@media (max-width: 767px) {
    body.home .oc-home-recent,
    body.front-page .oc-home-recent {
        margin-bottom: 12px;
    }

    body.home .oc-home-recent .oc-recent-links-inner,
    body.front-page .oc-home-recent .oc-recent-links-inner {
        padding: 10px;
    }

    .oc-home-recent .oc-recent-links-heading {
        gap: 10px;
        margin-bottom: 8px;
    }

    .oc-home-recent .oc-recent-links-privacy {
        display: none;
    }

    .oc-home-recent .oc-recent-links-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oc-home-recent .oc-recent-link {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 479px) {
    .oc-home-recent .oc-recent-links-clear span {
        display: none;
    }

    .oc-home-recent .oc-recent-links-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .oc-home-recent .oc-recent-link,
    .oc-home-recent .oc-recent-link-arrow,
    .oc-home-recent .oc-recent-links-clear {
        transition: none !important;
        transform: none !important;
    }
}
