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

/*左导航悬浮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;}

/*搜索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:#20c997}
.header-big:not(.no-bg) .text-muted{color:#333!important}
.header-big:not(.no-bg) .search-type .menu-item a,.header-big:not(.no-bg) .big-title .h1{color:#333!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-size: 15px 15px;
    background-color: #d8d8d8;
} */

/* 导航卡片采用 UISDC 的列数、gutter 与内边距联动策略 */
.content-site.customize-site {
    display: flex;
    flex-direction: column;
}

.content-site.customize-site .part-cat-block {
    margin-bottom: 15px;
}

.content-site.customize-site .part-cat-block .c-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26px;
    line-height: 26px;
    margin-bottom: 24px;
    font-weight: normal;
}

.content-site.customize-site .part-cat-block .c-title .l,
.content-site.customize-site .part-cat-block .c-title .r {
    flex-grow: 0;
}

.content-site.customize-site .part-cat-block .c-title .l strong {
    font-size: 20px;
    color: #000;
    font-weight: 700;
}

.content-site.customize-site .part-cat-block .c-title .r {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.content-site.customize-site .part-cat-block .c-content {
    margin-bottom: 0;
}

.content-site.customize-site .part-cat-block .c-loop {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -9px -15px;
}

.content-site.customize-site .p-item {
    width: 50%;
    padding: 0 9px;
    margin-bottom: 15px;
}

.content-site.customize-site .url-card .url-body,
.content-site.customize-site .url-card .url-body:hover {
    transform: none;
    -webkit-transform: none;
    -moz-transform: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.content-site.customize-site .p-item .f-box {
    display: block;
    height: 100%;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    text-decoration: none;
}

.content-site.customize-site .p-item .f-box:hover {
    text-decoration: none;
}

.content-site.customize-site .url-card .card-body {
    padding: 0;
    height: 100%;
}

.content-site.customize-site .url-card .url-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-right: 0;
}

.content-site.customize-site .url-card .item-title {
    min-width: 0;
    margin-bottom: 10px;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    color: #3c3c3c;
}

.content-site.customize-site .url-card .item-ico {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 100%;
    overflow: hidden;
    margin-right: 5px;
    background: transparent;
}

.content-site.customize-site .url-card .url-img > img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    vertical-align: unset;
}

.content-site.customize-site .url-card .url-title {
    min-width: 0;
    flex: 1;
}

.content-site.customize-site .url-card .url-title .title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #3c3c3c;
}

.content-site.customize-site .url-card .item-desc {
    font-size: 12px !important;
    color: #8f8f8f !important;
    line-height: 20px !important;
    height: 40px !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    word-break: break-word;
}

