@font-face {
    font-family: "阿里妈妈方圆体 VF Regular";
    src: url("../font/AlimamaFangYuanTiVF-Thin.woff2") format("woff2"),
         url("../font/AlimamaFangYuanTiVF-Thin.woff") format("woff");
    font-display: swap;
}

:root, [data-bs-theme=dark] {
    --bs-font-sans-serif: "Microsoft JhengHei", -apple-system, SF UI Text, Arial, sans-serif;
    --bg-auto-rgb: 10, 12, 25;
    --link-color-rgba: 222, 226, 230, 0.8;
    --link-color-second-rgba: 222, 226, 230, .65;
    --primary-color-rgba: 13, 110, 253;
    --primary-bg-rgba: 13,110,253, .2;
}

:root, [data-bs-theme=light] {
    --bg-auto-rgb: 242, 241, 246;
    --bs-font-sans-serif: "Microsoft JhengHei", -apple-system, SF UI Text, Arial, sans-serif;
    --link-color-rgba: 0, 0, 0, 1;
    --link-color-second-rgba: 0, 0, 0, .65;
    --primary-color-rgba: 13, 110, 253;
    --primary-bg-rgba: 13,110,253, .2;
}

.mt-minus-4{
margin-top: -30px;
}
article,.articles1 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

article.visible,.articles1.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
    scroll-padding-top: 120px;
overflow-x: hidden; 
}

*, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--bs-font-sans-serif) !important;
  }

a {
    text-decoration: none;
    color: rgba(var(--link-color-rgba));
    transition: .15s all ease-in-out;
}

a:hover, a:focus, a:focus-visible {
    text-decoration: none;
    color: rgba(var(--primary-color-rgba));
}

.bg-auto {
    --bg-auto-opacity: 1;
    background-color: rgba(var(--bg-auto-rgb), var(--bg-auto-opacity)) !important;
}

#left-container {
    z-index: 1030;
}

/* 左侧栏固定定位后，中间内容区域需要添加左侧边距 */

/* 双栏模式：≥992px (container: 960px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .row > .col-lg-3#left-container {
        flex: 0 0 240px;
        width: 240px;
        top: 0;
    }
    .has-admin-bar .row > .col-lg-3#left-container {
        top: 32px;
    }
    #middle.col-lg-9 {
        margin-left: 240px;
        width: calc(100% - 240px);
        flex: 0 0 calc(100% - 240px);
    }
    /* 双栏模式下版权信息与内容区对齐 */
    body:not(.layout-one) #middle + .border-top {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

/* 双栏模式：≥1200px (container: 1140px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .row > .col-lg-3#left-container {
        flex: 0 0 285px;
        width: 285px;
        top: 0;
    }
    .has-admin-bar .row > .col-lg-3#left-container {
        top: 32px;
    }
    #middle.col-lg-9 {
        margin-left: 285px;
        width: calc(100% - 285px);
        flex: 0 0 calc(100% - 285px);
    }
    /* 双栏模式下版权信息与内容区对齐 */
    body:not(.layout-one) #middle + .border-top {
        margin-left: 285px;
        width: calc(100% - 285px);
    }
}

/* 双栏模式：≥1400px (container: 1200px) */
@media (min-width: 1400px) {
    .row > .col-lg-3#left-container {
        flex: 0 0 300px;
        width: 300px;
        top: 0;
    }
    .has-admin-bar .row > .col-lg-3#left-container {
        top: 32px;
    }
    #middle.col-lg-9 {
        margin-left: 300px;
        width: calc(100% - 300px);
        flex: 0 0 calc(100% - 300px);
    }
    /* 双栏模式下版权信息与内容区对齐 */
    body:not(.layout-one) #middle + .border-top {
        margin-left: 300px;
        width: calc(100% - 300px);
    }
}

