::-webkit-scrollbar-thumb {
    background-color: rgba(25,25,25,.8);
    border-radius: 6px;
    -webkit-transition: background .2s ease;
    transition: background .2s ease;
}
::-webkit-scrollbar {
    background-color: rgba(25,25,25,.1);
    width: 8px;
    height: 8px;
}
/* 根元素变量定义 */
:root {
    /* 主要颜色 */
    --primary-color: #4a6bff; /* 主要颜色 */
    --primary-hover: #3a5bef; /* 主要颜色悬停状态 */
    --secondary-color: #6c757d; /* 次要颜色 */
    --light-color: #f8f9fa; /* 浅色 */
    --dark-color: #343a40; /* 深色 */
    --success-color: #28a745; /* 成功颜色 */
    --danger-color: #dc3545; /* 危险颜色 */
    --ri-gutter-y: 1rem;
    --ri-gutter-x: 1.2rem;

    /* 布局相关 */
    --border-radius: 0.375rem; /* 边框圆角 */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); /* 阴影效果 */
}
/*html { visibility: hidden; }*/
/*body { opacity: 0;}*/

/* 为禁用JS的用户提供后备方案 */
noscript style { html { visibility: visible; } body { opacity: 1; } }
/* 全局重置样式 */
*, ::before, ::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    background-color: #f5f7ff; /* 背景颜色 */
    color: #333; /* 文字颜色 */
    line-height: 1.6; /* 行高 */
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 最小高度 */
    display: flex;
    flex-direction: column; /* 垂直布局 */
}

/* 响应式设计 */
@media (max-width: 1100px) {
    ::-webkit-scrollbar {
        /*height: 5px;*/
        width: 4px;
    }
}

/*@media (max-width: 480px) {*/
/*    body {*/
/*        font-size: 0.8rem;*/
/*    }*/
/*}*/

a {
    color: #393535;
    text-decoration: none;
}

a:hover {
    /*color: #000;;*/
    /*filter: brightness(.9);*/
    text-decoration: none;
}

button, select {
    text-transform: none;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, select {
    text-transform: none;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: .5rem;
    font-size: calc(1.275rem + .3vw);
    line-height: inherit;
}

legend+* {
    clear: left;
}
img, svg {
    vertical-align: middle;
    max-width: 100%;
}





/*卡片类*/
/* 卡片样式 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.card-title {
    margin-bottom: 0.75rem;
}

.card-text {
    margin-bottom: 1rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}


/*表单类*/

/* 表单样式 */
/*.form-control {*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 0.375rem 0.75rem;*/
/*    font-size: 1rem;*/
/*    line-height: 1.5;*/
/*    color: #495057;*/
/*    background-color: #fff;*/
/*    background-clip: padding-box;*/
/*    border: 1px solid #ced4da;*/
/*    border-radius: 0.25rem;*/
/*    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
/*}*/

/*.form-control:focus {*/
/*    color: #495057;*/
/*    background-color: #fff;*/
/*    border-color: #80bdff;*/
/*    outline: 0;*/
/*    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);*/
/*}*/

.form-group {
    margin-bottom: 1rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
}










/*分类文章*/


    /* 基础布局 */
/* 基础布局 */


/* 图片容器基础样式 */
.grid-item-thumbnail,
.card-item-thumbnail {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* 图片对齐方式 */
.thumb-pos-top-left img { object-position: left top; }
.thumb-pos-top-center img { object-position: center top; }
.thumb-pos-top-right img { object-position: right top; }
.thumb-pos-center-left img { object-position: left center; }
.thumb-pos-center img { object-position: center center; }
.thumb-pos-center-right img { object-position: right center; }
.thumb-pos-bottom-left img { object-position: left bottom; }
.thumb-pos-bottom-center img { object-position: center bottom; }
.thumb-pos-bottom-right img { object-position: right bottom; }

/* 图片尺寸控制 */
.grid-item-thumbnail img,
.card-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 自定义缩略图尺寸 */
.thumb-size-2x3 {
    aspect-ratio: 2 / 3;
}

.thumb-size-3x4 {
    aspect-ratio: 3 / 4;
}

.thumb-size-1x1 {
    aspect-ratio: 1 / 1;
}

.thumb-size-4x3 {
    aspect-ratio: 4 / 3;
}

.thumb-size-3x2 {
    aspect-ratio: 3 / 2;
}

.thumb-size-16x9 {
    aspect-ratio: 16 / 9;
}

.thumb-size-21x9 {
    aspect-ratio: 21 / 9;
}
/* 网格布局 */
.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-item:hover,.software-card:hover,.card-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/*.grid-item:hover img,.software-card:hover,.card-item:hover{*/
/*    transform: scale(1.05);*/
/*    transition: all .3s linear!important;*/
/*}*/
    
.grid-item-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* 卡片布局 */
.card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    position: relative;
}

.card-item:hover .card-item-content {
    display: block;
}

.card-item-content {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 12px;
    box-sizing: border-box;
}

.card-item-content .post-categories a {
    color: #fff;
}

.card-item-content .card-title,
.card-item-content .card-title a,
.card-item-content .card-excerpt,
.card-item-content .card-meta {
    color: #fff;
}

.card-item-content .card-meta {
    display: flex;
    justify-content: space-between;
}

/* 分类标签样式 */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 8px;
}