.content-site.customize-site .url-card .url-keywords {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.content-site.customize-site .url-card .url-keyword {
    display: inline-flex;
    align-items: center;
    max-width: 86px;
    padding: 2px 7px;
    border-radius: 999px;
    background-color: #f3f5f8;
    color: #8a9099;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-site.customize-site .url-card .togo,
.content-site.customize-site .iconfont.icon-goto {
    display: none !important;
}

@media (max-width: 749.5px) {
    .content-site.customize-site .part-cat-block {
        background-color: #fff;
        padding: 15px;
        border-radius: 10px;
    }

    .content-site.customize-site .part-cat-block .c-title {
        position: relative;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .content-site.customize-site .part-cat-block .c-title::after {
        content: "";
        position: absolute;
        left: -15px;
        right: -15px;
        bottom: 0;
        height: 1px;
        background-color: #f1f4f9;
    }

    .content-site.customize-site .part-cat-block .c-title .l {
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .content-site.customize-site .part-cat-block .c-title .l::-webkit-scrollbar {
        display: none;
    }

    .content-site.customize-site .part-cat-block .c-title .l strong {
        font-size: 16px;
    }
}

@media (min-width: 750px) {
    .content-site.customize-site .part-cat-block .c-content {
        margin-bottom: 15px;
    }

    .content-site.customize-site .p-item {
        width: 33.33333333%;
    }

    .content-site.customize-site .p-item .f-box {
        padding: 20px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        transition: all .2s;
    }

    .content-site.customize-site .p-item .f-box:hover {
        transform: translateY(-4px);
        -webkit-transform: translateY(-4px);
        -moz-transform: translateY(-4px);
        box-shadow: 0 4px 20px rgba(0,0,0,.04);
        -webkit-box-shadow: 0 4px 20px rgba(0,0,0,.04);
        -moz-box-shadow: 0 4px 20px rgba(0,0,0,.04);
    }

    .content-site.customize-site .p-item .f-box:hover .item-title {
        color: #ff6000;
    }

    .content-site.customize-site .p-item .f-box:hover .title {
        color: #ff6000;
        text-decoration: underline;
    }

    .content-site.customize-site .url-card .item-title {
        margin-bottom: 12px;
    }

    .content-site.customize-site .url-card .url-title .title {
        font-size: 16px;
    }

    .content-site.customize-site .url-card .item-desc {
        line-height: 18px !important;
        height: 36px !important;
    }
}

@media (min-width: 1000px) {
    .content-site.customize-site .part-cat-block {
        margin-bottom: 0px;
    }

    .content-site.customize-site .part-cat-block .c-content {
        margin-bottom: 0px;
    }

    .content-site.customize-site .part-cat-block .c-loop {
        margin: 0 -10px -20px;
    }

    .content-site.customize-site .p-item {
        width: 25%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1000px) and (max-width: 1659.5px) {
    .content-site.customize-site .p-item .f-box {
        padding: 14px;
    }
}

@media (min-width: 1330px) {
    .content-site.customize-site .p-item {
        width: 16.66666667%;
    }
}

@media (min-width: 1660px) {
    .content-site.customize-site .url-card .item-title {
        line-height: 32px;
    }

    .content-site.customize-site .url-card .item-ico {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================
   URL 大图卡（截屏 3:2 + 标题 + 标签 + 简介）
   结构：.url-card-item > (.url-card-content 截屏) + (.url-card-info 信息)

   间距方案：CSS gap（容器级），参考 Ant Design / shadcn / Tailwind UI 的
   成熟卡片栅格——卡片自身不含 padding，宽度用百分比，间距由容器 gap 统一控制。
   卡片白底 + 阴影在浅灰页面背景上自然浮起，轮廓清晰。
   ============================================================ */

/* 分类块间距：让分类块之间留白，使标题到「上一分类块末卡片」与
   到「本分类块首卡片」的视觉距离对称。
   下方间距 = c-title margin-bottom(15px) + 其他 ≈ 24px，故上方取 24px 对齐。
   覆盖旧主题在 ≥1000px 把 margin-bottom 重置为 0 的规则。 */
.content-site.customize-site .part-cat-block {
    margin-bottom: 24px;
}

/* 容器：用 gap 控制卡片间距，清理旧主题的负 margin（gap 方案不需要）*/
.content-site.customize-site .part-cat-block .c-loop {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    margin: 0;
}

/* 卡片宽度：桌面 5 列。
   calc((100% - 4*gap) / 5) ——减去 4 个间隙再等分，保证每行严格 5 列且不溢出。
   用更高优先级（4 class）覆盖旧 .p-item 的 25%/16.66% 等规则。 */
.content-site.customize-site .url-card-item.p-item {
    box-sizing: border-box;
    width: calc((100% - 80px) / 5);  /* 80px = 4 * 20px gap */
    padding: 0;
    margin: 0;
}

/* 卡片整体：竖向布局 + 白底 + 常态阴影（成熟卡片标准视觉）*/
.content-site.customize-site .url-card-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-site.customize-site .url-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 截屏容器：3:2 比例 + 兜底背景，顶部由卡片圆角裁切 */
.content-site.customize-site .url-card-item .url-card-content {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #f3f5f8;
}

.content-site.customize-site .url-card-item .url-card-content a {
    display: block;
    width: 100%;
    height: 100%;
}

.content-site.customize-site .url-card-item .url-card-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 信息区：独立内边距，文字不贴边 */
.content-site.customize-site .url-card-item .url-card-info {
    padding: 12px 14px 14px;
}

/* 头部：标题 + 标签 */
.content-site.customize-site .url-card-item .url-card-head {
    margin-bottom: 8px;
}

/* 站点标题：单行截断 */
.content-site.customize-site .url-card-item .url-site-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
    color: #1f2329;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

/* 标签胶囊容器：最多 2 行 */
.content-site.customize-site .url-card-item .url-site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 40px;
    overflow: hidden;
}

.content-site.customize-site .url-card-item .url-site-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #f2f3f5;
    color: #4e5969;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 简介：固定 2 行高度，短文案撑满对齐，长文案 2 行截断省略号 */
.content-site.customize-site .url-card-item .url-site-desc {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    min-height: 40px;
    max-height: 40px;
    color: #86909c;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

/* ---- 响应式列数 ---- */
/* 注意：旧主题在 ≥750px / ≥1000px 断点给 .c-loop 设了负 margin、
   给 .p-item 设了 width+padding。这里在对应断点显式重置 margin:0，
   并用 calc 宽度覆盖旧 .p-item 宽度，保证 gap 方案生效。 */

/* 桌面：4 列（≥1000px，覆盖旧主题 margin:0 -10px -20px 与 width:25%）*/
@media (min-width: 1000px) {
    .content-site.customize-site .part-cat-block .c-loop {
        margin: 0;
    }
}

/* 平板：3 列（750–999px，覆盖旧主题 width:33.33%）*/
@media (min-width: 750px) and (max-width: 999.5px) {
    .content-site.customize-site .part-cat-block .c-loop {
        margin: 0;
    }

    .content-site.customize-site .url-card-item.p-item {
        width: calc((100% - 40px) / 3);  /* 40px = 2 * 20px gap */
    }
}

/* 手机：2 列（<750px）*/
@media (max-width: 749.5px) {
    .content-site.customize-site .part-cat-block .c-loop {
        gap: 12px;
        margin: 0;
    }

    .content-site.customize-site .url-card-item.p-item {
        width: calc((100% - 12px) / 2);  /* 12px = 1 * 12px gap */
    }
}

/* ---- 夜间模式（body.io-black-mode）---- */
.io-black-mode .content-site.customize-site .url-card-item {
    background-color: #2a2c2f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.io-black-mode .content-site.customize-site .url-card-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.io-black-mode .content-site.customize-site .url-card-item .url-card-content {
    background-color: #1b1d1f;
}

.io-black-mode .content-site.customize-site .url-card-item .url-site-name {
    color: #e5e6eb;
}

.io-black-mode .content-site.customize-site .url-card-item .url-site-tag {
    background-color: #3a3c3f;
    color: #a8abb2;
}

.io-black-mode .content-site.customize-site .url-card-item .url-site-desc {
    color: #a8abb2;
}

/* ============================================================
   左侧分类菜单 scrollspy 高亮（滚动时跟随当前分类）
   ============================================================ */
/* 当前激活的菜单项：左侧色条 + 文字高亮 */
.sidebar-menu-inner a.scrollspy-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

/* 左侧高亮指示条 */
.sidebar-menu-inner a.scrollspy-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #f1404b;
}

/* 浅色模式（io-grey-mode）下侧边栏是浅色背景，文字配色调整 */
.io-grey-mode .sidebar-menu-inner a.scrollspy-active {
    color: #f1404b !important;
    background: rgba(241, 64, 75, 0.08);
}

/* 夜间模式 */
.io-black-mode .sidebar-menu-inner a.scrollspy-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Hero 区域（搜索区）样式
   背景 = 卡片列表区背景色（#f9f9f9），简单统一。
   文字：浅色模式用黑色系，夜间模式用白色系。
   ============================================================ */

/* hero 背景色 */
#search-bg {
    background-color: #eff4f8;
}

/* 搜索输入框文字：浅色模式黑色系（覆盖主题 .header-big #search-text color:#fff）*/
#search-bg #search-text {
    color: #333 !important;
}

#search-bg #search-text::placeholder {
    color: #999;
}

/* 搜索类型标签（百度/谷歌/必应等 .text-muted）：浅色模式深灰 */
#search-bg .s-type-list .text-muted {
    color: #555;
}

/* 搜索引擎切换图标（tile-lg）：浅色模式深色 */
#search-bg .s-type-list .tile-lg {
    color: #333;
}

/* 取消 s-type-list 标签和 search-type 标签的半透明（主题默认 opacity:.5），
   默认和选中/hover 都是 1，清晰显示。 */
.header-big .s-type-list label,
.header-big:not(.no-bg) .search-type label {
    opacity: 1 !important;
}

/* search-type 文字（含 .menu-item a）：白天黑色，覆盖主题的 color:#fff!important */
.header-big:not(.no-bg) .search-type .menu-item a,
.header-big:not(.no-bg) .search-type label {
    color: #333 !important;
}

/* Header 顶部（未滚动）：浅色 hero 上白字看不清，给半透明白底 + 深色字 */
.big-header-banner:not(.header-bg) .page-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.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: #3c3c3c;
}

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

.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: #f1404b;
}

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

/* 夜间模式：hero 背景跟随夜间卡片区底色，文字翻转为白色系 */
.io-black-mode #search-bg {
    background-color: #1b1d1f;
}

.io-black-mode #search-bg #search-text {
    color: #fff !important;
}

.io-black-mode #search-bg #search-text::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.io-black-mode #search-bg .s-type-list .text-muted {
    color: #ccc;
}

.io-black-mode #search-bg .s-type-list .tile-lg {
    color: #fff;
}

/* 夜间模式：搜索引擎列表（text-muted / search-type）文字白色。
   注意：search-list-menu 主分类（常用/搜索/工具）保持绿色 #20c997，不改。 */
.io-black-mode .header-big:not(.no-bg) .text-muted,
.io-black-mode .header-big:not(.no-bg) .search-type .menu-item a,
.io-black-mode .header-big:not(.no-bg) .search-type label,
.io-black-mode .header-big:not(.no-bg) .big-title .h1 {
    color: #fff !important;
}

/* 隐藏右下角白天/夜间模式切换按钮 */
.switch-dark-mode {
    display: none !important;
}










