/*
Theme Name: Lumi微光盒
Theme URI: https://example.com/
Author: Lumi
Author URI: https://example.com/
Description: Lumi微光盒软件资源站 WordPress 主题。使用 WordPress 文章发布软件，支持古腾堡编辑器、特色图、分类标签、软件参数、网盘下载、视频和截图。
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: lumi-ruancang
*/

:root {
    --theme-radius: 4px;
    --theme-page-width: 730px;
    --theme-sidenav-width: 112px;
    --theme-header-height: 36px;
    --theme-color-primary: #7d8cff;
    --theme-color-text-1: #e5e9ef;
    --theme-color-text-2: #a5adb8;
    --theme-color-text-3: #78828f;
    --theme-color-bg: #12171d;
    --theme-color-box: #20252b;
    --theme-color-item: #1d2228;
    --theme-color-item-hover: #252b33;
    --theme-color-border: #2a3037;
    --theme-color-border-2: #333b45;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--theme-color-bg);
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--theme-color-text-1);
    background: var(--theme-color-bg);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

a {
    color: unset;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

.rc-wrap {
    position: relative;
    width: var(--theme-page-width);
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.box {
    border: 1px solid var(--theme-color-border);
    border-radius: var(--theme-radius);
    background: var(--theme-color-box);
    box-shadow: none;
}

.rc-topbar {
    position: sticky;
    top: 0;
    z-index: 99;
    height: var(--theme-header-height);
    color: #f3f5f7;
    background: #20252b;
    border-bottom: 1px solid #252b32;
    box-shadow: none;
    white-space: nowrap;
}

.rc-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: var(--theme-page-width);
    max-width: calc(100% - 16px);
    height: 100%;
    padding: 0;
}

.rc-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3f5f7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.rc-logo:hover {
    color: #fff;
}

.rc-logo strong {
    font-size: 13px;
    font-weight: 700;
}

.rc-logo-mark {
    display: none;
}

.rc-logo img {
    display: block;
    width: 18px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.rc-nav,
.rc-menu,
.rc-search {
    display: none;
}

#page-content {
    flex: 1;
    margin-top: 14px;
    margin-bottom: 18px;
}

.rc-sidenav-layout {
    display: flex;
    align-items: flex-start;
}

.rc-sidenav {
    position: sticky;
    top: calc(var(--theme-header-height) + 14px);
    left: 0;
    width: var(--theme-sidenav-width);
    min-width: var(--theme-sidenav-width);
    max-height: calc(100vh - var(--theme-header-height) - 28px);
    margin-right: 8px;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.rc-sidenav::-webkit-scrollbar {
    display: none;
}

.rc-side-menu {
    display: grid;
    gap: 0;
}

.rc-side-menu a {
    display: block;
    border-radius: 0;
    padding: 7px 18px;
    color: #c1c7d0;
    font-size: 11px;
    line-height: 1.35;
}

.rc-side-menu a:hover,
.rc-side-menu a.active {
    color: #fff;
    background: var(--theme-color-item-hover);
}

.rc-sidenav-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rc-section {
    margin-bottom: 8px;
    padding: 0 10px 10px;
    overflow: hidden;
}

.rc-section:last-child {
    margin-bottom: 0;
}

.rc-section-header {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
}

.rc-section-header h1,
.rc-section-header h2 {
    margin: 0;
    color: #f4f6f8;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.rc-section-header p {
    display: none;
}

.rc-list {
    display: flex;
    flex-flow: row wrap;
    margin: 0 -4px;
}

.rc-item-wrap {
    width: 33.333333%;
    padding: 4px;
}

.rc-item {
    width: 100%;
    height: 100%;
    border: 1px solid #292f36;
    border-radius: 3px;
    background: var(--theme-color-item);
    box-shadow: none;
    transition: background .18s, border-color .18s;
}

.rc-item:hover {
    border-color: var(--theme-color-border-2);
    background: #222931;
}

.rc-item-main {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 7px 8px;
}

.rc-item-main:hover {
    color: unset;
}

.rc-thumb-wrap {
    flex: 0 0 auto;
    margin-right: 7px;
}

.rc-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.rc-thumb-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: #2f6df6;
    font-size: 11px;
    font-weight: 700;
}

.rc-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rc-item-title {
    display: -webkit-box;
    overflow: hidden;
    color: #dfe4ea;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-all;
}

.rc-item-excerpt,
.rc-item-meta {
    display: none;
}

.rc-item-go {
    display: none;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 0;
    transform: translateY(-50%);
    color: #8d96a2;
    background: transparent;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.rc-section-list {
    padding-bottom: 0;
}

.rc-section-list .rc-list {
    display: block;
    margin: 0 -10px;
}

.rc-section-list .rc-item-wrap {
    width: 100%;
    padding: 0;
}

.rc-section-list .rc-item {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.rc-section-list .rc-item:hover {
    background: var(--theme-color-item-hover);
}

.rc-section-list .rc-item-main {
    min-height: 34px;
    border-top: 1px solid #292f36;
    padding: 5px 28px 5px 10px;
}

.rc-section-list .rc-thumb {
    width: 20px;
    height: 20px;
}

.rc-section-list .rc-item-title {
    font-size: 11px;
    font-weight: 500;
}

.rc-section-list .rc-item-go {
    display: flex;
}

.rc-empty {
    padding: 18px;
    color: var(--theme-color-text-3);
    text-align: center;
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid var(--theme-color-border);
    border-radius: 2px;
    background: var(--theme-color-box);
    color: var(--theme-color-text-2);
    padding: 0 8px;
    font-size: 12px;
}

.page-numbers.current,
.nav-links .current {
    color: #fff;
    background: #2f6df6;
    border-color: #2f6df6;
    font-weight: 700;
}

.rc-post-wrap {
    max-width: 590px;
    margin-left: calc(var(--theme-sidenav-width) + 8px);
    padding: 18px;
}

.rc-post-header {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--theme-color-border);
    padding-bottom: 16px;
}

.rc-post-title {
    margin: 0;
    color: #f4f6f8;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.rc-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: #7c8794;
    font-size: 12px;
}

.rc-post-meta .cats a {
    display: none;
    height: 26px;
    border-radius: 3px;
    background: #252b35;
    color: #b9c2cf;
    padding: 0 12px;
    line-height: 26px;
    font-weight: 500;
}

.rc-post-meta .cats a:first-child {
    display: inline-block;
}

.rc-post-content {
    max-width: 100%;
    color: #d7dde5;
    font-size: 14px;
    word-break: break-word;
}

.rc-post-content > p,
.rc-post-content > div,
.rc-post-content > img,
.rc-post-content > h1,
.rc-post-content > h2,
.rc-post-content > h3,
.rc-post-content > h4,
.rc-post-content > h5,
.rc-post-content > h6,
.rc-post-content > pre,
.rc-post-content > ul,
.rc-post-content > ol,
.rc-post-content > table,
.rc-post-content > blockquote {
    max-width: 100%;
    margin: 0 0 16px;
}

.rc-post-content > h1,
.rc-post-content > h2 {
    position: relative;
    border-bottom: 1px solid var(--theme-color-border);
    padding-bottom: 10px;
    color: #f4f6f8;
    font-size: 20px;
    font-weight: 700;
}

.rc-post-content > h1 {
    font-size: 22px;
}

.rc-post-content > h3 {
    color: #f4f6f8;
    font-size: 16px;
    font-weight: 700;
}

.rc-post-content p {
    line-height: 1.75;
}

.rc-post-content a {
    color: var(--theme-color-primary);
    word-break: break-word;
}

.rc-post-content a:hover {
    text-decoration: underline;
}

.rc-post-content ul,
.rc-post-content ol {
    margin-left: .8em;
    padding: 0;
    line-height: 1.8;
    list-style-type: initial;
}

.rc-post-content ol {
    list-style-type: decimal;
}

.rc-post-content li::marker {
    color: var(--theme-color-primary);
}

.rc-post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--theme-color-border);
    border-radius: 5px;
}