/* 三栏模式：左侧固定80px + 中间8列 + 右侧3列 */
@media (min-width: 992px) {
    /* 三栏模式下左侧容器默认定位到顶部 */
    body:not(.layout-one) #left-container.col-lg-1 {
        top: 0 !important;
    }
    
    #middle.col-lg-8 {
        margin-left: 80px;
        width: calc(100% - 80px - 25%);
        flex: 0 0 calc(100% - 80px - 25%);
    }
    
    /* 三栏模式下右侧边栏 */
    #right.col-lg-3 {
        width: 25%;
        flex: 0 0 25%;
        margin-left: 0;
    }
    
    /* 有管理员栏时，左侧栏向下偏移 */
    body.has-admin-bar:not(.layout-one) #left-container.col-lg-1 {
        top: 32px !important;
    }
}

/* 全站黑白模式 */
html.grayscale-mode,
html.grayscale-mode * {
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    -moz-filter: grayscale(100%) !important;
    -ms-filter: grayscale(100%) !important;
    -o-filter: grayscale(100%) !important;
}

#left {
    z-index: 1;
}

.bg-tertiary-bg {
    background-color: var(--bs-tertiary-bg) !important;
}

#left-menu-scroll::-webkit-scrollbar {
    width: 4px;
}

#left-menu-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#left-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-border-color-rgba));
    border-radius: 2px;
}

#left-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--bs-text-muted-rgba));
}

.ti {
    font-style: normal;
    line-height: 1;
}

#left .nav-link i {
    font-size: 24px;
    padding-top: 0.1rem !important;
    padding-bottom: 0.1rem !important;
    padding-right: 6rem !important;
    padding-left: 1rem !important;
    border-radius: 0;
    transition: all .15s ease-in-out;
    font-style: normal;
    line-height: 1;
}
#left .nav-link i span { font-size:16px;padding-top: 0.46rem !important;}

/* 三栏布局下左侧菜单最窄模式 */
.row > .col-lg-1#left-container {
    flex: 0 0 80px !important;
    width: 80px !important;
}

/* 有管理员栏时，左侧栏向下偏移 */
@media (min-width: 992px) {
    .has-admin-bar #left-container #left {
        top: 32px !important;
    }
}
.row > .col-lg-1#left-container #left ul.nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.row > .col-lg-1#left-container #left .nav-item {
    display: flex;
    justify-content: center;
}
.row > .col-lg-1#left-container #left .nav-link {
    width: 60px;
    height: 50px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.row > .col-lg-1#left-container #left .nav-link i {
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
.row > .col-lg-1#left-container #left .nav-link i svg {
    font-size: 20px;
    flex-shrink: 0;
}
.row > .col-lg-1#left-container #left .nav-link i span {
    font-size: 12px !important;
    letter-spacing: normal !important;
    position: static !important;
    padding-top: 0 !important;
    color: inherit;
    line-height: 1.2;
}
.row > .col-lg-1#left-container #left.three-column-hide-menu-text .nav-link i span {
    display: none !important;
}
.row > .col-lg-1#left-container > #left {
    padding-top: 0 !important;
}
.row > .col-lg-1#left-container .weblogo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    padding-top: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.row > .col-lg-1#left-container .weblogo a.nav-link {
    font-size: 0;
    width: 60px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.row > .col-lg-1#left-container .weblogo a.nav-link svg {
    width: 32px;
    height: 32px;
    margin: 0 auto;
}
#left-container.col-lg-3 .weblogo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    width: 100%;
    border-bottom: 1px solid var(--bs-light-border-subtle) !important;
}
#left-container.col-lg-3 .weblogo a.nav-link {
    font-size: 22px;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.row > .col-lg-1#left-container .leftAu {
    padding: 0.5rem !important;
}
.row > .col-lg-1#left-container .leftAu .col-12 {
    text-align: center;
}

