@keyframes round {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadein {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

html, body, h1, h2, h3, h4, h5, h6, p, img, ul, li, ol {
    margin: 0;
    padding: 0
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-size: 14px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    background-image: var(--body-gradient, none);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 56px;
    font-feature-settings: "tnum";
    font-variant: tabular-nums;
    transition: all .2s;
}

h1, h2, h3, h4, h5, h6 {
    color: inherit;
    text-rendering: optimizelegibility;
}

img {
    border: none;
    filter: var(--img-filter);
}

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

a:hover {
    color: var(--primary-color);
}

li {
    list-style-type: none
}

input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: inherit
}

.icon-topflag {
    color: red;
}

.flex {
    display: flex !important;
    align-items: center;
}

.d-flex {
    display: flex;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.flex-column {
    flex-direction: column;
    align-items: inherit;
}

.flex-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.pointer {
    cursor: pointer;
}

.light-shadow {
    box-shadow: var(--light-shadow);
}

.text-center {
    text-align: center;
}

.sticky {
    position: sticky;
    top: 65px;
    z-index: 999;
}

.block {
    display: block;
}

.mr-5 {
    margin-right: 5px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar img {
    width: 1.5em;
    height: 1.5em;
    margin-right: 5px;
    border-radius: 50%;
}

.gradient-title {
    background: linear-gradient(to bottom, #ff0000, #ff0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.log-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 10px;
    z-index: 1000;
}

.log-loading .iconfont {
    display: block;
    font-size: 20px;
    line-height: 1;
    animation: round 1s infinite;
}


#browsehappy {
    text-align: center;
    background: #ff0;
    padding: 10px 0
}

#search-trigger {
    cursor: pointer;
}

.bold {
    font-weight: bold
}

.iconfont {
    font-size: inherit;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fit-cover {
    object-fit: cover;
}

.container {
    display: block;
    width: 1366px;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.pull-left, .fl {
    float: left
}

.pull-right, .fr {
    float: right
}

.clearfix, .clear {
    clear: both
}

.clearfix:after {
    content: '';
    display: block;
    clear: both
}

.shadow {
    box-shadow: var(--primary-shadow) !important
}

.icon-menu {
    display: none;
}

.count {
    display: flex;
}

.count .item {
    list-style-type: none;
    color: inherit;
    margin-right: var(--gap)
}

.readmore {
    display: none
}

.badge {
    display: inline-block;
    line-height: 1;
    font-size: 12px;
    padding: 5px 8px;
    vertical-align: text-bottom;
    border-radius: var(--border-radius);
    font-weight: normal
}

.badge-danger {
    background: var(--danger-color);
    color: rgba(255, 255, 255, 0.9)
}

.badge-primary {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9)
}

.badge-warning {
    background: #ff8600;
    color: rgba(255, 255, 255, 0.9)
}

.badge-info {
    background: #eaeaea;
    color: rgba(67, 67, 67, 0.9)
}

.badge.top-1 {
    background: #ff8600;
}

.badge.top-2 {
    background: #ff8600;
}

.badge-mini {
    padding: 3px 6px;
}

.breadthumb {
    margin: 15px 0;
}

.breadthumb .bread-item {
    margin-right: 5px;
    padding: 0;
}

.breadthumb .bread-item:after {
    content: ' >';
    margin-left: 5px;
}

.breadthumb .bread-item:last-of-type:after {
    content: ''
}

.main {
    position: relative;
    min-height: 500px;
}

.content-wrap {
    box-sizing: border-box;
    display: flex;
}

.content-wrap .content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 321px;
    margin-left: 20px;
}

.pagination {
    margin: 25px auto 0;
    text-align: center
}

.pagination a, .pagination span {
    display: inline-block;
    text-decoration: none;
    padding: 8px 15px;
    box-sizing: border-box;
    margin: 0 2px;
    background-color: var(--front-dark-bg-color);
    color: #606266;
    min-width: 30px;
    border-radius: var(--border-radius);
}

.pagination span, .pagination a:hover {
    background-color: var(--primary-color);
    color: #fff
}

.ias-noneleft {
    clear: both
}

.icon-btn {
    padding: 5px 8px;
    display: inline-block;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, .2);
    color: #fff;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .card {
    width: 400px;
    max-width: 90%;
    transition: all .3s;
    animation: fadein .3s;
}

.modal .card .card-head {
    background: linear-gradient(90deg, #1e9fff, #1e9fffad);
    color: #fff;
    border-bottom: none;
}

.modal .card .bottom {
    text-align: center;
    z-index: 1;
    border-top: 0;
}

.modal .card .bottom .btn {
    background: linear-gradient(90deg, #1e9fff, #1e9fffad);
    color: #fff;
    border: none;
}

.modal .card:after {
    background: rgba(255, 237, 227, .4);
    content: "";
    display: block;
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 200px;
    border-radius: 50%;
    z-index: 0;
}

.footer {
    margin-top: 30px;
    padding: 30px 0;
    background-color: #131313;
    color: #9E9E9E;
    overflow: hidden
}

.footer .topic-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px
}

.copyright {
    text-align: center;
    padding: 30px 0;
    color: #9E9E9E;
    margin-top: 15px;
}

.site-tools {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

.site-tools .item {
    display: block;
    text-align: center;
    background-color: var(--front-bg-color);
    width: 48px;
    height: 48px;
    line-height: 48px;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
    border-radius: 50%;
    box-shadow: var(--light-shadow);
    transition: all .3s;
}

.site-tools .item:hover,
.site-tools .item.active {
    background-color: var(--primary-color);
}

.site-tools .item:hover .iconfont,
.site-tools .item.active .iconfont {
    color: #fff
}

.site-tools .item:hover .popup,
.site-tools .item.active .popup {
    display: block;
}

.site-tools .item .popup {
    position: absolute;
    right: 50px;
    bottom: 0;
    background: var(--front-bg-color);
    text-align: left;
    display: none;
    padding: 20px;
    line-height: 2;
    width: 200px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 5px 0 rgba(158, 158, 158, 0.09);
    box-shadow: 0 0 5px 0 rgba(158, 158, 158, 0.09)
}

.site-tools .item .popup img {
    display: block;
    width: 100%;
}

.site-tools .item .popup li {
    display: flex;
}

.site-tools .item .popup li span:first-of-type {
    white-space: nowrap;
    margin-right: 10px;
}

.site-tools .gotoup {
    width: 0;
    height: 0;
    margin: 0 auto;
    overflow: hidden;
}

.site-tools .gotoup.active {
    width: 48px;
    height: 48px;
}

.site-tools .iconfont {
    font-size: 20px;
    color: #5a5a5a
}

.log-info {
    padding: 0 0 20px;
    color: var(--text-color);
    text-align: center;
    border-bottom: 1px solid var(--line-color);
}

.log-info .iconfont {
    margin-right: 2px;
}

.log-info .item {
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
}

.log-info .log-info-content {
    margin-top: 10px;
}

.log-info .today {
    color: var(--primary-color);
}

.log-title {
    font-size: 24px;
    font-weight: bold;
    position: relative;
    color: var(--title-color);
}

.log-actions {
    text-align: right;
    display: flex;
    white-space: nowrap;
}

.log-actions .item {
    background: var(--background-color);
    margin-right: 10px;
    padding: 10px;
}

.log-body {
    padding: 30px 0;
    line-height: 2;
    font-size: 16px;
    word-break: break-word;
    background: var(--front-bg-color);
}

.log-body .excerpt {
    background: var(--front-dark-bg-color);
    padding: 15px 20px;
    margin-bottom: 2em;
    border-radius: var(--border-radius);
}

.log-body .excerpt p {
    margin-bottom: 0;
    line-height: 2;
}

.log-body p {
    font-size: 17px;
}

.log-body p {
    margin-bottom: 1em
}

.log-body h1, .log-body h2, .log-body h3, .log-body h4, .log-body h5, .log-body h6 {
    word-break: break-all;
    color: var(--title-color);
    background: linear-gradient(to bottom, transparent 75%, rgba(119, 239, 225, 0.4) 75%);
    display: inline;
}

.log-body h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.log-body h1:after,
.log-body h2:after,
.log-body h3:after,
.log-body h4:after,
.log-body h5:after,
.log-body h6:after {
    content: '';
    display: block;
}

.log-body h2 {
    width: 100%;
    padding: 5px 0;
    margin-bottom: 1em;
    box-sizing: border-box;
    font-size: 20px;
    border-radius: 4px;
}

.log-body h3, .log-body h4, .log-body h5, .log-body h6 {
    font-weight: bold;
    font-size: 18px;
    margin: 0.5em 0
}

.log-body strong {
    font-weight: bold;
}

.log-body img {
    max-width: 100%;
    height: auto;
}

.log-body pre {
    margin: 16px 0;
    box-shadow: var(--light-shadow);
}

@media (max-width: 768px) {
    .log-body h1,
    .log-body h2,
    .log-body h3,
    .log-body h4,
    .log-body h5,
    .log-body h6 {
        display: block;
        background: none;
        padding: 0;
        margin: 1.2em 0 0.6em;
        word-break: break-word;
        line-height: 1.4;
    }

    .log-body h1 {
        font-size: 21px;
        padding-left: 12px;
        border-left: 4px solid var(--primary-color);
    }

    .log-body h2 {
        font-size: 19px;
        padding-left: 10px;
        border-left: 3px solid var(--primary-color);
    }

    .log-body h3,
    .log-body h4,
    .log-body h5,
    .log-body h6 {
        font-size: 17px;
        padding-left: 8px;
        border-left: 2px solid var(--primary-color);
    }

    .log-body h1:after,
    .log-body h2:after,
    .log-body h3:after,
    .log-body h4:after,
    .log-body h5:after,
    .log-body h6:after {
        content: none;
    }
}

.log-body code {
    display: inline-block;
    background-color: #f6f6f6;
    padding: 2px 6px;
    line-height: 1.6;
    border-radius: 4px;
    border: 1px solid #f0dad5;
    font-size: 14px;
    color: #e24a3a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.log-body pre code {
    background-color: inherit;
    border: none;
    padding: 0;
    display: block;
}

.log-body ol, .log-body ul {
    margin-bottom: 1em;
}

.log-body ul {
    padding-left: 1em;
    margin-top: 1em;
}

.log-body li {
    line-height: 2
}

.log-body ul li {
    list-style-type: disc;
}

.log-body ul ul li {
    list-style-type: circle;
}

.log-body ul ul ul li {
    list-style-type: square;
}

.log-body ul.contains-task-list,
.log-body ol.contains-task-list {
    list-style: none;
    padding-left: 0;
    margin: 1em 0;
}

.log-body ul.contains-task-list > li,
.log-body ol.contains-task-list > li {
    position: relative;
    list-style: none;
    padding-left: 1.8em;
    margin: 0.4em 0;
}

.log-body .task-list-item {
    list-style: none;
}

.log-body .task-list-item-checkbox {
    position: absolute;
    left: 0;
    top: 0.35em;
    margin: 0;
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    appearance: auto;
    -webkit-appearance: checkbox;
}

.log-body ol {
    padding-left: 30px;
}

.log-body ol li {
    list-style-type: decimal;
}

.log-body li p {
    display: inline
}

.log-body .text-block {
    background-color: var(--front-dark-bg-color);
    padding: 10px 15px;
    text-align: center;
    margin: 1em 0
}

.log-body blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    color: var(--text-color);
    border-left: 4px solid rgba(0, 0, 0, .12);
    background-color: rgba(0, 0, 0, .02);
    font-style: normal;
}

.dark-theme .log-body blockquote {
    border-left-color: rgba(255, 255, 255, .2);
    background-color: rgba(255, 255, 255, .03);
}

.log-body blockquote p {
    margin-bottom: .5em;
}

.log-body blockquote p:last-child {
    margin-bottom: 0;
}

.log-body blockquote h1,
.log-body blockquote h2,
.log-body blockquote h3,
.log-body blockquote h4,
.log-body blockquote h5,
.log-body blockquote h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0 0 .5em;
}

.log-body blockquote h1::before {
    content: "# ";
}

.log-body blockquote h2::before {
    content: "## ";
}

.log-body blockquote h3::before {
    content: "### ";
}

.log-body blockquote h4::before {
    content: "#### ";
}

.log-body blockquote h5::before {
    content: "##### ";
}

.log-body blockquote h6::before {
    content: "###### ";
}

.log-body hr {
    display: block;
    border: 1px solid transparent;
    border-bottom-color: var(--line-color);
    margin: 1em 0;
}

.log-body table {
    width: 100%;
    border: 1px solid var(--line-color);
    border-collapse: collapse;
    margin-bottom: 1em;
}

.log-body table th,
.log-body table td {
    border-bottom: 1px solid var(--line-color);
    padding: 5px 10px;
    text-align: center;
}

.log-body table tr:last-of-type td {
    border-bottom: 1px solid var(--line-color);
}

.log-body table th {
    background-color: var(--line-color)
}

.log-body video {
    display: block;
    margin: 2em auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 6px;
}

.log-body a {
    color: var(--primary-color);
}

.log-body .poem {
    flex-direction: column;
    align-items: center;
    display: flex;
    text-align: center;
    padding: 50px;
    width: fit-content;
    line-height: 1.6;
    margin: 30px auto;
    border-radius: 8px;
    font-size: 22px;
    box-shadow: 0 0 1px 10px #e0e3e9, 15px 15px 10px 10px #f6f6f6;
    letter-spacing: 1em;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    color: #000;
}

.log-body .poem p {
    font-size: inherit;
    border-bottom: 3px solid #e0e3e9;
    padding-left: 1em;
}

.log-body .poem.mini {
    font-size: 16px;
    letter-spacing: 0.5em;
}

.log-body a.btn {
    text-decoration: none;
}

.log-body .btn-box {
    padding: 30px;
    text-align: center;
    background: var(--front-dark-bg-color);
    margin: 1em 0;
}

.log-body .log-hide-content {
    padding: 30px;
    border: 2px dashed var(--line-color);
    margin: 1em 0;
    border-radius: 10px;
    display: flex;
}

.log-body .log-hide-content .hide-card-left {
    flex: 1;
}

.log-body .log-hide-content .hide-card-right {
    width: 120px;
}

.log-body .log-hide-content .hide-card-right img {
    width: 100%;
    border: 5px dashed #dedede;
    border-radius: 5px;
    box-sizing: border-box;
}

.log-body .log-hide-content .input {
    display: inline-block;
    width: 220px;
    margin-right: 15px;
}

.log-body .log-hide-content .btn {
    margin-top: 0;
}

.article-copyright {
    margin: 30px 0;
    padding: 22px 26px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: var(--front-dark-bg-color);
}

.dark-mode .article-copyright {
    border-color: rgba(255, 255, 255, 0.14);
}

.article-copyright-note {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.article-copyright-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    word-break: break-all;
}

.article-copyright-item + .article-copyright-item {
    margin-top: 6px;
}

.article-copyright-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(32, 118, 255, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.dark-mode .article-copyright-label {
    background: rgba(32, 118, 255, 0.22);
}

.article-copyright-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color .2s ease-in-out;
}

.article-copyright-item a:hover {
    color: var(--primary-color);
}

.tags .tag {
    background: var(--background-color);
    padding: 10px 15px;
    text-decoration: none;
    margin-right: 5px;
    border-radius: 2em;
    color: var(--text-color);
    display: inline-block;
    margin-bottom: 5px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.tags .tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.tag-card .tag {
    width: 16.6%;
    box-sizing: border-box;
    margin: 0;
    background: transparent;
}

.relief {
    color: #5a5a5a
}

#related_log, .relation {
    line-height: 1.8
}

#related_log p, .relation p {
    margin-bottom: 0
}