.rc-post-content blockquote {
    border-radius: 4px;
    background: #191e24;
    color: #aab2bd;
    padding: 1em;
}

.rc-download-lines code {
    margin-left: 8px;
    border-radius: 3px;
    background: #191e24;
    color: #9aa4b0;
    padding: 1px 4px;
    font-family: inherit;
    font-size: 13px;
}

.rc-media {
    display: grid;
    gap: 12px;
}

.rc-media iframe,
.rc-media video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--theme-radius);
    background: #111;
}

.rc-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rc-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rc-post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 590px;
    margin-top: 12px;
    margin-left: calc(var(--theme-sidenav-width) + 8px);
}

.rc-post-nav a {
    border: 1px solid var(--theme-color-border);
    border-radius: var(--theme-radius);
    background: var(--theme-color-box);
    color: var(--theme-color-text-2);
    box-shadow: none;
    padding: 10px 14px;
    font-size: 12px;
}

.rc-aside-tools {
    display: none;
}

.rc-footer {
    margin-top: 0;
    border-top: 1px solid #252b32;
    background: #20252b;
    color: #8b95a1;
}

.rc-footer .rc-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: var(--theme-page-width);
    min-height: 64px;
    padding: 18px 0;
    font-size: 14px;
}

.rc-footer a,
.rc-footer span {
    color: #8b95a1;
}