#left  a:hover {
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba));
}
.leftIHover {
        background: linear-gradient(to right, rgb(13 110 253), #4338ca);
    color: #fff;
}
.leftIHover span,.leftIHover i {
color: #fff;
}

#left .nav-item:hover .nav-item-title {
    display: block;
    color: rgba(var(--primary-color-rgba));
    transition: all .15s ease-in-out;
}

#middle .navbar-background {
    backdrop-filter: blur(6px);
}

#middle #form-search-icon {
    color: rgba(var(--link-color-second-rgba));
}

#middle #form-search-icon:hover {
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba));
}

#middle #search-input, #middle #search-input-mobile {
    width: 0;
    transition: all .25s ease-in-out;
    background: rgba(0, 0, 0, 0);
}

#middle #search-input:focus, #middle #search-input:focus-visible {
    outline: none;
    width: 150px;
}

#middle #navbarNavLeft .nav-link {
}

#middle .navbar-nav .active, #middle #navbarNavLeft .nav-link:hover {
    color: rgba(var(--primary-color-rgba));
    box-shadow: 0 -1px 0 0 rgba(var(--primary-bg-rgba)) inset;
    transition: all .25s ease-in-out;
}
.topactive{
background: rgba(var(--bs-primary-rgb));
    color: #fff;
}

#middle .thumbnail {
    width: 200px;
    height: 130px;
    flex: 0 0 auto;
    background-origin: border-box;
    background-position: 50%;
    background-size: cover;
    background-color: #f8f8f8;
    position: relative;
    overflow: hidden;
}
#middle .thumbnail:not(.loaded) {
    background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    background-position: -200% 0;
    animation: lazyShimmer 1.5s infinite;
}
#middle .thumbnail:not(.loaded)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: lazySpin 1s linear infinite;
    z-index: 1;
}
#middle .thumbnail.loaded {
    background-image: none;
    animation: none;
}
#middle .thumbnail img.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
#middle .thumbnail img.thumbnail-img.loaded {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes lazyShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes lazySpin {
    to { transform: rotate(360deg); }
}

#middle #index-content a {
    color: rgba(var(--link-color-rgba));
}

#middle #index-content a:hover {
    color: rgba(var(--primary-color-rgba));
}

#middle .top-up-flag, #middle .read-more {
    color: rgba(var(--primary-color-rgba));
}

#middle .moment-body {
    background: rgba(var(--primary-bg-rgba));
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 12px 15px;
    margin-bottom: 10px;
    position: relative;
}

#middle .moment-body::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(var(--bs-primary-rgb));
}

#content img {
    display: block;
    max-width: 100%;
    height: auto;
}

#pagination a, .sub-category a {
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    color: rgba(var(--link-color-second-rgba)) !important;
    text-decoration: none;
    background-color: rgb(var(--bg-auto-rgb));
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    border-radius: 0;
}

#pagination .current a, #pagination a:hover, .sub-category a:hover {
    z-index: 3;
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba)) !important;
}

#post-article a {
    color: rgba(var(--link-color-rgba));
}

#post-article a:hover {
    color: rgba(var(--primary-color-rgba));
}

#post-content a {
    color: rgba(var(--primary-color-rgba));
    box-shadow: 0 -6px 0 0 rgba(var(--primary-bg-rgba)) inset;
    transition: box-shadow 0.2s ease-in;
}

#post-content a:hover {
    color: rgba(var(--primary-color-rgba));
    box-shadow: 0 -10px 0 0 rgba(var(--primary-bg-rgba)) inset;
    transition: box-shadow 0.2s ease-in;
}

#post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 3px;
}

#post-content .tags {
    display: flex;
}

#post-content .tags a {
    color: RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;
}

#post-content blockquote, .text-border-left {
    --bs-text-opacity: 1;
    color: rgba(var(--link-color-second-rgba)) !important;
    border-left: 4px solid rgba(var(--link-color-second-rgba));
    font-weight: 400;
    letter-spacing: 0.01rem;
    padding-left: 10px;
}

