/* 精简布局：系统字体、关闭入场动画、双栏侧边栏 */

body.iro-lite,
body.iro-lite .serif,
body.iro-lite .site-header a,
body.iro-lite .site-title,
body.iro-lite .site-info,
body.iro-lite h1.main-title,
body.iro-lite h1.fes-title,
body.iro-lite .entry-content,
body.iro-lite .post-title h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.iro-lite .wrapper,
body.iro-lite #content,
body.iro-lite .post-list,
body.iro-lite .post-list-thumb,
body.iro-lite .shuoshuo-item,
body.iro-lite .headertop,
body.iro-lite #centerbg {
    animation: none !important;
    -webkit-animation: none !important;
}

body.iro-lite .post-list-thumb,
body.iro-lite .shuoshuo-item {
    opacity: 1 !important;
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

body.iro-lite .post-thumb a {
    height: 100%;
}

body.iro-lite .post-thumb img,
body.iro-lite .post-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none !important;
}

.has-iro-sidebar .site-content {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px;
    box-sizing: border-box;
}

.has-iro-sidebar .content-area,
.has-iro-sidebar #primary {
    flex: 1 1 520px;
    min-width: 0;
    width: auto;
    max-width: 100%;
}

.has-iro-sidebar .custom-static-section,
.has-iro-sidebar .top-feature,
.has-iro-sidebar .notice,
.has-iro-sidebar .exhibition,
.has-iro-sidebar .exhibition-area-container {
    flex: 1 1 100%;
    width: 100%;
}

.iro-layout-left.has-iro-sidebar .site-content {
    flex-direction: row-reverse;
}

.has-iro-sidebar .toc-container {
    display: none;
    pointer-events: none;
}