.category-badge {
    font-size: 0.7rem;
    padding: 0px 6px;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    padding-left: 10px;
    color: #a1a1a8;
}

.category-badge:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cat-1:before { background-color: #ff4757; }
.cat-2:before { background-color: #2ed573; }
.cat-3:before { background-color: #1e90ff; }

/* 标题样式 */
.grid-item-title{
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 6px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title{
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 6px;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
}
/* 摘要样式 */
.grid-item-excerpt,
.card-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息样式 */
.grid-item-meta, 
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: auto;
    gap: 10px; /* 添加间距 */
}

/* 日期样式 */
.post-date {
    /* 可以根据需要添加特定样式 */
}

/* 浏览量样式 - 强制靠右 */

/* 当只有浏览量时的样式 */
.ms-auto:only-child {
    margin-left: auto;
    width: 100%;
    text-align: right;
}


/* 占位图 */
.placeholder-image {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image img {
    width: 40%;
    height: auto;
    opacity: 0.3;
}


/* 基础行样式 */
.archive-posts {
    margin: 0 -8px;
    display: flex;
    flex-wrap: wrap;
}

.archive-posts > [class*="col-"] {
    padding: 0 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
    /*transition: all 0.3s ease;*/
}
/*分类文章模块样式结束*/





/*顶部菜单*/


.logo_saoyi {
    overflow: hidden;
    position: relative; /* 确保伪元素定位正确 */
}

.logo_sao:before {
    content: "";
    position: absolute;
    width: 220px;
    height: 6px;
    background-color: rgba(255,255,255,.5);
    transform: rotate(-45deg);
    animation: blink 1.5s ease-in infinite; /* 移除延迟 */
    left: -200px;
    top: 0;
}

/* 夜间模式 */
.dark-open .logo_sao:after {
    content: "";
    position: absolute;
    width: 150px;
    height: 10px;
    background-color: rgba(41,48,66,1);
    transform: rotate(-45deg);
    animation: blink 1.5s ease-in infinite; /* 移除延迟 */
    left: -200px;
    top: 0;
}

@keyframes blink {
    from {
        left: -200px;
        top: 0;
    }
    to {
        left: 200px;
        top: 0;
    }
}

/* 兼容性前缀可以保留，但现代浏览器已不需要 */
@-webkit-keyframes blink {
    from {left: -200px;top: 0;}
    to {left: 200px;top: 0;}
}
    /*菜单模块开始*/
        /* 主菜单容器 */
/*透明菜单*/
.bg-cd-menu .site-header{
    background-color: transparent!important;
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
    color: #fff!important;
}
.bg-cd-menu .to-nav-list a,.bg-cd-menu .user-name{
    color: #fff;
}
.bg-cd-menu .header-heg{
    height: 0;
}
.bg-cd-menu .to-menu-sj{
    background-color: #fff0;
}

@media (max-width: 798px) {
.bg-cd-menu .navbar{
    display: none;
    }
}
.navbar .to-sub-menu a{
    color: #4c4141;
}
.site-header {
    background-color: #fff; /* 背景颜色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加阴影 */
    position: fixed; /* 固定在顶部 */
    width: 100%;
    z-index: 100; /* 确保在最上层 */
    top: 0; /* 确保在页面顶部 */
    left: 0; /* 确保在页面左侧 */
}

.navbar {
    display: flex;
    align-items: center; /* 垂直居中 */
    flex: 1; /* 占据剩余空间 */
}

.logo-menu {
    display: flex;
    align-items: center; /* 垂直居中 */
}
.to-menu-sj {
    display: flex;
    align-items: center; /* 垂直居中 */
}

.actions {
    display: flex;
    align-items: center; /* 垂直居中 */
}

.burger {
    display: none; /* 默认隐藏 */
    margin-left: 10px; /* 与前面元素的间距 */
}
.header-heg{
    height: 60px;
}
.disp-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 1200px) {
.to-menu-sj {
    overflow-x: auto;
    overflow-y: hidden;
}
.to-nav-list > li{
    font-size: 14px;
}
}
  @media (max-width: 576px) {
.to-menu-sj::-webkit-scrollbar {
    display: none;
}

.to-menu-sj::after {
    content: "";
    position: absolute;
    /* top: 0; */
    right: 0;
    width: 60px;
    height: 30px;
    background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.8) 100%);
    pointer-events: none;
    z-index: 1;
    position: fixed;
}
}
/* 固定在容器右侧的阴影 */


/*顶部菜单模块结束*/


.logo-menu {
    position: relative;
}.logo-img {
    min-width: 100px;
    max-height: 50px;
    width: auto;
}
.to-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap; /* 防止换行 */
    /*transition: transform 0.3s ease;*/
    justify-content: center;
    
}