#post-content blockquote p:last-child {
    margin-bottom: 0;
}

.form-control, button {
    box-shadow: none !important;
}

.form-control:focus {
    border-color: rgba(var(--primary-color-rgba)) !important;;
}

.avatar {
    border-radius: 3px;
}

#comments a {
    color: rgba(var(--link-color-rgba));
}

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

.comment-reply {
    margin-top: 4px;
}

.comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--bs-secondary-color) !important;
    border-radius: 3px;
    text-decoration: none;
    transition: all .25s ease-in-out;
}

.comment-reply a:hover {
    color: rgba(var(--primary-color-rgba)) !important;
    background-color: rgba(var(--primary-bg-rgba));
}

.comment-reply a svg {
    width: 12px;
    height: 12px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .comment-reply a {
        padding: 2px 6px;
        font-size: 11px;
    }
    .comment-reply a svg {
        width: 10px;
        height: 10px;
    }
}

.cancel-comment-reply {
    display: flex;
}

.cancel-comment-reply a {
    padding: 0.375rem 0.75rem;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.5;
    border-radius: 0.375rem;
}

#comments button, .cancel-comment-reply a {
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba)) !important;
    border: 0;
}

#comments button:hover, .cancel-comment-reply a:hover {
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba));
    border: 0;
}

#right,
#right .container-fluid,
#right .list-group-item,
#right .text-body-secondary,
#right p,
#right li,
#right a,
#right span,
#right div {
    font-size: 14px !important;
}

#right h6 {
    font-size: 14px !important;
}

#right .card-body p,
#right .row p:first-child {
    font-size: 14px !important;
    font-weight: 600;
}

#right a {
    color: rgba(var(--link-color-second-rgba));
}

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

#mobile-navbar button {
    background: rgba(var(--primary-bg-rgba));
    color: rgba(var(--primary-color-rgba));
}

#mobile-navbar .list-group-item.active {
    background: rgba(var(--primary-bg-rgba));
}

#post-content h1, #post-content h2, #post-content h3 {
    display: inline-block;
    box-shadow: 0 -10px 0 0 rgba(var(--primary-bg-rgba)) inset;
    padding: 0 3px;
    font-size: calc(1.275rem + .3vw)!important
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }
    #post-content h1, #post-content h2, #post-content h3 {
        font-size: 1.5rem!important;
    }
}
.aicon {
border-left-color: #3498db;
            background-color: var(--bs-alert-bg)
            padding: 16px;
            margin: 25px 0;
            border-radius: 6px;
            border-left: 4px solid;
}

.comment--meta {
    display: flex;
    align-items: center;
    flex: 1 1 auto
}

.author--icon {
    --fill: #0095f6;
    --height: 14px;
    --width: 14px;
    fill: var(--fill);
    height: var(--height);
    width: var(--width);
    margin-left: 0px;
margin-bottom:5px;
}
.list-group-item {
  background-color: transparent !important;
  border-color: rgba(0,0,0,0.1);
}

.list-group-item:hover,
.list-group-item:focus,
.list-group-item.active {
  background-color: transparent !important;
}
.weblogo {
 display: flex;
    justify-content: center;
    align-items: center;text-align: center;
font-size:22px;
    padding-bottom: 12px;
}

.weblogo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
margin: 0 auto;
}

.weblogo a.nav-link {
--bs-font-sans-serif: "阿里妈妈方圆体 VF Regular", -apple-system, SF UI Text, Arial, sans-serif;
  text-decoration: none;
  background-color: transparent !important;
}
.weblogo a.nav-link:hover {
--bs-font-sans-serif: "阿里妈妈方圆体 VF Regular", -apple-system, SF UI Text, Arial, sans-serif;
  opacity: 1 !important;
  transform: none !important;
}
adding-transition {
  transition: padding-left 0.5s ease-in-out !important;
}
.ps-5 {
  padding-left: 3rem !important;
}

