@charset "UTF-8";

/* XIUNEXT Lite：小体积、无外部资源、以系统字体为先。 */
html[data-xiunext-theme="lite"] {
    --lite-green: #16a34a;
    --lite-green-dark: #15803d;
    --lite-green-soft: #eefaf3;
    --lite-page: #f5f5f5;
    --lite-surface: #fff;
    --lite-text: #222;
    --lite-text-soft: #5d6b64;
    --lite-muted-strong: #777;
    --lite-muted: #a1a1a1;
    --lite-border: #edf0f2;
    --lite-border-strong: #c5c5c5;
    --lite-accent-border: #a9dfba;
    --lite-accent-border-soft: #b9e9c7;
    --lite-green-hover: #65c879;
    --lite-visitor-bg: #6f9bea;
    --lite-shadow: 0 1px 4px rgba(16, 24, 40, .04);
    --lite-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;

    /* 让核心页面组件（版块页、帖子页、插件卡片）沿用首页的绿色体系。 */
    --bs-primary: var(--lite-green);
    --bs-primary-rgb: 22, 163, 74;
    --bs-link-color: var(--lite-green);
    --bs-link-color-hover: var(--lite-green-dark);
    --bs-body-color: var(--lite-text);
    --bs-body-bg: var(--lite-surface);
    --bs-secondary-color: var(--lite-muted);
    --bs-border-color: var(--lite-border);
    --bs-tertiary-bg: #f7faf8;
    --bs-primary-bg-subtle: var(--lite-green-soft);
    --bs-primary-border-subtle: #a9dfba;
    --x-page-bg: var(--lite-page);
}