#related_log .time, .relation .time {
    display: inline-block
}

.neighbor-card-wrap {
    margin-bottom: 12px;
}

.neighbor-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.neighbor-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.95));
    box-shadow: 0 12px 22px rgba(51, 82, 112, 0.12);
    color: var(--text-color);
    transition: transform .25s ease, box-shadow .25s ease;
}

.neighbor-card__media {
    flex: 0 0 135px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(197, 211, 232, 0.45), rgba(229, 236, 247, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.neighbor-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.neighbor-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 110px;
    justify-content: center;
    min-width: 0;
}

.neighbor-card__header {
    display: flex;
    justify-content: flex-end;
}

.neighbor-card__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.neighbor-card__title {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}

.neighbor-card__summary {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--light-text-color);
    opacity: 1;
    max-height: none;
    overflow: hidden;
    transform: none;
    transition: color .25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.neighbor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(51, 82, 112, 0.18);
}

.neighbor-card:hover .neighbor-card__media img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .neighbor-card-grid {
        gap: 12px;
    }

    .neighbor-card {
        padding: 16px;
        gap: 14px;
    }

    .neighbor-card__media {
        flex-basis: 110px;
        height: 96px;
    }

    .neighbor-card__body {
        min-height: 96px;
    }

    .neighbor-card__title {
        font-size: 17px;
    }
}