.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}
.lazyload.loaded {
    opacity: 1;
}

.fancybox__container {
    --fancybox-bg: rgba(0,0,0,0.9);
}
.fancybox__toolbar {
    background: rgba(0,0,0,0.6);
}
.comment-location {
            font-size: 12px;
            font-weight: bold;
            background: linear-gradient(45deg, #f093fb, #f5576c, #4facfe, #00f2fe, #43e97b, #fa709a, #fee140);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradient-shift 4s ease infinite;
            margin-left: 8px;
        }

        @keyframes gradient-shift {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }
.shuoshuo-container {
           
background-color: var(--bs-body-bg);
           
border-radius: 10px;
           
box-shadow: 0 2px 10px var(--bs-secondary-bg);
           
padding: 15px;
        }

        .shuoshuo-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .shuoshuo-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #f0f0f0;
            margin-right: 12px;
            overflow: hidden;
        }

        .shuoshuo-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .shuoshuo-user-info {
            flex: 1;
        }

        .shuoshuo-nickname {
            font-weight: bold;
            font-size: 16px;
            color: var(--bs-body-color);
            margin-bottom: 2px;
        }

        .shuoshuo-meta {
            font-size: 12px;
            color: var(--bs-tertiary-color);
        }

        .shuoshuo-content {
            font-size: 15px;
            line-height: 1.5;
            color: var(--bs-body-color););
            _;
            margin-bottom: 15px;
        }

        .shuoshuo-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;
            border-top: 1px solid #f0f0f0;
        }

        .shuoshuo-stats {
            font-size: 13px;
            color: #999;
        }

        .shuoshuo-actions {
            display: flex;
        }

        .shuoshuo-action-btn {
            background: none;
            border: none;
            font-size: 13px;
            color: var(--bs-secondary-color);
            margin-left: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
white-space: nowrap;
        }

        .shuoshuo-action-btn:hover {
            color: #07c160;
        }

        .shuoshuo-action-btn::before {
            content: "";
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-right: 4px;
            background-size: contain;
            background-repeat: no-repeat;
        }

        .shuoshuo-like-btn::before {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
        }

        .shuoshuo-comment-btn::before {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>');
        }

        .shuoshuo-share-btn::before {
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23666" d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"/></svg>');
        }

        .shuoshuo-action-btn:hover::before {
            filter: brightness(0) saturate(100%) invert(40%) sepia(94%) saturate(373%) hue-rotate(100deg) brightness(97%) contrast(101%);
        }
* {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
}

.box {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article {
  padding: 0.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 300;
}

.new-mobile-navbar {
  position: fixed;
  top: auto;
  
  bottom: 0px;
  background-color: var(--bs-body-bg);
  padding: 1rem 1rem;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -3px 3px rgba(0, 0, 0, 0.02);
  display: none;
  animation: Into 1s ease;
  transition: opacity 0.3s;
  z-index: 999;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bs-body-bg);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  margin-bottom: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu.active {
  display: flex;
  gap: 1rem;
  opacity: 1;
  visibility: visible;
  animation: slideUp 0.3s ease forwards;
}

#article {
  position: relative;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.navbar-head {
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3333;
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 10%;
  background-color: var(--bs-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: rgba(13, 110, 253, 1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .new-mobile-navbar {
    display: flex;
    left: 50% !important;
    right: auto !important;
    width: 100% !important;
    max-width: 540px !important;
    position: fixed !important;
    bottom: 0 !important;
    z-index: 999;
    transform: translateX(-50%) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
  }

  body {
    padding-bottom: 80px;
  }

  #left-container {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    flex: 0 0 0 !important;
  }

  #middle {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
  }

  #middle .col-md-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #right {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    flex: 0 0 0 !important;
  }

  .row > .col-lg-1,
  .row > .col-lg-3,
  .row > .col-lg-8,
  .row > .col-lg-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
  }
}