.iro-sidebar {
    flex: 0 0 300px;
    width: 300px;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.iro-sidebar.widget-area {
    display: block;
    text-align: left;
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
}

.iro-sidebar.widget-area:hover {
    box-shadow: none;
    background: none;
}

.iro-sidebar.widget-area > * {
    flex: none;
    min-height: 0;
    overflow: visible;
}

.iro-sidebar-inner {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.iro-sidebar .widget {
    margin: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 1px 24px -8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.iro-sidebar .widget .title {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px dashed rgba(80, 80, 80, 0.14);
}

.iro-sidebar .widget .title h2,
.iro-sidebar .widget h2,
.iro-sidebar .widget .widget-title {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: var(--theme-skin, #505050);
}

.iro-sidebar .widget h2::before,
.iro-sidebar .widget .title::before {
    content: none;
    display: none;
}

.iro-sidebar .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iro-sidebar .widget li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(80, 80, 80, 0.06);
    line-height: 1.5;
}

.iro-sidebar .widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.iro-sidebar .tagcloud,
.iro-sidebar .wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iro-sidebar .tagcloud a,
.iro-sidebar .wp-block-tag-cloud a,
.iro-sidebar .widget_tag_cloud a {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 13px !important;
    line-height: 1.4;
    padding: 5px 10px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(80, 80, 80, 0.1);
    color: var(--theme-skin, #505050);
    text-decoration: none;
    box-sizing: border-box;
    pointer-events: auto;
}

.iro-sidebar .tagcloud a:hover,
.iro-sidebar .wp-block-tag-cloud a:hover,
.iro-sidebar .widget_tag_cloud a:hover {
    color: #fff;
    background: var(--theme-skin-matching, #505050);
    border-color: transparent;
}

body.dark .iro-sidebar .tagcloud a,
body.dark .iro-sidebar .wp-block-tag-cloud a,
body.dark .iro-sidebar .widget_tag_cloud a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6e6e6;
}

.iro-pagination,
.traditional-pagination,
.navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 12px;
    width: 100%;
    text-align: center;
}

.iro-pagination .page-numbers,
.traditional-pagination .page-numbers,
.navigator .page-numbers,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(80, 80, 80, 0.1);
    color: var(--theme-skin, #505050);
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
}

.iro-pagination .page-numbers.current,
.traditional-pagination .page-numbers.current,
.navigator .page-numbers.current,
.pagination .page-numbers.current {
    background: var(--theme-skin-matching, #505050);
    border-color: transparent;
    color: #fff;
}

.iro-pagination .page-numbers.dots,
.traditional-pagination .page-numbers.dots,
.navigator .page-numbers.dots {
    background: none;
    border: none;
}

body.iro-lite .user-menu-wrapper,
body.iro-lite .header-user-avatar,
body.iro-lite .mo-user-options {
    display: none !important;
}

body.iro-lite .post-footer .info,
body.iro-lite .post-footer .meta,
body.iro-lite .post-footer .desc,
body.iro-lite .post-license {
    display: none !important;
}

.iro-sidebar .widget a {
    color: var(--theme-skin, #505050);
    text-decoration: none;
}

.iro-sidebar .widget a:hover {
    color: var(--theme-skin-matching, #505050);
}

.iro-sidebar .widget select,
.iro-sidebar .widget input[type="search"],
.iro-sidebar .widget input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid rgba(80, 80, 80, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

body.dark .iro-sidebar .widget {
    background: rgba(40, 40, 40, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .iro-sidebar .widget .title,
body.dark .iro-sidebar .widget h2,
body.dark .iro-sidebar .widget .widget-title,
body.dark .iro-sidebar .widget a {
    color: #e6e6e6;
}

body.dark .iro-sidebar .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.iro-lite .nav-article-title {
    display: none !important;
}

body.iro-lite .site-header .nav-search-wrapper[data-scrollswap] nav,
body.iro-lite .site-header:not(:hover) .nav-search-wrapper:not(:hover)[data-scrollswap] nav {
    transform: none !important;
    margin-inline: 0 !important;
    opacity: 1 !important;
}

body.iro-lite h1.main-title,
body.iro-lite h1.fes-title,
body.iro-lite h1.main-title.posts-area-title {
    opacity: 1 !important;
    content-visibility: visible !important;
    margin: 0 0 16px;
    padding-bottom: 0;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.4;
    color: var(--theme-skin, #505050);
    justify-content: flex-start !important;
    text-align: left !important;
}

body.iro-lite .search-form--modal {
    z-index: 10000;
    pointer-events: none;
}

body.iro-lite .search-form--modal.is-visible {
    pointer-events: auto;
}

body.iro-lite .mo-menu-search {
    display: none !important;
}

html:has(body.iro-lite) {
    overflow-x: clip;
}

@media (min-width: 861px) {
    body.iro-lite {
        --iro-content-max: 860px;
    }

    body.iro-lite.has-iro-sidebar {
        --iro-content-max: 1200px;
    }

    body.iro-lite .site-header {
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        padding-left: max(20px, calc((100% - var(--iro-content-max)) / 2 + 20px));
        padding-right: max(20px, calc((100% - var(--iro-content-max)) / 2 + 20px));
    }

    body.iro-lite .site-branding {
        margin-right: auto;
        flex: 0 0 auto;
    }

    body.iro-lite .nav-search-wrapper {
        margin-left: auto;
        max-width: none;
        flex: 0 1 auto;
        justify-content: flex-end;
        overflow: visible;
    }

    body.iro-lite .nav-search-wrapper nav {
        justify-content: flex-end;
    }
}

body.iro-lite .site-footer,
body.iro-lite .site-footer.show {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 16px;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 1;
}

body.iro-lite .site-info {
    padding: 0;
    text-align: center;
}

body.iro-lite .footer-copyright {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.45);
}

body.dark.iro-lite .footer-copyright {
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
    .has-iro-sidebar .site-content,
    .iro-layout-left.has-iro-sidebar .site-content {
        display: block;
        max-width: 860px;
        gap: 0;
    }

    .has-iro-sidebar .content-area,
    .has-iro-sidebar #primary {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .iro-sidebar {
        display: none !important;
    }

    body.iro-lite .mo-toc-button,
    body.iro-lite .mo_toc_panel {
        display: none !important;
    }

    body.iro-lite .mo-search-button {
        font-size: 16px;
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }

    body.iro-lite .mo-search-button i {
        padding: 10px;
        border: 2px solid transparent;
        border-radius: 10px;
        font-size: 16px;
        color: var(--theme-skin, #505050);
    }
}

@media (min-width: 861px) {
    body.iro-lite .mo-search-button {
        display: none !important;
    }
}

body.iro-lite .entry-content h1::after,
body.iro-lite .entry-content h2::after,
body.iro-lite .entry-content h3::after,
body.iro-lite .entry-content h4::after,
body.iro-lite .entry-content h5::after,
body.iro-lite .entry-content h6::after,
body.iro-lite h1.entry-title::after,
body.iro-lite .single-header h1.entry-title::after {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

body.iro-lite .entry-content h1,
body.iro-lite .entry-content h2,
body.iro-lite .entry-content h3,
body.iro-lite .entry-content h4,
body.iro-lite .entry-content h5 {
    padding-left: 0;
    padding-bottom: 0;
}

body.iro-lite article.post,
body.iro-lite article.type-post {
    overflow: hidden;
}

body.iro-lite .post-footer {
    float: none;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
    display: block;
}

body.iro-lite .post-tags {
    float: none;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

body.iro-lite .iro-related-title::before,
body.iro-lite .iro-after-post h2::before {
    content: none !important;
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

.iro-after-post {
    clear: both;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

.iro-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 20px;
    width: 100%;
}

.iro-post-nav.has-both {
    grid-template-columns: 1fr 1fr;
}

.iro-post-nav-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 24px -8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--theme-skin, #505050);
    box-sizing: border-box;
}

.iro-post-nav-item.next {
    text-align: right;
    align-items: flex-end;
}

.iro-post-nav.has-one .iro-post-nav-item.next {
    text-align: left;
    align-items: flex-start;
    justify-self: stretch;
}

.iro-post-nav-label {
    font-size: 12px;
    opacity: 0.65;
    white-space: nowrap;
}

.iro-post-nav-title {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.iro-post-nav-item:hover .iro-post-nav-title {
    color: var(--theme-skin-matching, #505050);
}

.iro-related-posts {
    margin: 0;
}

.iro-related-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 650;
    color: var(--theme-skin, #505050);
}

.iro-related-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iro-related-list a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 24px -8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: var(--theme-skin, #505050);
    box-sizing: border-box;
    min-height: 72px;
}

.iro-related-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 8px;
}

.iro-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iro-related-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.iro-related-item-title {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iro-related-meta time {
    font-size: 12px;
    opacity: 0.6;
}

.iro-related-list a:hover .iro-related-item-title {
    color: var(--theme-skin-matching, #505050);
}

body.dark .iro-post-nav-item,
body.dark .iro-related-list a {
    background: rgba(40, 40, 40, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e6e6e6;
}

body.dark .iro-related-title,
body.dark .iro-post-nav-title,
body.dark .iro-related-item-title {
    color: #e6e6e6;
}

@media (max-width: 860px) {
    .iro-post-nav.has-both,
    .iro-related-list {
        grid-template-columns: 1fr;
    }

    .iro-post-nav-item.next {
        text-align: left;
        align-items: flex-start;
    }
}
