/*调整全局字体大小*/
body,
html {
    font-size: 14px;
}

/*左导航悬浮sidebar-menu-inner宽度调整为90px*/
.sidebar-popup.sidebar-menu-inner>div>ul>li.sidebar-item>ul {
    position: absolute;
    top: 0px;
    left: 10px;
    width: 90px;
    z-index: 99
}

.sidebar-popup.sidebar-menu-inner ul {
    width: 90px
}

.sidebar-popup.sidebar-menu-inner ul li {
    width: 90px
}

/*隐藏左导航scrollbar*/
.sidebar-menu.flex-fill::-webkit-scrollbar {
    display: none
}

/*搜索框搜索图标颜色*/
#search button i {
    color: #6C757D;
    font-size: 18px
}

/*顶部导航栏字体+图标颜色*/
.big-header-banner .page-header {
    color: #ffffff;
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    transition: color .3s, background-color .3s
}

.big-header-banner:not(.header-bg) .page-header .navbar-nav>li>a,
.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item) {
    color: #ffffff;
}

.big-header-banner:not(.header-bg) .page-header .navbar-nav>li>a:hover,
.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item):hover {
    color: #dc3545;
}

.big-header-banner:not(.header-bg) .header-mini-btn path {
    stroke: #ffffff;
}

.big-header-banner:not(.header-bg) .header-mini-btn label:hover path {
    stroke: #ffffff;
}

/*搜索栏字体+背景*/
.header-big #search-text {
    color: #6C757D;
}

.io-black-mode .header-big #search-text {
    color: #fff;
}

.io-black-mode .header-big {
    background: linear-gradient(to bottom, #3a3a4f, #1d1d1f);
}

.io-grey-mode .header-big {
    background: #F1F5F9;
}

/*搜索activate图标颜色*/
.header-big .search-type input:checked+label:before {
    content: '';
    border-width: 8px 8px 0px 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent;
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -8px
}

/*主页搜索搜索框(头+底部)字体颜色*/
.header-big:not(.no-bg) .s-type-list {
    color: #049066
}

.header-big:not(.no-bg) .text-muted,
.header-big:not(.no-bg) .search-type .menu-item a,
.header-big:not(.no-bg) .big-title .h1 {
    color: #ffffff !important
}

/*主页header-banner底部宽度*/
.post-top {
    padding-bottom: 50px
}

/*左导航二级导航标题左侧距离*/
.sidebar-menu-inner ul li ul li a {
    margin-left: 30px;
}

/*头部导航二级导航iconfont图标*/
.navbar-collapse ul li.menu-item-has-children:after {
    content: '\e612';
}

/*搜索部分背景样式*/
.header-big.css-color {
    background-size: unset;
    background-position: unset;
    animation: unset;
}

/*搜索热词样式调整*/
.search-hot-text {
    position: absolute;
    z-index: 100;
    width: 100%;
    border-radius: 0 0 10px 10px;
    background: #FFF;
    box-shadow: 0px 4px 5px 0px #cccccc94;
    overflow: hidden;
}

.search-hot-text ul {
    margin: 0;
    padding: 5px 0;
}

.search-hot-text ul li {
    line-height: 30px;
    font-size: 14px;
    padding: 0px 25px;
    color: #777;
    cursor: pointer;
}

.io-black-mode .search-hot-text ul li {
    color: #fff;
}

.search-hot-text ul li.current {
    background: #f1f1f1;
    color: #2196f3;
}

.search-hot-text ul li:hover {
    background: #f1f1f1;
    color: #2196f3;
    cursor: pointer;
}

.search-hot-text ul li span {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    background: #e5e5e5;
    margin-right: 10px;
    border-radius: 10px;
    color: #999;
}

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

footer.main-footer .footer-text a {
    color: #007bff;
}

footer.main-footer .footer-text a:hover {
    color: red;
}

/*About页面*/
.panel .panel-body a {
    color: #007bff;
}

.panel .panel-body a:hover {
    color: #979898;
}

/*网格背景*/
.io-grey-mode .page-container .grid-bg {
    /* background-image: linear-gradient(rgba(50, 0, 0, 0.05) 1px, transparent 0), linear-gradient(90deg, rgba(50, 0, 0, 0.05) 1px, transparent 0);  */
    background-color: #F9FAFB;
    background-size: 15px 15px;
    /* background-color: #d8d8d8; */
}

.io-grey-mode .page-container .detail-grid-bg {
    /* background-image: linear-gradient(rgba(50, 0, 0, 0.05) 1px, transparent 0), linear-gradient(90deg, rgba(50, 0, 0, 0.05) 1px, transparent 0);
     background-size: 15px 15px;
    background-color:#d8d8d8;   
    background-color: #20c997!important; */
}

.io-black-mode .badge-custom {
    background-color: #343a40 !important;
    /* 普通模式下的背景色 */
    color: #bbb !important;
    /* 普通模式下的字体色 */
    /* #bbb!important */
    /* color: gray;                 普通模式下的字体色 */
    /* border-radius: 20px; */

    padding-top: 3px !important;
    padding-bottom: 3px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-radius: 15px !important;
}

.io-grey-mode .badge-custom {
    background-color: lightblue !important;
    color: #fff !important;
    border-radius: 20px !important;
}

/*导航 Logo 图标裁剪边角*/
.url-card .url-img>img {
    /* 图片拉伸配置 - 让小图片填满整个容器 */
    border-radius: 5px;
    ;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* 拉伸填充，保持比例，可能会裁剪边缘 */
}

/*自定义网站图标尺寸 - 覆盖默认的40px*/
.url-card .url-img {
    width: 24px !important;
    height: 24px !important;
}

/* 可选：不同尺寸的图标变体 */
/* 
.url-card .url-img {
    width: 50px !important;
    height: 50px !important;
}

.url-card .url-img {
    width: 56px !important;
    height: 56px !important;
}
*/

/* 图片拉伸方式说明和可选配置 */
/*
当前使用：object-fit: cover - 保持图片比例，拉伸填满容器，可能裁剪边缘

其他可选方式：

1. 完全拉伸填充（可能变形，但完全填满容器）：
.url-card .url-img > img {
    object-fit: fill !important;
}

2. 等比例缩放（保持比例，可能有空白区域）：
.url-card .url-img > img {
    object-fit: contain !important;
}

3. 拉伸填充（当前使用，保持比例，裁剪多余部分）：
.url-card .url-img > img {
    object-fit: cover !important;
}

4. 不缩放（保持原始尺寸，可能溢出或留空）：
.url-card .url-img > img {
    object-fit: none !important;
}

5. 智能缩放（在contain和cover之间选择更合适的）：
.url-card .url-img > img {
    object-fit: scale-down !important;
}
*/


















/* 微信弹框样式 */
.wechat-modal-panel {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 暗色模式下的弹框样式 */
.io-black-mode .wechat-modal-panel {
    background: #2c2e2f !important;
    border: 1px solid #404040;
}

.io-black-mode .wechat-modal-panel h5 {
    color: #fff !important;
}

.io-black-mode .wechat-modal-panel p {
    color: #ccc !important;
}

.io-black-mode .wechat-close-btn {
    color: #ccc !important;
}

.io-black-mode .wechat-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wechat-modal-panel {
        width: 280px;
        margin: 0 20px;
    }

    .wechat-modal-body img {
        width: 160px !important;
        height: 160px !important;
    }
}