@media (max-width: 576px) {
  .new-mobile-navbar {
   width: 100%;
  }
}

/* ===== 单栏模式样式 - 模拟移动端576px效果 ===== */
.layout-one {
    padding-bottom: 80px;
}
.layout-one .d-none.d-lg-block {
    display: none !important;
}
.layout-one .d-block.d-lg-none {
    display: block !important;
}
.layout-one .d-flex.d-lg-none {
    display: flex !important;
}
.layout-one .new-mobile-navbar {
    display: flex !important;
    width: 576px !important;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}
.layout-one .col-lg-1,
.layout-one .col-lg-3,
.layout-one .col-lg-8,
.layout-one .col-lg-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

@keyframes Into {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  0% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ===== 评论区表单美化样式 ===== */
.comment-form-wrapper {
    padding: 16px;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0;
}

/* 回复评论时表单与消息的间距 */
.comment-parent > .respond,
.comment-child > .respond {
    margin-top: 12px;
}

.comment-input-group {
    position: relative;
}

.comment-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.comment-input {
    padding-left: 36px;
    border-radius: 0;
    border-color: var(--bs-border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form-wrapper .comment-input:focus,
.comment-form-wrapper .comment-input:focus-visible {
    border-color: var(--bs-border-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(100, 100, 100, 0.15) !important;
    outline: none !important;
}

.comment-form-wrapper .comment-textarea:focus,
.comment-form-wrapper .comment-textarea:focus-visible {
    border-color: var(--bs-border-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(100, 100, 100, 0.15) !important;
    outline: none !important;
}

.comment-textarea-wrapper {
    position: relative;
}

.comment-textarea {
    border-radius: 0;
    border-color: var(--bs-border-color);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.7;
}

.comment-textarea:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.comment-submit-btn {
    border-radius: 0;
    padding: 8px 20px;
    transition: opacity 0.2s, transform 0.1s;
}

.comment-submit-btn:hover {
    opacity: 0.9;
}

.comment-submit-btn:active {
    transform: scale(0.98);
}

.comment-submit-btn .ti {
    font-size: 16px;
    vertical-align: -2px;
    margin-right: 4px;
}

[data-bs-theme="dark"] .comment-form-wrapper {
    background-color: var(--bs-body-bg);
}

/* ===== 文章目录(TOC)美化样式 ===== */
#toc {
    border-radius: 0;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
}

#toc .accordion-item {
    border-radius: 0;
    border: none;
    background-color: transparent;
}

#toc .accordion-button {
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bs-body-color);
    background-color: transparent;
    padding: 10px 16px;
}

#toc .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--bs-body-color);
    box-shadow: none;
}

#toc .accordion-button:focus {
    box-shadow: none;
    border-color: var(--bs-border-color);
}

#toc .accordion-body {
    padding: 8px 16px 16px;
}

#toc .list-group-item {
    border-radius: 0;
    border: none;
    padding: 6px 8px;
    background-color: transparent;
    transition: background-color 0.15s;
}

#toc .list-group-item a {
    border-radius: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 2px 6px;
    border-left: 2px solid transparent;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

#toc .list-group-item a:hover {
    border-left-color: var(--bs-primary);
    background-color: var(--bs-secondary-bg);
    color: var(--bs-primary) !important;
}

/* ===== nav-menu.php 用户下拉菜单样式 ===== */
.meun-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    gap: 5px;
    text-decoration: none;
}

.meun-dropdown-toggle img {
    border-radius: 10px;
}

.users-dropdown-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    width: 320px;
    padding: 12px;
    background: var(--bs-body-bg);
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    box-sizing: border-box;
    transform-origin: top right;
    transform: translateY(-10px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.users-dropdown-box:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.users-basic-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 10px;
}