/*评论列表*/
.comment-box .comment {
    display: block;
    box-sizing: border-box;
    margin-bottom: 10px;
    background: var(--front-dark-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.comment-box .comment .comment-time {
    color: var(--light-text-color);
}

.comment-box .comment .comment-content {
    margin: 10px 0
}

.comment-box .comment-children {
    margin-top: 15px;
}

.comment-user .form-group {
    width: 32.5%;
}

#comment-place {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#comment-post {
    width: 640px;
    max-width: 100%;
}

/*相关文章*/
.relation-log .card .card-cover {
    height: 150px;
}

.relation-log .card .excerpt {
    display: none;
}

.relation-log .card .info h3 {
    font-size: 14px;
}

.sort-desc {
    margin-bottom: 15px;
    background: var(--front-bg-color);
    border-radius: 8px;
}

.sort-desc .title {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: normal;
}

.sort-desc .title span {
    font-size: 15px;
    margin-left: 20px;
}

.user-list {
    display: flex;
    flex-wrap: wrap;
    background: var(--front-bg-color);
    border-radius: var(--border-radius);
}

.user-list li {
    display: block;
    text-align: center;
    padding: 20px;
    width: 12.5%;
    box-sizing: border-box
}

.user-list img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.user-list .name {
    font-size: 12px;
    white-space: nowrap;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input {
    width: 100%;
    border: 1px solid var(--front-dark-bg-hover-color);
    padding: 10px 15px;
    line-height: 1.5;
    outline: none;
    color: inherit;
    appearance: none;
    box-sizing: border-box;
    border-radius: 4px;
    transition: all .3s;
    background: var(--front-bg-color);
}

.input:hover,
.input:focus {
    border-color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px
}

.form-group label {
    display: block;
    margin-bottom: 5px
}

.form-group input, .form-group textarea {
    border-color: var(--front-dark-bg-hover-color)
}

.form-group input:focus, .form-group textarea:focus {
    background-color: var(--front-bg-color)
}

.form-group textarea {
    width: 100%
}

.form-group .verify-code .input {
    width: 120px;
    margin-left: 10px
}

.btn {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 0 5px 0 rgba(158, 158, 158, 0.09);
    transition: all .3s;
    font-size: 16px;
    background: var(--front-bg-color);
    white-space: nowrap;
    display: inline-block;
}

.btn-primary, .btn-danger {
    color: #fff !important;
}

.btn-primary {
    background: var(--primary-color)
}

.btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

.btn:hover {
    opacity: .9;
    box-shadow: 0 1px 3px 1px rgba(158, 158, 158, 0.5)
}

.btn-block {
    display: block;
    width: 100%
}

.btn-mini {
    padding: 5px 10px;
}

.btn-round {
    border-radius: var(--border-radius);
}

.nav {
    background: var(--nav-glass-bg, var(--front-bg-color));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(var(--nav-blur-strength, 20px));
    backdrop-filter: blur(var(--nav-blur-strength, 20px));
    border-bottom: 1px solid var(--nav-glass-border, transparent);
    box-shadow: var(--light-shadow);
    transform: translateY(0);
    transition: transform .3s ease;
}

.nav.nav--hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar.fluid {
    padding: 0 15px;
}

.navbar .logo {
    line-height: 56px;
    font-size: 18px;
    margin-right: 50px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.navbar .logo img {
    vertical-align: middle;
    margin-right: 10px;
    height: 32px
}

#menu {
    flex: 1;
    white-space: nowrap;
    min-width: 0;
    overflow-x: clip;
    text-overflow: ellipsis;
}

.menu {
    line-height: 56px;
    display: block;
}

.menu.right {
    align-content: end;
}

.menu-item {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.menu-item a {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    transition: all .2s;
    font-size: 16px;
}

.menu-item .icon-down {
    font-size: 8px;
    margin-left: 5px;
    transition: all .2s;
}

.menu-item:hover .icon-down,
.menu-item.active .icon-down {
    transform: rotate(180deg);
}

.menu-item > a {
    display: flex;
}

.menu-item a:hover,
.menu-item.active > a {
    color: var(--title-color);
}


.menu-item .sub-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background-color: var(--front-bg-color);
    color: var(--title-color);
    line-height: 2.5;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    box-shadow: var(--primary-shadow);
    border: 1px solid rgba(146, 146, 146, 0.11);
    padding: 10px;
    box-sizing: border-box;
}

.menu-item .sub-menu a:hover {
    background-color: var(--front-dark-bg-color);
    border-radius: var(--border-radius);
}

.menu-item .sub-menu a {
    text-align: center;
    display: block;
}

.menu-item:hover .login-area,
.menu-item:hover .sub-menu,
.menu-item a:focus + .sub-menu {
    display: block;
}

.menu-icons {
    display: flex;
    text-align: right;
}

.menu-icons .iconfont {
    background: var(--front-dark-bg-color);
    padding: 5px 9px;
    border-radius: 50%;
}

.menu-icons .iconfont:hover {
    background: var(--front-dark-bg-hover-color);
}

.login-area {
    max-width: 360px;
    position: absolute;
    right: 50%;
    margin-right: -60%;
    z-index: 999;
    background-color: var(--front-bg-color);
    color: var(--title-color);
    line-height: 2.5;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    box-shadow: var(--primary-shadow);
    border-top: 1px solid rgba(146, 146, 146, 0.11);
    padding: 20px;
    box-sizing: border-box;
}

.login-area a:hover {
    background-color: var(--front-dark-bg-color);
}

.user-actions {
    line-height: 1.5;
}

.user-actions a {
    text-align: center;
    padding: 10px 15px;
    flex: 1;
    font-size: 12px;
}

.user-actions .iconfont {
    display: block;
    font-size: 22px;
    line-height: 1;
}

.user-actions-bottom a {
    padding: 10px;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
}

.user-actions-comment {
    padding: 15px 0;
}

.user-actions-comment h3 {
    padding-left: 15px;
    margin-top: 10px;
}

.user-actions-comment li {
    background: var(--front-dark-bg-color);
    margin-bottom: 5px;
    border-radius: 6px;
}

.user-actions-comment li:last-of-type {
    border-bottom: none;
}

.user-actions-comment li a {
    padding: 5px 15px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.user-actions-comment li a:hover {
    color: inherit;
}

.user-actions-comment li .name {
    font-weight: bold;
    padding: 10px 0;
}

.user-actions-comment li .date {
    color: var(--title-color);
    padding-bottom: 5px;
}

.social-media .iconfont:hover {
    color: #fff;
}

.social-media .icon-coffee:hover {
    background-color: #000;
}

.social-media .icon-rss:hover {
    background-color: #3e64ff
}

.social-media .icon-weixin:hover {
    background-color: #5cb85c
}

.social-media .icon-weibo:hover {
    background-color: #FF4949
}

.social-media .icon-email:hover {
    background-color: #00a0d2
}

.social-media .icon-qq:hover {
    background-color: #ff0000
}

/*有封面的文章列表（默认列表)*/
.log-list-default-item {
    position: relative;
    display: flex;
    margin-bottom: var(--gap);
}

.log-list-default-item .cover-image {
    width: 200px;
    height: 140px;
    margin-right: 30px;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    font-size: 0;
    position: relative;
    box-shadow: var(--primary-shadow);
}

.log-list-default-item .cover-image img {
    width: 100%;
    height: 100%;
    background: var(--front-dark-bg-color);
}

@supports not (object-fit: cover) {
    .log-list-default-item .cover-image,
    .home .log-list-default .log-list-default-item .cover-image {
        display: block;
        height: auto;
    }

    .log-list-default-item .cover-image img {
        height: auto;
        width: 100%;
    }
}

.log-list-default-item .cover-image .badge {
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
}

.log-list-default-item .title h3 {
    font-size: 1.4em;
    margin-bottom: 1em;
    line-height: 1.2;
    transition: color .3s;
    display: inline-block;
    color: var(--title-color);
}

.log-list-default-item .title:hover h3 {
    color: var(--primary-color);
}

.log-list-default-item .description {
    color: #a5a5a5;
    line-height: 1.8
}

.log-list-default-item .description img {
    display: none
}

.log-list-default-item .info {
    color: #606266;
    margin-bottom: 1em;
}

.log-list-default-item .info span {
    margin-right: 10px;
    display: inline-block
}

/*文本列表*/
.log-list-text {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.log-list-text .log-list-text-item {
    width: calc((100% - var(--gap)) / 2);
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 0;
}

.log-list-text .log-list-text-item:hover {
    box-shadow: none;
}

.log-list-text .log-list-text-item .date {
    font-size: 12px;
    color: #9e9e9e;
}

.widget {
    margin-bottom: 20px;
    background-color: var(--front-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow .2s;
    box-shadow: var(--light-shadow);
}

.widget li {
    padding: 5px 0
}

.widget .widget-head,
.widget h3 {
    padding: 10px 15px;
    border-bottom: 1px dashed var(--line-color);
    font-size: 16px;
    color: var(--title-color);
    font-weight: bold;
}

.widget .widget-head .iconfont,
.widget h3 .iconfont {
    margin-right: 3px;
    font-size: 1.1em;
}

.widget ul {
    padding: 15px
}

.widget .widget-inner {
    padding: 15px;
    line-height: 1.8;
}

.widget-series .series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--light-text-color);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.widget-series h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-series .series-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.widget-series .series-icon .icon {
    width: 100%;
    height: 100%;
}

.widget-series .series-name {
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: .08em;
}

.widget-series .series-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-series .series-item {
    position: relative;
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--front-dark-bg-color);
    transition: background .2s ease, transform .2s ease;
}

.widget-series .series-item:hover {
    background: var(--front-dark-bg-hover-color);
    transform: translateY(-1px);
}

.widget-series .series-item.is-active {
    border: 1px solid var(--primary-color);
    background: rgba(44, 121, 255, 0.12);
}

.widget-series .series-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
}

.widget-series .series-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-color);
}