/* 一级菜单项 */
.to-nav-list > li {
    position: relative;
    margin: 0 5px;
}

/* 所有菜单链接 */
.to-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    /*transition: all 0.3s ease;*/
    position: relative;
}

/* 下拉箭头图标 */
.to-menu-arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* 子菜单样式 */
.to-sub-menu {
    position: absolute;
    pointer-events: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    text-align: center; /* 子菜单内容居中 */
}

/* 子菜单三角标 */
.to-nav-list > li > .to-sub-menu:before {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent;
    border-bottom-color: #918888;
}

/* 二级子菜单位置调整 */
.to-sub-menu.to-level-2 {
    left: 100%;
    top: 0;
    transform: none;
}

/* 三级子菜单位置调整 */
.to-sub-menu.to-level-3 {
    left: 100%;
    top: 0;
    transform: none;
}

/* 鼠标悬停显示子菜单 */
.to-nav-list > li:hover > .to-sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 子菜单项悬停显示下一级 */
.to-sub-menu li:hover > .to-sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 当前菜单项样式 */
.to-current-menu-item > a,
.to-current-menu-parent > a,
.to-current-menu-ancestor > a {
    color: #0073aa;
    font-weight: bold;
}

/* 鼠标悬停菜单项效果 */
/*.to-nav-list a:hover {*/
/*    color: #0073aa;*/
/*}*/

/* 有子菜单的项悬停时箭头旋转 */
.to-nav-list > li:hover > a > .to-menu-arrow {
    transform: rotate(180deg);
}



@media (max-width: 798px) {
    .to-nav-list > li > .to-sub-menu:before,.to-sub-menu{
        display: none;
    }
    .to-nav-list a{
        padding: 0px 6px;
        font-size: 13px;
    }
    .header-heg{
         height: 111px;
    }
    .burger {
        display: flex; /* 在小屏幕上显示 */
    }
    .to-menu-sj {
        /*display: none;*/
        display: grid;
        height: 40px;
        flex-direction: column; /* 垂直排列 */
        position: absolute;
        top: 100%; /* 位于头部下方 */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .to-menu-sj.active {
        display: flex; /* 显示菜单 */
    }
}

 /*顶部菜单结束*/