.users-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.users-text-info .nicknames {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.users-text-info .site-name {
    font-size: 12px;
    color: #999;
}

.users-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

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

.stats-value {
    font-size: 18px;
    font-weight: 700;
    color: #1890ff;
}

.stats-label {
    font-size: 12px;
    color: #999;
}

.users-comments {
    font-size: 13px;
}

.comments-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--bs-secondary-color);
}

.comments-icon {
    color: #1890ff;
    margin-top: 2px;
}

.comments-content {
    line-height: 1.4;
}

.user-info-link {
    text-align: right;
}

span.meun-dropdown-toggle img {
    position: absolute;
    top: -2px;
    left: -30px;
    width: 25px;
    height: 25px;
    z-index: 1;
}

/* ===== right.php 倒计时样式 ===== */
.days {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

/* ===== comments.php 评论区样式 ===== */
.comment-content { word-break: break-all; }

/* 评论消息线框 */
.comment-message-box {
    position: relative;
    padding: 10px 14px;
    background-color: var(--bs-tertiary-bg);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
}

.comment-message-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--bs-border-color);
}

.comment-message-box::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--bs-tertiary-bg);
}

.comment-message-box .comment-content p {
    margin: 0;
    line-height: 1.6;
}

/* 子评论消息线框 */
.comment-child .comment-message-box {
    background-color: var(--bs-body-bg);
}

.comment-child .comment-message-box::after {
    border-bottom-color: var(--bs-body-bg);
}

/* 评论组之间的虚线间隔 */
.comment-group-last {
    border-bottom: 1px dashed var(--bs-border-color);
    margin-bottom: 16px;
    padding-bottom: 16px;
}

.alert-info {
    
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* ===== post-default.php 相册和文章图片样式 ===== */
.album-photos-section a:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#post-article img {
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#post-article img.lazyloading {
    -webkit-filter: blur(2rem);
    filter: blur(2rem);
    opacity: 1;
}

#post-article img.lazyloaded {
    filter: blur(0);
    -webkit-filter: blur(0);
    opacity: 1;
    display: block;
}

/* 图片懒加载容器样式 */
#post-article .lazy-image-container,
#post-content .lazy-image-container {
    position: relative;
    width: 100%;
    min-height: 120px;
    background-color: #f8f8f8;
    background-image: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    background-size: 200% 100%;
    background-position: -200% 0;
    animation: lazyShimmer 1.5s infinite;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

/* 添加加载指示器 */
#post-article .lazy-image-container::before,
#post-content .lazy-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #ddd;
    border-top-color: #666;
    border-radius: 50%;
    animation: lazySpin 1s linear infinite;
    z-index: 1;
}

@keyframes lazyShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes lazySpin {
    to { transform: rotate(360deg); }
}

/* 懒加载容器内的图片 */
#post-article .lazy-image-container img,
#post-content .lazy-image-container img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

/* 图片加载完成后 */
#post-article .lazy-image-container img.lazyloaded,
#post-content .lazy-image-container img.lazyloaded {
    opacity: 1;
}

/* 图片加载完成后容器移除动画和背景 */
#post-article .lazy-image-container:has(img.lazyloaded),
#post-content .lazy-image-container:has(img.lazyloaded) {
    animation: fadeOutPlaceholder 0.3s ease-out forwards;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}

/* 图片加载完成后移除加载指示器 */
#post-article .lazy-image-container:has(img.lazyloaded)::before,
#post-content .lazy-image-container:has(img.lazyloaded)::before {
    animation: fadeOutLoader 0.3s ease-out forwards;
}

@keyframes fadeOutPlaceholder {
    to {
        background-color: transparent;
        background-image: none;
    }
}