/* 页脚：品牌信息、快捷链接、合规备案三段式布局。 */
html[data-xiunext-theme="lite"] .xiunext-lite-footer {
    margin-top: 32px;
    padding: 0 0 14px;
    background: var(--lite-surface);
    border-top: 1px solid var(--lite-border);
    color: var(--lite-text-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-container {
    width: 100%;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, .75fr) minmax(230px, 1fr);
    gap: 36px;
    padding: 32px 0 28px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-brief {
    max-width: 320px;
    margin: 15px 0 14px;
    color: var(--lite-muted-strong);
    font-size: 12px;
    line-height: 1.7;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--lite-muted);
    font-size: 11px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-powered a {
    display: inline-flex;
    align-items: center;
    opacity: .8;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-powered a:hover {
    opacity: 1;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer h2 {
    margin: 3px 0 14px;
    color: var(--lite-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 16px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links {
    min-width: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    gap: 5px;
    padding: 3px 0;
    color: var(--lite-muted-strong);
    font-size: 12px;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links a:hover {
    color: var(--lite-green);
    transform: translateX(2px);
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-links a .ti {
    color: var(--lite-muted);
    font-size: 13px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing-list {
    display: grid;
    gap: 8px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid var(--lite-border);
    border-radius: 10px;
    color: var(--lite-muted-strong);
    background: var(--lite-page);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing:hover {
    border-color: var(--lite-accent-border);
    background: var(--lite-green-soft);
    transform: translateY(-1px);
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--lite-green);
    background: var(--lite-green-soft);
    font-size: 15px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing-icon.is-security {
    color: #3b82f6;
    background: rgba(59, 130, 246, .1);
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing small,
html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing strong {
    display: block;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing small {
    margin-bottom: 2px;
    color: var(--lite-muted);
    font-size: 10px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing strong {
    overflow: hidden;
    color: var(--lite-text-soft);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-filing > .ti-chevron-right {
    color: var(--lite-muted);
    font-size: 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--lite-border);
    color: var(--lite-muted);
    font-size: 11px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer a {
    color: inherit;
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-copyright a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-footer-runtime {
    white-space: nowrap;
}

@media (max-width: 820px) {
    html[data-xiunext-theme="lite"] .xiunext-lite-footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 1fr);
        gap: 26px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    html[data-xiunext-theme="lite"] .xiunext-lite-footer {
        margin-top: 20px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 25px;
        padding-bottom: 22px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-footer-brand {
        grid-column: auto;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-footer-runtime {
        white-space: normal;
    }
}

html[data-xiunext-theme="lite"] *,
html[data-xiunext-theme="lite"] *::before,
html[data-xiunext-theme="lite"] *::after {
    box-sizing: border-box;
}

html[data-xiunext-theme="lite"][data-bs-theme="dark"] {
    --lite-page: #141414;
    --lite-surface: #1d1d1d;
    --lite-text: #ededed;
    --lite-text-soft: #b9c9bf;
    --lite-muted-strong: #b5b5b5;
    --lite-muted: #898989;
    --lite-border: #303030;
    --lite-border-strong: #4a4a4a;
    --lite-accent-border: #2e6f43;
    --lite-accent-border-soft: #347c4b;
    --lite-green-hover: #3ca85a;
    --lite-visitor-bg: #385f99;
    --lite-green-soft: #173822;
    --lite-shadow: none;
    --bs-tertiary-bg: #252b27;
    --bs-primary-border-subtle: var(--lite-accent-border);
}

html[data-xiunext-theme="lite"][data-bs-theme="light"] {
    color-scheme: light;
}

html[data-xiunext-theme="lite"][data-bs-theme="dark"] {
    color-scheme: dark;
}

html[data-xiunext-theme="lite"] body {
    background: var(--lite-page);
    color: var(--lite-text);
    font-family: var(--lite-font);
    font-size: 14px;
    line-height: 1.5;
}

html[data-xiunext-theme="lite"] a {
    color: inherit;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main ul,
html[data-xiunext-theme="lite"] .xiunext-lite-main ol {
    padding-left: 0;
    list-style: none;
}

html[data-xiunext-theme="lite"] #body {
    min-height: calc(100vh - 48px);
    padding-top: 0;
}

html[data-xiunext-theme="lite"] #body > .container,
html[data-xiunext-theme="lite"] .xiunext-lite-header > .container {
    width: 100%;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 12px;
    padding-left: 12px;
}

/* 顶部栏 */
html[data-xiunext-theme="lite"] #header.xiunext-lite-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 48px;
    padding: 0;
    background: var(--lite-surface);
    border-bottom: 1px solid var(--lite-border);
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-bar {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    gap: 18px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    min-width: 0;
    color: var(--lite-text);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-brand .site-logo {
    display: block;
    width: 23px;
    height: 23px;
    border-radius: 5px;
    object-fit: contain;
}

/* 单 Logo 模式：图片本身已经包含图标和文字，不再显示旁边的站点文字。 */
html[data-xiunext-theme="lite"] .xiunext-lite-brand.is-logo-image .site-logo {
    width: auto;
    height: 30px;
    max-width: 180px;
    border-radius: 0;
}

/* 方形 Logo + 文字模式：始终保留正方形图片尺寸。 */
html[data-xiunext-theme="lite"] .xiunext-lite-brand.is-logo-square-text .site-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    min-width: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-logo img {
    display: inline-block;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-logo.is-logo-image img {
    max-width: 190px;
    max-height: 48px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-logo.is-logo-square-text img {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 7px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-logo span {
    min-width: 0;
    overflow: hidden;
    color: var(--lite-text);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 4px;
    color: var(--lite-muted-strong);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav a:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav a.is-active {
    color: var(--lite-green);
    background: var(--lite-green-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav .ti {
    margin-right: 4px;
    font-size: 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search {
    display: flex;
    align-items: stretch;
    flex: 0 1 208px;
    min-width: 150px;
    height: 30px;
    margin-left: auto;
    overflow: hidden;
    background: var(--lite-page);
    border: 1px solid var(--lite-border);
    border-radius: 4px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search select,
html[data-xiunext-theme="lite"] .xiunext-lite-header-search input,
html[data-xiunext-theme="lite"] .xiunext-lite-header-search button {
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--lite-text);
    font-family: inherit;
    font-size: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search select {
    width: 48px;
    padding: 0 0 0 7px;
    color: var(--lite-muted);
    appearance: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 7px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search button {
    width: 31px;
    flex: 0 0 31px;
    color: var(--lite-muted);
    cursor: pointer;
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-search button:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-action-icon,
html[data-xiunext-theme="lite"] .xiunext-lite-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--lite-muted);
    background: transparent;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-action-icon:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-menu-toggle:hover {
    color: var(--lite-green);
    background: var(--lite-green-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-menu {
    position: relative;
    flex: 0 0 auto;
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown {
    min-width: 168px;
    margin-top: 8px !important;
    padding: 6px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown-title {
    padding: 6px 10px 5px;
    color: var(--lite-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--lite-text);
    font-size: 13px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item:focus,
html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item.is-active {
    color: var(--lite-green-dark);
    background: var(--lite-green-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item > span {
    flex: 1 1 auto;
}

html[data-xiunext-theme="lite"] .xiunext-lite-theme-dropdown .dropdown-item > .ti:last-child {
    color: var(--lite-green);
    font-size: 15px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-menu {
    position: relative;
    flex: 0 0 auto;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-trigger,
html[data-xiunext-theme="lite"] .xiunext-lite-user-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--lite-text);
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-trigger:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-user-trigger:focus-visible,
html[data-xiunext-theme="lite"] .xiunext-lite-user-link:hover {
    outline: 0;
    background: var(--lite-green-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-trigger .avatar-wrap-sm,
html[data-xiunext-theme="lite"] .xiunext-lite-user-link .avatar-wrap-sm {
    width: 30px;
    height: 30px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-trigger .avatar-sm,
html[data-xiunext-theme="lite"] .xiunext-lite-user-link .avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown {
    min-width: 180px;
    margin-top: 8px !important;
    padding: 6px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown .dropdown-header {
    padding: 7px 10px;
    color: var(--lite-text);
    font-size: 13px;
    font-weight: 600;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 4px;
    color: var(--lite-text);
    font-size: 13px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown .dropdown-item:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown .dropdown-item:focus {
    color: var(--lite-green-dark);
    background: var(--lite-green-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-user-dropdown .dropdown-item .ti {
    width: 16px;
    color: var(--lite-muted);
    font-size: 15px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-login-link {
    color: var(--lite-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-login-link:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-menu-toggle,
html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar {
    display: none;
}

/* 主体网格 */
html[data-xiunext-theme="lite"] .xiunext-lite-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: start;
    gap: 24px;
    padding-top: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-layout.is-full {
    grid-template-columns: minmax(0, 1fr);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main,
html[data-xiunext-theme="lite"] .xiunext-lite-sidebar {
    min-width: 0;
}

/* 个人中心只有左侧设置菜单时，让中间内容补齐原本空出的右侧宽度。 */
@media (min-width: 1200px) {
    html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) > .col-xl-8 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }

    /* 兼容友链等插件自行追加的 7+3 栏个人中心模板：去掉空的站点右栏。 */
    html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav):has(> .col-xl-3 #sidebar-right) > .col-xl-7 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }

    html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) > .col-xl-3:has(#sidebar-right) {
        display: none !important;
    }
}

/* 友情链接服务导航：与首页卡片、绿色操作按钮保持一致。 */
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px !important;
    margin-bottom: 12px !important;
    padding: 8px 10px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn {
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--lite-border) !important;
    border-radius: 4px !important;
    color: var(--lite-text-soft) !important;
    background: var(--lite-surface) !important;
    font-size: 12px;
    font-weight: 500;
}

html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-secondary,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-primary,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-warning {
    color: #fff !important;
    background: var(--lite-green) !important;
    border-color: var(--lite-green) !important;
}

html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-secondary:hover,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-primary:hover,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-warning:hover,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-secondary:focus-visible,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-primary:focus-visible,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-outline-warning:focus-visible {
    color: var(--lite-green-dark) !important;
    background: var(--lite-green-soft) !important;
    border-color: var(--lite-accent-border) !important;
}

html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-secondary:hover,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-primary:hover,
html[data-xiunext-theme="lite"] .oy-friendlink-service-nav .btn-warning:hover {
    color: #fff !important;
    background: var(--lite-green-dark) !important;
    border-color: var(--lite-green-dark) !important;
}

html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) .oy-friendlink-my-card .btn-primary {
    color: #fff !important;
    background: var(--lite-green) !important;
    border-color: var(--lite-green) !important;
}

html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) .oy-friendlink-my-card .btn-primary:hover,
html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) .oy-friendlink-my-card .btn-primary:focus-visible {
    color: #fff !important;
    background: var(--lite-green-dark) !important;
    border-color: var(--lite-green-dark) !important;
}

html[data-xiunext-theme="lite"] .row.g-4:has(> .col-xl-2 .side-nav) .x-card {
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
    color: var(--lite-text);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main > .x-card,
html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist {
    margin-top: 0;
}

/* Keep the announcement visibly separate from the page background. */
html[data-xiunext-theme="lite"] .xiunext-lite-main > .x-card {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .announcement-badge {
    border-radius: 3px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .thread-nav-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .thread-nav-tabs .nav-link {
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 4px;
    color: var(--lite-muted-strong) !important;
    font-size: 13px;
    line-height: 20px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .thread-nav-tabs .nav-link:hover {
    color: var(--lite-green) !important;
    background: var(--lite-green-soft) !important;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .thread-nav-tabs .nav-link.active {
    color: #fff !important;
    background: var(--lite-green) !important;
    border-color: var(--lite-green) !important;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist > .py-1 {
    margin-bottom: 12px;
    padding: 8px 12px !important;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist .btn-group {
    gap: 4px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist .btn-group .btn {
    padding: 3px 8px;
    border: 1px solid var(--lite-border);
    border-radius: 4px !important;
    color: var(--lite-text-soft) !important;
    background: var(--lite-surface);
    font-size: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist .btn-group .btn.active {
    color: var(--lite-green-dark) !important;
    background: var(--lite-green-soft);
    border-color: var(--lite-accent-border);
    font-weight: 600;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist .btn-group .btn:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-main .index-threadlist .btn-group .btn:focus-visible {
    color: var(--lite-green-dark) !important;
    background: var(--lite-green-soft);
    border-color: var(--lite-accent-border);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .threadlist {
    display: block;
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

/* 管理员批量操作栏 */
html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 0;
    padding: 10px 12px;
    color: var(--lite-text);
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar-left,
html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar-right,
html[data-xiunext-theme="lite"] .xiunext-lite-main .check-all-label {
    display: inline-flex;
    align-items: center;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .check-all-label {
    gap: 6px;
    color: var(--lite-text);
    font-size: 12px;
    cursor: pointer;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar .btn-group > .btn {
    border-radius: 4px !important;
    background: var(--lite-surface);
    font-size: 12px;
}

/* 帖子行 */
html[data-xiunext-theme="lite"] .xiunext-lite-thread,
html[data-xiunext-theme="lite"] .xiunext-lite-top-list li {
    border-bottom: 1px solid var(--lite-border);
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 67px;
    padding: 12px 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread:last-child,
html[data-xiunext-theme="lite"] .xiunext-lite-top-list li:last-child {
    border-bottom: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread:hover {
    background: rgba(255, 255, 255, .48);
}

html[data-xiunext-theme="lite"][data-bs-theme="dark"] .xiunext-lite-thread:hover {
    background: rgba(255, 255, 255, .03);
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar {
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-wrap-md,
html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-wrap-md .position-relative,
html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-md {
    width: 36px;
    height: 36px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-md {
    display: block;
    object-fit: cover;
}

/* 头像形状跟随后台 avatar_shape 配置，不能由模板固定成方形 */
html[data-xiunext-theme="lite"] .avatar-wrap.avatar-shape-rounded > .position-relative > img {
    border-radius: 6px;
}

html[data-xiunext-theme="lite"] .avatar-wrap.avatar-shape-circle > .position-relative > img {
    border-radius: 50%;
}

html[data-xiunext-theme="lite"] .avatar-wrap.avatar-shape-square > .position-relative > img {
    border-radius: 0;
}

/* 帖子内容头像的基础容器：确保头像框始终以头像为定位基准 */
html[data-xiunext-theme="lite"] .postlist .avatar-wrap {
    position: relative;
    display: inline-block;
    overflow: visible;
    line-height: 0;
    vertical-align: middle;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-xs {
    width: 24px;
    height: 24px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-sm {
    width: 32px;
    height: 32px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-md {
    width: 40px;
    height: 40px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-lg {
    width: 52px;
    height: 52px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-xl {
    width: 96px;
    height: 96px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap-xxl {
    width: 128px;
    height: 128px;
}

html[data-xiunext-theme="lite"] .postlist .avatar-wrap > .position-relative {
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* 仅让编辑器默认 width="350" 的帖子图片自适应，保留用户手动调整过的图片尺寸。 */
html[data-xiunext-theme="lite"] .message.aie-content img[width="350"]:not([class*="avatar"]):not(.oy-avatar-overlay) {
    display: block;
    width: 80%;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-body {
    min-width: 0;
    flex: 1 1 auto;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-title {
    min-width: 0;
    color: var(--lite-text);
    font-size: 14px;
    line-height: 20px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-title > a {
    color: var(--lite-text);
    font-weight: 600;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-title > a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-title .badge,
html[data-xiunext-theme="lite"] .xiunext-lite-thread-title .thread-status-label {
    margin-right: 4px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: 1px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list .badge[title],
html[data-xiunext-theme="lite"] .xiunext-lite-thread-title .badge[title] {
    cursor: help;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    margin-top: 3px;
    color: var(--lite-muted);
    font-size: 12px;
    line-height: 18px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta > span,
html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta > a {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--lite-muted);
    text-decoration: none;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta > a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta .ti {
    margin-right: 3px;
    font-size: 13px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-time {
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-xiunext-theme="lite"] .xiunext-lite-thread-check {
    flex: 0 0 auto;
    margin-top: 10px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-empty-thread {
    padding: 60px 20px;
    color: var(--lite-muted);
    text-align: center;
}

html[data-xiunext-theme="lite"] .xiunext-lite-empty-thread > .ti {
    display: block;
    margin-bottom: 8px;
    font-size: 32px;
    opacity: .45;
}

html[data-xiunext-theme="lite"] .xiunext-lite-empty-thread p {
    margin: 0 0 4px;
    color: var(--lite-text);
}

html[data-xiunext-theme="lite"] .xiunext-lite-empty-thread small {
    font-size: 12px;
}

/* 置顶区 */
html[data-xiunext-theme="lite"] .xiunext-lite-top-list {
    min-height: 45px;
    margin: 0 0 12px;
    padding: 0 12px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list li {
    display: flex;
    align-items: center;
    column-gap: 8px;
    min-height: 43px;
    padding: 10px 0;
    color: var(--lite-text);
    font-size: 14px;
    line-height: 20px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list li a {
    color: var(--lite-text);
    font-weight: 600;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list li:first-child a,
html[data-xiunext-theme="lite"] .xiunext-lite-top-list li:nth-child(2) a {
    color: var(--lite-green-dark);
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list li a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    color: var(--lite-muted);
    font-size: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-count .ti {
    margin-right: 3px;
}

/* 多条置顶公告自动上下轮播 */
html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling {
    height: 45px;
    overflow: hidden;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling > ul {
    will-change: transform;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling li {
    box-sizing: border-box;
    height: 43px;
    min-height: 43px;
    overflow: hidden;
    border-bottom: 0;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling li a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 多条置顶公告向左连续滚动 */
html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal > ul {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: max-content;
    animation: xiunext-lite-announcement-marquee var(--lite-announcement-duration, 24s) linear infinite;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal li {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-right: 28px;
    overflow: visible;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal li a {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal:hover > ul,
html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal:focus-within > ul {
    animation-play-state: paused;
}

@keyframes xiunext-lite-announcement-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--lite-announcement-distance, -100%), 0, 0); }
}

/* 侧栏 */
html[data-xiunext-theme="lite"] .xiunext-lite-main .x-card,
html[data-xiunext-theme="lite"] .xiunext-lite-sidebar .x-card {
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
    color: var(--lite-text);
}

html[data-xiunext-theme="lite"] .xiunext-lite-sidebar .alert-info {
    color: var(--lite-green-dark);
    background: var(--lite-green-soft);
    border-color: var(--lite-accent-border);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .btn-primary,
html[data-xiunext-theme="lite"] .xiunext-lite-sidebar .btn-primary {
    color: #fff;
    background: var(--lite-green);
    border-color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-main .btn-primary:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-sidebar .btn-primary:hover {
    color: #fff;
    background: var(--lite-green-dark);
    border-color: var(--lite-green-dark);
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-stack {
    display: grid;
    gap: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-card {
    padding: 14px;
    background: var(--lite-surface);
    border: 1px solid var(--lite-border);
    border-radius: 5px;
    box-shadow: var(--lite-shadow);
}

html[data-xiunext-theme="lite"] .xiunext-lite-plugin-extensions {
    display: grid;
    gap: 10px;
    padding: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-plugin-extensions > .btn {
    width: 100%;
    min-height: 34px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-head .avatar-wrap-lg,
html[data-xiunext-theme="lite"] .xiunext-lite-account-head .avatar-lg {
    width: 44px;
    height: 44px;
}

/* 登录用户头像框会在 avatar-wrap 上增加 6% 内边距和负外边距。
   右侧账户卡片中需要让头像本体与头像框共用同一个 44px 正方形基准，
   否则头像本体会从内容区左上角开始，视觉中心相对头像框偏移。 */
html[data-xiunext-theme="lite"] .xiunext-lite-account-head > .avatar-wrap-lg {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-head > .avatar-wrap-lg > .position-relative {
    display: block;
    width: 44px;
    height: 44px;
    line-height: 0;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-head .avatar-lg {
    display: block;
    border-radius: 50%;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-copy strong {
    overflow: hidden;
    color: var(--lite-text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-copy span {
    color: var(--lite-muted);
    font-size: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-visitor-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    color: #fff;
    background: var(--lite-visitor-bg);
    font-size: 21px;
    font-weight: 600;
}

html[data-xiunext-theme="lite"] .xiunext-lite-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-button,
html[data-xiunext-theme="lite"] .xiunext-lite-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--lite-border);
    border-radius: 4px;
    color: var(--lite-muted-strong);
    background: var(--lite-page);
    font-size: 13px;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

html[data-xiunext-theme="lite"] .xiunext-lite-button:hover {
    color: var(--lite-green);
    border-color: var(--lite-accent-border-soft);
}

html[data-xiunext-theme="lite"] .xiunext-lite-button.is-primary,
html[data-xiunext-theme="lite"] .xiunext-lite-create-button {
    color: #fff;
    border-color: var(--lite-green-hover);
    background: var(--lite-green-hover);
}

html[data-xiunext-theme="lite"] .xiunext-lite-button.is-primary:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-create-button:hover {
    color: #fff;
    border-color: var(--lite-green);
    background: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-create-button {
    gap: 6px;
    min-height: 36px;
    font-weight: 600;
}

html[data-xiunext-theme="lite"] .xiunext-lite-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--lite-border);
    text-align: center;
}

html[data-xiunext-theme="lite"] .xiunext-lite-stat-grid > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-stat-grid b {
    color: var(--lite-text);
    font-size: 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-stat-grid span {
    overflow: hidden;
    color: var(--lite-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--lite-text);
    font-size: 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-title a {
    color: var(--lite-muted);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-side-title a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-quick-grid a,
html[data-xiunext-theme="lite"] .xiunext-lite-forum-list a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 26px;
    color: var(--lite-muted-strong);
    font-size: 12px;
    text-decoration: none;
}

html[data-xiunext-theme="lite"] .xiunext-lite-quick-grid a:hover,
html[data-xiunext-theme="lite"] .xiunext-lite-forum-list a:hover {
    color: var(--lite-green);
}

html[data-xiunext-theme="lite"] .xiunext-lite-quick-grid .ti {
    width: 18px;
    color: var(--lite-muted);
    font-size: 14px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-forum-list {
    display: grid;
    gap: 3px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-forum-list a {
    gap: 7px;
}

html[data-xiunext-theme="lite"] .xiunext-lite-forum-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--lite-border-strong);
}

html[data-xiunext-theme="lite"] .xiunext-lite-site-stats .xiunext-lite-stat-grid {
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
}

/* 帖子页回复之间使用轻量分割线，保持同一张白色回复卡片内的层次感。 */
html[data-xiunext-theme="lite"] .postlist > li.post + li.post,
html[data-xiunext-theme="lite"] .replies-container > .d-flex.post + .d-flex.post {
    border-top: 1px solid var(--lite-border);
}

/* 移动菜单与移动版块栏 */
html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu,
html[data-xiunext-theme="lite"] .xiunext-lite-mobile-backdrop {
    display: none;
}

@media (max-width: 1099.98px) {
    html[data-xiunext-theme="lite"] .xiunext-lite-header > .container,
    html[data-xiunext-theme="lite"] #body > .container {
        max-width: 100%;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav {
        gap: 0;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav a {
        padding-right: 6px;
        padding-left: 6px;
    }
}

@media (max-width: 991.98px) {
    html[data-xiunext-theme="lite"] .xiunext-lite-layout {
        display: block;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-sidebar {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-main {
        width: 100%;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-menu-toggle {
        display: inline-flex;
        flex: 0 0 30px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-desktop-nav {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar {
        display: flex;
        align-items: center;
        gap: 14px;
        max-width: 1100px;
        min-height: 40px;
        margin: 0 auto;
        padding: 6px 24px 4px;
        overflow-x: auto;
        background: var(--lite-surface);
        border-bottom: 1px solid var(--lite-border);
        scrollbar-width: none;
        white-space: nowrap;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar::-webkit-scrollbar {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar a {
        color: var(--lite-muted-strong);
        font-size: 13px;
        text-decoration: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar a.is-active,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar a:hover {
        color: var(--lite-green);
        font-weight: 600;
    }

    html[data-xiunext-theme="lite"] #body > .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-layout {
        padding-top: 10px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu[aria-hidden="false"] {
        display: block;
        position: fixed;
        z-index: 1042;
        inset: 0 auto 0 0;
        width: min(310px, 84vw);
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--lite-surface);
        box-shadow: 18px 0 38px rgba(16, 24, 40, .08);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-backdrop[hidden] {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        z-index: 1041;
        inset: 0;
        background: rgba(20, 20, 20, .35);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 0 18px;
        border-bottom: 1px solid var(--lite-border);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu-head button {
        width: 32px;
        height: 32px;
        border: 0;
        background: transparent;
        color: var(--lite-muted);
        font-size: 18px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu-logo {
        display: block;
        max-width: 140px;
        max-height: 30px;
        object-fit: contain;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-brand.is-logo-image .xiunext-lite-mobile-menu-logo {
        max-width: 190px;
        max-height: 36px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-brand.is-logo-square-text .xiunext-lite-mobile-menu-logo {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-brand span {
        min-width: 0;
        overflow: hidden;
        color: var(--lite-text);
        font-size: 15px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu-section,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-theme,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-account {
        padding: 14px 18px;
        border-bottom: 1px solid var(--lite-border);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-theme-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-theme-options button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 32px;
        padding: 4px 6px;
        border: 1px solid var(--lite-border);
        border-radius: 4px;
        color: var(--lite-muted-strong);
        background: var(--lite-page);
        font-size: 12px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-theme-options button:hover,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-theme-options button.is-active {
        color: var(--lite-green-dark);
        border-color: var(--lite-accent-border);
        background: var(--lite-green-soft);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-menu-label {
        margin-bottom: 8px;
        color: var(--lite-muted);
        font-size: 12px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forums {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px 8px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forums a,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links a,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-account a {
        display: flex;
        align-items: center;
        min-height: 34px;
        color: var(--lite-muted-strong);
        font-size: 13px;
        text-decoration: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forums a.is-active,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links a:hover,
    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-account a:hover {
        color: var(--lite-green);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px 8px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links a {
        gap: 6px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-links .ti {
        width: 18px;
        color: var(--lite-muted);
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-account {
        display: flex;
        gap: 20px;
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    html[data-xiunext-theme="lite"] .xiunext-lite-header-bar {
        gap: 6px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-brand {
        gap: 5px;
        font-size: 15px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-brand .site-logo {
        width: 22px;
        height: 22px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-brand.is-logo-image .site-logo {
        width: auto;
        height: 26px;
        max-width: 150px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-brand.is-logo-square-text .site-logo {
        width: 24px;
        height: 24px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-header-search {
        flex: 1 1 auto;
        min-width: 0;
        height: 30px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-header-search select {
        width: 43px;
        padding-left: 5px;
        font-size: 11px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-header-search input {
        font-size: 11px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-header-actions {
        gap: 2px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-action-icon {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-login-link {
        font-size: 12px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-mobile-forum-bar {
        gap: 12px;
        padding-right: 15px;
        padding-left: 15px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-layout {
        padding-top: 8px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread {
        gap: 8px;
        min-height: 0;
        padding: 12px 0;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar,
    html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-wrap-md,
    html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-wrap-md .position-relative,
    html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar .avatar-md {
        width: 34px;
        height: 34px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-avatar {
        flex-basis: 34px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-title {
        font-size: 14px;
        line-height: 20px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta {
        gap: 0 7px;
        margin-top: 2px;
        font-size: 11px;
        line-height: 19px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta > span,
    html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta > a {
        white-space: normal;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-thread-meta .xiunext-lite-last-user {
        display: none;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-main .thread-nav-tabs .nav-link {
        padding-right: 10px;
        padding-left: 10px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list li {
        min-height: 43px;
        padding: 9px 0;
        font-size: 13px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling {
        height: 45px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling li {
        height: 43px;
        min-height: 43px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal li {
        margin-right: 20px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar-left,
    html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar-right,
    html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar .btn-group {
        width: 100%;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-main .admin-mod-bar .btn-group > .btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-xiunext-theme="lite"] *,
    html[data-xiunext-theme="lite"] *::before,
    html[data-xiunext-theme="lite"] *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling {
        height: auto;
        overflow: visible;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling > ul {
        transform: none !important;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scroll-horizontal > ul {
        animation: none !important;
    }

    html[data-xiunext-theme="lite"] .xiunext-lite-top-list.is-scrolling li {
        height: auto;
        overflow: visible;
        white-space: normal;
    }
}