.widget-series .series-date {
    font-size: 12px;
    color: var(--light-text-color);
}

.widget-series .series-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
}

.widget .more {
    font-size: 12px;
    font-weight: normal;
    float: right
}

.widget-comment .widget-comment-info {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.widget-comment .widget-comment-info .time {
    color: var(--text-color);
    flex: 1;
    text-align: right;
}


.widget-comment .widget-comment-list li {
    padding: 12px;
    background: var(--front-dark-bg-color);
    border-radius: 10px;
    margin-bottom: 10px;
}

.widget-comment .widget-comment-list li:hover {
    background: var(--front-dark-bg-hover-color);
}

.widget-comment .widget-comment-list li a:hover {
    color: inherit;
}

.widget-comment-content {
    position: relative;
}

.widget-comment-content img {
    vertical-align: middle;
}

.widget-comment .comment-inner .comment-content {
    word-break: break-all;
}

.widget-comment .comment-refer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--title-color);
}

/* 图文列表*/
.list-media li {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.list-media li:hover {
    background: var(--front-dark-bg-color);
}

.list-media li a {
    display: flex;
    border-radius: var(--border-radius);
    color: var(--title-color);
}

.list-media .media-img {
    width: 80px;
    height: 60px;
    padding-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
}

.list-media .media-img img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.list-media .media-img .badge {
    position: absolute;
    left: 0;
    top: 3px;
}

.list-media .media-content {
    flex: 1;
    width: 0;
}

.list-media .media-content .info {
    color: var(--light-text-color);
}

.list-media .media-content .desc {
    margin: 0.5em 0;
    color: var(--light-text-color);
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 关键点：最多显示两行 */
    text-overflow: ellipsis; /* 可选，增强省略效果 */
}


/*侧边栏-热门文章*/
.widget-list-top li {
    display: flex;
    align-items: center;
}

.widget-list-top a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--title-color);
}

.widget-list-top .index {
    display: inline-block;
    width: 20px;
    height: 18px;
    line-height: 18px;
    margin-right: 8px;
    text-align: center;
    color: var(--light-text-color);
    border-radius: 4px
}

.widget-list-top .top-0,
.widget-list-top .top-1,
.widget-list-top .top-2 {
    font-weight: bold;
    color: #FF4949;
    font-size: 20px;
}

.widget-list-top .view {
    width: 65px;
    text-align: right;
}

.widget-hot .list-media li {
    margin-bottom: 0;
}

/* 侧边栏-普通列表模块 */
.widget-common ul {
    display: flex;
    flex-wrap: wrap;
}

.widget-common ul li {
    width: 50%;
    padding: 2px;
    box-sizing: border-box;
    margin-bottom: 2px;
}

.widget-common ul li.has-background {
    width: 100%;
    margin: 5px 0;
}

.widget-common ul li.has-background a {
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--front-dark-bg-color);
    color: var(--header-color);
    min-height: 120px;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: 18px;
}

.widget-common ul li a {
    display: block;
    padding: 10px 12px;
    box-sizing: border-box;
    color: var(--title-color);
    background-color: var(--front-dark-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.widget-common ul li a:hover {
    background-color: var(--front-dark-bg-hover-color);
}

.widget-user {
    background-size: 100% 130px;
    text-align: center;
    padding-top: 83px;
    position: relative
}

.widget-user .round-avatar {
    margin: 0 auto;
}

.widget-user .author_banner {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    display: block;
    width: 100%;
    height: 130px;
    background: #f7f9ff url("../images/shan.png") no-repeat;
    background-size: cover;
    z-index: 0;
    filter: opacity(0.7);
}

.widget-user .username {
    font-size: 22px;
    display: inline-block;
    color: var(--title-color);
}

.widget-user .social-media {
    margin: 15px 0;
}

.widget-user .desc {
    position: relative;
    padding: 0 20px 20px;
    z-index: 1
}

.widget-user .desc p {
    text-align: center;
    color: var(--text-color)
}

.widget-user .iconfont {
    font-size: 18px;
    margin: 0 5px;
    background: var(--background-color);
    border-radius: 50%;
    padding: 8px;
}

/* 侧边栏-搜索 */
.widget-search #logsearch {
    padding: 15px;
}

/*侧边栏-日历*/
.widget-calendar {
    color: #fff;
}

#calendar .day,
#calendar .day2 {
    position: relative;
    background: var(--front-dark-bg-color);
}

