/*调整全局字体大小*/
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;}

/*搜索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,.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-size: 15px 15px;
    background-color: #d8d8d8;
}

/* io 图标字体（对齐原站角标字形） */
@font-face {
    font-family: "io";
    src: url("../fonts/io/io.woff2") format("woff2"),
         url("../fonts/io/io.woff") format("woff"),
         url("../fonts/io/io.ttf") format("truetype");
    font-display: swap;
}
.io {
    font-family: "io" !important;
    font-style: normal;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.io-windows:before { content: "\e657"; }
.io-mac:before { content: "\e689"; }
.io-ios:before { content: "\e65f"; }
.io-android:before { content: "\e619"; }
.io-tablet:before { content: "\e60d"; }
.io-pc:before { content: "\e882"; }
.io-tv:before { content: "\e618"; }
.io-app:before { content: "\e651"; }
.io-xiazai-o:before { content: "\e65b"; }
.io-download:before { content: "\e605"; }

/*导航 Logo 图标裁剪边角*/
.url-card .url-img > img {
    border-radius: 20%;
}
.url-card .url-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 异形 logo 装进 24px 方框，视觉尺寸对齐 */
.url-card .url-img {
    flex: 0 0 auto;
    overflow: hidden;
}

/* 硬核指南风格卡片：补齐主题缺失的 a 系列栅格
   主题只定义了 col-lg-5a / col-xl-5a，col-2a~col-4a 全部缺失，
   不补的话卡片会一直吃 col-6 的 50%，只剩两列 */
.col-2a,
.col-sm-2a {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
@media (min-width: 768px) {
    .col-md-3a {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (min-width: 992px) {
    .col-lg-3a {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (min-width: 1200px) {
    .col-xl-4a {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 1680px) {
    .col-xxl-5a {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
    }
}
.content-site .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
}
.content-site .url-card {
    display: flex;
    padding-left: 8px !important;
    padding-right: 8px !important;
}
/* 卡片撑满整列（原主题里 url-body 会收缩成内容宽度） */
.content-site .url-card .url-body {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}
.content-site .url-card .url-body > .card {
    flex: 1 1 auto;
    min-width: 0;
}
.content-site .url-card .url-content {
    flex: 1 1 auto;
    min-width: 0;
}
.content-site .url-card .card {
    background: transparent;
    border-radius: 10px;
}
.content-site .url-card .card-body {
    padding: 15px;
}
.content-site .url-card .url-img {
    height: 24px;
    width: 24px;
    margin-right: 12px;
    background: transparent;
}
.content-site .url-card .url-info strong {
    font-size: 14px;
    line-height: 20px;
}
.content-site .url-card .url-info p {
    font-size: 12px;
    line-height: 17px;
}

/* 平台角标：完全按 onenav 原版度量
   span 24×16，APP 用 io-app 字形（29px），右边缘靠 -10px margin 顶到卡片边 */
.site-togoicon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    padding: 3px 10px 0 0;
    color: #525355;
    opacity: 1;
    pointer-events: none;
}
.site-togoicon span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 16px;
    font-size: 0;
}
.site-togoicon span.app {
    width: auto;
    margin: 0 -10px 0 3px;
}
.site-togoicon span i {
    font-size: 13px;
    line-height: 1;
}
.site-togoicon span.app i {
    font-size: 29px;
}
.site-togoicon span.android i { font-size: 11px; }
.site-togoicon span.windows i { font-size: 11px; }
.site-togoicon span.macos i { font-size: 13.5px; }
.site-togoicon span.ios i { font-size: 12.5px; }
.site-togoicon span.tablet i { font-size: 13px; }
/* 有平台角标时不再显示右下角的直达/详情圆钮，避免和角标叠在一起 */
.url-body:has(.site-togoicon) > a.togo {
    display: none !important;
}

/* 平台色（参考站 hover 态配色，这里常驻显示） */
.site-togoicon .windows { color: #0078d7; }
.site-togoicon .macos   { color: #1a1a1a; }
.site-togoicon .ios     { color: #8d8d8d; }
.site-togoicon .android { color: #00d836; }
.site-togoicon .tablet  { color: #8d8d8d; }
.site-togoicon .app     { color: #e5c977; }

.url-body:hover .site-togoicon .windows { color: #3d9bff; }
.url-body:hover .site-togoicon .android { color: #35e05c; }
.url-body:hover .site-togoicon .ios     { color: #d8d8d8; }
.url-body:hover .site-togoicon .macos   { color: #fff; }
.url-body:hover .site-togoicon .app     { color: var(--yh-gold); }
.sitewindow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    background-color: rgba(0, 0, 0, .38);
}
.sitewindow.open {
    display: flex;
    pointer-events: auto;
}
.yinghe-window-body {
    width: 380px;
    max-width: 92vw;
    max-height: 92vh;
    margin: 0 auto;
    padding: 10px;
    overflow: auto;
}
.yinghe-window-bg {
    padding: 20px 10px 10px;
    border-radius: 18px;
    background:
        radial-gradient(92.81% 48.44% at -24.53% -16.02%, #e4fcff 0%, rgba(255,255,255,0) 100%),
        radial-gradient(75.78% 68.16% at 56.74% -24.02%, #fcffda 0%, rgba(255,255,255,0) 100%),
        radial-gradient(160.86% 46.39% at 177.14% -15.62%, #ffc8c8 9.06%, rgba(255,255,255,0) 100%),
        #f0f7f9;
}
.yinghe-window-main {
    padding: 0 10px;
    background: transparent;
}
.yinghe-window-title {
    padding: 0 0 15px;
    color: rgba(0,0,0,.92);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.yinghe-window-applogo {
    display: flex;
    justify-content: center;
    margin: -70px 0 10px;
}
.yinghe-window-applogo img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 18px;
}
.yinghe-appdesc {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}
.yinghe-window-applist {
    position: relative;
    display: flex;
    margin-top: 10px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px #ebf2f8;
    color: rgba(0,0,0,.85);
}
.yinghe-window-applist:hover {
    background: linear-gradient(to right top, #fcfcf0 0%, #fff 100%);
    color: inherit;
}
.yinghe-window-applist .icon {
    padding: 1px 10px 0 0;
}
.yinghe-window-applist .icon i {
    width: 16px;
    color: #1bcb00;
    font-size: 16px;
}
.yinghe-window-applist .info {
    flex: 1;
}
.yinghe-window-applist .name {
    font-size: 16px;
}
.yinghe-window-applist .name span {
    margin-left: 5px;
    padding: 1px 4px;
    background: #4cdc8f;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    vertical-align: 2px;
}
.yinghe-window-applist .desc {
    color: #444;
    font-size: 13px;
}
.yinghe-window-applist .down {
    position: absolute;
    right: 20px;
    top: 20px;
}
.yinghe-window-applist .down-link {
    padding: 5px 10px;
    background: #283593;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
}
.yinghe-window-applist .down i {
    margin-right: 2px;
    vertical-align: -1px;
    font-size: 12px;
}
.yinghe-window-applist .down span {
    font-size: 12px;
}
.yinghe-window-applist.feedback {
    justify-content: center;
    padding: 12px 20px;
    background: transparent;
    box-shadow: none;
}
.yinghe-window-applist.feedback p {
    margin: 0;
    font-size: 12px;
    text-align: center;
}
@media (max-width: 767px) {
    .yinghe-window-body {
        width: 85%;
    }
    .yinghe-window-title {
        font-size: 18px;
        padding: 6px 0 12px;
    }
    .yinghe-window-applist .desc {
        font-size: 11px;
    }
}

/* ============================================================
   暗色主题统一（与详情页 detail.css 同一套变量）
   ============================================================ */
:root {
    --yh-bg: #1b1d1f;
    --yh-panel: #303234;
    --yh-panel-2: #343637;
    --yh-line: #35383a;
    --yh-text: #c9c9c9;
    --yh-muted: #8b8b8b;
    --yh-head: #f2f2f2;
    --yh-gold: #e6bf5c;
    --yh-gold-soft: #d8b45c;
}

body.io-black-mode {
    background-color: var(--yh-bg);
    color: var(--yh-text);
}

/* 网格背景换成详情页同款细网格 */
body.io-black-mode .page-container .grid-bg,
body.io-black-mode .main-content.grid-bg {
    background-color: var(--yh-bg) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) !important;
    background-size: 42px 42px !important;
}

/* 内容区做成参考站那样的整块面板（#2c2e2f） */
body.io-black-mode #content.content-site {
    background: #2c2e2f !important;
    border-radius: 14px;
    padding: 18px 22px 10px !important;
    margin-bottom: 28px;
}
/* 右侧给浮动工具条留出位置，避免压住最后一列卡片 */
@media (min-width: 992px) {
    body.io-black-mode #content.content-site {
        margin-right: 0;
        width: auto;
        padding-right: 86px !important;
    }
}

/* 顶栏 */
body.io-black-mode .big-header-banner .page-header {
    background: rgba(22, 22, 22, .92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 var(--yh-line) !important;
}

body.io-black-mode .page-header .navbar-nav > li > a,
body.io-black-mode .navbar-menu a:not(.dropdown-item) {
    color: #cfcfcf !important;
}

body.io-black-mode .page-header .navbar-nav > li > a:hover,
body.io-black-mode .navbar-menu a:not(.dropdown-item):hover {
    color: var(--yh-gold) !important;
}

body.io-black-mode .header-mini-btn path {
    stroke: #cfcfcf;
}

/* 顶部搜索区：去掉花哨渐变，压成一块深色 */
body.io-black-mode .header-big {
    background: transparent !important;
    background-image: none !important;
    animation: none !important;
}

body.io-black-mode .header-big:before,
body.io-black-mode .header-big:after {
    background-image: none !important;
}

body.io-black-mode .header-big #search-text {
    background: var(--yh-panel) !important;
    border: 1px solid var(--yh-line) !important;
    border-radius: 10px !important;
    color: #e4e4e4 !important;
}

body.io-black-mode .header-big #search-text::placeholder {
    color: #6f6f6f;
}

body.io-black-mode .header-big .search-type .menu-item a,
body.io-black-mode .header-big .s-type-list,
body.io-black-mode .header-big .text-muted {
    color: #9a9a9a !important;
}

body.io-black-mode .header-big .search-type input:checked + label,
body.io-black-mode .header-big .search-type input:checked + label:before {
    color: var(--yh-gold) !important;
}

body.io-black-mode .header-big .search-type input:checked + label:before {
    border-color: var(--yh-gold) transparent transparent !important;
}

/* 左侧栏 */
body.io-black-mode .sidebar-nav-inner {
    background: #1a1a1a !important;
    border-right: 1px solid var(--yh-line);
}

body.io-black-mode .sidebar-nav .sidebar-menu-inner a {
    color: #9d9d9d;
}

body.io-black-mode .sidebar-nav .sidebar-menu-inner a:hover,
body.io-black-mode .sidebar-nav .sidebar-menu-inner li.active > a {
    color: var(--yh-gold);
    background: rgba(230, 191, 92, .08) !important;
}

/* 当前分区：整条暖色高亮 + 金色图标（对齐参考站） */
body.io-black-mode .sidebar-nav .sidebar-menu-inner li.active > a,
body.io-black-mode .sidebar-nav .sidebar-menu-inner a.active {
    color: #e2bd60 !important;
    background: rgba(226, 189, 96, .13) !important;
}

body.io-black-mode .sidebar-nav .sidebar-menu-inner li.active > a i,
body.io-black-mode .sidebar-nav .sidebar-menu-inner a.active i {
    color: #e2bd60;
}

/* 收起状态（60px）时高亮铺满整条，图标居中 */
body.io-black-mode .mini-sidebar .sidebar-menu-inner li.active > a {
    background: rgba(226, 189, 96, .13) !important;
}

.mini-sidebar .sidebar-menu-inner a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding-left: 0 !important;
    height: 50px;
    max-height: 50px;
    line-height: 1;
}

.mini-sidebar .sidebar-menu-inner a i.mr-2 {
    margin-right: 0 !important;
}

/* 收起时不要那排小箭头，参考站只有纯图标 */
.mini-sidebar .sidebar-menu-inner .sidebar-more {
    display: none !important;
}

body.io-black-mode .sidebar-logo,
body.io-black-mode .sidebar-nav .border-top,
body.io-black-mode .sidebar-nav .border-bottom {
    border-color: var(--yh-line) !important;
}

/* 分区标题 */
body.io-black-mode .content-site h4.text-gray,
body.io-black-mode .content-site .text-gray {
    color: #d6d6d6 !important;
    font-weight: 600;
}

body.io-black-mode .content-site h4 .iconfont {
    color: var(--yh-gold-soft);
}

/* 分区标题加一条金色竖条，和详情页 h2 保持一致 */
body.io-black-mode .content-site > .d-flex > h4.text-gray {
    position: relative;
    padding-left: 12px;
    color: var(--yh-head) !important;
    font-size: 15px;
    letter-spacing: .2px;
}

body.io-black-mode .content-site > .d-flex > h4.text-gray::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 15px;
    margin-top: -7.5px;
    border-radius: 2px;
    background: var(--yh-gold);
}

/* 隐藏原来那个偏大的彩色 tag 图标 */
body.io-black-mode .content-site > .d-flex > h4.text-gray .site-tag {
    display: none;
}

/* 卡片本体：给一个和详情页一致的深色面板 + 细边框 */
/* 参考站卡片：纯色块，无描边，悬停不变形只提亮文字 */
body.io-black-mode .content-site .url-card .card {
    background: var(--yh-panel) !important;
    border: 0 !important;
    border-radius: 10px !important;
    transition: background .18s ease;
}

body.io-black-mode .content-site .url-card .card:hover {
    background: #323436 !important;
}

body.io-black-mode .content-site .url-card .card::after {
    display: none !important;
}

body.io-black-mode .content-site .url-card .url-info strong {
    color: #b8b8b8;
    font-weight: 600;
}

body.io-black-mode .content-site .url-card .url-body:hover .url-info strong {
    color: #fff;
}

body.io-black-mode .content-site .url-card .url-info p,
body.io-black-mode .content-site .url-card .text-muted {
    color: #6c757d !important;
}

/* 直达箭头 */
body.io-black-mode .content-site .url-card a.togo {
    color: #6d6d6d !important;
}

body.io-black-mode .content-site .url-card .url-body:hover a.togo {
    color: var(--yh-gold) !important;
    opacity: 1;
}

/* 平台角标：暗底上提亮 */
body.io-black-mode .site-togoicon {
    color: #525355;
}

body.io-black-mode .site-togoicon .windows { color: #0078d7; }
body.io-black-mode .site-togoicon .macos   { color: #111; }
body.io-black-mode .site-togoicon .ios     { color: #9a9a9a; }
body.io-black-mode .site-togoicon .android { color: #00d836; }
body.io-black-mode .site-togoicon .tablet  { color: #9a9a9a; }
body.io-black-mode .site-togoicon .app     { color: #e5c977; }

body.io-black-mode .url-body:hover .site-togoicon .windows { color: #3d9bff; }
body.io-black-mode .url-body:hover .site-togoicon .android { color: #35e05c; }
body.io-black-mode .url-body:hover .site-togoicon .ios     { color: #d8d8d8; }
body.io-black-mode .url-body:hover .site-togoicon .macos   { color: #fff; }
body.io-black-mode .url-body:hover .site-togoicon .app     { color: var(--yh-gold); }

/* 页脚 */
body.io-black-mode footer.main-footer {
    background: transparent !important;
    color: #6f6f6f;
    border-top: 1px solid var(--yh-line);
}

body.io-black-mode footer.main-footer .footer-text a {
    color: #9a9a9a;
}

body.io-black-mode footer.main-footer .footer-text a:hover {
    color: var(--yh-gold);
}

/* 右下角浮动按钮 */
body.io-black-mode #footer-tools .btn {
    background: var(--yh-panel-2) !important;
    border: 1px solid var(--yh-line) !important;
    color: #b0b0b0 !important;
}

body.io-black-mode #footer-tools .btn:hover {
    color: var(--yh-gold) !important;
    border-color: #3a3a3a !important;
}

/* 搜索热词下拉 */
body.io-black-mode .search-hot-text {
    background: var(--yh-panel-2);
    box-shadow: 0 10px 24px -12px #000;
}

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

body.io-black-mode .search-hot-text ul li:hover,
body.io-black-mode .search-hot-text ul li.current {
    background: #2c2c2c;
    color: var(--yh-gold);
}

body.io-black-mode .search-hot-text ul li span {
    background: #333;
    color: #9a9a9a;
}

/* 弹窗（未提供详情页的条目仍走弹窗） */
body.io-black-mode .yinghe-window-bg {
    background:
        radial-gradient(92.81% 48.44% at -24.53% -16.02%, #24343a 0%, rgba(29,29,29,0) 100%),
        radial-gradient(75.78% 68.16% at 56.74% -24.02%, #34331f 0%, rgba(29,29,29,0) 100%),
        radial-gradient(160.86% 46.39% at 177.14% -15.62%, #3a2222 9.06%, rgba(29,29,29,0) 100%),
        var(--yh-panel);
    border: 1px solid var(--yh-line);
}

body.io-black-mode .yinghe-window-title {
    color: var(--yh-head);
}

body.io-black-mode .yinghe-appdesc {
    color: var(--yh-muted);
}

body.io-black-mode .yinghe-window-applist {
    background: var(--yh-panel-2);
    border: 1px solid var(--yh-line);
    box-shadow: none;
    color: #dcdcdc;
}

body.io-black-mode .yinghe-window-applist:hover {
    background: #2a2a2a;
    color: #fff;
}

body.io-black-mode .yinghe-window-applist .desc {
    color: #9a9a9a;
}

body.io-black-mode .yinghe-window-applist .down-link {
    background: var(--yh-gold);
    color: #1a1a1a;
}

@media (max-width: 767px) {
    body.io-black-mode .content-site .url-card .card-body {
    padding: 14px 14px 13px;
    }

/* 有角标时给右侧留出位置，避免压住描述 */
body.io-black-mode .content-site .url-card:has(.site-togoicon) .url-info {
    padding-right: 6px;
}
}