@keyframes fadeOutLoader {
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

p:has(img) {
    display: block;
    padding: 5px;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    background: white;
    margin: 15px auto;
    text-align: center;
}

p:has(img) img {
    margin: 0 auto 10px;
    display: block;
    max-width: 100%;
}

p:has(img)::after {
    content: attr(alt);
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    padding-top: 8px;
    margin: 0 auto;
}


@media (min-width: 992px) {
    .p-lg-4 {
        padding: 1.51rem !important;
    }
}

@media (max-width: 1024px) {
    :root, [data-bs-theme=dark], [data-bs-theme=light] {
        --bs-font-sans-serif: "阿里妈妈方圆体 VF Regular", -apple-system, SF UI Text, Arial, sans-serif;
    }
}

/* ===== 独立吸顶菜单 - 类似WordPress工具栏 ===== */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background-color: #1d2327;
    color: #c3c4c7;
    z-index: 9999;
    font-size: 13px;
}

.admin-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-bar-left {
    display: flex;
    align-items: center;
}

.admin-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c3c4c7;
    text-decoration: none;
    padding: 0 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.admin-bar-logo:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.admin-bar-nav {
    display: flex;
    gap: 4px;
}

.admin-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c3c4c7;
    text-decoration: none;
    padding: 0 10px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
}

.admin-bar-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-bar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.admin-bar-user:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-bar-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-bar-username {
    font-weight: 500;
}

.admin-bar-arrow {
    transition: transform 0.2s;
}

.admin-bar-user:hover .admin-bar-arrow {
    transform: rotate(180deg);
}

.admin-bar-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 2px;
    min-width: 160px;
    background-color: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 10000;
}

.admin-bar-user:hover .admin-bar-user-menu,
.admin-bar-user-menu:hover {
    display: block;
}

.admin-bar-user-menu a {
    display: block;
    padding: 8px 16px;
    color: #3c434a;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.2s;
}

.admin-bar-user-menu a:hover {
    background-color: #f0f0f1;
}

.admin-bar-user-menu a:last-child {
    color: #d63638;
}

.admin-bar-user-menu a:last-child:hover {
    background-color: #ffebee;
}

/* 主内容区下移，避免被工具栏遮挡 */
.has-admin-bar .container {
    margin-top: 32px;
}

.has-admin-bar #top {
    top: 32px;
}

.has-admin-bar .sticky-top {
    top: 32px !important;
}



/* Toast 提示 */
.settings-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10002;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== 主题切换动画样式 (View Transitions API) ===== */

/* 从上而下 */
@keyframes slide-up {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(100% 0 0 0); }
}

/* 从下而上 */
@keyframes slide-down {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 0 100% 0); }
}

/* 从左向右 */
@keyframes slide-left {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 0 0 100%); }
}

/* 从右向左 */
@keyframes slide-right {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 100% 0 0); }
}

/* 渐隐渐现 */
@keyframes fade {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 缩放切换 */
@keyframes zoom {
    from { 
        transform: scale(1);
        opacity: 1;
    }
    to { 
        transform: scale(0.95);
        opacity: 0;
    }
}

/* 默认动画 - 从上而下 */
::view-transition-old(root) {
    animation: slide-up 0.4s ease-in-out forwards;
    z-index: 1;
}

::view-transition-new(root) {
    animation: none;
    z-index: 0;
}

/* 自定义动画类 */
.theme-transition-direction-slide-up::view-transition-old(root) {
    animation: slide-up 0.4s ease-in-out forwards;
}

.theme-transition-direction-slide-down::view-transition-old(root) {
    animation: slide-down 0.4s ease-in-out forwards;
}

.theme-transition-direction-slide-left::view-transition-old(root) {
    animation: slide-left 0.4s ease-in-out forwards;
}

.theme-transition-direction-slide-right::view-transition-old(root) {
    animation: slide-right 0.4s ease-in-out forwards;
}

.theme-transition-direction-fade::view-transition-old(root) {
    animation: fade 0.4s ease-in-out forwards;
}

.theme-transition-direction-zoom::view-transition-old(root) {
    animation: zoom 0.4s ease-in-out forwards;
}