#calendar .day {
    background: var(--primary-color);
    color: var(--front-bg-color);
    border-radius: 50%;
    box-shadow: var(--light-shadow);
}

#calendar .calendartop {
    width: 100%;
    text-align: center
}

#calendar .calendartop td {
    width: 50%;
    padding: 16px 0;
}

#calendar .calendar {
    width: 100%;
    padding: 0 20px 20px
}

#calendar .calendar td {
    text-align: center;
    line-height: 39px;
}

#calendar .calendar td a {
    font-weight: bold;
    display: block;
    z-index: 2;
    position: relative;
}

/* 侧边栏-随机文章 */
.random-log {
    position: relative;
}

.random-log img {
    width: 100%;
    min-height: 210px;
}

.random-log #log_url {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    position: relative;
}

.random-log img[src=''] {
    display: none;
}

.random-log #cover {
    position: relative;
    z-index: 1;
}

.random-log #cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 100%;
    filter: blur(10px);
    transform: scale(2);
    opacity: .6;
}

.random-log .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(rgba(6, 6, 8, 0), rgba(6, 6, 8, 0.6));
    padding: 20px 15px;
    box-sizing: border-box;
    color: #fff;
}

.random-log .info .flex {
    justify-content: space-between;
    align-items: center;
}

.random-log .icon-refresh {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 20px;
}

.random-log .icon-refresh:hover {
    cursor: pointer;
    border-radius: 6px;
    color: #fff;
    background: var(--primary-color);
}

.widget-random-log-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.widget-random-log-tag {
    border: 1px solid var(--line-color);
    padding: 3px 10px;
    border-radius: 6px;
    transition: all .2s;
    background: var(--background-color);
    color: var(--title-color);
}

.widget-random-log-tag:hover {
    border-color: var(--primary-color);
}

.fadeIn {
    animation: fadein 1s;
}

.round {
    animation: round 1s infinite;
}

.linear-bg {
    position: relative;
}

.linear-bg:after {
    content: '';
    position: absolute;
    top: 38.2%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0, rgba(0, 0, 0, .4), transparent);
}

.card {
    background: var(--card-bg, var(--front-bg-color));
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.05));
    transition: box-shadow .35s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow, var(--light-shadow));
}

.card:hover {
    box-shadow: var(--card-shadow-hover, var(--card-shadow, var(--light-shadow)));
}

.card .card-cover {
    display: flex;
    align-items: center;
    height: 164px;
    overflow: hidden;
    position: relative;
    transition: all .5s;
}

.card .card-cover:hover {
    opacity: .8
}

.card .card-cover img {
    transition: transform .2s;
}

.card .card-cover:hover img {
    transform: scale(1.05);
}

.card .card-cover .badge {
    position: absolute;
    top: 5px;
    right: 5px;
}

.card .bottom {
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--line-color);
}

.card-body {
    padding: 30px;
    position: relative;
}

.card-head {
    padding: 15px 30px 12px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px dashed var(--line-color);
}

.album-area img {
    cursor: zoom-in;
}

.album {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.album .shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5)
}

.album .pic {
    max-height: 60%;
    max-width: 100%;
    position: relative;
    display: flex;
}

.album .pic img {
    display: none;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.album .pic img.active {
    display: block
}

.album .ctrl {
    background-color: var(--front-bg-color);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px
}

.album .ctrl .iconfont {
    display: block;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px
}

.album .ctrl .iconfont:hover {
    background-color: #E5E9F2;
    cursor: pointer
}

.search-form {
    padding: 20px 0 40px;
}

.search-form form {
    width: 50%;
    margin: 0 auto;
    display: flex;
    box-shadow: var(--primary-shadow);
}

.search-form form input {
    flex: 1;
    height: 50px;
    padding: 10px 16px;
    font-size: 15px;
    background-color: var(--front-bg-color);
    box-sizing: border-box;
    border: 1px solid var(--front-dark-bg-hover-color);
    border-radius: 6px 0 0 6px;
    color: var(--text-color);
    outline: none;
}

.search-form form button {
    width: 100px;
    background: var(--primary-color);
    border: none;
    color: rgba(255, 255, 255, .8);
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.search-form form button:hover {
    opacity: .9;
}

.search-form .tag-list {
    width: 50%;
    display: block;
    padding: 10px 0 0 0;
    margin: 0 auto;
}

.search-form .tag-list li {
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.search-form .tag-list li:hover {
    color: var(--primary-color);
}

.search-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(100px);
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal .search-body {
    width: 800px;
    padding-bottom: 100px;
    max-width: 100%;
}

.search-modal form {
    position: relative;
}

.search-modal form .btn {
    position: absolute;
    top: 8px;
    right: 10px;
    border-radius: 2em;
}

.search-modal .tags {
    padding-left: 30px;
    padding-right: 30px;
}

.live-search-panel {
    margin: 25px 30px 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dark-theme .live-search-panel {
    background: rgba(24, 24, 24, 0.92);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.live-search-status {
    font-size: 15px;
    color: var(--muted-color);
}

.live-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 320px;
}

.live-search-item + .live-search-item {
    margin-top: 8px;
}

.live-search-link {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    color: inherit;
    transition: background 0.2s ease;
}

.live-search-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark-theme .live-search-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.live-search-index {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 28px;
}

.live-search-body {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.live-search-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--muted-color);
    margin: 6px 0;
}

.live-search-excerpt {
    font-size: 14px;
    color: var(--muted-color);
    margin: 0;
    line-height: 1.6;
}

.live-search-empty {
    font-size: 14px;
    text-align: center;
    color: var(--muted-color);
    padding: 12px 0;
}

.search-input {
    width: 100%;
    padding: 20px 130px 20px 30px;
    background-color: var(--front-bg-color);
    box-sizing: border-box;
    border-radius: 2em;
    box-shadow: var(--primary-shadow);
    color: var(--text-color);
    border: none;
}

.search-input:focus {
    outline: none
}

.search-list {
    padding: 30px
}

.search-list h1 {
    font-size: 28px;
    margin-bottom: 1em;
    font-weight: bold
}

.search-list-item {
    border-bottom: 1px dashed var(--line-color);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
}

.search-list-item a {
    flex: 1;
}

.search-list-item a.sort {
    filter: var(--img-filter);
}

.search-list-item .info {
    width: 170px;
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
}

.search-list-item .info a {
    padding-left: 15px;
    text-align: center;
    margin-right: 10px;
    height: fit-content;
}

.search-list-item .key {
    color: var(--primary-color);
    margin: 0 3px
}

.header {
    background: var(--front-dark-bg-hover-color) no-repeat center;
    background-size: cover;
    color: var(--header-color);
    box-sizing: border-box;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 15px;
}

.header .container {
    display: flex;
}

.header .blur-bg {
    padding: 60px;
    backdrop-filter: blur(30px);
}

.header .username {
    font-size: 1.5em;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--header-color);
}

.header .count {
    margin-top: 5px;
}

.header .num {
    font-weight: bold;
}

.header .round-avatar {
    margin: 0 auto;
}

.round-avatar {
    width: 76px;
    height: 76px;
    position: relative;
    background-color: var(--front-bg-color);
    border-radius: 50%;
    padding: 8px;
    box-sizing: border-box;
    line-height: 60px;
    font-size: 38px;
    display: block;
}

.round-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: all 3s;
    animation: round 5s infinite linear;
}


.slider {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.slider .swiper-container {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.slider .swiper-slide {
    box-sizing: border-box;
    background-color: var(--front-bg-color);
    filter: var(--swiper-filter);
}

.slider .swiper-slide a {
    position: relative;
    display: block;
    height: 100%;
    background-size: cover;
}

.slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .swiper-pagination {
    text-align: left;
    box-sizing: border-box;
    padding-right: 20px;
    padding-left: 20px;
    top: auto;
    bottom: 13px !important;
}

.slider .swiper-pagination-bullet {
    -webkit-transition: width .3s;
    transition: width .3s;
    background: #fff;
}

.slider .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 6px
}

.slider .slider-title {
    background: linear-gradient(rgba(6, 6, 8, 0), rgba(6, 6, 8, 0.6));
    padding: 25px 25px 35px;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
}

/* 首页 */
.home {
    overflow: hidden;
    padding-top: var(--gap);
}

.home .section {
    margin-bottom: var(--gap);
}

.home .slider {
    margin-bottom: 0 !important;
}

.home .home-slider {
    display: flex;
}

.home-slider .widget {
    margin-bottom: 0;
    height: 100%;
}

.home .user-list img {
    width: 54px;
    height: 54px;
}

.home .user-list li {
    width: 33.33%;
    padding: 14px 0;
}

.home-cms-right {
    width: calc((100% + var(--gap)) / 4 - var(--gap));
}

.home-cms-left {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: var(--gap);
}

.home-cms-left .section,
.home-cms-right .section {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

.home .home-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 12px);
}

.home .home-links .link-item {
    padding: 10px;
    display: flex;
    flex: 1 1 180px;
    box-sizing: border-box;
}

.home .home-links .link-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.home .home-links .link-item span {
    font-weight: 600;
}

.home .home-links img {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    margin-right: 0;
}

/*首页的经典图文*/
.home .log-list-default {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.home .log-list-default .log-list-default-item {
    width: calc((100% - var(--gap)) / 2);
    margin-bottom: 0;
}

.home .log-list-default .log-list-default-item .cover-image {
    width: 120px;
    height: 85px;
}

.home .log-list-default .log-list-default-item .title h3 {
    font-size: 1.1em;
}

.home .log-list-default .log-list-default-item .description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    line-height: 3;
    color: var(--title-color);
}

/*友情链接样式的卡片*/
.links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.links-item {
    width: calc((100% - 3 * var(--gap)) / 4);
    box-sizing: border-box;
}

.links-item a {
    border-radius: 8px;
    background: var(--front-bg-color);
    color: var(--title-color);
    height: 100%;
    padding: 15px;
    display: flex;
    box-sizing: border-box;
    position: relative;
    min-height: 84px;
    box-shadow: var(--light-shadow);
    transition: all .3s;
}

.links-item a:hover {
    transform: translateY(-5px);
}

.links-item .link-icon {
    position: relative;
    padding-left: 10px;
}

.links-item .link-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--light-shadow);
    position: relative;
    z-index: 2;
}

