@font-face {
    font-family: "UOR DingTalk";
    src: url("../fonts/DDjinbuti.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body.uor-replica-enabled {
    --theme-color: var(--uor-theme, #fc7c3c);
    --theme-color-rgb: 252, 124, 60;
    --hover-color: var(--uor-hover, #e33636);
    --main-aside-basis-width: var(--uor-aside, 190px);
    --home-max-width: var(--uor-width, 1600px);
    --main-max-width: var(--uor-width, 1600px);
    --main-radius: var(--uor-radius, 12px);
}

body.uor-replica-enabled.uor-font-enabled {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.uor-replica-enabled .switch-container.container-fluid,
body.uor-replica-enabled .ioui-content.container-fluid {
    width: 100%;
    max-width: var(--uor-width, 1600px);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
    margin-right: auto;
}

body.uor-replica-enabled .ioui-aside {
    width: 100%;
    max-width: var(--uor-width, 1600px);
}

body.uor-replica-enabled .ioui-aside .aside-body {
    width: var(--uor-aside, 190px);
    max-width: var(--uor-aside, 190px);
}

body.uor-replica-enabled .header-nav {
    margin: 10px;
    width: calc(100% - 20px);
    border-radius: var(--uor-radius, 12px);
    overflow: visible;
}

body.uor-replica-enabled .header-banner.uor-gradient-hero {
    background-image: var(--uor-gradient) !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
}

body.uor-replica-enabled .header-banner.uor-gradient-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(238, 243, 247, .43);
    backdrop-filter: saturate(.82);
}

body.uor-replica-enabled .header-banner.uor-gradient-hero > * {
    position: relative;
    z-index: 1;
}

body.uor-replica-enabled .header-banner .canvas-bg.uor-hidden,
body.uor-replica-enabled .auto-ad-url.uor-hidden,
body.uor-replica-enabled .hot-search.uor-hidden,
body.uor-replica-enabled .search-hot.uor-hidden {
    display: none !important;
}

.uor-quick-links {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    margin-right: 10px;
    white-space: nowrap;
}

.uor-quick-group {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.uor-quick-trigger {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    color: inherit;
    font-size: 13px;
    text-decoration: none !important;
}

.uor-quick-trigger:hover {
    color: var(--uor-theme, #fc7c3c) !important;
}

.uor-quick-menu {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    z-index: 1010;
    min-width: 150px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 35px rgba(27, 39, 51, .15);
    border: 1px solid rgba(0, 0, 0, .04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}

.uor-quick-group:hover .uor-quick-menu,
.uor-quick-group:focus-within .uor-quick-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.uor-quick-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: #40464d;
    text-decoration: none;
    font-size: 13px;
}

.uor-quick-menu a:hover {
    color: var(--uor-theme, #fc7c3c);
    background: rgba(0, 0, 0, .035);
}

.io-black-mode .uor-quick-menu {
    background: rgba(35, 39, 44, .98);
    border-color: rgba(255, 255, 255, .08);
}

.io-black-mode .uor-quick-menu a {
    color: #e8edf2;
}

.uor-history-button {
    position: fixed;
    right: 18px;
    bottom: 126px;
    z-index: 1002;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    color: #505860;
    box-shadow: 0 9px 25px rgba(20, 31, 44, .15);
    cursor: pointer;
}

.uor-history-button:hover {
    color: #fff;
    background: var(--uor-theme, #fc7c3c);
}

.uor-history-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20001;
    width: min(390px, 92vw);
    height: 100vh;
    padding: 22px;
    background: rgba(250, 252, 254, .98);
    box-shadow: -18px 0 50px rgba(18, 28, 40, .18);
    transform: translateX(104%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}

.uor-history-drawer.is-open {
    transform: translateX(0);
}

.uor-history-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(20, 31, 44, .08);
}

.uor-history-head strong {
    font-size: 20px;
}

.uor-history-head button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.uor-history-clear {
    margin-left: auto;
    color: #8a939d;
}

.uor-history-close {
    font-size: 24px;
    color: #505860;
}

.uor-history-list {
    min-height: 0;
    overflow-y: auto;
    padding: 14px 0;
}

.uor-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 8px;
    border-radius: 11px;
    color: #333b43;
    text-decoration: none !important;
}

.uor-history-item:hover {
    background: #fff;
}

.uor-history-item img,
.uor-history-fallback {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.uor-history-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--uor-theme, #fc7c3c);
    font-weight: 700;
}

.uor-history-copy {
    min-width: 0;
}

.uor-history-copy strong,
.uor-history-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uor-history-copy small {
    margin-top: 3px;
    color: #929ba5;
}

.uor-history-empty {
    padding: 60px 10px;
    text-align: center;
    color: #98a1aa;
}

@media (max-width: 1199px) {
    .uor-quick-links { display: none; }
}

@media (max-width: 991px) {
    body.uor-replica-enabled .ioui-aside {
        width: auto;
        max-width: none;
    }
    body.uor-replica-enabled .ioui-aside .aside-body {
        width: auto;
        max-width: none;
    }
}

@media (max-width: 767px) {
    body.uor-replica-enabled .header-nav { margin: 0; width: 100%; border-radius: 0; }
    .uor-history-button { right: 12px; bottom: 88px; }
}