@media screen and (max-width: 768px) {
    :root {
        --theme-page-width: 100%;
        --theme-sidenav-width: 100%;
        --theme-header-height: 38px;
    }

    .rc-wrap,
    .rc-head,
    .rc-footer .rc-wrap {
        width: 100%;
        max-width: 100%;
    }

    .rc-topbar {
        min-height: var(--theme-header-height);
        height: var(--theme-header-height);
    }

    .rc-head {
        padding: 0 10px;
    }

    #page-content {
        margin-top: 0;
        margin-bottom: 0;
    }

    .rc-sidenav-layout {
        display: block;
    }

    .rc-sidenav {
        position: sticky;
        top: var(--theme-header-height);
        z-index: 8;
        width: 100%;
        min-width: 0;
        max-height: none;
        margin: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        padding: 0 6px;
        overflow-x: auto;
        background: var(--theme-color-box);
    }

    .rc-side-menu {
        display: flex;
        flex-wrap: nowrap;
    }

    .rc-side-menu a {
        padding: 10px 11px;
        white-space: nowrap;
        font-size: 12px;
    }

    .rc-sidenav-content {
        padding: 8px;
    }

    .rc-section {
        margin-bottom: 8px;
    }

    .rc-item-wrap {
        width: 50%;
    }

    .rc-section-list .rc-item-wrap {
        width: 100%;
    }

    .rc-post-wrap,
    .rc-post-nav {
        max-width: none;
        margin: 8px;
        border-radius: var(--theme-radius);
    }

    .rc-post-wrap {
        padding: 14px;
    }

    .rc-post-title {
        font-size: 19px;
    }

    .rc-footer .rc-wrap {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-height: 72px;
        padding: 14px 10px;
    }
}

@media screen and (min-width: 769px) {
    :root {
        --theme-page-width: 1480px;
        --theme-sidenav-width: 180px;
        --theme-header-height: 56px;
    }

    body {
        font-size: 14px;
        line-height: 1.55;
    }

    .rc-logo,
    .rc-logo strong {
        font-size: 18px;
    }

    .rc-logo img {
        width: 26px;
        height: 26px;
    }

    #page-content {
        margin-top: 20px;
        margin-bottom: 26px;
    }

    .rc-sidenav {
        top: calc(var(--theme-header-height) + 20px);
        max-height: calc(100vh - var(--theme-header-height) - 40px);
        margin-right: 14px;
        padding: 14px 0;
    }

    .rc-side-menu a {
        padding: 12px 26px;
        font-size: 14px;
    }

    .rc-section {
        margin-bottom: 14px;
        padding: 0 18px 18px;
    }

    .rc-section-header {
        min-height: 52px;
    }

    .rc-section-header h1,
    .rc-section-header h2 {
        font-size: 20px;
    }

    .rc-list {
        margin: 0 -7px;
    }

    .rc-item-wrap {
        padding: 7px;
    }

    .rc-item-main {
        min-height: 66px;
        padding: 13px 15px;
    }

    .rc-thumb-wrap {
        margin-right: 10px;
    }

    .rc-thumb {
        width: 40px;
        height: 40px;
    }

    .rc-thumb-fallback,
    .rc-item-title {
        font-size: 15px;
    }

    .rc-item-go {
        right: 12px;
        font-size: 24px;
    }

    .rc-section-list .rc-list {
        margin: 0 -14px;
    }

    .rc-section-list .rc-item-main {
        min-height: 50px;
        padding: 8px 42px 8px 18px;
    }

    .rc-section-list .rc-thumb {
        width: 30px;
        height: 30px;
    }

    .rc-section-list .rc-item-title {
        font-size: 15px;
    }

    .rc-post-wrap {
        max-width: 1180px;
        margin-right: auto;
        margin-left: auto;
        padding: 34px;
    }

    .rc-post-title {
        font-size: 30px;
    }

    .rc-post-meta {
        font-size: 13px;
    }

    .rc-post-content {
        font-size: 17px;
    }

    .rc-post-content > h1 {
        font-size: 28px;
    }

    .rc-post-content > h2 {
        font-size: 24px;
    }

    .rc-post-content > h3 {
        font-size: 20px;
    }

    .rc-post-nav {
        max-width: 1180px;
        margin-right: auto;
        margin-left: auto;
    }

    .rc-footer .rc-wrap {
        font-size: 15px;
    }
}