.links-item .link-icon .icon-shadow {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 1;
    transform: scale(1.1);
    opacity: 0;
    filter: blur(10px);
    transition: opacity .3s;
}

.links-item:hover .link-icon .icon-shadow {
    opacity: .6;
}

.home-download {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-sort-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.home-sort-list li {
    box-sizing: border-box;
    width: 48%;
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.home-sort-list li a {
    background: #fff;
    display: flex;
    padding: 15px;
    justify-content: space-between;
}

.mb-gap {
    margin-bottom: var(--gap);
}

/* 卡片类型列表基础样式,包括卡片列表、视频列表、书籍样式列表 */
.log-list-card {
    display: flex;
    flex-flow: row wrap;
    position: relative;
    gap: var(--gap);
}

.log-list-card .log-list-item {
    width: calc((100% - 3 * var(--gap)) / 4);
    box-sizing: border-box;
}

.log-list-card a:hover {
    color: inherit;
}

.log-list-card .link {
    display: block;
    height: 100%;
}

.log-list-card .card {
    height: 100%;
}

.log-list-card img {
    width: 100%;
    min-height: 100%;
}

.log-list-card .info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.log-list-card .info h3 {
    color: var(--title-color)
}

.log-list-card .info h3,
.log-list-card .info .excerpt {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.log-list-card .info .excerpt {
    margin-top: 5px;
    margin-bottom: 5px;
    color: var(--text-color);
    flex: 1;
}

.log-list-card .info .tags span {
    margin-bottom: 0;
}

/* 图书样式列表 */
.log-list-book {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.log-list-book .log-list-book-item {
    width: calc((100% - 5 * var(--gap)) / 6);
}

.log-list-book .log-list-book-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: transform .3s;
    transform-origin: top;
}

.log-list-book .log-list-book-item a {
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: var(--primary-shadow);
    box-sizing: border-box;
    border-radius: 10px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    filter: blur(0);
}

.log-list-book .log-list-book-item a:after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
    transition: height .3s;
}

.log-list-book .log-list-book-item a:before {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3));
    transition: height .3s, transform .3s linear, opacity .3s;
    transform-origin: right bottom;
    opacity: 0;
    z-index: 1;
}

.log-list-book .log-list-book-item .info {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 12px;
    padding: 12px;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
}

.log-list-book .log-list-book-item .info .desc {
    color: #eee;
    transition: all 0.3s linear;
    opacity: 0;
    margin-bottom: 10px;
}

.log-list-book .log-list-book-item:hover .info .desc {
    opacity: 1;
}

.log-list-book .log-list-book-item:hover a:before {
    transform: rotate(25deg) scale(2) translateX(10px);
    opacity: 0.9;
}

.log-list-book .log-list-book-item:hover img {
    transform: scale(1.1);
}

.empty {
    text-align: center;
    padding: 30px;
}

.empty img {
    max-width: 100%;
    height: 50px;
}

.placeholder-area {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: var(--front-bg-color);
    border-radius: var(--border-radius);
}

.log-list-community .log-list-community-item {
    padding: 12px 0;
    border-radius: var(--border-radius);
    border-bottom: 1px dashed var(--line-color);
}

.log-list-community .log-list-community-item h3 {
    margin-bottom: 10px;
    color: var(--title-color);
}

.log-list-community .log-list-community-item .log-info li {
    display: inline-block;
    margin-right: 15px;
}

.community-sort-list {
    margin-bottom: 15px;
}

.community-sort-list li {
    display: inline-block;
    line-height: 2.4;
    white-space: nowrap;
    margin-right: 10px;
    margin-bottom: 10px;
}

.community-sort-list li a {
    padding: 8px 15px;
    border-radius: 6px;
    box-sizing: border-box;
    background: var(--front-dark-bg-color);
}

.community-sort-list li.active a {
    background: var(--primary-color);
    color: #fff;
}

.community-log-info {
    display: flex;
    justify-content: space-between;
}

.community-log-info .li {
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

.community-log-info img {
    width: 1.5em;
    height: 1.5em;
    vertical-align: bottom;
    margin-right: 5px;
}

.entry-btn {
    padding: 15px;
    line-height: 1.2;
}

.entry-btn a {
    display: block;
    text-align: center;
    padding: 10px 15px 8px 0;
    background: var(--front-dark-bg-color);
    border-radius: 2em;
    margin: 5px;
}

.entry-btn a .iconfont {
    font-size: 22px;
    vertical-align: middle;
    margin-right: 5px;
}

.entry-btn a:first-of-type {
    border-right: 1px solid var(--front-dark-bg-hover-color);
}

.entry-btn a:first-of-type,
.entry-btn a:hover {
    background: var(--primary-color);
    color: #fff;
}

.emoji {
    line-height: 1;
}

.emoji span {
    display: inline-block;
    padding: 7px;
    cursor: pointer;
    border-radius: var(--border-radius);
    background: var(--front-dark-bg-color);
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--front-dark-bg-hover-color);
}

.emoji span:hover {
    background: var(--front-dark-bg-hover-color);
}

.switch {
    display: flex;
    padding: 5px !important;
    margin: 0 !important;
    font-weight: normal;
    font-size: 12px;
    line-height: 1;
}

.switch li {
    padding: 5px 8px;
    cursor: pointer;
    list-style-type: none !important;
    line-height: 1;
    border-radius: 2em;
}

.switch li.active {
    background: var(--primary-color);
    color: #fff;
}

.switch-item {
    display: none;
}

.switch-item.active {
    display: block;
}

/*Grid System*/
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
}

.col-2 {
    width: 50%;
}

.col-4 {
    width: 25%;
}

.col-5 {
    width: 20%;
}

.col-6 {
    width: 16.66666667%;
}

.pl-20 {
    padding-left: 20px;
}

/*九宫格图片列表*/
.images {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    width: 100%;
    max-width: 390px;
}

.images .img-item {
    width: 33.333%;
    aspect-ratio: 1;
    cursor: pointer;
    padding: 5px;
    box-sizing: border-box;
    position: relative;
}

.profile-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 16px auto 0;
}

.profile-contact-list .profile-contact-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--front-dark-bg-hover-color);
    background: var(--front-dark-bg-color);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all .2s ease;
}

.profile-contact-list .profile-contact-btn i {
    font-size: 20px;
}

.profile-contact-list .profile-contact-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.profile-contact-list .profile-contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.profile-contact-list .profile-contact-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.profile-contact-desc {
    text-align: center;
    color: var(--light-text-color);
    margin: 8px 0 0;
}

.profile-contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.profile-contact-modal.active {
    display: flex;
}

.profile-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.profile-contact-modal__content {
    position: relative;
    background: var(--front-bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--primary-shadow);
    padding: 24px;
    max-width: min(90vw, 420px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-contact-modal__img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.profile-contact-modal__title {
    font-size: 14px;
    color: var(--light-text-color);
    text-align: center;
    word-break: break-word;
}

.profile-contact-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.profile-contact-modal__close:hover {
    color: var(--primary-color);
}

.profile-contact-list.profile-contact-list--compact {
    gap: 8px;
    margin-top: 8px;
}

.profile-contact-list.profile-contact-list--compact .profile-contact-btn {
    width: 36px;
    height: 36px;
}

.profile-contact-list.profile-contact-list--compact .profile-contact-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
}

.images .img-item:hover img {
    filter: brightness(0.7);
}

.images img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.images.row-1 .img-item {
    width: 180px;
    max-height: 270px;
}

.front-dark-bg-color {
    background-color: var(--front-dark-bg-color);
    box-shadow: none;
}

.front-dark-bg-color-hover:hover,
.front-dark-bg-color:hover {
    transition: all .3s;
    background-color: var(--front-dark-bg-hover-color);
}

.no-shadow {
    box-shadow: none;
}

.linner-bg-hover:hover,
.linner-bg {
    position: relative;
    overflow: hidden;

    * {
        position: relative;
        z-index: 1;
    }

    &:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("../images/bg.webp") no-repeat;
        background-size: cover;
        z-index: 0;
        opacity: .5;
        filter: blur(40px);
    }
}

.widget-toc {
    position: relative;
}

.widget-toc .toc-scroll {
    max-height: min(65vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px 10px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .15) transparent;
}

.widget-toc .toc-scroll::-webkit-scrollbar {
    width: 6px;
}

.widget-toc .toc-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .15);
    border-radius: 3px;
}

.widget-toc .toc-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.widget-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-toc .toc-list {
    margin-top: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}

.widget-toc .toc-list > .toc-item {
    margin: 2px 0;
}

.widget-toc .toc-sublist {
    margin: 2px 0 2px 10px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}

.widget-toc .toc-item {
    position: relative;
}

.widget-toc .toc-item a {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    line-height: 1.5;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.widget-toc .toc-item a:hover {
    color: var(--primary-color);
}

.widget-toc .toc-number {
    display: none;
}

.widget-toc .toc-item.level-3 > a .toc-number {
    min-width: 3.1em;
}

.widget-toc .toc-text {
    flex: 1 1 auto;
    word-break: break-word;
}

.widget-toc .toc-item.active > a {
    color: var(--primary-color);
    font-weight: 600;
    background-color: var(--front-dark-bg-color);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.widget-toc .toc-item.active > a .toc-number,
.widget-toc .toc-item.ancestor-active > a .toc-number {
    color: var(--primary-color);
    opacity: 1;
}

.widget-toc .toc-item.ancestor-active > a {
    color: var(--primary-color);
    background-color: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.site-tools .toc-shortcut {
    width: 48px;
    height: 48px;
    margin: 0 auto 5px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: background-color .3s;
}

.site-tools .toc-shortcut i {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="%232c2c2c"><path d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64z m0 84c-201.032 0-364 162.968-364 364s162.968 364 364 364 364-162.968 364-364-162.968-364-364-364z m223 488v96H289v-96h446z m0-172v96H289v-96h446z m0-172v96H289v-96h446z"/></svg>') no-repeat center/contain;
}

.site-tools .toc-shortcut:hover {
    background-color: #fff;
}

.site-tools .toc-shortcut:hover .toc-icon {
    color: #2c2c2c;
}

.site-tools .toc-shortcut.active {
    display: flex;
    background-color: var(--primary-color);
}

.site-tools .toc-shortcut.active .toc-icon {
    color: #fff;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" fill="%23ffffff"><path d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64z m0 84c-201.032 0-364 162.968-364 364s162.968 364 364 364 364-162.968 364-364-162.968-364-364-364z m223 488v96H289v-96h446z m0-172v96H289v-96h446z m0-172v96H289v-96h446z"/></svg>') no-repeat center/contain;
}

.icon-toc:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 8px;
    vertical-align: middle;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1639 1024" fill="currentColor"><path d="M0 102.4C0 45.846047 45.451756 0 102.4 0 158.953953 0 204.8 45.451756 204.8 102.4 204.8 158.953953 159.348244 204.8 102.4 204.8 45.846047 204.8 0 159.348244 0 102.4ZM409.6 102.4C409.6 45.846047 456.269926 0 512.253266 0L1535.746734 0C1592.440566 0 1638.4 45.451756 1638.4 102.4 1638.4 158.953953 1591.730074 204.8 1535.746734 204.8L512.253266 204.8C455.559434 204.8 409.6 159.348244 409.6 102.4ZM0 512C0 455.446047 45.451756 409.6 102.4 409.6 158.953953 409.6 204.8 455.051756 204.8 512 204.8 568.553953 159.348244 614.4 102.4 614.4 45.846047 614.4 0 568.948244 0 512ZM409.6 512C409.6 455.446047 456.269926 409.6 512.253266 409.6L1535.746734 409.6C1592.440566 409.6 1638.4 455.051756 1638.4 512 1638.4 568.553953 1591.730074 614.4 1535.746734 614.4L512.253266 614.4C455.559434 614.4 409.6 568.948244 409.6 512ZM0 921.6C0 865.046047 45.451756 819.2 102.4 819.2 158.953953 819.2 204.8 864.651756 204.8 921.6 204.8 978.153953 159.348244 1024 102.4 1024 45.846047 1024 0 978.548244 0 921.6ZM409.6 921.6C409.6 865.046047 456.269926 819.2 512.253266 819.2L1535.746734 819.2C1592.440566 819.2 1638.4 864.651756 1638.4 921.6 1638.4 978.153953 1591.730074 1024 1535.746734 1024L512.253266 1024C455.559434 1024 409.6 978.548244 409.6 921.6Z"/></svg>') no-repeat center/contain;
}

.mobile-toc-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.mobile-toc-overlay.active {
    display: flex;
}

.mobile-toc-overlay__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .45);
}

.mobile-toc-overlay__panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 78vh;
    background: var(--card-bg, var(--front-bg-color));
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.08));
    border-radius: 20px 20px 0 0;
    box-shadow: var(--light-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-backdrop-filter: blur(var(--nav-blur-strength, 24px));
    backdrop-filter: blur(var(--nav-blur-strength, 24px));
    animation: mobileTocSlideUp .25s ease;
}

.mobile-toc-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-color);
    background: var(--card-bg, var(--front-bg-color));
    background: color-mix(in srgb, var(--card-bg, var(--front-bg-color)) 88%, transparent);
}

.mobile-toc-overlay__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
    letter-spacing: 0.02em;
}

.mobile-toc-overlay__title .iconfont {
    font-size: 18px;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

.mobile-toc-overlay__title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
}

.mobile-toc-overlay__close {
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    color: var(--light-text-color);
}

.mobile-toc-overlay__close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-toc-overlay__body {
    padding: 0 2px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-toc-overlay__body .toc-list {
    padding-left: 12px;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}

.mobile-toc-overlay__body .toc-sublist {
    margin: 4px 0 4px 10px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, .08));
}

.mobile-toc-overlay__body .toc-item a {
    padding: 6px 10px;
    border-radius: 8px;
}

.mobile-toc-overlay__empty {
    padding: 24px;
    text-align: center;
    color: var(--light-text-color);
}

.mobile-toc-overlay__body .widget {
    margin: 0;
}

.widget-toc--mobile .toc-scroll {
    max-height: none;
    padding: 12px 14px 16px;
}

.widget-toc--mobile .toc-scroll::-webkit-scrollbar {
    width: 6px;
}

.widget-toc--mobile .toc-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .12);
    border-radius: 3px;
}

.widget-toc--mobile .toc-scroll::-webkit-scrollbar-track {
    background: transparent;
}

body.mobile-toc-open {
    overflow: hidden;
}

@media (min-width: 961px) {
    .mobile-toc-overlay {
        display: none !important;
    }
}

@keyframes mobileTocSlideUp {
    from {
        transform: translateY(25px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========================== */
/* Gallery page template */
/* =========================== */
.page-gallery {
    margin-bottom: var(--gap);
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: calc(var(--gap) * 1.5);
    margin-bottom: calc(var(--gap) * .9);
    justify-content: flex-start;
    align-items: center;
}

.gallery-tab-btn {
    position: relative;
    border: none;
    font-size: .24rem;
    font-weight: 600;
    color: var(--title-color);
    padding: 8px 20px;
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 999px;
    background: rgba(15, 20, 40, .06);
    box-shadow: inset 0 0 0 1px rgba(15, 20, 40, .08);
}

.gallery-tab-btn:hover {
    background: rgba(15, 20, 40, .1);
}

.gallery-tab-btn.is-active,
.gallery-tab-btn:focus {
    color: #fff;
    background: var(--primary-color, #2c6efa);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
    outline: none;
}


.page-gallery .gallery-intro {
    margin-bottom: var(--gap);
}

.page-gallery .gallery-intro.card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.page-gallery .gallery-intro .card-body {
    background: transparent;
    padding: 0;
    color: var(--light-text-color);
    line-height: 1.8;
}

.page-gallery .gallery-empty {
    color: var(--light-text-color);
}

.gallery-grid .gallery-empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    text-align: center;
    background: var(--front-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--light-shadow);
    font-size: .92rem;
}

.gallery-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.gallery-card {
    position: relative;
    cursor: zoom-in;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--front-bg-color);
    box-shadow: var(--light-shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-card:focus {
    outline: none;
}

.gallery-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.gallery-card:focus-visible .gallery-card__hover {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .1), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 20, 30, .18);
}

.gallery-card:hover::after {
    opacity: 1;
}

.gallery-card__cover {
    position: relative;
    background: var(--background-color-light, #f4f5f7);
}

.gallery-card__cover::before {
    content: "";
    display: block;
    padding-top: 68%;
}

.gallery-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-card:hover .gallery-card__cover img {
    transform: scale(1.08);
}

.gallery-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    text-align: left;
    padding: 0;
    background: linear-gradient(180deg, rgba(10, 15, 25, 0) 40%, rgba(10, 15, 25, .78) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .35s ease, transform .35s ease;
}

.gallery-card:hover .gallery-card__hover {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card__hover-body {
    width: 100%;
    padding: 16px 18px 18px;
    box-sizing: border-box;
}

.gallery-card__hover-title {
    display: block;
    font-size: .25rem;
    font-weight: 600;
    letter-spacing: .005em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.gallery-card__hover-desc {
    display: block;
    margin-top: 6px;
    font-size: .23rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .72);
    white-space: pre-line;
}


.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10000;
}

.gallery-lightbox.is-active {
    display: flex;
}

.gallery-lightbox__inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    transition: background .25s ease;
    border: none;
    z-index: 10;
    pointer-events: auto;
}

.gallery-lightbox__close:hover {
    background: rgba(0, 0, 0, .65);
}

.gallery-lightbox__media {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-lightbox__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: background .2s ease;
    z-index: 9;
    pointer-events: auto;
}

.gallery-lightbox__nav:hover {
    background: rgba(0, 0, 0, .6);
}

.gallery-lightbox__nav--prev {
    left: 24px;
}

.gallery-lightbox__nav--next {
    right: 24px;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.article-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: stretch;
    justify-content: center;
    z-index: 11000;
}

.article-lightbox.active {
    display: flex;
}

.article-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.article-lightbox__inner {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 80px;
    box-sizing: border-box;
    pointer-events: none;
}

.article-lightbox__media {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

.article-lightbox__media:active {
    cursor: grabbing;
}

.article-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .08s ease-out;
    user-select: none;
    will-change: transform;
}

.article-lightbox__caption {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .45);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 80%;
    text-align: center;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.article-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background .2s ease, transform .12s ease;
    pointer-events: auto;
}

.article-lightbox__close:hover {
    background: rgba(0, 0, 0, .7);
    transform: scale(1.03);
}

.article-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: background .2s ease, transform .12s ease;
    pointer-events: auto;
}

.article-lightbox__nav:hover {
    background: rgba(0, 0, 0, .68);
    transform: translateY(-50%) scale(1.04);
}

.article-lightbox__nav--prev {
    left: 22px;
}

.article-lightbox__nav--next {
    right: 22px;
}

body.article-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-card {
        border-radius: calc(var(--border-radius) * .85);
    }

    .gallery-card__hover {
        padding: 0;
    }

    .gallery-card__hover-title {
        font-size: .82rem;
    }

    .gallery-card__hover-desc {
        margin-top: 6px;
        font-size: .2rem;
        line-height: 1.4;
    }

    .gallery-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .gallery-lightbox__nav--prev {
        left: 10px;
    }

    .gallery-lightbox__nav--next {
        right: 10px;
    }

    .article-lightbox__inner {
        padding: 20px 50px;
    }

    .article-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .article-lightbox__nav--prev {
        left: 12px;
    }

    .article-lightbox__nav--next {
        right: 12px;
    }

    .article-lightbox__caption {
        left: 16px;
        right: 16px;
        max-width: none;
        transform: none;
    }
}
